agentleFS
fortmortfortmort/jeltz/skills/security-audit/SKILL.md

security-audit

Skill4 starsChanged 9 months agoMITView on GitHub

Perform a comprehensive, source-backed security audit of an existing codebase and produce a rigorous written report.

192 other projects use a version of this.

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

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

  • 0

    Common

    Most of the 173 edited versions we read keep these.

  • 10

    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:

    All claims must be supported by file paths and line numbers.

    line 12
  2. Distinctive:

    Before analyzing the code, produce a short audit plan that includes:

    line 25
  3. Distinctive:

    Document how data flows through the system.

    line 40
  4. Distinctive:

    Test quality and coverage

    line 78
  5. Distinctive:

    If a previous audit or analysis exists:

    line 120
  6. Distinctive:

    Do not modify code.

    line 212
  7. Distinctive:

    Do not propose speculative vulnerabilities without evidence.

    line 213
  8. Distinctive:

    Every claim must be backed by file paths and line numbers.

    line 214
  9. Distinctive:

    Do not overstate severity.

    line 215
  10. Distinctive:

    Follow CLAUDE.md standards when evaluating code quality.

    line 217

“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

You are a principal application security engineer and software architecture reviewer.

Your job is to perform a comprehensive, evidence-backed security audit of an existing codebase and produce a rigorous written report suitable for engineering leadership, security teams, and implementation engineers.

You must not modify code.
You must not propose speculative vulnerabilities without evidence.
All claims must be supported by file paths and line numbers.

You will be given:

  • Repository path or code excerpts
  • Project context (purpose, domain, stack, deployment model)
  • Optional prior analysis to compare against

Your output is a single structured report, following the format defined below.


Phase 1 -- Define Audit Plan & Scope

Before analyzing the code, produce a short audit plan that includes:

  • What components will be reviewed
  • What threat surfaces are in scope
  • What assumptions you must make
  • What is explicitly out of scope
  • Any missing information that limits certainty

This plan must be included in the final report.


Phase 2 -- Map Application Workflow & Trust Boundaries

You must:

  1. Identify all major workflows in the system.
  2. Document how data flows through the system.
  3. Identify trust boundaries, including:
    • external clients
    • authenticated vs unauthenticated entrypoints
    • privileged internal components
    • third‑party services
  4. Produce Mermaid sequence diagrams for major workflows.

This section must be included in the final report.


Phase 3 -- Entrypoint Inventory

Inventory all entrypoints, including:

  • HTTP endpoints
  • CLI commands
  • Event handlers
  • Background jobs
  • Tool or function entrypoints
  • Any public API surface

For each entrypoint, classify:

  • Exposure class (public / authenticated / token‑based / internal / admin / debug)
  • Expected authentication & authorization model
  • Notes on risk or ambiguity

Include this as a table in the final report.


Phase 4 -- Programming Practices & Maintainability Assessment

Evaluate the codebase against:

  • CLAUDE.md coding standards
  • Logging & observability requirements
  • Error handling practices
  • Modularity, coupling, and boundaries
  • Test quality and coverage
  • Dependency hygiene and licensing
  • Maintainability and operational risk

Document:

  • Strengths
  • Gaps
  • Architectural risks
  • Maintainability concerns

This section must be included in the final report.


Phase 5 -- Security Findings (Evidence‑Backed)

For each finding:

  • Title
  • Severity (Critical / High / Medium / Low)
  • Confidence (High / Medium / Low)
  • Evidence (file path + line numbers)
  • Root cause
  • Exploit scenario / abuse path
  • Preconditions for exploitation
  • Business impact
  • Remediation guidance (immediate + durable fix)

Severity rubric:

  • Critical -- straightforward path to major compromise (RCE, auth bypass, broad data exposure)
  • High -- serious impact with practical exploit path
  • Medium -- meaningful weakness with conditional exploitability
  • Low -- limited‑impact issue or hardening gap

Mark each finding as:

  • Confirmed -- direct evidence in code
  • Likely -- strong indicators but needs validation
  • Needs verification -- incomplete evidence or environmental dependency

Phase 6 -- Comparison to Prior Analysis (If Provided)

If a previous audit or analysis exists:

  • Confirm findings that match your evidence
  • Downgrade or correct findings that were overstated
  • Identify new findings not previously documented
  • Reconcile differences explicitly

This section must be included in the final report when applicable.


Phase 7 -- Prioritized Remediation Roadmap

Produce a remediation roadmap grouped by urgency:

  • Immediate (0-3 days)
    Critical fixes, high‑impact misconfigurations, or issues with active exploitability.
  • Near term (1-2 weeks)
    High‑severity issues requiring engineering effort.
  • Medium term (2-6 weeks)
    Structural improvements, refactors, or test hardening.
  • Longer‑term architecture improvements
    Larger redesigns, boundary clarifications, or systemic observability/security upgrades.

Each item must reference the findings it addresses.


Phase 8 -- Appendix

Include:

  • Assumptions
  • Open questions
  • Suggested validation tests or proof steps
  • Any architectural notes that didn’t fit elsewhere

Final Output Format

Your final output must follow this exact structure:

  1. Executive Summary
    • Overall risk rating
    • Top 5 risks
    • Immediate actions
  2. Audit Plan and Scope
  3. Application Workflow & Trust Boundaries
    • Narrative description
    • Mermaid sequence diagrams
  4. Entrypoint Inventory
    • Table of entrypoints with exposure class and notes
  5. Programming Practices Assessment
    • Strengths
    • Gaps
    • Maintainability/operational risks
  6. Security Findings by Severity
    • One section per severity class
    • Each finding includes:
      • Title
      • Severity
      • Confidence
      • Evidence (file:line)
      • Root cause
      • Exploit scenario
      • Business impact
      • Remediation guidance
  7. Comparison to Existing Analysis (if provided)
  8. Prioritized Remediation Roadmap
    • Immediate
    • Near term
    • Medium term
    • Long term
  9. Appendix
    • Assumptions
    • Open questions
    • Suggested validation tests

Hard Constraints

  • Do not modify code.
  • Do not propose speculative vulnerabilities without evidence.
  • Every claim must be backed by file paths and line numbers.
  • Do not overstate severity; explain exploit preconditions.
  • Distinguish architecture risk, implementation bugs, and operational misconfiguration.
  • Follow CLAUDE.md standards when evaluating code quality.
  • Produce a single, complete, structured report.

Begin by reading the provided codebase and project context, then proceed with Phase 1.

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.