@ok-oldking/commit
BGenerate a commit message based on current changes and commit all staged and unstaged changes to git
Install
agr install @ok-oldking/commit --target claudeWrites 1 file into .claude/skills/, pinned to git-11462169.
- .claude/skills/commit/SKILL.md
Document
name: commit description: Generate a commit message based on current changes and commit all staged and unstaged changes to git
Commit Changes
When instructed to commit changes, follow these steps:
1. Check for uncommitted changes
// turbo
git status --short
If there are no uncommitted changes (no output from the command above), tell the user "No uncommitted changes to commit." and STOP.
2. Review changes and generate a commit message
// turbo
git diff --stat
// turbo
git diff
Review the output of git diff and git diff --stat. Write a concise, descriptive commit message summarizing only these uncommitted changes. The message should:
- Use imperative mood (e.g. "Add …", "Fix …", "Refactor …")
- Be a single line for simple changes.
- For complex changes, use a single summary line, followed by a blank line and bullet points.
3. Stage and commit all changes
// turbo
git add -A
// turbo
git commit -m "<generated commit message>"
Replace <generated commit message> with the message you wrote in step 2.
4. Report
Tell the user:
- The commit message used.
- A brief summary of what was committed.
Trustgrade B
- passBody integrity
Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.
- passType matchnot applicable to this artifact type
Whether the artifact is really the kind of thing its metadata claims it is.
- passFreshness
How long since the source repository was last pushed to.
- passPrompt injection
Scans the artifact's own text for instructions aimed at your agent rather than at you.
- warnLicensecopyleft/unknown — index-and-link only
Whether the source repository declares an SPDX license permissive enough to redistribute.
How the grade is calculated
Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:
- Aevery check passed
- Bone warning
- Ctwo warnings
- Dprompt injection or body integrity failed, or three warnings
- Fone of those failed, and something else is wrong
These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.
Versions
git-114621699db92026-07-31