agentleFS
89jobrien89jobrien/godmode/skills/cap/SKILL.md

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

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
  1. Distinctive:

    Run the full validation gate, commit, and push in one pass.

    line 13
  2. Very specific:

    If taskit check compile or tests fail — stop.

    line 28
  3. Very specific:

    If taskit check fmt --check fails — run taskit check fmt to fix, then continue.

    line 30
  4. Distinctive:

    If clippy warnings exist — fix them before committing.

    line 32
  5. Distinctive:

    If the output is main and the user did not explicitly ask to commit to main — stop and report.

    line 67
  6. Distinctive:

    If the pre-commit hook fails:

    line 76
  7. Distinctive:

    Read the hook output carefully — identify the exact rule and match.

    line 78
  8. Very specific:

    If still failing after one retry — stop and report.

    line 82
  9. Distinctive:

    If push is rejected (non-fast-forward): report to user.

    line 90
  10. Very specific:

    If a godmode task is currently running, mark it done with the commit SHA:

    line 95
  11. Distinctive:

    If no running task exists, skip this step.

    line 101
  12. Very specific:

    Before staging ANY Rust change outside of the cap workflow, run: taskit check lint The feat-then-fix commit cycle is the top recurring …

    line 105
  13. Distinctive:

    Do not commit until clippy is clean.

    line 108
  14. Distinctive:

    Never force-push without explicit user instruction.

    line 110
  15. Distinctive:

    Never commit to main directly — verify with git branch --show-current first.

    line 111
  16. Distinctive:

    If branch is main and no branch was specified — ask before pushing.

    line 112

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Cap — Commit and Push

Run the full validation gate, commit, and push in one pass.

Workflow

Step 1: Validate

Run via godmode verify or use the commands below:

taskit check compile
taskit test run   # preferred; cargo fallback: cargo nextest run --workspace
taskit check lint
taskit check fmt --check

If 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 staged

Review 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-current

If 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:

  1. Read the hook output carefully — identify the exact rule and match.
  2. False positive (test fixture, doc URL, variable name): add a minimum exclusion to the allowlist config (.gitleaksignore, obfsck allowlist, etc.) and retry once.
  3. Real issue: fix the flagged content, re-stage, retry once.
  4. If still failing after one retry — stop and report. Do not use --no-verify.

Step 5: Push

git push

If 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 lint The 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 main directly — verify with git branch --show-current first.
  • If branch is main and no branch was specified — ask before pushing.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.