agentleFS
AL-JANEFAL-JANEF/janef-forge/skills/security/security-audit/SKILL.md

security-audit

Skill1 starsChanged 54 days agoMITView on GitHub

Audit-grade multi-layer security pass: Semgrep SAST, Gitleaks secret scanning, and dependency audit as deterministic ground truth, then specialist review, variant analysis, fix verification, timing review, and an honest coverage verdict naming what was and was not covered. Use for "full security pass", security audit, pre-launch review, or any serious security assessment. Defensive only.

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

6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 172 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Variant analysis: Every confirmed finding triggers a sweep for the same pattern elsewhere (variant-hunt).

    line 22
  2. Distinctive:

    Fix verification: After any fix, prove it closes the issue and introduces no new one.

    line 23
  3. Distinctive:

    Honest coverage: Never report "secure" unqualified.

    line 24
  4. Distinctive:

    If a tool is not installed, record that layer as NOT RUN with its install one-liner.

    line 36
  5. Distinctive:

    Layer 4 — reconcile and verdict: read every scanner finding and confirm or dismiss it with justification.

    line 42
  6. Distinctive:

    Every finding carries evidence.

    line 70

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

Operate at the level of a senior application security auditor: run real tools, apply professional audit methodology, cross-check findings, and report an honest verdict about what was and was not covered.

One model reading code once is never enough. Assurance comes from independent layers that catch what the others miss, methodology that turns one finding into all its siblings, and verification that a fix actually fixed it.

Operating principles

  1. Layers, not a single read. Automated static analysis + secret and dependency scanning + expert reasoning. Each finds a class the others cannot.
  2. Variant analysis. Every confirmed finding triggers a sweep for the same pattern elsewhere (variant-hunt). One injection is never one; it is a habit.
  3. Fix verification. After any fix, prove it closes the issue and introduces no new one. A fix is a change and gets reviewed like one.
  4. Honest coverage. Never report "secure" unqualified. State which layers ran, what agreed, and what this pass structurally cannot cover (runtime/DAST, load, timing under real conditions, human pentest).
  5. Defensive only. Describe impact to justify a fix; never produce a working exploit.

Procedure

Exact commands, install one-liners, output parsing, and false-positive handling are in references/orchestration.md. Variant analysis, fix verification, and timing review are in references/audit-methodology.md.

Layer 1 — automated scanners (run first, capture output):

  • semgrep scan --config auto --error --json for SAST
  • gitleaks detect -v (history) and gitleaks detect --no-git -v (working tree)
  • dependency audit for the stack (npm audit / pnpm audit / pip-audit / cargo audit)

If a tool is not installed, record that layer as NOT RUN with its install one-liner. Never imply coverage you did not achieve.

Layer 2 — specialist review, in order, loading each only when reached: threat-model → secrets-guard → auth-hardening → vuln-audit → security-logging. This layer reasons about what scanners cannot: business logic, authorization and tenant boundaries, design flaws.

Layer 3 — audit methodology: variant analysis on every confirmed finding; timing/constant-time review of every auth comparison, token check, and crypto path; fix verification for anything fixed in the session.

Layer 4 — reconcile and verdict: read every scanner finding and confirm or dismiss it with justification; elevate anything two layers agree on; state coverage honestly.

Output

## Security pass: <target>

### Layers run
- Semgrep SAST:      <ran/NOT RUN>  <N findings>
- Gitleaks secrets:  <ran/NOT RUN>  <N>
- Dependency audit:  <ran/NOT RUN>  <N>
- Specialist review: <capabilities applied>
- Variant analysis:  <performed on: which findings>
- Fix verification:  <verified: which fixes>

### Critical    (exploitable now / secret exposed)
- [layer|capability] <finding> @ <loc> — <impact> → <fix>   (evidence: <tool line/test>)
  - variants found: <locations, or "none (searched via rg + semgrep rule <id>)">
### High
### Medium / Hardening
### Verified good

### Confidence & coverage
- Confirmed by 2+ layers: <list>
- NOT covered: runtime/DAST, load/perf, human pentest, <...>
- Honest verdict: <what "clean" here does and does not mean>

Every finding carries evidence. Every scanner dismissal carries a justification. Every fix carries its verification.

The honesty gate

The strongest honest clean result is: "All layers ran and agree: no findings at their coverage. This does NOT cover runtime attacks, load behavior, or human penetration testing; for a high-stakes launch a human pentest remains required." Overclaiming safety is itself a security failure: it makes the team stop looking.

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.