Skills for Real Engineers. Straight from my .agents directory.
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
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)
1# Security and Hardening23## Overview45Security-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.67## When to Use89- Building anything that accepts user input10- Implementing authentication or authorization11- Storing or transmitting sensitive data12- Integrating with external APIs or services13- Adding file uploads, webhooks, or callbacks14- Handling payment or PII data1516## Process: Threat Model First1718Controls bolted on without a threat model are guesses. Before hardening, spend five minutes thinking like an attacker:19201. **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:2324| Threat | Ask | Typical mitigation |25|---|---|---|26…
Excerpt shown under the repository's MIT license.
More skills in agent-skills
Similar skill repositories
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
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
The open-source app everyone uses to manage agents at work
The design vocabulary for your coding agent. Steer with polish and bolder, review with critique and audit, catch AI slop before it ships.
