addyosmani avatar

Security And Hardening

This is a comprehensive security checklist that enforces the kind of paranoid thinking production code actually needs. It walks you through OWASP Top 10 prevention with real TypeScript examples, from parameterized queries and bcrypt hashing to helmet middleware and Zod validation at route boundaries. The three-tier boundary system (always do, ask first, never do) is genuinely useful for keeping security decisions consistent across a codebase. The npm audit triage decision tree alone is worth the read because it gives you a framework for prioritizing CVE fixes instead of treating every moderate severity warning like a five-alarm fire. If you're touching auth, user input, or external APIs, this covers the non-negotiables.

install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
5
skills.sh installs
81.4K
GitHub stars
114.6K
last updated
Aug 21, 2026

Install

$ npx -y skills add addyosmani/agent-skills --skill security-and-hardening --agent claude-code

Installs into .claude/skills of the current project.

Files

Security and Hardening

Overview

Security-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.

When to Use

  • Building anything that accepts user input
  • Implementing authentication or authorization
  • Storing or transmitting sensitive data
  • Integrating with external APIs or services
  • Adding file uploads, webhooks, or callbacks
  • Handling payment or PII data

Process: Threat Model First

Controls bolted on without a threat model are guesses. Before hardening, spend five minutes thinking like an attacker:

Sponsors

Details

Repository
github.com/addyosmani/agent-skills
Categories
Backend & APIs, Security, AI & Agent Building
First seen
Apr 16, 2026

More from addyosmani/agent-skills

All 25
1insforge avatarinsforge-cliinsforge/insforge-skillsUse this skill whenever someone needs a backend, or a task touches InsForge backend or cloud infrastructure through the InsForge CLI: projects, SQL, migrations,65Kskills.sh installs
2firecrawl avatarfirecrawl-build-interactfirecrawl/skillsIntegrate Firecrawl `/interact` into product code for dynamic pages and browser actions after scraping. Use when a feature needs clicks, form fills, pagination,62.2Kskills.sh installs
3genkit-ai avatardeveloping-genkit-jsgenkit-ai/skillsDevelop AI-powered applications using Genkit in Node.js/TypeScript. Use when the user asks about Genkit, AI agents, flows, or tools in JavaScript/TypeScript, or60.4Kskills.sh installs
4clerk avatarclerk-setupclerk/skillsAdd Clerk authentication to any project by following the official quickstart guides.59Kskills.sh installs
5clerk avatarclerk-custom-uiclerk/skillsCustom authentication flows and component appearance - hooks (useSignIn, useSignUp), themes, colors, fonts, CSS. Use for custom sign-in/sign-up flows, appearanc57.4Kskills.sh installs
6nozomio-labs avatarNianozomio-labs/nia-skillIndex and search code repositories, documentation, research papers, HuggingFace datasets, local folders, Slack workspaces, Google Drive, X (Twitter), and packag56.3Kskills.sh installs