claude/ai-resources-plugin/skills/commit/SKILL.md
Commit staged git changes after generating and approving a message.
npx skillsauth add amhuppert/my-ai-resources 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.
This skill helps create well-formatted git commit messages based on staged changes.
% git status
!`git status`
% git diff --cached
!`git diff --cached`
% git branch --show-current
!`git branch --show-current`
% git log --oneline -10
!`git log --oneline -10`
Check the current branch. If it is 'main', abort the commit and ask the user to switch to a different branch.
If not on 'main', analyze the staged changes in the git diff.
Generate a commit message following this format:
{one line commit summary}
{more detailed description of changes if necessary}
Ensure your commit message adheres to these rules:
If you need to revise your commit message, do so until it meets all criteria.
Before generating the final commit message, wrap your analysis inside <git_analysis> tags in your thinking block. This analysis should include:
This will help ensure a thorough interpretation of the git diff and status.
Here's an example of a good commit message format:
Implement user authentication feature
- Add login and registration endpoints
- Create user model
- Set up JWT token generation
Remember, the key is to be descriptive yet concise, focusing on what was changed and why.
Now, please proceed with your analysis and commit message generation based on the provided git information. Once the user has approve the commit message, commit the changes.
development
Debug a running web app via the web-debugger SDK: app logs, application state, runtime snapshots, React state, query cache.
development
Thoroughly understand a software development objective before implementation: research, identify ambiguities, ask clarifying questions. Use before starting implementation of a non-trivial or ambiguously specified feature, or when requirements leave open design decisions.
development
Locate the on-disk Claude Code transcript file (.jsonl under ~/.claude/projects/) for the current or a specified conversation.
development
Reflect on codebase navigation effectiveness at end of conversation. Surfaces dead ends, inefficiencies, missing context. Does not write files — pair with /kiro:steering-custom to persist.