agentleFS
TomSzenessyTomSzenessy/AI_TEMPLATE/.agents/skills/security-audit/SKILL.md

security-audit

Skill0 starsChanged 9 days agoMITView on GitHub

Security guidance and vulnerability review for codebases, APIs, services, CLIs, libraries, and daemons. Use for security questions, focused reviews, or vulnerability research. Run the full workflow only for an explicit codebase audit, pen-test, or comprehensive review, or when report artifacts are requested.

192 other projects use a version of this, 27 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use create-stories, story-done and 10 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.
  • lilangMaxSkill

    create-stories

    Break a single epic into implementable story files. Reads the epic, its GDD, governing ADRs, and control manifest. Each story embeds its GDD requirement TR-ID, ADR guidance, acceptance criteria, story type, and test evidence path. Run after /create-epics for each epic.

    Also in 11 projects that use this

  • lilangMaxSkill

    story-done

    End-of-story completion review. Reads the story file, verifies each acceptance criterion against the implementation, checks for GDD/ADR deviations, prompts code review, updates story status to Complete, and surfaces the next ready story from the sprint.

    Also in 11 projects that use this

  • nicepkgSkill

    community-led-growth

    Expert in community-led growth (CLG) - leveraging user communities to drive acquisition, retention, and expansion. Covers building developer communities, user groups, ambassador programs, and turning customers into advocates. Knows the difference between community as a feature vs community as a growth engine, and how to measure community ROI. Use when "community-led, CLG, ambassador program, champion program, user community, developer community, word of mouth, user group, " mentioned.

    Also in 5 projects that use this

  • nicepkgSkill

    ph-community-outreach

    Engage Reddit, Indie Hackers, Hacker News and other communities for Product Hunt launches. Use this skill to identify relevant communities, craft appropriate posts, and drive cross-platform engagement without appearing spammy.

    Also in 5 projects that use this

  • +7 more from lilangMax
  • +1 more from nicepkg

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 173 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Full audit mode: use all six phases and write the report files only when the user explicitly asks to audit or pen-test a codebase, asks for …

    line 27
  2. Distinctive:

    If the request could mean either mode, ask one focused question first.

    line 31
  3. Distinctive:

    Do not install dependencies or let builds fetch them.

    line 45
  4. Distinctive:

    Never expose a retained output directory, another agent's directory, the host home, credentials, sockets, or shared services to target code.

    line 52
  5. Very specific:

    Priority is not certainty: Only confirmed records receive severity, and severity cannot exceed demonstrated impact.

    line 92
  6. Very specific:

    Structured output: write confirmed, needs_validation, and rejected records to findings.json.

    line 114
  7. Very specific:

    Stop only when all Phase 6 artifacts are written and both validators pass, or when run_status: "incomplete" records the exact reason and …

    line 124
  8. Very specific:

    Read PLANNING.md first for setup, coverage, profiles, severity anchors, and budget.

    line 130

“Common” is measured: kept by at least 6 in 10 of the 173 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

Security audit

Find vulnerabilities that violate a real trust boundary, then give owners the source evidence, safe reproduction, priority, and the smallest effective fix. A candidate without a concrete affected principal, resource, or security outcome is not confirmed.

Condensed from Cloudflare's security-audit skill (MIT). Companions, schema, and validators are vendored unchanged; see ATTRIBUTION.md.

Operating modes

Guidance is the default; loading this skill does not authorize the full workflow or file creation.

  • Guidance mode: for a security question, focused review, methodology, triage, or one finding, use only the relevant parts. Do not run all six phases, create an output directory, or write audit artifacts. Focused agents may run and return results to the current task.
  • Full audit mode: use all six phases and write the report files only when the user explicitly asks to audit or pen-test a codebase, asks for a full, comprehensive, or end-to-end review, or requests report artifacts.

If the request could mean either mode, ask one focused question first. Parent coordinates and owns shared state; Task tool is the platform's delegation mechanism; a research agent verifies source facts and a general agent investigates broadly with bounded local execution.

Universal execution safety

Source inspection is read-only. Run target-controlled builds, tests, processes, browsers, emulators, fuzzers, and fixtures only in an OS-enforced sandbox with: no external network (isolated loopback only); an empty, allowlisted environment with scratch-local HOME, temp and caches; a read-only target and toolchain with writes confined to assigned scratch/; and explicit low CPU, memory, process, file-size, disk, and wall-clock limits.

Do not install dependencies or let builds fetch them. Use dummy principals, fixtures, and secrets. Never probe deployed endpoints, shared infrastructure, production identities, other users' data, or live control planes; never test availability against a live service, publish artifacts, alter releases, spend paid quota, or exceed the minimum effect needed to establish a defect. If every control cannot be enforced, do not execute target code: report the missing sandbox capability as a needs-validation blocker with a safe validation plan. Never expose a retained output directory, another agent's directory, the host home, credentials, sockets, or shared services to target code.

Setup, planning, and budget

A full audit resolves the skill directory, target repository root, stable repo name, source ref, and an output directory outside the target (default ~/security-audit-skill/<repo-name>/run-<N>). The parent alone writes the run metadata, architecture map, coverage ledger, findings, and report; hunters and verifiers work in isolated agents/<id>/scratch/ directories. Read PLANNING.md before starting for the write-isolation procedure, coverage and prior-run rules, profiles (quick, standard, deep), and the strict agent-invocation budget. The identical promotion block is repeated in HUNTING.md and VALIDATION-AND-REPORTING.md. An unfunded minimum, or a scoped/quick run, is recorded as incomplete or partial rather than reported as full coverage.

Core principles

Boundary and result. For every candidate, name the lower-trust principal, accepted input or action, intended control, crossed boundary, affected principal or resource, and a concrete observed or owner-observable result. Do not elevate a missing best practice, guessed deployment behavior, generic parser crash, or self-impact into a finding.

Bounded local evidence. Static analysis establishes the source path; sandboxed local tests resolve behavior when all controls are available: a minimal function harness, existing unit test, small parser fixture, dummy-tenant integration test, locally rendered configuration, or bounded isolated-loopback client. Stop at a wrong return value, unauthorized dummy record, sanitizer finding, policy difference, or other minimum effect. Do not produce persistence, post-fault, or concealment material.

Source visibility. Deployment controls, proxy behavior, provider settings, browser headers, identity policy, broker ACLs, packaging, and topology are real controls. If required and absent from the repository, do not assume presence or absence: use needs_validation with the exact missing fact and a safe owner-observed or local plan.

Priority is not certainty. Only confirmed records receive severity, and severity cannot exceed demonstrated impact. needs_validation is a specific source-grounded hypothesis blocked on a fact, not a low-confidence confirmed vulnerability; it has no severity. The severity anchors and the high/medium discriminator are in PLANNING.md.

Smallest fix. Name the invariant the code must enforce and the narrowest source change at the last trusted decision point. Prefer repository-relative changes and regression tests over generic hardening. The audit describes fixes; it does not modify target source.

Workflow

  1. Reconnaissance: map source, trust boundaries, local build paths, companions, prior evidence, and the deterministic ledger (RECONNAISSANCE.md).
  2. Coverage-led hunting: assign isolated hunters from the ledger and collect structured candidates (HUNTING.md, ATTACK-CLASSES.md, and companions).
  3. Candidate validation: consolidate fingerprints and give every candidate to a fresh source verifier (VALIDATION-AND-REPORTING.md).
  4. Structured output: write confirmed, needs_validation, and rejected records to findings.json; validate with report-schema.json and node validate-findings.cjs; validate coverage with node validate-coverage-ledger.cjs.
  5. Independent record verification: fresh agents verify final source claims and reconcile corrections or state changes.
  6. Target-neutral report: derive REPORT.md, FINDINGS-DETAIL.md, and NEEDS-VALIDATION.md from final records, with no live-probe instructions.

Stop only when all Phase 6 artifacts are written and both validators pass, or when run_status: "incomplete" records the exact reason and the report discloses the gap.

Companion files

Read PLANNING.md first for setup, coverage, profiles, severity anchors, and budget. The phase companions (RECONNAISSANCE.md, HUNTING.md, ATTACK-CLASSES.md, VALIDATION-AND-REPORTING.md), the ten domain .md files, report-schema.json, and the two validators sit beside this file; each phase names the one it needs.

Anti-patterns

Checklist deviations as vulnerabilities; defense-in-depth advice with no reachable boundary violation; live or shared-environment testing where bounded local evidence suffices; guessing provider, proxy, browser, identity, or deployment behavior not in source; treating intended same-principal authority or self-impact as a cross-boundary result; reporting a parser or runtime effect stronger than observed; prose-only hunter results that cannot be deduplicated or verified; re-reporting carried same-source confirmed records or using them as hunt exemplars; assigning severity to needs_validation; writing the report before independent verification or letting prose and JSON disagree.

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.