Claude-skill-registry coding-conventions
Provides coding style rules for Python and PowerShell. Apply when writing, editing, reviewing, or debugging code.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/coding-conventions" ~/.claude/skills/majiayu000-claude-skill-registry-coding-conventions && rm -rf "$T"
manifest:
skills/data/coding-conventions/SKILL.mdsource content
Coding Conventions
This skill contains language-specific coding convention files.
Verb Mapping
This skill implements:
- [IMPLEMENT] - Apply coding style during implementation
- [REFACTOR] - Apply coding style during refactoring
Phases: IMPLEMENT, REFINE
Available Convention Files
- Python coding conventions (formatting, imports, logging, etc.)PYTHON-RULES.md
- JSON coding conventions (field naming, 2-space indent, 2D table formatting)JSON-RULES.md
- Workflow document conventions (structure, formatting)WORKFLOW-RULES.md
- Agent skill folder structure and SKILL.md conventionsAGENT-SKILL-RULES.md
Tools
- Convert Python file indentation to target spacesreindent.py
Usage
Read the appropriate convention file for the language you are working with.
reindent.py
Convert Python indentation to target spaces. Auto-detects source indentation and skips files already at target. Excludes itself from processing.
# Convert folder to 2-space indentation python reindent.py folder/ --to 2 --recursive # Dry-run (preview only) python reindent.py folder/ --to 2 --recursive --dry-run # Single file python reindent.py script.py --to 2