Plans and executes git commits with optional TICKET_ID prefix. Analyzes staged changes, proposes optimal commit structure (single or multiple), generates descriptive messages with technical context, and executes after user approval. Use when committing code changes, creating atomic commits, or splitting large changesets.
Analyze staged changes and create optimal commit plan, then execute after user approval.
$ARGUMENTS may contain a TICKET_ID (e.g., JIRA-123, GH-456).
TICKET_ID: git status --porcelain
Show user:
Ask user to confirm scope:
If nothing to commit (no staged + no changes) → inform and exit.
Run in parallel:
git diff --staged --stat
git diff --staged --name-only
git log --oneline -5 # for message style reference
Assess:
Single commit when:
Multiple commits when:
Title format (max 60 chars):
TICKET-123: Add user authenticationAdd user authentication middlewarePrefixes: Add, Fix, Update, Refactor, Remove, Implement
Body (technical context for future readers):
Target ~50-150 words. Audience: technical people reading git history to understand WHY.
Style:
Anti-patterns:
Example:
TICKET-123: Fix memory leak in cache service
Cache entries weren't being cleaned up when TTL expired, causing
memory to grow unbounded under sustained load. This adds reference
counting to track active cache users and a cleanup routine in the
TTL handler that only removes entries with zero references.
Format:
COMMIT PLAN
===========
Files: X | Lines: +Y/-Z
Commit 1: [message title]
file1.js (new)
file2.ts (modified)
Body:
[technical explanation]
[If multiple commits, show each]
Approve? (yes/no/modify)
After approval:
Single commit:
git commit -m "title" -m "body"
Multiple commits:
git reset (unstage all)git add [specific files]git commit -m "title" -m "body"git log --oneline -3
git log -1 --format=medium
Show:
npx skills add antoniocascais/git-commit下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer