security
Skill8 starsChanged 10 months agoApache-2.0View on GitHub
Apply security guardrails (authentication, authorization, input validation, SQL/XSS/command injection prevention, secrets management, SSRF protection, secure logging, dependency auditing). Use when adding/changing endpoints, auth flows, data access, file/network I/O, or handling user input and sensitive data. NOT for resilience/fault-tolerance patterns (use resilience); NOT for observability instrumentation (use observability).
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 repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- architectureSkill
- archobsSkill
- debugSkill
- designSkill
- finishSkill
- forecastSkill
- intelSkill
- observabilitySkill
- planSkill
- platformSkill
- resilienceSkill
- reviewSkill
- specSkill
- testingSkill
- typescriptSkill
- workflowSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 6 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 56 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
Authn: verify identity and token validity (issuer/audience/expiry).
- Distinctive: line 33
Authz: check permissions *per action* (and per tenant/resource).
- Very specific: line 34
Input validation: treat external inputs as unknown.
- Distinctive: line 36
Secrets safety: keep secrets out of logs, error messages, and client responses.
- Very specific: line 43
add/extend consumer-visible tests for authz and validation (testing)
- Distinctive: line 44
run any available dependency scanning / linters in the target repo
- Distinctive: line 49
When context or time is constrained, these are the load-bearing steps:
- Distinctive: line 65
Secrets / config change: no secrets in source, rotation plan, no secrets in logs/errors, short-lived credentials.
- Distinctive: line 112
When applying this skill, return:
“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
Overview
Security is boundary discipline: authenticate, authorize, validate inputs, avoid data leakage, and make unsafe classes of bugs hard to write.
This is not a full security audit. If the change is high-risk (auth overhaul, multi-tenant isolation, crypto, payments, regulated data), escalate to a security review.
Inputs / Outputs
Inputs: Attack surface inventory (inbound/outbound/state/operational boundaries); data sensitivity classification (credentials, PII, multi-tenant identifiers).
Outputs: Hardened code with baseline controls applied (authn, authz, validation, injection safety, secrets safety); verification tests. Consumed by testing and finish.
Workflow
- Identify what changed (the attack surface):
- inbound boundaries: HTTP/gRPC/GraphQL/WS handlers, webhooks
- outbound boundaries: HTTP/gRPC/SDK clients, redirects, proxying, fetch-by-URL
- state boundaries: DB queries, object storage, caches, queues
- operational boundaries: logs/telemetry, admin endpoints, config/secrets
- Classify data sensitivity:
- credentials/secrets, session tokens, API keys
- PII and regulated data
- multi-tenant identifiers and access scopes
- Apply baseline controls:
- Authn: verify identity and token validity (issuer/audience/expiry).
- Authz: check permissions per action (and per tenant/resource).
- Input validation: treat external inputs as
unknown; decode/validate at the edge. - Injection safety: parameterize queries; avoid string-built interpreters (SQL, shell, template injection).
- Secrets safety: keep secrets out of logs, error messages, and client responses.
GATE: All 5 baseline controls (authn, authz, input validation, injection safety, secrets safety) must be addressed before proceeding. For each control, either apply it or document why it does not apply to this change.
- Harden outbound calls:
- SSRF controls (allowlist hosts; block link-local/metadata IPs; disable redirect-follow where unsafe)
- TLS verification and timeouts/cancellation (see
resilience)
- Verify:
- add/extend consumer-visible tests for authz and validation (
testing) - run any available dependency scanning / linters in the target repo
- sanity-check logs/metrics do not include sensitive fields (
observability)
- add/extend consumer-visible tests for authz and validation (
Minimum viable execution
When context or time is constrained, these are the load-bearing steps:
- Identify attack surface (step 1) — what boundaries changed.
- Classify data sensitivity (step 2) — credentials, PII, multi-tenant identifiers.
- Apply 5 baseline controls in order (step 3) — authn → authz → validation → injection safety → secrets safety.
- Verify (step 5) — consumer-visible tests for authz and validation.
Steps that can be cut under pressure: outbound SSRF hardening (step 4) if no outbound calls changed, dependency scanning.
Chooser (What To Apply Where)
- New/changed HTTP endpoint: authn + authz + input validation + safe error responses + rate limiting (if public).
- Auth flow change: token validation, session settings, CSRF, re-auth for sensitive actions, scope/tenant checks.
- Database / data access change: parameterized queries, least-privilege DB user, tenant scoping, existence-leak prevention.
- File upload / user-provided URLs: size/type limits, SSRF controls (allowlist hosts, block metadata IPs), path traversal prevention.
- Outbound fetch / proxy: SSRF controls, TLS verification, redirect policy, timeout/cancellation.
- Secrets / config change: no secrets in source, rotation plan, no secrets in logs/errors, short-lived credentials.
- Dependency update / addition: lockfile integrity, unused dep removal, license/policy check.
Clarifying Questions
- What boundaries changed (inbound handlers, outbound calls, data access, config/secrets)?
- What data sensitivity is involved (credentials, PII, regulated data, multi-tenant identifiers)?
- Is this a multi-tenant system? How is tenant isolation enforced?
- Is this a public-facing endpoint or internal-only?
- Are there existing auth/authz patterns in the codebase to follow?
Checklist (High-Signal)
- Authn: token validation, session/cookie settings, CSRF (if cookie-based), re-auth for sensitive actions.
- Authz: resource/tenant checks at every entrypoint; no “UI-only” authorization.
- Inputs: strict decoding; file uploads have size/type limits; URLs are parsed and validated.
- DB: parameterized queries; least-privilege DB user; no leaking of existence via error detail (where relevant).
- Secrets: never log credentials; rotate/expire tokens; store secrets in secret manager/env (not source).
- Telemetry: logs redact/omit PII; metrics have bounded labels; traces avoid raw payloads.
- Dependencies: pin and update; remove unused; verify integrity/lockfiles.
Guardrails
- Don’t build your own crypto; use well-reviewed libraries and platform primitives.
- Don’t weaken authz “temporarily”; if you must, add explicit expiry and a follow-up task.
- Don’t log raw request bodies/headers by default; explicitly whitelist safe fields.
- Don’t accept user-provided URLs for server-side fetch without SSRF controls.
Common failure modes
- Pattern-matches OWASP checklists without reading the actual code — produces generic findings that don't apply to the specific change.
- Adds input validation at internal boundaries between trusted components — validation belongs at system boundaries (user input, external APIs), not between your own modules.
- Focuses heavily on authentication while missing authorization — verifying identity is not the same as checking permissions per action and per resource.
- Misses SSRF in outbound calls — any endpoint that fetches a user-provided URL needs allowlist/blocklist controls.
References
- Deeper checklist:
references/checklists.md - TypeScript boundary snippets:
references/snippets/typescript.md - Related patterns:
Access token - Boundary resiliency:
resilience - Telemetry privacy:
observability - Consumer-visible verification:
testing - Shared auth/config primitives (when 2+ services need the same guardrails):
platform
Output Template
When applying this skill, return:
- What changed (attack surface) and what data is sensitive.
- The controls applied (authn/authz/validation/injection/SSRF/logging).
- Verification steps (tests + local checks) and any follow-ups needing a dedicated security review.
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.

