CodeCannon / rules
Cursor rule1 starsChanged 9 months agoMITView on GitHub
Code Cannon: Commit and push WIP without review or merge
- Reads credentials
- Commits and pushes
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,533 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/delegate.mdcCursor rule
- .cursor/rules/deploy.mdcCursor rule
- .cursor/rules/qa.mdcCursor rule
- .cursor/rules/review.mdcCursor rule
- .cursor/rules/setup.mdcCursor rule
- .cursor/rules/start.mdcCursor rule
- .cursor/rules/status.mdcCursor rule
- .cursor/rules/story.mdcCursor rule
- .cursor/rules/submit-for-review.mdcCursor rule
- checkpointSkill
- delegateSkill
- deploySkill
- qaSkill
- reviewSkill
- setupSkill
- startSkill
- statusSkill
- storySkill
- submit-for-reviewSkill
The file
Show its rules and text
We split this checkpoint.mdc into the rules it gives an agent
13 rules. About 0 are common, 6 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
7
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 27
If the current branch matches any of the above, abort immediately and say:
- Distinctive: line 39
If the output is empty (no staged, unstaged, or untracked changes), say:
- Distinctive: line 43
Stop. Do not create an empty commit.
- Very specific: line 55
Always prefix with WIP: so these commits are visually distinct in git log.
- Very specific: line 56
If $ARGUMENTS is provided, use it as <message> (e.g.
- Very specific: line 57
If $ARGUMENTS is empty, auto-generate from the diff summary (e.g.
- Very specific: line 58
Do not commit .env files, secrets, or build artifacts.
- Very specific: line 68
If the push fails because the remote branch does not exist yet, the -u flag handles creation.
- Distinctive: line 88
Never create a PR.
- Distinctive: line 89
Never trigger a review.
- Distinctive: line 91
Never apply labels or modify issues.
- Very specific: line 92
Never run make check — checkpoints are not quality gates.
- Very specific: line 93
Do not prompt for confirmation — /checkpoint is a quick save, not a ceremony.
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule 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
--- description: Code Cannon: Commit and push WIP without review or merge globs: alwaysApply: false --- > **Cursor:** Trigger this skill via `@checkpoint` in Agent mode. State any arguments in your message. Sub-agent spawning is not supported — the automated review step in `/submit-for-review` must be done manually using the review-agent prompt. --- ## What `/checkpoint` does `/checkpoint` is a lightweight save point — commit and push work-in-progress to the remote without triggering type-checks, reviews, PR creation, or merge. Use it to persist progress during long coding sessions or before context-switching. --- ## Step 1 — Verify branch ```bash git branch --show-current ``` Protected branches (not a feature branch): - `main` - `dev` If the current branch matches any of the above, **abort immediately** and say: > "You are on `<branch>`. `/checkpoint` must be run from a feature branch." --- ## Step 2 — Check for changes ```bash git status --porcelain ``` If the output is empty (no staged, unstaged, or untracked changes), say: > "Nothing to checkpoint — working tree is clean." Stop. Do not create an empty commit. --- ## Step 3 — Stage and commit ```bash git add -A git commit -m "WIP: <message>" ``` **Commit message rules:** - Always prefix with `WIP: ` so these commits are visually distinct in `git log`. - If `$ARGUMENTS` is provided, use it as `<message>` (e.g. `WIP: add auth middleware`). - If `$ARGUMENTS` is empty, auto-generate from the diff summary (e.g. `WIP: update auth.ts, add login tests`). Keep it under 72 characters. - Do not commit `.env` files, secrets, or build artifacts. If `git status` shows such files, add them to `.gitignore` or exclude them from staging before committing. --- ## Step 4 — Push ```bash git push -u origin HEAD ``` If the push fails because the remote branch does not exist yet, the `-u` flag handles creation. If it fails for another reason, report the error and stop. --- ## Step 5 — Report Count the files in the commit: ```bash git diff --stat HEAD~1 ``` Say: > "Checkpoint saved. N file(s) committed and pushed to `<branch>`. Run `/submit-for-review` when ready to open a PR." --- ## Hard rules - Never create a PR. - Never trigger a review. - Never merge. - Never apply labels or modify issues. - Never run `make check` — checkpoints are not quality gates. - Do not prompt for confirmation — `/checkpoint` is a quick save, not a ceremony. <!-- generated by CodeCannon/sync.py | skill: checkpoint | adapter: cursor | hash: 1b224590 | DO NOT EDIT — run CodeCannon/sync.py to regenerate -->
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.

