Claude-skill-registry Coding Conventions
Automatically apply standard coding conventions when writing or modifying code. Use this skill when working with Python, TypeScript, JavaScript, Go, PHP, or creating git commits. Triggers include writing new code, refactoring existing code, or committing changes in supported languages.
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/conventions" ~/.claude/skills/majiayu000-claude-skill-registry-coding-conventions-d62f1f && rm -rf "$T"
manifest:
skills/data/conventions/SKILL.mdsource content
Coding Conventions
Supported Languages
- Python - PEP 8
- TypeScript - Google & Microsoft Style Guide
- JavaScript - Airbnb Style Guide
- Go - Effective Go & Google Style Guide
- PHP - PSR Standards
- Git Commits - Conventional Commits
Workflow
When writing or modifying code:
- Identify the language of the file being edited
- Read the appropriate convention file from
directoryreferences/ - Apply conventions consistently to naming, formatting, documentation, and organization
Convention Files
- Python (PEP 8)references/python-conventions.md
- TypeScriptreferences/typescript-conventions.md
- JavaScript (Airbnb)references/javascript-conventions.md
- Goreferences/golang-conventions.md
- PHP (PSR)references/php-conventions.md
- Git commit formatreferences/git-commit-conventions.md
Git Commit Quick Reference
Follow Conventional Commits format:
<type>(<scope>): <subject>
Common types:
feat, fix, docs, style, refactor, test, chore
Rules:
- Imperative present tense: "add" not "added"
- Lowercase subject, no period
- Keep subject under 50 characters
- Include
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Example:
feat(auth): add user authentication Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
For complete git commit guidelines, see
references/git-commit-conventions.md.
Priority Rules
- Project-specific conventions override language defaults
- Existing code style should be matched for consistency
- Automatic tools (ESLint, Prettier, gofmt) should be respected if configured
- Convention files provide the default standards