.agents/skills/git-commit/SKILL.md
Create well-formatted commits following conventional commits style with proper atomic commits and descriptive messages
npx skillsauth add aspiers/ai-config git-commitInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when:
NEVER STAGE OR UNSTAGE FILES WITHOUT EXPLICIT PERMISSION
Do NOT run any of these commands WITHOUT user permission:
git addgit stagegit resetgit restore --stagedDefault behavior: Only work with files that are ALREADY staged by the user.
Exception: Only stage files if the user gives explicit permission when asked.
FIRST: Check which files are staged and unstaged with git status. (Do not mix these two categories up!)
ABSOLUTE REQUIREMENT: Do NOT attempt to change what is staged, now or at any later point in this process!
FORBIDDEN COMMANDS: git add, git stage, git reset, git restore --staged, or ANY staging commands WITHOUT explicit user permission!
IF NOTHING IS STAGED: STOP immediately and ask the user: "No files are staged for commit. Would you like me to stage all modified files, or would you prefer to stage specific files yourself? If you want me to stage files, please give explicit permission."
Check historical commits to learn style and tone: git log --oneline -40
Analyze the diff to determine if multiple distinct logical changes are present.
If multiple distinct changes are detected, stop and ask the user whether to break the commit into multiple smaller commits.
Use the output of git diff --cached --no-ext-diff to understand what actual changes are staged. Be careful not to confused staged with unstaged changes.
Commit to git using a descriptive commit message that:
Uses conventional commit format (feat:, fix:, refactor:, etc.) following existing style and tone
Roughly follows this template (wrap the body at 78 columns):
feat: <what changed, keep under 75 characters>
Without this patch, ... <describe the status quo relevant to this change>
This is a problem because ... <describe *why* the change is needed>
This patch solves the problem by ... <describe *how* the solution works>
Lists key changes and additions
References the task number and the task file it came from
Adds a "Co-authored-by:" footer which clarifies which AI agent helped create this commit, using an appropriate noreply@... email address
development
Run tests according to repository guidelines. Use after linting passes, before staging changes.
development
Orchestrate the complete development workflow for implementing sub-tasks from a task list. Use for end-to-end feature implementation with quality controls.
development
Implement a single sub-task from a task list. Use when working on feature development with existing task lists.
data-ai
Generate a detailed task list from a PRP. Use after a PRP is created and ready for implementation planning.