Global Agent Rules — Security skill for Claude Code
Standing rules file for coding agents on web apps: schema protection, security, GDPR, SEO and a tiered pre-deployment checklist.
How to install Global Agent Rules
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open LanaKor/Global_Agent_Rules and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Global Agent Rules does
Standing rules file for coding agents on web apps: schema protection, security, GDPR, SEO and a tiered pre-deployment checklist.
Alternatives in Security
- Promptmap — Security scanner for custom LLM apps 1.2k ★
- List All Global Skills Sorted By Provider Location — asm list --scope global --sort location asm search "code review" --json asm inspect my-skill asm audit --yes a 185 ★
- Gdpr Review — Audit the codebase (or a given path/feature) for GDPR compliance and produce a prioritized findings report 172 ★
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
Multi Tenant Fullstack Crud Skill
A full-stack CRUD Agent Skill for building production-ready multi-tenant web apps with role-based access, audi
The Openclaw Optimizer
AI skill for optimizing and troubleshooting OpenClaw workspaces. 29 providers, tiered model routing, 36-check
AdTech LeadGen Agent Skills
🎯 Schema-validated Agent Skills for AdTech lead generation and publisher compliance: audit ads.txt/app-ads.tx
Arcjet Py
Runtime security for AI apps and agents: prompt injection detection, tool-call authorization, sensitive-data r
Review Code Security
Tiered application security audit (T1 pre-commit, T2 feature complete, T3 sprint end) covering OWASP, secrets,
Obey
Rule enforcement plugin. Save rules with natural language, enforce with 17 lifecycle hooks. Three scopes (glob
Related Agents
Gdpr Specialist
MUST delegate for GDPR/privacy/data-protection compliance review of code (frontend, backend, database, infrast
Cloud Workload Security
Manage Cloud Security Management (CSM) Threats and Workload Protection including agent rules, policies, and de
Deployment Verification Agent
Use this agent when a PR touches production data, migrations, or any behavior that could silently discard or d