Skip to content

Guide · Agent skill

How to use the Security Audit agent skill (security-audit)

Updated · written with AI from the project's own documentation and checked against our catalogue data

The Security Audit skill is a set of instructions and reference files that teaches an AI agent to review code for security weaknesses in the way a security reviewer would. It is aimed at developers who want a second pair of eyes on a service, API, CLI tool or library, and at security engineers who want a source-first triage and report workflow. This guide explains what the skill changes, how to install it, how to ask for the right kind of help, and what it needs to run safely.

Security Auditcloudflare/security-audit-skill · MIT

Quick start

  1. 1Download the ZIP. Download the ZIP for skills/security-audit from the directory page.
  2. 2Unzip the skill. Unzip the download so the security-audit folder containing SKILL.md is available on your machine.
  3. 3Place it in a skills folder. Move the folder to ~/.claude/skills/ for personal use, or to .claude/skills/ inside a project. You can instead upload it under Settings → Capabilities → Skills in the Claude apps.
  4. 4Check your requirements. Confirm your agent loads SKILL.md skills and that the project's build tools are already installed locally.
  5. 5Ask a natural question. Describe a specific security question or focused review in plain language to start in guidance mode.
  6. 6Request a full audit when needed. Explicitly ask for a full, comprehensive or end-to-end audit, or for report files, to start the six-phase workflow.
  7. 7Review the outputs. Read REPORT.md and FINDINGS-DETAIL.md, and work through NEEDS-VALIDATION.md for facts you must confirm.

What is an agent skill, and what does this one do?

An agent skill is a folder containing a SKILL.md file and supporting reference files. An agent that loads SKILL.md skills, such as Claude Code, reads these instructions when a task matches the skill's description, so it follows a specific method instead of general habits.

Once installed, this skill makes the agent look for weaknesses that cross a real trust boundary, for example one user reaching another user's data. Each finding is explained with source-code evidence, a safe way to reproduce it, a priority, and the smallest sensible fix.

  • Guidance mode (default): answers security questions and runs focused reviews without creating files.
  • Full audit mode: runs a six-phase workflow and writes report files, including a REPORT.md and FINDINGS-DETAIL.md, and may run sandboxed local tests.

How do you install the Security Audit skill?

Download the ZIP for skills/security-audit from the directory page and unzip it. Then place the resulting folder in one of two locations: your user skills folder at ~/.claude/skills/, or a project-specific folder at .claude/skills/ inside the repository you are working in.

You can also upload the skill in the Claude apps under Settings → Capabilities → Skills.

  • Personal install: ~/.claude/skills/ (available across your projects).
  • Project install: .claude/skills/ inside one repository (shared with that project).

How do you trigger the skill with natural requests?

You do not need a special command. Describe the task in plain language. The skill's description covers security questions, focused reviews, vulnerability research, security audits and pen tests, so requests like the ones below will load it.

Be explicit when you want the full workflow. The skill runs the complete audit only for an explicit codebase audit or pen-test request, a full, comprehensive or end-to-end review, or a request for report artifacts. If your request could mean either mode, the skill is designed to ask one focused question before creating any files.

  • Guidance: "Is this JWT validation in our login handler safe?"
  • Focused review: "Review the file upload code in src/uploads for path traversal."
  • Full audit: "Run a full security audit of this repository and write the report files."
  • Pen test: "Perform an explicit pen-test style review of the API service in this repo."

What does a full audit produce?

In full audit mode the agent runs all six phases and writes files to an output directory. By default this is a new run folder under ~/security-audit-skill/<repo-name>/ outside the target repository. The shared run files include run-metadata.json, architecture.md, coverage-ledger.json, findings.json, REPORT.md, FINDINGS-DETAIL.md and NEEDS-VALIDATION.md.

Findings that depend on a deployment, provider, platform or runtime fact that is not available locally are listed as needs-validation rather than confirmed. The skill explains the missing fact and a safe local or owner-side check that would resolve it.

