commit

commit is a command for Claude Code from revaya-ai/revaya-aios-workspace-template. It costs 0 tokens per session (1,527 once invoked), scanned A, original, MIT.

A command for saving workspace changes as a Git commit while checking related documentation and updating HISTORY.md. Git is a system that records versions of project files.

In plain words
What is it for?
Use it after making changes to inspect the diff, decide whether a technical note or lasting lesson should be recorded, create the commit, and update the changelog.
Why use it?
It turns a commit into a review of what changed, so important documentation and project history are less likely to be forgotten.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths.

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 commands/revaya-ai/revaya-aios-workspace-template/commit
Clone the repo
git clone --depth 1 https://github.com/revaya-ai/revaya-aios-workspace-template

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/revaya-ai/revaya-aios-workspace-template/commit.svg)](https://agentmods.dev/commands/revaya-ai/revaya-aios-workspace-template/commit)
Your own site
<a href="https://agentmods.dev/commands/revaya-ai/revaya-aios-workspace-template/commit"><img src="https://agentmods.dev/badge/commands/revaya-ai/revaya-aios-workspace-template/commit.svg" alt="Measured on agentmods" 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 1,527 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.1 $0.00000 $0.01527
Opus 5 $0.00000 $0.00763
Sonnet 5 $0.00000 $0.00305
Haiku 4.5 $0.00000 $0.00153

Measured 6d ago against content hash 9e15f4344b78, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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 · 185 lines

How it starts

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

Commit

Save your work, update documentation, and keep the changelog current — all in one command.

Variables

message: $ARGUMENTS (optional — override commit message, or leave blank for auto-generated)


Instructions

You are committing changes to the workspace. This command does three things:

  1. Creates a clean Git commit with a structured message
  2. Checks if any technical documentation needs creating or updating
  3. Updates HISTORY.md with what was done

Follow this workflow exactly.

Step 1: Understand What Changed

Run git diff HEAD to see all changes (staged and unstaged). Also run git status to see untracked files.

Review the changes and understand what was done. Summarize it mentally — you'll need this for the commit message, doc check, and changelog.

Step 1.5: Knowledge Capture Check (Auto-Capture Hook)

Before staging, ask: "Did this session produce a significant decision or learning worth keeping?"

A decision worth keeping: a choice was made that could be questioned later, sets a pattern, or eliminates an alternative. A learning worth keeping: something worked better than expected, something failed and revealed why, a pattern emerged that should be reused or avoided.

If yes:

  1. Create a file in knowledge/decisions/ or knowledge/learnings/ using the template at _template.md
  2. Name it YYYY-MM-DD-short-description.md
  3. Fill out the template — this takes 2–3 minutes and compounds over sessions

If no: proceed to Step 2.

This is the Auto-Capture hook — the mechanism that ensures the system never forgets.

Step 2: Stage Changes

Stage the relevant changed files. Prefer staging specific files by name rather than git add -A, to avoid accidentally committing sensitive files.

Never stage:

  • .env or any credential files
  • data/*.db or data/*.db-* (database files)
  • __pycache__/ or .venv/
  • Any file that should be gitignored

If in doubt, ask the user: "I'm about to stage these files: {list}. Look good?"

Read the full file on GitHub · 185 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. 6d ago First seen · 185 lines · 0 tokens per session scan A 9e15f4344b78

Subscribe to this mod's changes

commit is a command published in the GitHub repository revaya-ai/revaya-aios-workspace-template (2 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,527 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-31.