automagik-hive: Command for Claude Code

.claude/commands/commit.md

commit is a command for Claude Code from namastexlabs/automagik-hive. It costs 0 tokens per session (752 once invoked), scanned A, original, MIT.

A commit-preparation command that reviews uncommitted code changes and writes an advisory report. It suggests a commit message and checklist but does not create or push a commit.

In plain words
What is it for?
Use it after code changes to group the diff by area, identify untested parts or TODOs, save a report, and prepare a commit outline for manual review.
Why use it?
It gives a human a clear view of changed files, risks, tests, documentation, and follow-up work before they decide what to commit.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: names the TodoWrite tool.

This is namastexlabs/automagik-hive's own configuration. It tells Claude Code how to work on automagik-hive itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything automagik-hive configures →

Reuse

Borrowing it

Nothing to install: this file belongs to namastexlabs/automagik-hive. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/namastexlabs/automagik-hive/main/.claude/commands/commit.md
Clone the repo
git clone --depth 1 https://github.com/namastexlabs/automagik-hive

Made for: Claude Code.

Wrote 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.

agentmods badge for commit

README.md
[![agentmods](https://agentmods.dev/badge/commands/namastexlabs/automagik-hive/commit/github.svg)](https://agentmods.dev/commands/namastexlabs/automagik-hive/commit)
Your own site
<a href="https://agentmods.dev/commands/namastexlabs/automagik-hive/commit"><img src="https://agentmods.dev/badge/commands/namastexlabs/automagik-hive/commit/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.

agentmods 80×15 button for commit

Your own site · 80×15
<a href="https://agentmods.dev/commands/namastexlabs/automagik-hive/commit"><img src="https://agentmods.dev/badge/commands/namastexlabs/automagik-hive/commit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 752 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.00752
Opus 5.5 $0.00000 $0.00301
Sonnet 5.5 $0.00000 $0.00150
Haiku 4.5 $0.00000 $0.00075

Measured 2mo ago against content hash 48e8de28c3b6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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.

.claude/commands/commit.md · 79 lines

How it starts

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

/commit — Commit Advisory Assistant


allowed-tools: Read(), LS(), GitDiff(), Bash(), Grep(), Glob(), TodoWrite(*) description: Summarize pending changes, suggest commit message structure, and document manual steps — never auto-commit

[CONTEXT]

  • Automagik Hive commits and pushes are human-owned. This command prepares guidance only.
  • Use after code changes to review diffs, recommend staging, and craft a commit outline.
  • Output: a report summarizing changes, risks, and a proposed message stored for human review.

[SUCCESS CRITERIA] ✅ Report saved to genie/reports/commit-advice-<slug>-<YYYYMMDDHHmm>.md with:

  • Files changed (grouped by area)
  • Notable diffs / risks / follow-up tasks
  • Suggested commit message and checklist (tests run, docs updated) ✅ Human receives concise summary + report reference; no git commands executed.

[NEVER DO] ❌ Run git add, git commit, git push, or destructive git commands. ❌ Stage or discard changes automatically. ❌ Invent changes that aren’t present in the diff. ❌ Skip mentioning untested areas or TODOs found during review.

<task_breakdown>
1. [Discovery] Review git status and diffs.
2. [Assessment] Group changes, note risks/tests/docs.
3. [Message Draft] Propose commit subject/body following team conventions.
4. [Reporting] Save guidance to reports folder and share summary + link.
</task_breakdown>

Step 1 – Discovery

  • git status --short to see staged/unstaged files.
  • git diff / git diff --cached to capture modifications.
  • Note generated files, large diffs, or binary assets that may need human attention.

Step 2 – Assessment

  • Group files by feature/component.
  • Identify tests that should be run (or already run) and note coverage gaps.
  • Flag docs or configuration updates required.
  • Record any TODOs or follow-ups for the human.

Step 3 – Message Draft

  • Suggest a commit subject in Conventional Commit style (feat:, fix:, etc.).
  • Provide bullet list for commit body summarizing key changes.
  • Include Co-Authored-By: Automagik Genie <[email protected]> reminder if relevant.

Read the full file on GitHub · 79 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. 2mo ago First seen · 79 lines · 0 tokens per session scan A 48e8de28c3b6

Subscribe to this mod's changes

commit is a command published in the GitHub repository namastexlabs/automagik-hive (24 stars, last pushed 10mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 752 tokens. 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-30.