Security best practices
OpenAI's secure-coding guidance for agent-written code.
Installation
$ npx skills add openai/skillsThe CLI's unit is the repository, so this installs everything in openai/skills, not security-best-practices alone. It writes into whichever agent directories it finds — Claude Code, Codex, Cursor, Copilot, Windsurf, Zed.
Summary
OpenAI's secure-coding guidance for agent-written code.
- Reach for it when a second, independently written baseline when you do not want one author's blind spots.
- Sits in Secure — threat modelling, scanning, supply chain, and finding the other five copies of the bug you just found.
- Stack-agnostic — nothing in it assumes a particular language or framework.
- Published by OpenAI, who ship the thing it is about — a stronger claim than a well-regarded engineer having written something good.
- Installing pulls the whole openai/skills repository: this catalogue lists 4 other entries from it, and the repo may hold more.
Where it sits in delivery
SecureThreat modelling, scanning, supply chain, and finding the other five copies of the bug you just found.Everything in Secure →
The skill itself
The full text lives with its publisher and changes when they change it. Read it there rather than here — a mirrored copy of somebody else's procedure goes stale silently, and this page would have no way of telling you.
Related
More in Secure
- Supabase Postgres best practicesSchema, indexing and row-level security as Supabase recommends them.
supabase/agent-skills - CodeQLWriting and running CodeQL queries for dataflow problems a pattern matcher cannot see.
trailofbits/skills - Secure workflow guideHardening CI: pinned actions, scoped tokens, and the injection paths in a pull_request_target trigger.
trailofbits/skills - Security & hardeningInput validation, authn/authz, secrets, dependency risk and logging — the everyday floor rather than a formal audit.
addyosmani/agent-skills - SemgrepRunning Semgrep properly and writing rules that catch a pattern without drowning the repo in findings.
trailofbits/skills - Agentic actions auditorAudits CI workflows that invoke AI agents — where prompt injection becomes a repository write.Agent
trailofbits/skills