commit

A guided workflow for creating a Git commit, which records selected repository changes as one version-controlled unit, using a gitmoji-style message.

In plain words
What is it for?
Use it when you need to inspect, stage, and commit changes or prepare a gitmoji commit message; the workflow requires confirmation before committing.
Why use it?
It helps ensure the staged changes are understood, unrelated work is noticed, and the commit message accurately describes the change before anything is committed.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/testzugang/pi-plugins/commit
Any agent
npx skills add testzugang/pi-plugins --skill commit
Clone the repo
git clone --depth 1 https://github.com/testzugang/pi-plugins

Made for: Claude Code, Codex.

Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,135 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00032 $0.01135
Opus 5 $0.00016 $0.00567
Sonnet 5 $0.00006 $0.00227
Haiku 4.5 $0.00003 $0.00113

Measured 2d ago against content hash 0f45c8eb7f33, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

commit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/pi-commit/skills/commit/SKILL.md · 138 lines

How it starts

The opening of the file, as written. The whole thing — 138 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Commit

Goal

Create a git commit using a disciplined gitmoji workflow: inspect staged changes, understand the motivation, propose a message, confirm with the user, then commit.

Do not commit without explicit confirmation.

Workflow

  1. Inspect repository state:
    • git status --short
    • git diff --cached --stat
    • git diff --cached
    • git log --oneline -10
  2. Decide path:
    • If files are already staged: use fast-path (no staging questions).
    • If nothing is staged and user requested staging/commit all: show candidate files once and ask once before staging.
    • If nothing is staged and recent assistant work produced unstaged/untracked changes: treat the commit request as implicit staging intent. Show candidate files once, including any unstaged/untracked files so unrelated leftovers are visible, and ask once before staging.
    • If nothing is staged and there is no explicit staging request or recent assistant work context: stop and tell the user no staged changes.
    • After any staging step: rerun git status --short, git diff --cached --stat, and git diff --cached before drafting the commit.
  3. Check whether staged changes contain multiple unrelated concerns.
    • If yes, recommend separate commits and ask how to proceed.
  4. Gather message inputs with minimal churn:
    • Ask for motivation once.
    • Gitmoji selection only if not already specified by the user.
  5. Draft a commit message with subject and body.
  6. Ask exactly one final confirmation (user_select) with full message + file list.
  7. Run git commit only after final confirmation.
  8. Run git status --short after the commit and report the result.

Gitmoji Reference

Emoji Use when
adding a feature or new capability
🐛 fixing a bug
🔧 changing configuration, tooling, or package setup
♻️ refactoring without behavior change
adding or updating tests
📝 changing documentation
🎨 formatting or code style only
improving performance
🔥 removing code or files
🔖 release commits

Read the full file on GitHub · 138 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 138 lines · 32 tokens per session scan A 0f45c8eb7f33

Subscribe to this mod's changes

commit is a skill published in the GitHub repository testzugang/pi-plugins (2 stars, last pushed 1mo ago), licensed MIT. It adds 32 tokens to every session and 1,135 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

agent-host-chat-contributions

Build and review cross-cutting agent-host chat behavior through lifecycle contributions. Use when adding turn lifecycle side effects, prompt or context injection, restored-history transformation, protocol-action observation, or when reviewing changes that add code to AgentSideEffects or AgentService.

microsoft/vscode · 56 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens