agentleFS
ku5icku5ic/claude-kit/skills/audit-security/SKILL.md

audit-security

Skill2 starsChanged 14 days agoMITView on GitHub

Security review of a tree: the whole repo, a directory, or a file

21 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use audit-quality, audit-accessibility and 8 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • mik2winSkill

    audit-quality

    Scoped architectural quality audit of a module or changeset — classifies each file SOUND / SHORTCUT / HACK against THIS codebase's own architecture, with the architecturally correct alternative, fix effort, and blocking status, then hands back a phased refactor plan. Read-only: it never edits code. TRIGGER when: the user asks whether code is a hack or architecturally sound, wants a quality or architecture audit of a module/directory/changeset, says code "works but feels wrong", asks what the shortcuts in a just-implemented feature cost, or wants a refactor plan for an area before extending it. DO NOT TRIGGER when: the target is a diff and the question is defects (correctness, security, performance) — that is /code-review; the target is the whole repository and the question is where the debt is concentrated — that is /arch-health; the user wants the cleanups applied rather than assessed — that is /refactor; the target is dead code — that is /clean-mvp.

    Also in 4 projects that use this

  • NVIDIASkill

    audit-accessibility

    Unified accessibility auditing workflow across static analysis, runtime testing, ARIA patterns, keyboard navigation, and color contrast. Use this skill whenever the user mentions accessibility, a11y, WCAG, ARIA roles, axe tests, screen readers, focus management, keyboard navigation, color contrast, or wants to audit, verify, or fix accessibility on any component. Also use when writing or debugging .test.axe.ts files, checking tabindex management, or reviewing focus trapping behavior.

    Also in 3 projects that use this

  • latuconsinafrSkill

    audit-deps

    Use when you want to audit project dependencies — scans all lockfiles for CVEs, outdated major versions, and license violations. Run before releases or periodically as a health check.

    Also in 3 projects that use this

  • MicrosoftSkill

    dev

    Development workflows for the playwright-cli repository. Use when the user asks about rolling dependencies, releasing, or other repo maintenance tasks.

    Also in 3 projects that use this

  • AWSSkill

    retro

    Conduct a retrospective on a coding session.

    Also in 4 projects that use this

  • SentrySkill

    onboard

    Onboard a service to sentry-options. Use when integrating a new service, creating schemas, or setting up the multi-repo sentry-options workflow.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 20 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the code that takes outside input: routes, handlers, views, serializers, form and upload handling, and anything that builds SQL, …

    line 31
  2. Distinctive:

    Check each one against the loaded references: injection, XSS, CSRF, session and token handling, CSP and security headers.

    line 32

“Common” is measured: kept by at least 6 in 10 of the 20 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/audit-security

Security review of a tree: the whole repo, a directory, or a file. A diff's security review is the built-in /security-review.

Loading this skill isn't enough. Before the step a row names, read its file.

BeforeRead
Running the secret scans, steps 3 and 4reference/scanners.md
Checking authorization, step 7reference/authorization.md

Run

With no target in the arguments, ask for one first, since the auditor can't ask. Resolve a linked ticket or doc as skills/investigate step 0 describes, then dispatch the auditor agent (subagent_type: kit:auditor, foreground) with this file's procedure and the resolved arguments. It writes the report. Then run the report-format skill's Runtime checks yourself, and reply per skills/kit-rules/reference/output.md section 3.

Procedure

  1. Stack is in the <repo-context> block from the SubagentStart hook.
  2. Load the security-patterns skill. Read its anti-patterns.md and secrets.md, and every other reference its table names for the detected stack.
  3. Secrets in the tree: gitleaks dir --no-banner --redact <target>.
  4. Secrets in history, for a whole-repo target: trufflehog git file://. --no-verification --no-update. Why the flag: reference/scanners.md.
  5. Read the code that takes outside input: routes, handlers, views, serializers, form and upload handling, and anything that builds SQL, shell, HTML, or a URL from it. In a directory, find them with rg for the framework's route and handler markers before reading.
  6. Check each one against the loaded references: injection, XSS, CSRF, session and token handling, CSP and security headers.
  7. Authorization: for each route or handler, name the check that limits who can call it and whose data it returns, per reference/authorization.md. A mutating or per-user endpoint with no such check is a finding.
  8. Dependency CVEs are /deps' job. Name it as the next step instead of scanning.

Not a finding

  • A credential-shaped string the code never uses as one, such as a documented placeholder or a test fixture's dummy key. Name it as info so the user can confirm, never as a leak.
  • Interpolation a framework escapes by default, such as React text or a Django template variable, unless the code turns escaping off (dangerouslySetInnerHTML, |safe, mark_safe).
  • A dependency CVE, which /deps covers.

Output per finding

  • What it is, with file:line
  • Evidence: the tool output line, or the quoted code and the input that reaches it
  • Severity: the security-patterns rubric
  • Fix: the concrete first step

A gitleaks or trufflehog hit is reported redacted, never with the secret.

Output file

Load the report-format skill and use its format. Write to the path kit scratch-dir security <target-slug> prints.

Arguments: $ARGUMENTS

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.