universal-agent-workflow-template / rules
Cursor rule0 starsChanged 7 months agoMITView on GitHub
Full expert review protocol. 8-expert, 2-wave deliberation for comprehensive codebase and documentation review. Invoke before major milestones, after shipping feature clusters, or before staging/production deployment.
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 repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/code-reviewer.mdcCursor rule
- .cursor/rules/debugger.mdcCursor rule
- .cursor/rules/minimalist.mdcCursor rule
- .cursor/rules/red-team.mdcCursor rule
- .cursor/rules/test-first.mdcCursor rule
- .cursor/rules/worker-gate.mdcCursor rule
- code-reviewSkill
The file
We split this expert-review.mdc into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
After shipping a feature cluster (5+ features since last review)
- Distinctive: line 14
Before staging or production deployment
- Distinctive: line 15
After SAST/security findings are fixed
≈ “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: "Full expert review protocol. 8-expert, 2-wave deliberation for comprehensive codebase and documentation review. Invoke before major milestones, after shipping feature clusters, or before staging/production deployment." globs: [] alwaysApply: false --- # Expert Review Protocol — 8-Expert, 2-Wave Deliberation Standard quality gate for major milestones. Use when shipping a feature cluster, before production deployment, or after fixing SAST findings. ## When to Invoke - After shipping a feature cluster (5+ features since last review) - Before staging or production deployment - After SAST/security findings are fixed - At PM discretion for major milestones ## Wave 1: Security Focus (4 parallel subagents) | Expert | Subagent Type | Focus Area | |--------|--------------|------------| | Red Team | `red-team` | Adversarial/offensive: injection surfaces, privilege escalation, logic errors, data leaks, attack paths | | Security Hardener | `security-hardener` | Blue team/defensive: authorization, credential management, security controls, SAST patterns | | Code Reviewer | `code-reviewer` | Static analysis: SQL injection, hardcoded secrets, path traversal, unsafe deserialization, type safety, file size | | Data Flow Guardian | `data-flow-guardian` | Data integrity: authorization scoping, source of truth, transaction safety, PII handling | ## Wave 2: Architecture + Compliance (4 parallel subagents) | Expert | Subagent Type | Focus Area | |--------|--------------|------------| | Solution Architect | `solution-architect` | Architecture compliance: layer rule violations, dependency direction, scope control, file size limits | | Test Architect | `test-architect` | Coverage + gaps: test coverage for new features, missing edge cases, mock patterns | | Compliance Auditor | `compliance-auditor` | Regulatory: data retention policies, audit logging, compliance control mapping | | Infrastructure Engineer | `infrastructure-engineer` | Container + network: manifests, security hardening, container configuration | ## Wave 3: PM Synthesis (after Waves 1-2 complete) 1. Collect all findings from 8 experts 2. Deduplicate (multiple experts flagging the same issue = high confidence) 3. Identify compounding issues (fix A before wiring B) 4. Severity-rank: CRITICAL > HIGH > MEDIUM > LOW 5. Produce consolidated fix plan in batches: - **Batch 1** (PM direct): trivial fixes, doc corrections, 1-line changes - **Batch 2** (worker brief): code fixes requiring multiple files - **Batch 3** (worker brief): structural changes, test additions, quality cleanup 6. Target: 0 CRITICALs, 0 HIGHs remaining (true clean slate) ## Review Brief Format Each expert receives a brief containing: 1. **Project overview** — 1 paragraph: what this project is, current stats (features, tests, files) 2. **Scope** — what changed since last review: features shipped, files changed, lines added, test count delta 3. **New source files** — full paths, line counts. Experts must read all new files in their domain. 4. **New test files** — full paths, test counts. Experts must read all new test files in their domain. 5. **Modified source files** — file path, change summary, which feature drove the change. Experts review diffs. 6. **Review checklist** — domain-specific checks tailored to the expert's focus area 7. **Known accepted risks** — decisions from prior reviews that should NOT be re-flagged 8. **Deliverable format** — severity, file:line, description, fix, final verdict ## Finding Format (all experts must use) ``` - **Severity:** CRITICAL / HIGH / MEDIUM / LOW - **File:Line** (if code finding) - **Description:** What's wrong (specific, not vague) - **Fix:** Specific remediation (actionable, not "consider improving") Final verdict: PROCEED / CONDITIONAL / BLOCK ``` ## Execution Checklist ``` [ ] 1. PM writes review brief scoped to changes since last review [ ] 2. PM launches Wave 1 (4 security-focused experts in parallel via Task tool) [ ] 3. PM collects Wave 1 results [ ] 4. PM launches Wave 2 (4 architecture/compliance experts in parallel via Task tool) [ ] 5. PM collects Wave 2 results [ ] 6. PM synthesizes: deduplicate, identify compounding issues, severity-rank [ ] 7. PM produces batched fix plan (Batch 1/2/3) [ ] 8. PM executes Batch 1 directly (trivial fixes) [ ] 9. PM writes worker briefs for Batch 2 and Batch 3 [ ] 10. Workers implement fixes (commit, do NOT push) [ ] 11. PM verifies git status, runs post-ship checklist, pushes [ ] 12. Review results saved to a private review log outside the public repo, or to `docs/reviews/` if safe to publish ```
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.

