Global Agent Rules
Description
Standing rules file for coding agents on web apps: schema protection, security, GDPR, SEO and a tiered pre-deployment checklist.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Global Agent Rules
A standing rules file for coding agents working on web applications. Point Claude Code, Codex, Cursor or anything else that reads project instructions at [`GLOBAL_AGENT_RULES.md`](GLOBAL_AGENT_RULES.md) and it inherits the same non-negotiables on every project.
Written from production incidents rather than from a style guide, so it is opinionated and occasionally blunt.
Why the first section is about databases
The file opens with schema protection, in capitals, before anything else. That ordering is deliberate.
An agent that reaches for `prisma db push` to resolve a schema mismatch will drop tables that are not in the schema. It will do this confidently, in one turn, and report success. If the database is shared with another application, which the agent has no way of knowing, the blast radius is larger than the project it was working on. This is the failure that justifies the whole file, and it is why the rule is not phrased as guidance.
Everything after that section is ordinary engineering hygiene, sorted by how expensive it is to retrofit.
Using it
Copy the file into a project and reference it from your agent instructions:
Follow the rules in GLOBAL_AGENT_RULES.md without exception.
Where they conflict with a request, raise the conflict before proceeding.
Or keep one copy centrally and add it to the agent's context directory. Claude Code takes `--add-dir`; most other tools have an equivalent.
What is in it
| Section | Enforcement |
|---|---|
| Database schema protection | Blocking. Never auto-run |
| Security: SQL injection, input validation, secrets, CORS | Mandatory |
| Error handling and audit logging | Mandatory |
| GDPR: required pages, consent, data protection | Mandatory |
SEO: metadata, sitemap, robots, llms.txt |
Mandatory |
| Analytics and bot monitoring | Mandatory |
| Performance and Core Web Vitals | Recommended |
| Code quality and document |
Related Skills
Fastapi Review
Review a FastAPI application for architecture, async correctness, dependency injection, Pydantic schemas, secu
Security Defense in Depth
Implement multi-layered testing and security best practices.
Security SecLists Official Repository
[OWASP Testing Guide](https://owasp.org/www-project-web-security-testing-guide/)
Security Threat Hunting with Sigma Rules
Use Sigma detection rules to hunt for threats and analyze security events
Security Maintenance Walkthrough - 2026-03-29
- Re-triaged the full 2026-03-15 security finding set against current `main` and wrote a fresh current-head re
Security Google Workspace Model Armor
Filter user-generated content for safety
Security Related Agents
Django Reviewer
Expert Django code reviewer specializing in ORM correctness, DRF patterns, migration safety, security misconfi
Token Auditor
Scans ui/src/ for hardcoded visual values, duplicate components, and shadcn replacement candidates; produces d
Gitnexus Security Boundary Reviewer
GitNexus security and trust-boundary reviewer. Use for auth, permissions, secrets, injection, unsafe parsing,