Borrowing it
Nothing to install: this file belongs to n9e/fe. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/n9e/fe/main/.claude/commands/cmt.mdgit clone --depth 1 https://github.com/n9e/feWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/n9e/fe/cmt)<a href="https://agentmods.dev/commands/n9e/fe/cmt"><img src="https://agentmods.dev/badge/commands/n9e/fe/cmt/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/n9e/fe/cmt"><img src="https://agentmods.dev/badge/commands/n9e/fe/cmt.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00057 | $0.01580 |
| Opus 5.5 | $0.00023 | $0.00632 |
| Sonnet 5.5 | $0.00011 | $0.00316 |
| Haiku 4.5 | $0.00006 | $0.00158 |
Grade A, and why
cmt 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 20d 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.
How it starts
The opening of the file, as written. The whole thing — 241 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/cmt — Git Review & Commit
Override: This skill replaces the default system commit workflow when
/cmtis invoked. Follow this skill exactly.
When the user invokes /cmt [mode], prepare a conventional commit for current git changes.
| Command | Mode | Behavior |
|---|---|---|
/cmt |
fast |
Default. Inspect changes, run git diff --check, show summary, wait for approval. |
/cmt fast |
fast |
Same as default. |
/cmt strict |
strict |
Simplify safely, run full review, verify, wait for approval. |
Unknown modes: stop and list fast and strict.
Workflow
1. Parse Mode And Check Status
Default to fast when no mode is provided.
git branch --show-current
git status --short --branch
Identify:
- current branch
- staged files
- unstaged changes
- untracked files
- merge conflicts
Stop if:
- working tree is clean → report "Nothing to commit"
- merge conflicts are present → report conflicts
- only untracked files with unclear purpose → ask before staging
Branch policy:
mainormaster: always require extra-clear confirmation before commit.- Feature branches (
feat*): proceed through the selected mode, but still require explicit user approval. - Other branches: use judgment; ask briefly if unclear.
If unrelated changes are mixed together, ask what to include before proceeding.
2. Inspect Current Changes
For staged changes:
git diff --staged
For unstaged changes:
git diff
Focus on:
- correctness and regressions
- accidental debug code, secrets, generated noise, or unrelated churn
- whether the change should be split into separate commits
If there are unstaged changes that belong to the same task, include them. If unrelated, ask before staging.
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.
- 20d ago Changed · +12 lines bddc4ebbb871
- 1mo ago First seen · 229 lines · 57 tokens per session scan A 1e19d16b5b97
cmt is a command published in the GitHub repository n9e/fe (308 stars, last pushed today), licensed Apache-2.0. It adds 57 tokens to every session and 1,580 once invoked, about $0.0002 per session on Opus 5.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-09-01.
Other commands, from other repositories
elegant-code-review
Review the current working diff against the elegant-code decision ladder and propose deletions, honoring the negligence floor.
prp-commit
Quick commit with natural language file targeting: describe what to commit in plain English.
git
The pre-finish status: branch, hygiene findings, message checks, workflow lint, template state.
gsd:pr-branch
Create a clean PR branch by filtering out .planning/ commits — ready for code review.
validate-pr-description
Use when validating a PR title and description for conventional commit format, issue linking keywords, and template compliance before submission.
karpathy-check
Revisa as alterações em stage (ou o último commit) com base nos 4 princípios de codificação do Karpathy. Verifica complexidade, ruído no diff, suposições ocultas e verificação de objetivos. Uso: /karpathy-check [--last-commit].