security
Skill1 starsChanged 5 months agoMITView on GitHub
Security audits and threat modeling — find and reason about vulnerabilities in auth, input handling, data access, secrets, and dependencies. Use when reviewing code for security, threat-modeling a feature, hardening an endpoint, handling auth/authz, or checking for injection, secret leakage, or unsafe data exposure. For a focused review of the current diff, prefer the `/security-review` command.
78 other projects use a version of this.
Adopted by
Most recently taken up by
- AllThingsSmitty/proven-skillstheir own version, first seen Oct 6, 2026
- MarvelCollin/agent-skillstheir own version, first seen Oct 5, 2026
- muon-m2/magento2-toolstheir own version, first seen Oct 4, 2026
- flavien-ia/hypervibe-harnesstheir own version, first seen Oct 4, 2026
- AIBiz-Automatyzacje/claude-code-startertheir own version, first seen Oct 4, 2026
- lgzarturo/codeconductortheir own version, first seen Sep 30, 2026
Used with
Projects with it also use cost-reducer, trigger-dev and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
daianepepes-labSkillcost-reducer
Analyze and reduce costs across cloud infrastructure, code, and services. Use when asked to cut costs, optimize spending, reduce bills, or improve cost efficiency.
Also in 5 projects that use this
xfstudioSkilltrigger-dev
Trigger.dev expert for background jobs, AI workflows, and reliable async execution with excellent developer experience and TypeScript-first design. Use when: trigger.dev, trigger dev, background task, ai background job, long running task.
Also in 4 projects that use this
ffsshhttiikkSkillscalability
Core foundational concepts and principles for Scalability
Also in 4 projects that use this
daianepepes-labSkillself-healing
Detect, diagnose, and automatically fix recurring errors, memory issues, and system degradation. Use when a system has recurring failures, memory leaks, performance degradation, or needs automatic recovery mechanisms.
Also in 5 projects that use this
xfstudioSkillcustomer-support
Elite AI-powered customer support specialist mastering
Also in 4 projects that use this
ffsshhttiikkSkillcicd
Continuous integration and delivery pipelines
Also in 4 projects that use this
- +1 more from daianepepes-lab
Other versions78 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 78
- parcadei/Continuous-Claude-v3★ 3.9ksame name
- BankrBot/skills★ 1.2ksame name
- rshankras/claude-code-apple-skills★ 777same name
- alinaqi/maggy★ 707same name
- boshu2/agentops★ 447same name
- notque/vexjoy-agent★ 424same name
- nth5693/gemini-kit★ 373same name
- telagod/code-abyss★ 242same name
- garagon/nanostack★ 207same name
- TheBeardedBearSAS/claude-craft★ 106same name
68 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- agent-llmSkill
- dataSkill
- debugSkill
- doc-coauthoringSkill
- frontend-designSkill
- git-opsSkill
- loop-verifySkill
- refactorSkill
- testingSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 56 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Verify the session/token on the server for every protected route.
- Very specific: line 34
SQL injection: use parameterized queries / bound parameters always.
- Very specific: line 35
XSS: never render unsanitized user input as HTML.
- Very specific: line 42
No secrets in code, logs, error messages, or the client bundle.
- Distinctive: line 43
Don't log tokens, passwords, full PII, or full card/SSN numbers.
- Very specific: line 55
Run pnpm audit and review advisories for reachable vulns.
“Common” is measured: kept by at least 6 in 10 of the 56 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Security: Audits + Threats
Assume every input is hostile and every boundary will be probed. Security work is finding where an attacker's assumptions differ from yours. This is for defensive review, hardening, and threat modeling of code you're authorized to work on.
Scope: this skill complements
/security-review(diff-level review of pending changes). Use/security-reviewfor "is this change safe to merge"; use this skill for a broader audit or when threat-modeling a feature.
Threat modeling — do this before the audit
Answer four questions for the feature/endpoint:
- What are we protecting? (user data, money, credentials, availability)
- Who's the adversary? (anonymous internet, authenticated-but-other-user, insider, compromised dependency)
- Where are the trust boundaries? (client→server, server→DB, service→third-party). Every arrow crossing a boundary is where validation and authz must happen.
- What's the worst case if this one control fails? Design so a single failure isn't catastrophic (defense in depth).
The client is never trusted. Validation, authorization, and rate limits enforced only in the browser are enforced nowhere.
Audit checklist
Authentication & authorization
- Authz on every request, server-side, checked against the authenticated user — not an id from the request body/query. The classic bug:
GET /api/orders/:idreturns any order because it never checks the order belongs to the caller (IDOR). - Route through
lib/auth/for user-data access — never bypass it or hand-roll a parallel check (this is a hard project rule). A bypass is a vulnerability even if it "works". - Verify the session/token on the server for every protected route; don't trust a client-set flag. Check expiry and revocation.
- Enforce least privilege: a user gets exactly their own data. Test the "other user" and "no user" cases explicitly.
Input handling & injection
- SQL injection: use parameterized queries / bound parameters always. Never build SQL by string-concatenating user input — not even "safe-looking" values, not even for
ORDER BY. Allowlist column/sort names. - XSS: never render unsanitized user input as HTML. In React, avoid
dangerouslySetInnerHTMLwith user content; if unavoidable, sanitize with a vetted library. - Validate and normalize all input at the boundary against a strict schema (type, length, range, format). Reject, don't coerce, malformed input.
- SSRF/path traversal: user-controlled URLs and file paths are attacks. Allowlist destinations; resolve and confine paths under a known root.
- Command injection: don't pass user input to a shell. If you must, use argument arrays, never string interpolation.
Secrets & sensitive data
- No secrets in code, logs, error messages, or the client bundle. In Next.js, anything not prefixed for the server leaks to the browser — keep keys server-only and out of
NEXT_PUBLIC_*. - Don't log tokens, passwords, full PII, or full card/SSN numbers. Redact at the log boundary.
- Return the minimum data the client needs. Don't ship the whole user row (password hash, internal flags, other users' data) to satisfy one field.
- Hash passwords with a slow algorithm (bcrypt/argon2); never encrypt-and-store or plaintext.
Data exposure & API surface
- Error responses shouldn't leak stack traces, SQL, or internal structure to clients. Log detail server-side, return a generic message.
- Set security headers and cookie flags:
HttpOnly,Secure,SameSiteon session cookies; CSRF protection on state-changing routes. - Rate-limit auth and expensive endpoints. Enumerable sequential IDs + no rate limit = scrape-all.
Dependencies & supply chain
- Run
pnpm auditand review advisories for reachable vulns; pin and update deliberately. - New dependencies are new trust — justify them (the project requires justification in the PR body) and prefer well-maintained, minimal ones.
- Watch for typosquatting and post-install scripts on unfamiliar packages.
Reporting findings
For each issue, state: where (file:line), the vulnerability (what an attacker does), impact (what they get), severity (critical/high/med/low), and the fix. Rank by exploitability × impact — a trivially exploitable IDOR outranks a theoretical timing leak. Verify a finding is real before reporting it; a false alarm costs trust.
Boundaries
Support authorized, defensive work: audits of your own/authorized code, threat modeling, hardening, CTF, and education. Do not produce working exploits for systems you don't control, mass-targeting or DoS tooling, or evasion techniques meant to harm. When in doubt about intent, ask.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

