From rules-for-ai
Defines conventions for git branch names and commit messages using a type vocabulary. Use before creating branches or writing commits.
How this skill is triggered — by the user, by Claude, or both
Slash command
/rules-for-ai:hashiiiii-gitThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
One `type` vocabulary for both the **branch name** and **commit subject**. Pick the type once.
One type vocabulary for both the branch name and commit subject. Pick the type once.
git switch -c / git checkout -bgit commitNot for branching strategy, squash/rebase policy, or release tagging.
<type>/<short-english-kebab>
English, kebab-case, terse. No issue numbers, extra prefixes, personal names, or Japanese.
Examples: feat/yaml-parser, fix/nested-override-diff, docs/cli-usage
<type>: <subject> — one line only, no body.
English, imperative, lowercase first word, no trailing period, ≤ 50 characters.
Example: feat: add YAML parser for .prefab files
| type | use when |
|---|---|
feat | new feature or capability |
fix | bug fix |
docs | documentation only |
style | formatting / whitespace, no behavior change |
refactor | restructuring without behavior change |
perf | performance improvement |
test | adding or fixing tests |
build | build system or dependencies |
ci | CI configuration |
chore | misc maintenance (e.g. .gitignore) |
revert | reverting a prior commit |
Pick the closest type. Do not invent new ones.
git switch -c feat/yaml-parser
git commit -m "feat: add YAML parser for .prefab files"
| Mistake | Fix |
|---|---|
| Body or bullets under the subject | One line only |
| Japanese subject | English, imperative, lowercase first word |
| Subject > 50 characters | Trim to ≤ 50 |
Branch like feature/…, bugfix/…, john/…, or Japanese | <type>/<english-kebab> from the table |
| New type | Use one of the 11 types above |
npx claudepluginhub hashiiiii/rules-for-ai --plugin rules-for-aiEnforces Git branch naming conventions with type prefixes (feat, fix, chore), issue linking, and kebab-case formatting. Use for creating branches, validating names, or setting repository standards.
Automates Git operations with intelligent commit messages following Conventional Commits, branch naming, and PR description generation. Invoke via /commit, /branch, /pr.