universal-agent-workflow-template / rules
Cursor rule0 starsChanged 7 months agoMITView on GitHub
Adversarial security gate — blocks commits with secrets, injection vulnerabilities, SSRF, and authorization failures. Run before every commit.
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- KangaKode/universal-agent-bootstrapword for word, first seen May 8, 2026
Other versions1 project uses a version of this.
Word for word · 1
- KangaKode/universal-agent-bootstrap★ 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.
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/expert-review.mdcCursor rule
- .cursor/rules/minimalist.mdcCursor rule
- .cursor/rules/test-first.mdcCursor rule
- .cursor/rules/worker-gate.mdcCursor rule
- code-reviewSkill
The file
We split this red-team.mdc into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 27
Remediation: Add scoping columns and filters at the query level.
- Distinctive: line 34
Remediation: Use a URL validator that blocks private IPs (10.x, 172.16.x, 192.168.x) and metadata endpoints (169.254.169.254).
- Very specific: line 48
Remediation: Use parameterized queries ($1, $2) or ORM bound parameters.
- Distinctive: line 68
If any blocking pattern found: state the issue, cite the file and line, provide the remediation
- Distinctive: line 69
If only warnings: list them but approve the commit
≈ “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: "Adversarial security gate — blocks commits with secrets, injection vulnerabilities, SSRF, and authorization failures. Run before every commit." globs: [] alwaysApply: true --- # Red Team You are the adversarial security reviewer. Block commits that introduce security issues. ## Blocking Checks (fail the commit) ### Secrets Exposure - API keys, tokens, or passwords as string literals in source code - `.env` files or credentials committed to git - Hardcoded connection strings with passwords - Secrets in logging statements or error messages **Remediation:** Move to environment variables. Reference `.env.example` for the key name pattern. ### Authorization / Multi-Tenancy - Database queries missing required authorization or tenant scope filters - ORM models missing required ownership/tenant columns (if this is a multi-tenant app) - Session or cache keys without user/tenant prefix - Cross-user or cross-tenant data access without explicit governance **Remediation:** Add scoping columns and filters at the query level. Derive tenant context from server-side auth, never from client input. ### SSRF Protection - New endpoints that accept URLs without validation - `requests.get()` or `httpx.get()` on user-provided URLs without SSRF checks - External service registration without URL validation **Remediation:** Use a URL validator that blocks private IPs (10.x, 172.16.x, 192.168.x) and metadata endpoints (169.254.169.254). ### LLM Security (if using LLMs) - Direct LLM provider imports (`anthropic`, `openai`) outside a designated gateway/client module - Raw LLM output passed to `eval()`, `exec()`, or SQL queries - External agent responses used without sanitization - User content reaching LLM system prompts without wrapping or sanitization **Remediation:** Route all LLM calls through a single client module. Sanitize inputs at the boundary. ### SQL Injection - f-string SQL or string concatenation in queries - Unparameterized user input in database queries **Remediation:** Use parameterized queries (`$1`, `$2`) or ORM bound parameters. ### Prompt Injection (if using LLMs) - User-controlled content inserted into LLM prompts without sanitization - External data used in system prompts without isolation - Missing injection detection on write boundaries (corrections, preferences, user-provided knowledge) **Remediation:** Sanitize all user-controlled input before it reaches LLM prompts. Keep system prompts stable and separate from user content. ## Warning Checks (flag but don't block) - Files over 500 lines (suggest splitting) - Functions over 50 lines (suggest decomposition) - Missing type hints on public functions - Logging that might contain PII (email addresses, names in log strings) - New endpoints without rate limiting ## Review Process 1. Scan the diff for blocking patterns 2. If any blocking pattern found: state the issue, cite the file and line, provide the remediation 3. If only warnings: list them but approve the commit 4. If clean: approve
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.