What does the skill need before it runs?

The skill needs an agent that loads SKILL.md skills. For full audit mode that includes sandboxed execution, it also needs a local OS-level sandbox able to enforce no network access, a read-only target, and resource limits before any target code runs. Without that sandbox, the skill only reports needs-validation items and does not execute target code.

It uses whatever build tools the target project already has installed locally. The skill says not to install dependencies, so prepare the project's tooling before you start.

  • Agent that loads SKILL.md files (for example Claude Code).
  • For full audit mode: a local OS-level sandbox with no network, read-only target and resource limits.
  • Build tools already installed locally for the target project. No dependency installation.

What are the safety limits you should know about?

The skill runs scripts, but it does not use the network. Source inspection is read-only. Target-controlled builds, tests and processes only run inside an OS-enforced sandbox with an empty environment, a read-only target, output limited to a scratch folder, and explicit CPU, memory, process, file-size, disk and time limits.

The skill is written to use dummy principals and fixtures, and it explicitly forbids probing deployed endpoints, external services, shared infrastructure or production identities. Those rules guide the agent, but they do not replace your own judgement: do not point it at systems you do not own or have permission to test.

  • Runs scripts: yes. Uses network: no.
  • Does not probe live or production systems.
  • Does not publish artifacts, alter releases, or spend paid API quota.
  • Not a replacement for a professional penetration test or formal security certification; it is limited to the files and sandboxed checks it can run.

What tips help you get useful results?

Start with a focused question about one file, handler or trust boundary. Narrow requests produce more precise evidence than asking for everything at once. Use the full audit only when you want a complete, reportable review, since it writes files and takes longer.

Read the needs-validation list carefully. Those items are not failures of the skill; they are facts that only you or your deployment can confirm.

  • Name the trust boundary you care about, such as tenant isolation or an auth callback.
  • Share the target path so the agent reviews the right code.
  • Treat needs-validation items as a checklist for your own environment.
  • Keep the output folder outside the repository unless you have deliberately chosen otherwise and version control ignores it.

What people use it for

  • Asking whether a specific authentication or session handler has a flaw that lets one user reach another user's data.
  • Running a focused review of one module, such as file uploads or an RPC endpoint, before merging a change.
  • Preparing a structured pre-release security review of a service, API, CLI tool or library.
  • Getting a source-first triage of suspected issues, with evidence, priority and a minimal fix for each.
  • Producing report files for a security engineer or a pen-test preparation effort.

Frequently asked questions

Is the Security Audit agent skill free?

The skill is published under the MIT licence, as stated on its directory page. Check the licence file in the repository for the full terms before reusing it.

How do I install the security-audit skill?

Download the ZIP for skills/security-audit from the directory page and unzip it. Put the folder in ~/.claude/skills/ for personal use or .claude/skills/ inside a project, or upload it in the Claude apps under Settings → Capabilities → Skills.

What do I need to run it?

You need an agent that loads SKILL.md skills, such as Claude Code, plus build tools your target project already has installed locally. Full audit mode also needs a local OS-level sandbox that enforces no network, a read-only target and resource limits.

Does the skill test live websites or production systems?

No. The skill explicitly forbids probing deployed endpoints, external services, shared infrastructure or production identities. It is designed for source review and bounded local fixtures.

What is the difference between guidance mode and full audit mode?

Guidance mode answers questions and runs focused reviews without writing files. Full audit mode runs all six phases and writes report files, and it starts only when you explicitly ask for a full audit, pen test, end-to-end review or report artifacts.

Can it replace a professional penetration test?

No. It is limited to the files it can read and the sandboxed checks it can run, so it is a complement to a professional pen test, not a substitute for one or for a formal security certification.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

Use this skill if you are a developer who wants a careful second review of a service, API, CLI tool or library, or a security engineer who wants a structured, source-first workflow. Pick something else if you need a formal penetration test or certification, or if you want to test live or production systems, which this skill is designed not to do.

Download the skill