CodeCannon / rules
Cursor rule1 starsChanged 9 months agoMITView on GitHub
Code Cannon: View the QA queue or review a specific issue
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/checkpoint.mdcCursor rule
- .cursor/rules/delegate.mdcCursor rule
- .cursor/rules/deploy.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 qa.mdc into the rules it gives an agent
15 rules. About 0 are common, 10 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
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 30
If the list is empty, say:
- Distinctive: line 34
Do not take any other action.
- Very specific: line 50
Check whether ready-for-qa is currently applied to the issue.
- Distinctive: line 54
Wait. If the user says no, stop.
- Distinctive: line 91
Wait for confirmation. On yes:
- Distinctive: line 111
Before applying labels, fetch the issue's current assignees:
- Very specific: line 116
If one or more assignees are found, prepend the following line to the comment body (above the ## QA Review heading) in the comment that was …
- Very specific: line 120
If there are multiple assignees, include one cc @<login> per line.
- Very specific: line 126
If the gh issue edit command fails because a label does not exist in the repo, report the error and say:
- Distinctive: line 130
Do not retry automatically.
- Distinctive: line 132
After applying labels, tell the user what was done:
- Distinctive: line 141
Never close an issue — verdict recording and closure are separate concerns.
- Distinctive: line 142
Never post the comment without showing it to the user first.
- Distinctive: line 143
Never apply labels without user confirmation (the confirmation in Step 3 is the single gate for both posting the comment and applying …
- Very specific: line 144
Never merge, deploy, or take any action beyond labeling and commenting.
≈ “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: View the QA queue or review a specific issue globs: alwaysApply: false --- > **Cursor:** Trigger this skill via `@qa` 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 `/qa` does `/qa` has two modes: - **No argument** — show all issues awaiting QA. - **Numeric argument** — walk through QA review for a specific issue. --- ## Mode A — No argument: QA queue view Run: ``` gh issue list --label "ready-for-qa" --state open \ --json number,title,url,labels,milestone,assignees ``` Display as a numbered list. For each issue show: issue number, title, milestone (if set), and URL. If the list is empty, say: > "No issues are currently waiting for QA." Do not take any other action. --- ## Mode B — Numeric argument: Review a specific issue The argument is an issue number. Work through the following steps. ### Step 1 — Load context ``` gh issue view <number> --json number,title,body,labels,url,comments ``` Display the issue title and body. Check whether `ready-for-qa` is currently applied to the issue. If it is **not** present, warn: > "Issue #N does not have the ready-for-qa label. It may not be deployed to preview yet. Continue anyway? (yes/no)" Wait. If the user says no, stop. --- ### Step 2 — Review prompt Say: > "Test this feature on the preview environment. When you're done, describe what you tested, what you found, and your verdict (pass or fail). Include screenshots if you have them — paste image links or drag-and-drop into GitHub directly." **Stop. Wait for the QA person's input. Do not proceed until they provide a verdict.** --- ### Step 3 — Post findings as issue comment Build a structured comment from their input: ``` ## QA Review **Verdict:** PASS (or FAIL) **What was tested:** <their description> **Findings:** <their findings, or "None — feature works as expected."> **Screenshots:** <image links if provided, or "None attached."> ``` Show the comment to the user before posting. Ask: > "Post this to issue #N? (yes/no)" Wait for confirmation. On yes: ``` gh issue comment <number> --body "<comment>" ``` On no, stop — do not post and do not apply labels. --- ### Step 4 — Apply verdict label Based on the verdict: **PASS:** ``` gh issue edit <number> --add-label "qa-passed" --remove-label "ready-for-qa" ``` **FAIL:** Before applying labels, fetch the issue's current assignees: ``` gh issue view <number> --json assignees ``` If one or more assignees are found, prepend the following line to the comment body (above the `## QA Review` heading) in the comment that was already posted: > cc @<assignee> — this issue needs attention. If there are multiple assignees, include one `cc @<login>` per line. If the command errors or returns no results, omit the line silently. ``` gh issue edit <number> --add-label "qa-failed" --remove-label "ready-for-qa" ``` If the `gh issue edit` command fails because a label does not exist in the repo, report the error and say: > "The label does not exist in this repository. Create it in GitHub Settings → Labels, then re-run `/qa <number>` from Step 4." Do not retry automatically. After applying labels, tell the user what was done: - On PASS: "Issue #N marked as QA passed. The developer can now close it or promote to production." - On FAIL: "Issue #N marked as QA failed. The developer will see the findings in the issue comments." --- ## Hard rules - Never close an issue — verdict recording and closure are separate concerns. - Never post the comment without showing it to the user first. - Never apply labels without user confirmation (the confirmation in Step 3 is the single gate for both posting the comment and applying labels). - Never merge, deploy, or take any action beyond labeling and commenting. <!-- generated by CodeCannon/sync.py | skill: qa | adapter: cursor | hash: bb2c1da5 | 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.

