Agent skill
gc
ONLY trigger on explicit /gc. Never auto-trigger on 'commit', 'push', or similar words.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/gc-gsa9-3-step-plan-claude-c
SKILL.md
Git Commit and Push
Repo targeting: If --repo <path> is provided, use git -C <path> for ALL git commands (add, commit, push). Otherwise use current directory. Strip --repo <path> from args before treating remainder as message.
git -C <repo> add -A(omit-Cif no --repo)- If user provided a message, skip to step 4
python ~/.claude/skills/gc/gc_diff.py <repo>(omit arg if no --repo) — if it prints "No staged changes", stop and tell user. If it errors, stop and show the error. Otherwise draft from its output + conversation memory. Imperative, lowercase, no period, ~50 chars. Bullets OK for bigger changes.- Commit, then
git push(orgit push -u origin <branch>if no upstream). All with-C <repo>if specified.
NEVER run git diff, git log, git show, git status, or read any file to inform the message. Only inputs: script output + conversation memory. No Co-Authored-By or trailers. No selective staging.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?