/code:securing-codefrom code
Applies security best practices when writing or reviewing code that handles external input, auth, data, or dependencies. Covers input validation, parameterized queries, secret management, cryptography, and authorization.
Ships in code. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
code-review invokes this skill internally for its security lenssecuring-code.
Skip the notice when the user asked for the skill by name or slash command; spelling and spacing need not match.
A phrase from this skill's own trigger list is not a name — naming the work is not naming the skill.These apply regardless of task type — implementation or review.
All of the following must be satisfied when generating or modifying code:
*); no unlimited operationsSecure, HttpOnly, SameSite=Lax (Strict for high-risk sessions); if SameSite=None, pair with Secure + CSRF defensesThe following categories have a large blast radius or affect the trust model. Surface them and get explicit user approval before writing code, even if the user's request implies them:
credentials: true, wildcard)For these, state what is changing and the risk, then wait for confirmation. A user request to "add login" is permission for the feature, not for a specific auth design — confirm the design first.
Push back on these framings — from the user or yourself — when they appear as justification for skipping a control:
| Rationalization | Reality |
|---|---|
| "It's an internal tool, security doesn't matter" | Internal tools get compromised; attackers pivot through the weakest link. |
| "We'll add security later" | Retrofitting is far harder than building it in; "later" usually means "in prod". |
| "No one would try to exploit this" | Automated scanners find everything reachable; obscurity is not a control. |
| "The framework handles it" | Frameworks provide tools, not guarantees — they still have to be wired correctly. |
| "It's just a prototype / spike / demo" | Prototypes ship. The auth shortcut becomes the production auth. |
| "This endpoint isn't exposed publicly" | Network boundaries change; SSRF, misconfig, and lateral movement reach it anyway. |
Apply Tier 1 above (always)
Open references/tier2-implementation.md and follow the checklist for your task type:
| Task | Section |
|---|---|
| General feature / component | §2.1 |
| REST or GraphQL API endpoint | §2.2 |
| Auth, sessions, or access control | §2.3 |
| Secrets, crypto, or data protection | §2.4 |
| Supply chain or CI/CD | §2.5 |
For security-complex domains, also load the matching Tier 3 reference:
| Domain | Reference |
|---|---|
| Input handling | references/tier3-input-validation.md |
| File upload / download | references/tier3-file-upload.md |
| Database-heavy features | references/tier3-database.md |
| Auth / session flows | references/tier3-threat-modeling.md |
| C / C++ / embedded | references/tier3-memory-safety.md |
references/tier2-review.md for the review workflow and checklistreferences/owasp-2025.md to verify coverage against all 10 OWASP categoriesreferences/tier2-implementation.md — task-specific implementation checklists (§2.1–§2.5)references/tier2-review.md — code review workflow, OWASP-mapped checklist, output formatreferences/tier3-input-validation.md — allowlist validation, output encoding, CSPreferences/tier3-file-upload.md — file upload validation, storage, retrievalreferences/tier3-database.md — injection prevention, DB access control, encryptionreferences/tier3-error-handling.md — safe error handling, security event loggingreferences/tier3-memory-safety.md — C/C++ memory safety, compiler flags, sanitizersreferences/tier3-language-specific.md — Python, JS/Node, Java, C#/.NET forbidden patterns and safe alternativesreferences/tier3-threat-modeling.md — STRIDE, trust boundaries, risk ratingreferences/owasp-2025.md — OWASP Top 10 2025 with control mapping to skill tiersATTRIBUTION.md (opens in a new tab)references/owasp-2025.md (opens in a new tab)references/tier2-implementation.md (opens in a new tab)references/tier2-review.md (opens in a new tab)references/tier3-database.md (opens in a new tab)references/tier3-error-handling.md (opens in a new tab)references/tier3-file-upload.md (opens in a new tab)references/tier3-input-validation.md (opens in a new tab)references/tier3-language-specific.md (opens in a new tab)references/tier3-memory-safety.md (opens in a new tab)references/tier3-threat-modeling.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ahgraber/skills --plugin code10 skills in this plugin
/api-designUse when designing, reviewing, or planning REST or GraphQL APIs — endpoint structure, schema design, versioning, error handling, pagination, URI naming, or choosing between REST and GraphQL. Also triggers for OpenAPI spec creation and API contract review./changelogUse when writing, updating, or generating a CHANGELOG.md — for a new release, an unreleased section update, or drafting from git history or diff. Triggers: "update the changelog", "write release notes", "what changed since X", "generate changelog for v1.2.0", "add this to the changelog", "draft unreleased section". Not for commit messages (use commit-message skill) or internal deployment runbooks./code-reviewUse when reviewing code changes before committing or merging — staged diffs, branch diffs, or PR readiness checks. Triggers: 'review my code', 'check these changes', 'review this branch', 'give feedback on my diff', 'is this PR ready?'. Not for implementing features, running test suites, formatting-only passes, or building understanding of a change (use teach-me).