From ai-everything
Summarize git changes and create a commit with a structured message. Parallel git status/diff/log; feat/fix/docs type with bullet body; heredoc commit; safe git only. Use when user wants to commit, write commit message, git commit, summarize changes, invoke commit-helper, or create commit. Triggers: 'commit', 'commit-helper', 'git commit', 'commit message', '提交', '写提交信息', '创建 commit', '总结改动并提交', '帮我提交', '拟定提交说明'.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ai-everything:commit-helperThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
IRON LAW: Never modify `git config`, never run destructive git commands (`push`, `rebase`, `reset`, `cherry-pick`, etc.), never skip hooks unless the user explicitly requests it, and never `git commit --amend` unless user rules clearly allow it. The commit message must reflect the **actual diff** — do not invent changes.
IRON LAW: Never modify git config, never run destructive git commands (push, rebase, reset, cherry-pick, etc.), never skip hooks unless the user explicitly requests it, and never git commit --amend unless user rules clearly allow it. The commit message must reflect the actual diff — do not invent changes.
Commit Helper Progress:
- [ ] Step 1: Collect ⚠️ REQUIRED
- [ ] Load references/git-safety.md
- [ ] git status; git diff; git diff --staged; git log -n 15 --oneline (parallel)
- [ ] Step 2: Summarize for user ⚠️ REQUIRED
- [ ] Step 3: Draft message ⚠️ REQUIRED
- [ ] Load references/commit-message-format.md
- [ ] Step 4: Stage and commit
- [ ] Load references/staging-and-hooks.md
- [ ] Step 5: Report ⚠️ REQUIRED
- [ ] Self-check (pre-delivery checklist below)
Load references/git-safety.md first.
Run in parallel:
git status
git diff
git diff --staged
git log -n 15 --oneline
Use log output for wording habit only; message structure always follows commit-message-format.md.
Scan for secrets (.env, credentials, keys). ⚠️ Do not stage or commit — warn and exclude.
If nothing to commit, stop and tell the user.
Short paragraph or bullets: what changed and why (intent). No file-path dump.
Content must map to the commit title and each - bullet in Step 3.
Load references/commit-message-format.md.
{{input}} or conversation) → use it.If the user only asked to draft a message, show the draft and stop before Step 4.
Large or sensitive changes: show draft and confirm before Step 4 unless the user already asked to commit.
Load references/staging-and-hooks.md.
git add scoped to this change (explicit paths; git add -A only when all pending files belong to this commit).-m (required for title + bullet body).git status after commit.On hook failure: see staging-and-hooks.md — fix and new commit, not amend (unless user rules allow amend).
Show the user:
git status (e.g. clean working tree, or ahead of remote by N commits)-m for multiline {type}: title + bullets--no-verify / --no-gpg-sign without explicit user requestgit config" inside heredoc bodygit log -n 15 --oneline{type}: {title} + blank line + - bullets; type from table or user overridegit status shownGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub j-show/ai-everything --plugin ai-everything