Claude.Md Boilerplate — Security skill for Claude Code
Opinionated claude.md template for Claude Code that enforces software engineering best practices: security, tenant isolation, TDD, observability, secrets management, and error handling.
How to install Claude.Md Boilerplate
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open leighstillard/claude.md-boilerplate and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude.Md Boilerplate does
Opinionated claude.md template for Claude Code that enforces software engineering best practices: security, tenant isolation, TDD, observability, secrets management, and error handling. Clearly separates what Claude Code should do in-code from what requires external setup, with a SCAFFOLD/FLAG pattern for the grey zone.
Alternatives in Security
- Sanyuan Skills — Expert code review skill: SOLID, security, performance, error handling, boundary conditions 2.7k ★
- Trail Of Bits Claude-code-config — Opinionated production defaults from a top security firm: sandboxing, permissions, hooks, skills, MCP server c 1.6k ★
- Claude Bootstrap — Opinionated project initialization with security-first guardrails, spec-driven atomic todos, LLM testing patte 536 ★
README
Claude Code Standards Template
Drop-in engineering standards for Claude Code. Copy two things into your project — a `CLAUDE.md` file and a `docs/standards/` folder — and Claude Code starts enforcing security, testing, tenant isolation, structured logging, and observability by default.
Quick Start
# Copy into your project
cp CLAUDE.md /path/to/your/project/
cp -r docs/standards/ /path/to/your/project/docs/standards/
# Tailor it (run this prompt in Claude Code):
# "Review CLAUDE.md and docs/standards/. Remove anything irrelevant
# to [describe your project]. Update anything outdated."
# Start building. Standards are enforced automatically.
FAQ
**What does this actually do?** It gives Claude Code a persistent instruction set that prevents the most common production failures: hardcoded secrets, missing tenant isolation, swallowed exceptions, skipped tests, unstructured logging, and unscoped data access. It doesn't just tell Claude what to build — it tells Claude what not to skip.
**How big is the context overhead?** The root `CLAUDE.md` is ~75 lines. That's always loaded. The 12 detailed pillar files in `docs/standards/` are only loaded on demand when Claude works in a relevant domain (e.g., `database.md` loads when you're writing migrations). Most conversations only load 1-2 pillar files.
**Do I need all of it?** No. A CLI tool doesn't need tenant isolation. A static site doesn't need correlation IDs. Run the tailoring prompt in Quick Start to strip what doesn't apply. The template is deliberately opinionated — fork it and cut what you don't need.
**Does it guarantee compliance?** No. It provides technical controls that compliance frameworks like GDPR, PCI-DSS, and APRA CPS 234 require, but compliance is an organisational and legal exercise. This is a guardrail, not a certification.
**Does Claude always follow the rules?** No. Claude follows instructions probabilistically. These rules significantly improve the baseline, but in long sessi
Related Skills
Observability Crusade
Unleash parallel Observability Purist agents to audit logging, tracing, metrics, and error handling across the
Error Plan
Error-handling & observability audit (Sentry + Langfuse) — plan only, no fixes until approved
Rls Audit
Supabase RLS & Postgres authorization audit: unprotected tables, permissive policies, self-elevation vectors,
Authz
Hunt broken access control — IDOR, missing role checks, mass assignment, and tenant isolation gaps. OWASP A01,
Audit Tenancy
Audit multi-tenancy enforcement — RLS policies, withTenantDb usage, query-time tenant filters, and cross-tenan
AI Security Review
Review AI/LLM prompt, retrieval, memory, tool/agent authority, tenant isolation, output sinks, and provider da
Related Agents
Lens Security
Security lens of the production readiness audit. Attacks the codebase on paper - injection, SSRF, path travers
QA Security Reviewer
Read-leaning security reviewer for the QA team. Use for a security review of a diff or of a running local/stag
Sf Security Engineer
Security Engineer of the Software Factory cell. Use to run SAST/dependency/secret scans, verify zero-trust sec