Tooluck logoTooluck
SKILL.md

security-and-hardening

Agent skill fromaddyosmani/agent-skills

Hardens code against vulnerabilities. Use when auditing an input handler for vulnerabilities, when handling user input, authentication, data storage, or external integrations, or when checking a login flow is safe against the OWASP Top Ten. Use when building any feature that accepts untrusted data, manages user sessions or session cookies, or interacts with third-party services. Use when auditing dependencies for known vulnerabilities, triaging package-manager audit findings, or assessing supply-chain risk in a new package. Use when personal data or privacy compliance (GDPR, CCPA) is involved.

How to install security-and-hardening

install security-and-hardening
# install the agent-skills pack with the skills CLI
npx skills add addyosmani/agent-skills

# or add only this skill to Claude Code: copy the folder

skills/security-and-hardening/

# into

~/.claude/skills/security-and-hardening/ (all projects)

.claude/skills/security-and-hardening/ (one project)

skills/security-and-hardening/SKILL.md

MITFull file
1# Security and Hardening
2
3## Overview
4
5Security-first development practices for web applications. Treat every external input as hostile, every secret as sacred, and every authorization check as mandatory. Security isn't a phase — it's a constraint on every line of code that touches user data, authentication, or external systems.
6
7## When to Use
8
9- Building anything that accepts user input
10- Implementing authentication or authorization
11- Storing or transmitting sensitive data
12- Integrating with external APIs or services
13- Adding file uploads, webhooks, or callbacks
14- Handling payment or PII data
15
16## Process: Threat Model First
17
18Controls bolted on without a threat model are guesses. Before hardening, spend five minutes thinking like an attacker:
19
201. **Map the trust boundaries.** Where does untrusted data cross into your system? HTTP requests, form fields, file uploads, webhooks, third-party APIs, message queues, and **LLM output** — plus the local values that look internal because the OS handed them to you: another process's command line or environment, filenames on a shared volume, a path in a job payload. Trust follows who *wrote* a value, not which channel delivered it. Every boundary is attack surface.
212. **Name the assets.** What's worth stealing or breaking? Credentials, PII, payment data, admin actions, money movement.
223. **Run STRIDE over each boundary** — a quick lens, not a ceremony:
23
24| Threat | Ask | Typical mitigation |
25|---|---|---|
26…

Excerpt shown under the repository's MIT license.

More skills in agent-skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

pbakaus /

impeccable
108k

The design vocabulary for your coding agent. Steer with polish and bolder, review with critique and audit, catch AI slop before it ships.

2 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates