application-security
Skill198 starsChanged 4 days agoMITView on GitHub
Apply secure-by-design principles and threat-model application features across technology stacks. Use when designing features, reviewing code or architecture, handling input, or exposing application functionality.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- kirubaharan181/sdlc-agentic-skillstheir own version, first seen Nov 29, 2026
- axross/skillstheir own version, first seen Oct 13, 2026
- LucSena/how-to-build-softwaretheir own version, first seen Oct 11, 2026
- ffsshhttiikk/opencode-agents-skillstheir own version, first seen Feb 28, 2026
- travisjneuman/.claudetheir own version, first seen Feb 25, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- travisjneuman/.claude★ 106same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
- axross/skills★ 1same name
- kirubaharan181/sdlc-agentic-skills★ 1same name
- LucSena/how-to-build-software★ 0same name
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 repository20 other files it gives its agents.
- api-designSkill
- apply-renovate-prsSkill
- architecture-guidelinesSkill
- authentication-authorizationSkill
- configuration-and-secretsSkill
- data-access-and-migrationsSkill
- database-designSkill
- deployment-and-deliverySkill
- external-integrations-and-messagingSkill
- java-code-reviewSkill
- jspecify-skillSkill
- observabilitySkill
- pair-programmingSkill
- progenSkill
- reliability-and-performanceSkill
- spec-writerSkill
- spring-boot-skillSkill
- spring-modulith-verifierSkill
- technical-decision-makingSkill
- testing-strategySkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 9 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Use for new features, trust-boundary changes, file handling, user-generated content, administrative functions, integrations, and security …
- Distinctive: line 18
Validate at boundaries: Treat all external input as untrusted, including headers, files, URLs, webhooks, messages, and data from other …
- Distinctive: line 19
Prefer allowlists and safe APIs: Avoid constructing executable queries, commands, paths, or markup from untrusted strings.
- Distinctive: line 39
Use parameterized database operations and context-appropriate output encoding.
- Distinctive: line 43
Use secure session/token handling, transport security, and appropriate cookie protections.
- Distinctive: line 46
Use safe file storage, generated filenames, content validation, and non-executable storage locations.
- Distinctive: line 47
Keep secrets out of source control, client bundles, logs, and error responses.
- Distinctive: line 48
Use generic external error messages while retaining safe diagnostic detail internally.
- Distinctive: line 60
Use applicable current standards (such as OWASP guidance) as references, but adapt controls to the application's actual threat model.
“Common” is measured: kept by at least 6 in 10 of the 4 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
Application Security
Purpose
Establish practical, risk-based security expectations throughout application design and implementation.
When to use
Use for new features, trust-boundary changes, file handling, user-generated content, administrative functions, integrations, and security reviews.
Core principles
- Threat-model meaningful changes. Identify assets, actors, trust boundaries, entry points, abuse cases, and likely impact.
- Use least privilege. Give users, services, processes, and credentials only the permissions they need.
- Deny by default. Access must be explicitly granted; missing or invalid authorization context must not result in access.
- Validate at boundaries. Treat all external input as untrusted, including headers, files, URLs, webhooks, messages, and data from other services.
- Prefer allowlists and safe APIs. Avoid constructing executable queries, commands, paths, or markup from untrusted strings.
- Separate authentication from authorization. Establish identity and independently verify permission for each protected operation and resource.
- Protect data throughout its lifecycle. Minimize collection, restrict access, encrypt sensitive data in transit and at rest where appropriate, and define retention/deletion behavior.
- Fail securely. Errors must not reveal secrets, internal topology, stack traces, or sensitive records.
- Keep dependencies and runtime components maintained. Track vulnerabilities, update deliberately, and remove unused components.
- Make security observable. Record security-relevant events without logging credentials, tokens, or unnecessary personal data.
Threat-model prompts
For a meaningful feature, consider:
- What assets are valuable (accounts, personal data, business data, credentials, money, service availability)?
- Who can interact with it (anonymous users, authenticated users, tenants, administrators, service identities)?
- What are the trust boundaries?
- Can a user access another user's or tenant's resources by changing an identifier?
- Can input cause injection, path traversal, SSRF, unsafe deserialization, or resource exhaustion?
- Can workflows be replayed, raced, automated, or abused?
- What happens when a dependency or identity provider is compromised?
Implementation expectations
- Enforce authorization on the server or trusted backend, not only in the user interface.
- Validate type, length, format, range, and business constraints.
- Use parameterized database operations and context-appropriate output encoding.
- Apply request size, upload size, rate, and resource limits.
- Restrict outbound network destinations when user input can influence requests.
- Store passwords using a modern password-hashing scheme; never reversible encryption or plain hashing.
- Use secure session/token handling, transport security, and appropriate cookie protections.
- Protect state-changing browser requests against CSRF where applicable.
- Set appropriate security headers and content policies for browser-facing applications.
- Use safe file storage, generated filenames, content validation, and non-executable storage locations.
- Keep secrets out of source control, client bundles, logs, and error responses.
- Use generic external error messages while retaining safe diagnostic detail internally.
Review checklist
- Are all entry points identified and validated?
- Is authorization checked for the specific action and resource?
- Are tenant and ownership boundaries enforced?
- Are injection and unsafe output risks addressed?
- Are secrets and sensitive data protected?
- Are abuse limits and resource limits appropriate?
- Are security events logged safely?
- Are dependencies, configuration, and deployment defaults secure?
Use applicable current standards (such as OWASP guidance) as references, but adapt controls to the application's actual threat model. Do not claim a system is secure merely because a checklist passed.
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.

