---
name: security-and-hardening
slug: security-and-hardening
score: 92
rubric: 1.1
provenance: community
publisher: Addy Osmani
license: MIT
capability: read-only
canonical: https://top-agent-skills.com/skill/security-and-hardening
---

# security-and-hardening

Addy Osmani's security skill: OWASP Top Ten rules for code you are writing now, plus a dependency-audit procedure that refuses blanket fixes.

## Install

### Claude Code

```bash
npx skills add addyosmani/agent-skills --skill security-and-hardening -a claude-code
```

### Cursor

```bash
npx skills add addyosmani/agent-skills --skill security-and-hardening -a cursor
```

### Codex CLI

```bash
npx skills add addyosmani/agent-skills --skill security-and-hardening -a codex
```

### Gemini CLI

```bash
npx skills add addyosmani/agent-skills --skill security-and-hardening -a gemini-cli
```

### Antigravity IDE

```bash
npx skills add addyosmani/agent-skills --skill security-and-hardening -a antigravity
```

## Plugins

Distribution: Standalone skill.

## Safety

Reviewed on 2026-11-12 by reading the skill's files (nothing was executed).

- Bundled scripts: no
- Network access: no
- allowed-tools: none declared
- Notes: SKILL.md plus one reference file of hardening patterns; no scripts. The dependency-audit steps tell the agent to run the package manager's native audit, which reaches the registry.

## Best for

Building a feature that touches untrusted input, sessions or third-party services, when you want the secure default written in the first time. The supply-chain section is the rare one that says to block install scripts before first execution and never run npm audit fix --force unattended.

## Not ideal for

An audit of existing code with findings and confidence levels. It is written for the author, not the reviewer; sentry-security-review or Trail of Bits fit that job better.

## About

Hardens code against vulnerabilities. Use when auditing an input handler, when handling user input, authentication, data storage, or external integrations, or when checking a login flow against the OWASP Top Ten. Also covers dependency audits, supply-chain risk in a new package, and personal-data compliance (GDPR, CCPA).

## Compatibility

claude-code, cursor, codex, gemini-cli, antigravity

## Metadata

- Categories: security-auditing
- Surfaces: claude-code
- Tags: OWASP, Hardening, Supply chain
- Setup time: 1 min
- Complexity: Low
- Last update: 2026-10-30
- Verified: 2026-11-12
- Source: https://github.com/addyosmani/agent-skills/tree/main/skills/security-and-hardening
- Docs: https://github.com/addyosmani/agent-skills/blob/main/skills/security-and-hardening/SKILL.md

---

_Indexed by Top Agent Skills. Score breakdown: https://top-agent-skills.com/about/methodology_
