godmode:cap
Skill1 starsChanged 56 days agoMITView on GitHub
Commit and push workflow with pre-flight validation and hook recovery. Use when the user says "cap", "commit and push", or "ship it". Runs taskit test run, fmt, clippy, stages all changes, writes a conventional commit, handles pre-commit hook failures, and pushes.
- Commits and pushes
In this repository76 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- godmode:agent-governanceSkill
- godmode:agent-improvement-loopSkill
- agents-skill-saveSkill
- baml-add-typesSkill
- godmode:brainstormSkill
- godmode:changelogSkill
- godmode:ci-fixSkill
- godmode:code-reviewSkill
- godmode:context-mapSkill
- godmode:cross-issueSkill
- godmode:crs-discoverSkill
- godmode:crs-hook-testingSkill
- godmode:crs-installSkill
- godmode:crs-propose-rulesSkill
- godmode:crs-validateSkill
- godmode:dead-codeSkill
- godmode:decomposeSkill
- godmode:dep-auditSkill
- godmode:dep-bumpSkill
- godmode:designSkill
- devloop-session-primerSkill
- godmode:dialecticSkill
- godmode:doc-maintainerSkill
- godmode:doc-reviewSkill
- godmode:doc-syncSkill
- godmode:doc-writerSkill
- doob-db-inspectorSkill
- doob-release-managerSkill
- godmode:doublecheckSkill
- dual-forge-pr-mergeSkill
- gh-bulk-issuesSkill
- godmode:health-scoreSkill
- godmode:ingestSkill
- godmode:introspectionSkill
- godmode:issue-triageSkill
- godmode:memory-bankingSkill
- godmode:mergeSkill
- godmode:mini-context-graphSkill
- godmode:mistake-trackerSkill
- godmode:moaSkill
- notfiles-release-workflowSkill
- godmode:observability-as-infrastructureSkill
- godmode:parallel-agentsSkill
- godmode:pattern-learnerSkill
- planning-with-cruxSkill
- godmode:pr-authorSkill
- godmode:receiving-reviewSkill
- godmode:refactoringSkill
- godmode:release-notesSkill
- release-readiness-checkSkill
- remote-upstream-triageSkill
- repo-gap-backlogSkill
- godmode:rust-conventionsSkill
- rustqualSkill
- rustqual-workspaceSkill
- rust-release-workflow-authorSkill
- godmode:self-reflectSkill
- session-wrap-commit-pushSkill
- godmode:systematic-debuggingSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 11 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 13
Run the full validation gate, commit, and push in one pass.
- Very specific: line 28
If taskit check compile or tests fail — stop.
- Very specific: line 30
If taskit check fmt --check fails — run taskit check fmt to fix, then continue.
- Distinctive: line 32
If clippy warnings exist — fix them before committing.
- Distinctive: line 67
If the output is main and the user did not explicitly ask to commit to main — stop and report.
- Distinctive: line 76
If the pre-commit hook fails:
- Distinctive: line 78
Read the hook output carefully — identify the exact rule and match.
- Very specific: line 82
If still failing after one retry — stop and report.
- Distinctive: line 90
If push is rejected (non-fast-forward): report to user.
- Very specific: line 95
If a godmode task is currently running, mark it done with the commit SHA:
- Distinctive: line 101
If no running task exists, skip this step.
- Very specific: line 105
Before staging ANY Rust change outside of the cap workflow, run: taskit check lint The feat-then-fix commit cycle is the top recurring …
- Distinctive: line 108
Do not commit until clippy is clean.
- Distinctive: line 110
Never force-push without explicit user instruction.
- Distinctive: line 111
Never commit to main directly — verify with git branch --show-current first.
- Distinctive: line 112
If branch is main and no branch was specified — ask before pushing.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Cap — Commit and Push
Run the full validation gate, commit, and push in one pass.
Workflow
Step 1: Validate
Run via
godmode verifyor use the commands below:
taskit check compile
taskit test run # preferred; cargo fallback: cargo nextest run --workspace
taskit check lint
taskit check fmt --checkIf taskit check compile or tests fail — stop. Report failures. Do not commit broken code.
If taskit check fmt --check fails — run taskit check fmt to fix, then continue.
If clippy warnings exist — fix them before committing.
Step 2: Stage
git add -A
git diff --cached --stat # show what's stagedReview staged files. If unrelated changes are staged, report them and ask before proceeding.
Step 3: Write commit message
Use Conventional Commits:
<type>(<scope>): <summary>
[optional body]Types: feat, fix, refactor, test, docs, chore, ci
Scope: crate name or module (e.g. godmode-core, graph, cli)
Derive the message from the staged diff — do not ask the user to write it.
Step 4: Verify branch and commit
(
guardrails.nu check-branch <expected>)
git branch --show-currentIf the output is main and the user did not explicitly ask to commit to main — stop and report.
Do not proceed.
git commit -m "<message>"Hook failure recovery
If the pre-commit hook fails:
- Read the hook output carefully — identify the exact rule and match.
- False positive (test fixture, doc URL, variable name): add a minimum exclusion to the
allowlist config (
.gitleaksignore, obfsck allowlist, etc.) and retry once. - Real issue: fix the flagged content, re-stage, retry once.
- If still failing after one retry — stop and report. Do not use
--no-verify.
Step 5: Push
git pushIf push is rejected (non-fast-forward): report to user. Do not force-push without explicit instruction.
Step 6: Sync task state (if applicable)
If a godmode task is currently running, mark it done with the commit SHA:
godmode task done <task-id> --commit <sha>If no running task exists, skip this step.
Guardrails
- Before staging ANY Rust change outside of the cap workflow, run:
taskit check lintThe feat-then-fix commit cycle is the top recurring anti-pattern in this workspace. Do not commit until clippy is clean. - Never use
--no-verify. - Never force-push without explicit user instruction.
- Never commit to
maindirectly — verify withgit branch --show-currentfirst. - If branch is
mainand no branch was specified — ask before pushing.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

