secure-coding
Skill0 starsChanged 4 months agoMITView on GitHub
Practices for writing secure code — the defensive habits and per-category rules that prevent vulnerabilities before they ship. Use when implementing security-sensitive features (auth, input handling, data access, crypto) or as a checklist while reviewing them.
11 other projects use a version of this.
Adopted by
Most recently taken up by
- slilbudget/knowledge-delta-skillstheir own version, first seen Sep 28, 2026
- txRandria/skillstheir own version, first seen Sep 21, 2026
- aethrox/doctrinetheir own version, first seen Sep 11, 2026
- g-cqd/skillstheir own version, first seen Sep 4, 2026
- techygarg/latticetheir own version, first seen Sep 3, 2026
- kenjichristopherv-del/securitymaxxingtheir own version, first seen Aug 12, 2026
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- techygarg/lattice★ 197same name
- nimadorostkar/Claude-Skills-collection★ 28same name
- aethrox/doctrine★ 18same name
- MartinOlivero/saas-builder★ 4same name
- roodlicht/accans-sec-skills★ 4same name
- slilbudget/knowledge-delta-skills★ 3same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
- g-cqd/skills★ 2same name
- txRandria/skills★ 2same name
- gabrielbauman/skills★ 1same name
1 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 repository72 other files it gives its agents.
- AGENTS.mdAGENTS.md
- templates/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- agents-md-initSkill
- analytical-frameworksSkill
- appkit-accessibility-auditorSkill
- assess-security-controlsSkill
- audit-accessibilitySkill
- automated-security-reviewSkill
- changelogSkill
- check-ai-onboard-updatesSkill
- agents-sdkSkill
- cloudflare-email-serviceSkill
- cloudflare-oneSkill
- durable-objectsSkill
- sandbox-sdkSkill
- turnstile-spinSkill
- workers-best-practicesSkill
- wranglerSkill
- cobra-commandSkill
- competitive-intelSkill
- component-scaffoldSkill
- conduct-open-source-investigationSkill
- conduct-user-researchSkill
- conventional-commitSkill
- coordinate-data-viewsSkill
- core-data-expertSkill
- data-storytellingSkill
- datavizSkill
- debug-systematicallySkill
- define-brand-foundationSkill
- dependency-vuln-scanSkill
- design-and-build-websiteSkill
- design-product-contentSkill
- design-product-interfaceSkill
- develop-apple-platform-appSkill
- develop-test-firstSkill
- evolve-design-systemSkill
- gh-issueSkill
- gh-prSkill
- gh-releaseSkill
- identity-managementSkill
- input-sanitizationSkill
- manage-vulnerability-riskSkill
- map-attack-surfaceSkill
- market-researchSkill
- measure-product-experimentsSkill
- obsidianSkill
- pr-descriptionSkill
- preserve-web-evidenceSkill
- prisma-migrateSkill
- retrieve-technical-docsSkill
- secret-managementSkill
- secret-scanSkill
- security-auditSkill
- shape-product-opportunitySkill
- simplify-code-safelySkill
- swift-api-design-guidelinesSkill
- The first 60 shown.
The file
Files
Secure coding
The write-time member of the security set: threat-model frames what to protect (before),
secure-coding prevents defects (during), security-audit / security-review catch what slipped (after).
When to use
Implementing or reviewing code that handles untrusted input, authentication/authorization, sensitive data, secrets, or cryptography.
Core habits
- Validate in, encode out. Validate untrusted input at the boundary; encode output for its sink. (Deep
dive: the
input-sanitizationskill.) - Least privilege. Narrowest scope, capability, and lifetime for every token, query, and process.
- Fail closed. On error or ambiguity, deny — never default-allow.
- Never trust the client. Re-verify every check server-side; client-side validation is UX, not security.
- Keep secrets out of code and logs. (Deep dive:
secret-management; detection:secret-scan.) - Prefer safe defaults and reviewed libraries over hand-rolled security (crypto, auth, parsers).
By category
Walk reference.md: injection, authz/IDOR, crypto, error handling & logging,
deserialization, and dependencies. For the two biggest areas use the focused skills —
input-sanitization and identity-management.
Verify
Pair with security-review (on a diff) or security-audit (on a codebase), and run dependency-vuln-scan
and secret-scan. Wire them into CI with automated-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.

