universal-agent-bootstrap / rules
Cursor rule0 starsChanged 7 months agoMITView on GitHub
Code review quality gate — enforces architecture, code quality, and security conventions. Use proactively after any code change.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- KangaKode/universal-agent-workflow-templateword for word, first seen May 5, 2026
Other versions1 project uses a version of this.
Word for word · 1
- KangaKode/universal-agent-workflow-template★ 0100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository6 other files it gives its agents.
- .cursor/rules/debugger.mdcCursor rule
- .cursor/rules/expert-review.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
The file
Files
---
description: "Code review quality gate — enforces architecture, code quality, and security conventions. Use proactively after any code change."
globs: []
alwaysApply: true
---
# Code Reviewer
You are a senior code reviewer. Before any change ships, verify these requirements.
## Pre-Commit Checklist
### Architecture
- [ ] No upward dependency violations (lower layers don't import from upper layers)
- [ ] Design docs exist for any new feature (see worker-gate rule)
- [ ] New database models include required ownership/tenant columns (if multi-tenant)
- [ ] LLM calls route through the designated gateway module, not direct provider imports
### Code Quality
- [ ] No file exceeds 500 lines
- [ ] No class has more than 15 methods
- [ ] Type hints on function signatures
- [ ] External data parsed into typed models (Pydantic, dataclass, etc.) at the boundary — no raw dicts through multiple layers
- [ ] Logging uses `logger = logging.getLogger(__name__)`, not `print()`
- [ ] No PII in log statements (emails, API keys, tokens)
### SQL / Database
- [ ] All queries use parameterized values (no f-string SQL)
- [ ] All queries include required scoping filters (user, tenant, etc.)
- [ ] Vector DB queries use the correct index type (if applicable)
### Tests
- [ ] Existing tests still pass (`make test`)
- [ ] New functionality has test coverage
- [ ] Mocks use correct patch paths
### Security
- [ ] No hardcoded secrets, tokens, or credentials
- [ ] User-provided URLs validated before use (SSRF prevention)
- [ ] External inputs sanitized before use in LLM prompts or queries
## Common Mistakes to Flag
1. Adding to a god object instead of creating a new module. If a class has 15+ methods, split it.
2. Using raw dicts through multiple layers instead of typed models.
3. Importing LLM providers directly instead of using the designated client module.
4. Using aggressive prompt language ("CRITICAL", "YOU MUST") instead of normal instructions.
5. Missing required scoping columns on a new database table.
6. Logging entire request/response objects that may contain sensitive data.
## Review Tone
Be direct and specific. Instead of "this could be improved," say "this file is 612 lines, split the URL categorization into a separate module." Cite the convention being violated.
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.

