Secure Claude Skills - Setup Guide¶
Source: harperaa/secure-claude-skills via skills.sh - 2.4K combined installs across 12 indexed listings; first seen Nov 28 2026 (evening sweep)
GitHub: harperaa/secure-claude-skills - 19 stars, MIT license, branch main, last pushed 2025-12-14; each skill is a SKILL.md under a top-level directory (csrf-protection, rate-limiting, security-headers, input-validation, error-handling, payment-security, dependency-security, security-testing, security-operations, security-overview, auth-security) plus a security-prompts tree and a security-awareness subtree.
Category: Defense-in-depth security skills for Claude Code - Next.js, Clerk and Convex application security following OWASP best practices
Quality Tier: 🟡 Yellow - MIT license and 19 stars, but one of the 12 sampled listings carries a Warn cell (payment-security-clerk-billing-stripe on Snyk); no Fails across the sample.
Secure Claude Skills is a collection of specialized security skills that implement enterprise-grade security controls for Next.js applications using Clerk authentication and Convex database. Each skill teaches Claude Code to generate secure, production-ready code that follows OWASP best practices, spanning CSRF protection, rate limiting, input validation, security headers, error handling, authentication, payment security, dependency security and security testing, plus a security-awareness subtree that explains why AI-generated code is often insecure.
The package is the core security engine of the Secure Vibe Coding OS, split out into its own npm package for easier distribution, and it ships as part of Dr. Allen Harper's Secure Vibe Coding Masterclass. Installation is a single npx init command that drops the suite into .claude/skills/security, and the README cites Veracode's 2024 finding that AI-generated code picks insecure patterns 45% of the time as the reason for secure-by-default generation. The skills.sh index lists 12 skills at 2,395 combined installs, though the indexed names are descriptive variants of the repository's shorter directory names.
Installation¶
The recommended path is the npm CLI, which copies every security skill into your project:
npx secure-claude-skills init
This creates .claude/skills/security/ with all security skills. Two sync modes keep the skills updated in place of a plain copy:
npx secure-claude-skills init --sync subtree
npx secure-claude-skills init --sync submodule
Update later with npx secure-claude-skills update (synced installs) or npx secure-claude-skills init --force (copy installs). To install straight from GitHub instead, clone into the security directory:
git clone https://github.com/harperaa/secure-claude-skills.git .claude/skills/security
What It Provides¶
| Skill | Installs | Use For |
|---|---|---|
| dependency-supply-chain-security | 254 | Protect the dependency supply chain with npm audit checks and malicious package detection. |
| csrf-protection | 207 | Implement CSRF protection for API routes: token validation on POST/PUT/DELETE endpoints and secure form submissions. |
| security-headers | 204 | Configure Content-Security-Policy, X-Frame-Options and HSTS to block clickjacking, XSS and MIME confusion. |
| security-architecture-overview | 201 | Understand defense-in-depth security architecture before writing code. |
| rate-limiting | 200 | Add rate limiting to stop brute force, spam and API abuse with a withRateLimit pattern. |
| security-testing-verification | 199 | Automate security verification to test code after implementation. |
| input-validation-xss-prevention | 199 | Validate and sanitize input to prevent XSS and injection attacks. |
| secure-error-handling | 198 | Hide internal details in errors to prevent information leakage. |
| security-prompts | 195 | Use a library of battle-tested security prompt templates for forms, endpoints, auth and threat modeling. |
| authentication-authorization-clerk | 188 | Apply Clerk authentication best practices for sessions and authorization flows. |
| payment-security-clerk-billing-stripe | 184 | Secure Clerk Billing and Stripe payment flows, including PCI compliance. |
| security-operations-deployment | 166 | Handle deployment and monitoring: when to use middleware, environment variables and a deployment checklist. |
All 12 indexed listings clear the 166-install threshold and appear in the table above.
Why This Matters for Hermes Agents¶
Secure Claude Skills is a compact reference for packaging security expertise as agent skills: one SKILL.md per concern, a defense-in-depth layering (headers, rate limit, CSRF, validation, auth, business logic) that mirrors a real middleware pipeline, and a single npx init command that drops the whole suite into .claude/skills/security. The security-prompts tree is the most transferable piece for Hermes builders: reusable prompt templates for STRIDE threat modeling, RBAC, and secure form and endpoint design, organized by scenario rather than by framework. The awareness subtree shows how to teach an agent why insecure patterns happen, not just how to fix them, with real attack scenarios behind each vulnerability class. The OWASP Top 10 mapping is a useful checklist pattern: each skill is tied to the specific OWASP category it addresses, which is exactly the kind of traceability that helps a reviewer trust generated code. The naming drift between the skills.sh index and the repository is worth noting for anyone maintaining a catalog: the index publishes descriptive names while the tree keeps short ones, so reconciliation needs a mapping step.
Usage¶
| You say | What happens |
|---|---|
| "Add CSRF protection to my API routes" | Uses csrf-protection to add token validation to POST/PUT/DELETE endpoints. |
| "Stop brute force attacks on my login" | Uses rate-limiting to add a withRateLimit middleware and request limits. |
| "Set up security headers for my app" | Uses security-headers to configure CSP, X-Frame-Options and HSTS in middleware. |
| "Sanitize user input on this form" | Uses input-validation-xss-prevention to add validation and XSS sanitization. |
| "Review my payment flow for PCI issues" | Uses payment-security-clerk-billing-stripe to check Clerk Billing and Stripe handling. |
| "Run a STRIDE threat model on this feature" | Uses security-prompts to walk the threat-modeling prompt templates. |
| "Check my dependencies for vulnerabilities" | Uses dependency-supply-chain-security to run an npm audit and check for malicious packages. |
Verification¶
The skills live under top-level directories on branch main, each with a SKILL.md. Fetch one directly to review its frontmatter and instructions before installing:
curl -sL https://raw.githubusercontent.com/harperaa/secure-claude-skills/main/csrf-protection/SKILL.md
After install, confirm the suite landed in the security directory:
npx secure-claude-skills init
ls .claude/skills/security/
The README's usage examples reference a lowercase skill.md, but the repository tree ships uppercase SKILL.md files.
Security¶
skills.sh verdicts for sampled skills (verified Nov 28 2026) - re-check the security pages on skills.sh before production use:
| Skill | Gen Agent Trust Hub | Socket | Snyk |
|---|---|---|---|
| dependency-supply-chain-security | Pass | Pass | Pass |
| csrf-protection | Pass | Pass | Pass |
| security-headers | Pass | Pass | Pass |
| security-architecture-overview | Pass | Pass | Pass |
| rate-limiting | Pass | Pass | Pass |
| security-testing-verification | Pass | Pass | Pass |
| input-validation-xss-prevention | Pass | Pass | Pass |
| secure-error-handling | Pass | Pass | Pass |
| security-prompts | Pass | Pass | Pass |
| authentication-authorization-clerk | Pass | Pass | Pass |
| payment-security-clerk-billing-stripe | Pass | Pass | Warn |
| security-operations-deployment | Pass | Pass | Pass |
This guide is Yellow because one of the 12 sampled listings carries a Warn cell (payment-security-clerk-billing-stripe on Snyk) and none carries a Fail; the other 11 listings pass all three auditors.
Integration with CorpusIQ¶
CorpusIQ is the connector layer that lets AI assistants read the systems a business already runs on - accounting, payments, CRM, email, files and analytics - and answer with the source named. It is read-only by design: it retrieves data and never writes to, or acts in, a connected system, which is what makes it safe to point at live accounts.
This page is part of the CorpusIQ directory, the reference we maintain for the MCP server and agent-skill ecosystem. Run alongside CorpusIQ, a third-party server like this one can be combined with a company's own business data in a single answer.
Limitations¶
- Snapshot data, verified Nov 28 2026: 2,395 combined installs across 12 indexed listings; 19 GitHub stars; MIT license; last pushed 2025-12-14. Counts drift over time.
- The skills.sh index names diverge from the repository directory names: eight of the twelve indexed listings use descriptive names (dependency-supply-chain-security, security-architecture-overview, security-testing-verification, input-validation-xss-prevention, secure-error-handling, authentication-authorization-clerk, payment-security-clerk-billing-stripe, security-operations-deployment) while the repository uses short directory names (dependency-security, security-overview, security-testing, input-validation, error-handling, auth-security, payment-security, security-operations). Map index names to tree directories before fetching a skill.
- The skills are built for a specific stack: Next.js 15+ (App Router), Clerk, Convex and TypeScript. The README notes the examples assume this architecture, so other stacks need adaptation.
- The security-awareness subtree (seven awareness sub-skills) is documented in the README but has no matching indexed listing on skills.sh, while security-prompts is indexed but absent from the README's available-skills table.
- One of the 12 sampled listings carries a Snyk Warn (payment-security-clerk-billing-stripe); the other 11 pass all three auditors.
Related¶
- Claude Code OWASP Security - Secure Review Setup
- Vibe Security - Security Audit for Vibe-Coded
- Secure Agent Playbook - OWASP AI Agent Security Setup
Skills Catalog | Skills Marketplace
Pro Tips¶
- Read a skill's SKILL.md before installing: it is a single file with frontmatter plus instructions, so the curl approach gives you the whole skill to review.
- Prefer npx secure-claude-skills init --sync subtree when you want ongoing security improvements without re-installing by hand.
- Map the indexed skill name to its directory before fetching, since eight of the twelve listings use descriptive names the tree does not keep.
- The security-prompts templates are the most reusable asset for a non-Next.js project; they are scenario-driven and carry no framework dependency.
- The seven security-awareness sub-skills are worth reading even though they are not indexed, since they explain the attack scenarios behind each control.
← Skills Catalog | Skills Marketplace → Powered by CorpusIQ