← ClaudeAtlas

python-stylelisted

Tsukini's Python style (from his real scripts - libutils cmake/scripts const.py / generate_exception_header.py, MAGIC - and the xstyle PY rules) - Xartania header,
TsukiNi22/ai-utils · ★ 1 · AI & Automation · score 74
Install: claude install-skill TsukiNi22/ai-utils
# Tsukini Python style `<name>` (a skill) = the folder of that skill: `~/.claude/skills/<name>` (setup.sh) or `${CLAUDE_SKILL_DIR}/../../*/<name>` (plugin of the marketplace). Measured on the user's own scripts (libutils `cmake/scripts/const.py`, `generate_exception_header.py`, 2026) and on MAGIC (2025, older form: `""" Import """` banners, plain classes for the constants, `print` errors): **the 2026 form wins**, the older one is only kept when editing a file already written that way (the local style of a file wins). Common rules of every language: `coding-style`; comments: `python-comments`; new files / classes: `python-class`. Everything in **English**. Checked by `xstyle` (`PY-*` + the generic rules): run `xstyle --rtk <files>` after writing, `xstyle --rtk --fix` for the fixable ones. ## File layout ```python """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" # header: <cpp-class>/scripts/header.py --file x.py ██╗ ██╗ ... # (banner, optional: --banner none) Edition: ## 06/10/2026 by Tsukini File Name: ## generate.py File Description: ## Generate the exception header from the config file """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" ##### Import ##### # Import that can't be in the try from const import RETURN, ERROR, FILES from sys import exit, stderr # Import that can be checked try: from pathlib import Path # Used to create & edit files import json # Used to get the