commit
Scan the session for compound-worthy learnings, then commit the working tree with a repo-appropriate, value-communicating message.
Skill by toverux
Chalk Labs
Need help deploying commit?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/toverux-commit
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 26, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/commit
What's inside
- Skill name
commit- Description
- Scan the session for compound-worthy learnings, then commit the working tree with a repo-appropriate, value-communicating message.
- License
- MIT
- Instructions
- 87 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- openai.yaml · agents/
SKILL.md (first lines)
Close the loop: harvest the session's learnings first, then create well-crafted git commits from the working tree — learning writes included, so the tree is clean when the loop ends. ## Step 1: Scan for compound candidates Scan the whole session for candidate learnings: root causes uncovered, gotchas hit, approaches that failed, conventions or preferences decided along the way — plus anything `/review-gate` flagged as compound material. Judge each against compound's quality bar — _would it change a future agent's behavior in a different session, and is it non-obvious and stable?_ Session-specific trivia dies here. - Any candidate might clear the bar → invoke `/compound` with the candidates; it routes each to a destination and gates every write. Once the approved writes land, present their diff and wait for the user's verdict on the wording — approve, edit, or drop each document — since the destination gate cleared a one-line proposal, not the prose itself. Where this session engaged a deputy through `/deputy` and has not dismissed it, what is put to the user here goes to the deputy instead, as [ROUNDS.md](../deputy/ROUNDS.md) says, and the deputy's reply is printed verbatim under a one-line header before anything acts on it; otherwise it goes to the user as written. Writes that survive ride into the commits below. - None → say so in one line and move on. ## Step 2: Gather context Gather context with each command as its **own** shell tool call (program + args only). Do **not** join with `;`, `&&`, `||`, pipes, `$(...)`, or redirects — that syntax fails under Windows PowerShell. A non-zero exit is a normal state to interpret, not a failure to suppress. - `git status` — working-tree state. Clean tree → report there is nothing to commit and stop. - `git diff HEAD` — the uncommitted changes. - `git branch --show-current` — empty output means detached HEAD. - `git log --oneline -10` — recent commit style. - `git rev-parse --abbrev-ref origin/HEAD` — the default branch (strip the `origin/` prefix). If unset, fall back to `main`. Treat this as a snapshot. Re-read branch and staged set immediately before committing if anything may have changed. ## Step 3: Choose the branch **Detached HEAD → cut a feature branch before committing, and do not ask** — even where the user asked only for a commit, since a commit reachable from nothing is lost as soon as HEAD moves. On the default branch, follow the repo's workflow instead: where the documented conventions or recent history show feature branches (or the user asked for one), branch off it before committing. Where the history shows commits landing directly on it (trunk-based), commit where you are. On any other branch, commit where you are unless the user asked for a new one. Whenever this step cuts a branch: derive the name from the change content, `git checkout -b <branch-name>`, then confirm with `git branch --show-current`. ## Step 4: Determine the message convention In priority order: 1. **Documented repo conventions** already in context (AGENTS.md, CLAUDE.md, or similar). 2. **Recent commit history** — if the last 10 commits show a clear pattern (conventional commits, ticket prefixes, emoji prefixes), match it. 3. **Default: conventional commits** — `type(scope): description`, type one of `feat`, `fix`, `docs`, `refactor`, `test`, `chore`, `perf`, `ci`, `style`, `build`. Where `fix:` and `feat:` both fit, prefer `fix:` — a change that remedies broken or missing behavior is a fix even when implemented by adding code; reserve `feat:` for capabilities the user could not previously accomplish. Message discipline, whatever the convention: - **Subject**: the whole line at most 100 characters, imperative mood, focused on _why_ the change has value, not what changed. A documented limit alone replaces the number. Where the claim will not fit, cut it to the value and let the body carry the rest. - **Body**: for non-trivial changes, a blank line then the problem the change solves and why this approach — a few short paragraphs at most. The body records _why_ the code is now this way; the diff already shows _how_, and the process — attempts, dead ends, how the change was verified — dies with the session. Write it plain and self-contained: direct declarative sentences a stranger can skim years later, each claim one that stays true about the code; non-obvious trade-offs and costs qualify, the story of the work does not. Omit for obvious single-purpose changes. - **Credit**: When the commit carries someone else's work that will not otherwise land under their name (ported from their branch or PR, or applied from their patch), end the message with a `Co-authored-by: Name <email>` trailer for each person that work credits: its commit authors and anyone their `Co-authored-by` trailers name. Copy each identity exactly from those commits or the patch. Never guess an email: when none is recorded, name them in the message body instead. - **Formatting details** (wrapping, trailers, sign-offs) follow the repo's documented rules and the user's own global instructions; where neither says anything, keep the message plain prose. ## Step 5: Group, stage, and commit Scan the changed files for naturally distinct concerns; if they clearly group into separate logical changes, commit each group — Step 1's learning writes usually form their own `docs`-type commit. Keep it lightweight: group at the file level only (no hunk splitting), split only when the separation is obvious, and stay at two or three commits at most. For each group, stage specific files by name, never `git add -A` or `git add .` — that keeps sensitive files (.env, credentials) and unrelated changes out. Write the full message — subject line, blank line, optional body — to a file outside the repo with your file-write tool, then stage and commit as two calls per commit group: ```bash git add file1 file2 file3 ``` ```bash git commit -F <message-file> -- file1 file2 file3 ``` No shell parses the message with `-F`: a `$`, quotes, backticks, or a multi-line body pass through literally under any shell, with no quoting rules to satisfy. Git's normal whitespace cleanup still applies (trailing spaces trimmed, blank-line runs collapsed), which is fine for a commit message. The trailing path list on `git commit` is required: a bare `git commit` takes the whole index, so anything already staged before this run (work the user staged and did not name) would ride into the commit. Naming the paths commits exactly the group and leaves other index entries alone. During a merge or rebase, git refuses a partial commit: drop the trailing path list, and — the bare commit taking the whole index — check nothing unrelated sits staged before running it. The path list also commits the named files' working-tree content, not the staged copy, so commit right after the `git add` above, before anything else touches those files. Verify with `git status` and report the commit hash(es) and subject line(s). **Learnings captured, committed → the loop is closed.** The next unit of work deserves a fresh session.
From toverux/cantrips, MIT.
More from toverux/cantrips
- 0.606score
review-gate
toverux
The review gate — effort-scaled, multi-angle review of the working diff or the changes since a fixed point, every finding independently verified.
SkillAFreshness: A★ 3Claude Code +9 - 0.604score
compound
toverux
Capture this session's durable learnings and route each to the right knowledge store, every write gated on the user or their deputy.
SkillAFreshness: A★ 3Claude Code +9 - 0.601score
compound-refresh
toverux
Garbage-collect the knowledge stores — audit AGENTS.md, and docs/solutions/ where that store is enabled, against the current code.
SkillAFreshness: A★ 3Claude Code +9 - 0.601score
simplify
toverux
Optional pre-review quality pass — preserving fixes through the reuse, simplification, and efficiency lenses.
SkillAFreshness: A★ 3Claude Code +9 - 0.600score
sync-upstream
toverux
Reconcile this repo's forked skills with a new upstream release.
SkillAFreshness: A★ 3Claude Code +9 - 0.598score
setup-cantrips-loop
toverux
Configure this repo's cantrips loop — knowledge stores and storage backend — by writing docs/agents/cantrips-loop.md.
SkillAFreshness: A★ 3Claude Code +9 - 0.598score
implement
toverux
Implement a spec or a single ticket, driving TDD at the seams agreed in the spec.
SkillAFreshness: A★ 3Claude Code +9 - 0.596score
deputy
toverux
Engage a stand-in that answers every later round, gate and closing in your place for the rest of the session, handing back only the decisions you kept, or…
SkillAFreshness: A★ 3Claude Code +9 - 0.590score
afk
toverux
Keep the session's prompt cache warm while you step away.
SkillAFreshness: A★ 3Claude Code +9 - 0.584score
diagnosing-bugs
toverux
Diagnosis loop for hard bugs and performance regressions.
SkillAFreshness: A★ 3Claude Code +9 - 0.579score
codebase-design
toverux
Shared vocabulary for designing deep modules.
SkillAFreshness: A★ 3Claude Code +9 - 0.579score
grilling
toverux
Grill the user relentlessly about a plan, decision, or idea.
SkillAFreshness: A★ 3Claude Code +9
Signals
- Stars
- 3
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 14, 2026 (17 days ago)
- Last release
- Oct 18, 2026 (13 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/toverux/cantrips
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from toverux
- 0.606score
review-gate
toverux
The review gate — effort-scaled, multi-angle review of the working diff or the changes since a fixed point, every finding independently verified.
SkillAFreshness: A★ 3Claude Code +9 - 0.604score
compound
toverux
Capture this session's durable learnings and route each to the right knowledge store, every write gated on the user or their deputy.
SkillAFreshness: A★ 3Claude Code +9 - 0.601score
compound-refresh
toverux
Garbage-collect the knowledge stores — audit AGENTS.md, and docs/solutions/ where that store is enabled, against the current code.
SkillAFreshness: A★ 3Claude Code +9 - 0.601score
simplify
toverux
Optional pre-review quality pass — preserving fixes through the reuse, simplification, and efficiency lenses.
SkillAFreshness: A★ 3Claude Code +9 - 0.600score
sync-upstream
toverux
Reconcile this repo's forked skills with a new upstream release.
SkillAFreshness: A★ 3Claude Code +9 - 0.598score
implement
toverux
Implement a spec or a single ticket, driving TDD at the seams agreed in the spec.
SkillAFreshness: A★ 3Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get commit running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
commit skill. Agent Mart. https://agentmart.dev/skills/toverux-commit (last updated 2026-10-24)