security-and-hardening: a Claude Code skill by Addy Osmani
For web developers handling input, logins or personal data who want clear always, ask-first and never rules. Skip it if you need a formal audit report.
- Score
- 77of 100
- Rank
- #78of 200
- Installs
- 78.4Kon skills.sh
- Security
- Mixed 5 scanners
- Updated
- 2026
- Context
- ~155tokens always
Install
npx skills add https://github.com/addyosmani/agent-skills --skill security-and-hardening Run it in your terminal. View the source
What does security-and-hardening do?
security-and-hardening is a Claude skill that applies security rules while Claude writes web code. It starts with a short threat model: map the trust boundaries, name the assets, and run STRIDE over each boundary. Rules come in three tiers. Always validate input, use parameterized queries, hash passwords and set CSP and HSTS headers. Ask first before new auth flows, CORS changes or upload handlers. Never commit secrets or pass user data to eval or innerHTML. Further sections cover SSRF, rate limits, GDPR and CCPA privacy, LLM output, and dependency audits run against the lockfile with install scripts blocked. A verification checklist closes it.
When should you use security-and-hardening?
Use it when
- Adding a login, session or file upload feature
- Triaging npm audit or other package audit findings
- Handling personal data that falls under GDPR
Skip it when
- You need a full audit with findings files
- Your code never touches user input or secrets
What it needs and what it can touch
It can
- Reads and edits project code
- Runs your package manager's audit command
From reading its instructions, not from running it.
Why it scores 77
Strongest on upkeep (100 of 100), weakest on trust (62).
Is security-and-hardening safe to install?
At least one scanner raised a medium warning. Read the results below. Scanners often miss what other scanners catch, and a skill can change after a scan. Read its source before you install it.
| Scanner | Result | Date |
|---|---|---|
| Gen Agent Trust Hub | Passed | Oct 31, 2026 |
| Socket | Passed | Oct 31, 2026 |
| Snyk | Low risk | Oct 31, 2026 |
| Runlayer | Medium risk | Feb 22, 2026 |
| ZeroLeaks | Passed | Apr 16, 2026 |
Details
- Installs
- 78,364
- Repository stars
- 113,127
- Last repository change
- Tokens always loaded
- about 155
- Tokens when used
- about 4,224
- License
- MIT
- Data confidence
- High
Did it do the job for you?
Alternatives to security-and-hardening
All skills for this job-
Get supabase-postgres-best-practicessupabase-postgres-best-practices
For developers writing SQL, schemas or row level security policies on any Postgres database.
-
Get supabasesupabase
For developers building on Supabase who want auth, RLS and migrations handled with care.
-
Get solana-devsolana-dev
For developers building Solana programs, clients or wallet UIs who want current tooling defaults.
-
Get security-auditsecurity-audit
For developers who want a source-based security review, from one question up to a full multi-agent audit.