Use when adding new error messages to React, or seeing "unknown error code" warnings.
npx skills add crcrworks/agent-skills --skill "git-commit-message"
Install specific skill from multi-skill repository
# Description
Formulate a git commit message. Use this skill whenever asked to create a commit message.
# SKILL.md
name: git-commit-message
description: Formulate a git commit message. Use this skill whenever asked to create a commit message.
Create a commit message summarizing the changes just made. Only take staged changes into account.
Language Settings
- Write commit messages in the user's language (follow the language of user's request)
- If requested in Japanese, write subject and body in Japanese
- Keep type prefixes in English (feat, fix, docs, etc.) for tooling compatibility
- Example (Japanese):
feat(auth): ユーザー認証機能を追加
Follow The seven rules of a great Git commit message (https://cbea.ms/git-commit/#seven-rules) to the letter.
Scan for what is staged
Use the context to construct a good message but make sure to only address the scope that is currently staged in git.
List files that are staged (in the index):
git diff --cached --name-only
Show the full diff of staged changes:
git diff --cached
Rules
- Separate subject from body with a blank line
- Limit the subject line to 50 characters
- Capitalize the subject line
- Do not end the subject line with a period
- Use the imperative mood in the subject line
- Wrap the body at 72 characters
- Use the body to explain what and why vs. how
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.