# Security best practices

> Security best practices is an agent skill for security. Perform language and framework specific security best-practice reviews and suggest improvements. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/openai/skills/tree/main/skills/.curated/security-best-practices
- **Repository:** https://github.com/openai/skills
- **GitHub stars:** 28,784
- **Skill name:** security-best-practices
- **Collection:** https://github.com/openai/skills
- **Categories:** security
- **Listing updated:** 2026-11-17

## About

Perform language and framework specific security best-practice reviews and suggest improvements. Trigger only when the user explicitly requests security best practices guidance, a security review/report, or secure-by-default coding help. Trigger only for supported languages (python, javascript/typescript, go). Do not trigger for general code review, debugging, or non-security tasks.

## When your agent uses it

> Perform language and framework specific security best-practice reviews and suggest improvements. Trigger only when the user explicitly requests security best practices guidance, a security review/report, or secure-by-default coding help. Trigger only for supported languages (python, javascript/typescript, go). Do not trigger for general code review, debugging, or non-security tasks.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/openai/skills/tree/HEAD/skills/.curated/security-best-practices)
- [No license found](https://github.com/openai/skills/tree/HEAD/skills/.curated/security-best-practices)

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/security-best-practices` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/openai/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/security-best-practices &&
cp -R "$tmp/skills/.curated/security-best-practices" ~/.claude/skills/security-best-practices &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/security-best-practices` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/security-best-practices` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/openai/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/security-best-practices &&
cp -R "$tmp/skills/.curated/security-best-practices" ~/.agents/skills/security-best-practices &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/security-best-practices` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/security-best-practices` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/openai/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/security-best-practices &&
cp -R "$tmp/skills/.curated/security-best-practices" ~/.cursor/skills/security-best-practices &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/security-best-practices` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/openai/skills.git --path skills/.curated/security-best-practices
```

Or copy the folder to `~/.gemini/skills/security-best-practices` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/security-best-practices`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/openai/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/security-best-practices &&
cp -R "$tmp/skills/.curated/security-best-practices" ~/.copilot/skills/security-best-practices &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/security-best-practices` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/openai/skills.git
```

Then copy `skills/skills/.curated/security-best-practices` into your agent's skills folder as `security-best-practices`. Agents that support SKILL.md read one folder per skill.

## FAQ

### How do I install Security best practices in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/security-best-practices to use it in all your projects, or to .claude/skills/security-best-practices in one project.

### Does Security best practices run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Security best practices?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Security best practices?

The closest alternatives to Security best practices are Security review, Audit integrity, MCP implementation security review, Threat model analyst and Github actions hardening.

## Alternatives

- [Security review](https://ai-powered.com/skills/security-review): Security review is an open-source agent skill for security.
- [Audit integrity](https://ai-powered.com/skills/audit-integrity): Audit integrity is an open-source agent skill for security.
- [MCP implementation security review](https://ai-powered.com/skills/mcp-implementation-security-review): MCP implementation security review is an open-source agent skill for security.
- [Threat model analyst](https://ai-powered.com/skills/threat-model-analyst): Threat model analyst is an open-source agent skill for security.
- [Github actions hardening](https://ai-powered.com/skills/github-actions-hardening): Github actions hardening is an open-source agent skill for developer tools.
- [Tm7 threat model](https://ai-powered.com/skills/tm7-threat-model): Tm7 threat model is an open-source agent skill for security.
- [Secret scanning](https://ai-powered.com/skills/secret-scanning): Secret scanning is an open-source agent skill for security.
- [Dependabot](https://ai-powered.com/skills/dependabot): Dependabot is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/security-best-practices
