/forge:fg-securityfrom forge
Runs a multi-phase security audit (recon, attack-class hunting, validation) on a codebase. Findings past a severity gate become fix-forward backlog plans. Artefacts stay outside the repo.
Ships in forge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This is not a stage of the forge loop. It is an on-demand utility (like fg-map / fg-adversarial-review) that audits a whole codebase for exploitable vulnerabilities and feeds what matters back into the loop as ordinary backlog work.
The methodology is not forge's. It is cloudflare/security-audit-skill, vendored here under MIT (see LICENSE): a six-phase, multi-agent audit with attack-class playbooks, independent verification, and a machine-readable findings schema. Read AUDIT.md and follow it — that file is the audit's single definition and this skill never restates or forks it (the same file-reference convention as ../fg-config/ECO.md and ../fg-showme/VISUAL.md). Do not edit AUDIT.md or its eleven sibling files: they are kept byte-for-byte with upstream so a future diff stays cheap, and forge's own glue lives here instead. Rationale: .forge/adr/260820-215004-fg-security-vendored-audit.md.
What forge adds is exactly three things — everything else is upstream's:
Language: This skill file is authored in English, but you MUST write every message shown to the user — questions, findings summaries, status/next-step lines, and handoff text — in the user's language (detect it from the user's own messages), never mirroring this file's English. AUDIT.md's procedure is followed as written; its output to the user is rendered in the user's language, and any backlog plan this skill produces is written in the user's language.
Explaining forge: forge's vocabulary is not the user's — verified: failed, unsealed tail, a pillar or gate name means nothing unread. Always, never gated on eco: gloss a forge-specific term on first use in a message (a few words, not a paragraph), put the purpose before the mechanism, and lead with the answer, closing on what it means for the user. A gloss is not filler — with eco on, ECO.md's terse rules govern form (length, padding) while these govern vocabulary, so terseness never deletes a gloss.
Evidence and candor: every claim you make about code, state, or results — in a message or in a document you write (plan, run notes, retro, ADR) — carries its evidence in the same sentence (a file:line, a command and its output) or a label: Measured (you checked it this session), Inferred (reasoned from what you checked), Guess (a prediction or an unseen cause), rendered in the user's language. A label is not a license to skip a check — if a cheap check would settle it, run it; never hand the user a check you could run. Agreement is not the default: when asked whether to do something, invited to add scope, or shown an approach, give your real judgment first — the strongest objection, and "don't do it" when that is true. Change a recommendation only for a new fact or argument, never for repetition; the decision stays the user's — state the objection once, then follow their call without re-arguing or silently deviating. Output a deterministic script printed is already measured and needs no label.
Host contract: the attack-class hunting phase fans out in parallel, so it needs the host's spawn_parallel capability. Read ../../core/HOST.md and ../../core/EXECUTION.md, then check ../../hosts/<host>/capabilities.json. When spawn_parallel is false or the host is unknown, run the attack-class playbooks serially — this is exactly what the vendored AUDIT.md already instructs ("use the platform's equivalent capabilities while preserving the specified roles, parallelism, prompts"), and the severity gate, the out-of-repo artefact location, and the always-skip-in-unattended rule do not change with the host.
Not a gate. Like fg-adversarial-review (ADR-0018), this never blocks a seal: the seal gates stay verified: and the retro. An audit is something you choose to run.
Do not override AUDIT.md's output-directory step. Use upstream's default: ~/security-audit-skill/<repo-name>/run-<N>/. Everything upstream names goes there unchanged — architecture.md, REPORT.md, FINDINGS-DETAIL.md, findings.json — and its multi-run behaviour is preserved (read prior runs' findings.json to skip known findings and target gaps).
The reason is the whole point of this skill, so do not "improve" it back into the repo. An audit report is a list of exploitable vulnerabilities. A path inside the repo can never be made safe by construction — it is safe only if a .gitignore rule excludes it, and forge never edits the user's own .gitignore (the one exception is a self-ignoring .gitignore forge writes inside its own state directory, .forge/showme/ — see ADR 260820-215004, amended 2026-09-02; even that is a weaker guarantee than having no path at all, which is why this skill does not use it). An earlier version of this skill wrote to .forge/security/ and asserted "no .gitignore change is needed"; that was true only in forge's own repo, and false in exactly the repos this skill is for (ADR 260820-215004, amended 2026-08-20). A path outside the repo has no commit path at all.
Two traps that produced that mistake — both worth naming so they are not repeated:
!.forge/codebase/, !.forge/config.json) are global and tracked. Reading the two as one concept is what turned a conditional assumption into an unconditional guarantee..gitignore tracks a non-default branch's forge root whole (!.forge/branch/), so anything under the branch-aware root is committed on a branch regardless.The accepted cost, stated plainly: artefacts live outside the repo, so they do not travel with a clone and a teammate cannot read them — and being in a home directory, they are easy to forget. Mitigate the second by always naming the exact run path in the handoff, never just "the report". This is the same trade upstream already made; forge does not second-guess it.
Upstream produces severity-ranked findings. Present them, then convert only past this gate, and only with the human's approval (never automatically — ADR-0018's discipline):
| Severity | What happens |
|---|---|
| CRITICAL · HIGH | Offer a backlog plan each — grouped when several share one code path or one fix |
| MEDIUM | Offer, but recommend grouping by file / data flow |
| LOW · INFO | Stays in the report only — no plan |
This is the same promotion bar forge applies everywhere (retro promotion, the ADR three-condition gate, CONTEXT.md terms): promote everything and the things that matter get buried. It is also what keeps a real audit — 5 to 20 findings — from flooding the backlog and making the one-active-slot discipline meaningless.
Each approved plan is an ordinary backlog plan per ../fg-run/PLAN-FORMAT.md, carrying:
<!-- generated-by: fg-security --> for provenance (same shape as generated-by: fg-adversarial-review),<!-- eval: … --> marker that names the regression-check slice or the exemption reason (PLAN-FORMAT.md; checked by forge-plan-lint) — usually none, because an exploit reproduction must not be committed,<!-- task: N --> (scan backlog/, the active slot, executed/, done/; ADR-0005),verified: (ADR-0009) instead of a vague "looks fixed". A generated plan is bound by PLAN-FORMAT.md's fix-forward eval rule (ADR 260906-171420) like any other generated-by plan — see ../fg-run/PLAN-FORMAT.md for the rule itself; do not restate it here. The same holds for PLAN-FORMAT.md's fix-forward ADR rule (Related ADRs from the header triage; an ADR conflict is raised at the approval, never written silently). What is specific to this skill is the exemption: a regression test that pins a vulnerability is often the archetypal case of "mechanically checkable but not persistable", because persisting it would commit the reproduction path the paragraph below forbids ever entering the repo. When that is so, the plan carries the one-line reason in its DoD section instead of the check — and note that the "no longer reproduces" DoD above is not itself an eval: it dies with the archive, which is exactly the line the glossary draws.Never copy the exploit into the plan (ADR 260820-215004, amended 2026-08-20). Reference the finding by run and index only — ~/security-audit-skill/<repo>/run-3/ finding 2 — and never inline the data flow, the payload, or the reproduction commands from FINDINGS-DETAIL.md. Once the report itself lives outside the repo, a generated plan is the only in-repo carrier of vulnerability detail left, and on a non-default branch backlog/ is git-tracked whole (!.forge/branch/) — so an inlined repro would be committed while the report it came from is not. Describing the fix ("validate X before Y at file:line") is not an exploit recipe; describing the attack is. The cost is that the plan is no longer self-contained — fg-run's UAT must open the report to know what to re-run — and that is the intended trade: self-containment is convenience, disclosure is irreversible.
Then fg-run picks them up like any other plan. Do not run the fixes here.
fg-next all (ADR-0010) and fg-loop (ADR-0016) never run this audit, the same way they never ask a promotion question at the seal: judging which findings are real and which deserve a fix is human work, and an unattended drive cannot make that call. It is invoked deliberately, by a human.
fg-security
│
▼
follow AUDIT.md (upstream, unedited) — recon → parallel attack-class hunting → validation → report
│ output dir = upstream default ~/security-audit-skill/<repo>/run-<N>/ (OUTSIDE the repo — no commit path exists)
▼
present severity-ranked findings
│
├─ CRITICAL/HIGH ─▶ offer plan(s), grouped by shared fix ──┐
├─ MEDIUM ─▶ offer, recommend grouping ─────────────┤─▶ human approves ─▶ backlog plan(s)
└─ LOW/INFO ─▶ report only, no plan │ (generated-by · monotonic task · DoD = no longer reproduces)
▼
fg-run runs them
Render the handoff table per ../fg-next/HANDOFF.md — the single definition of its shape; never restate that layout here. Statement form, in the user's language, then stop (chaining is fg-next's job — ADR-0015).
Just did is the one-line verdict: how many findings by severity, and the exact run path the report landed in (~/security-audit-skill/<repo>/run-<N>/ — name it in full; a home-directory path is easy to lose). Fill the rest from the first matching case:
Next step = fg-run, to run them; How to start = /forge:fg-run; omit Alternative.Next step = nothing is owed; a new task starts with fg-ask; How to start = /forge:fg-ask; omit Alternative.The findings themselves are list-shaped, so they go below the table as bullets (HANDOFF.md's rule): one line per CRITICAL/HIGH/MEDIUM finding with its severity, location, and whether it became a plan. Never compress them into a cell.
~/security-audit-skill/<repo-name>/run-<N>/ — architecture.md, REPORT.md, FINDINGS-DETAIL.md, findings.json. Outside the repo and outside .forge/, so no .gitignore rule is relied on and no commit path exists (ADR 260820-215004 amended 2026-08-20; the explicit exception to ADR-0001 is recorded there). forge writes nothing into the repo for an audit..forge/backlog/<slug>.md plans (<!-- generated-by: fg-security -->, monotonic task:) — picked up by fg-run.plan.md, run.md, STATUS.md, executed/, or done/. It is not a stage.AUDIT.md or its sibling files.AI-AND-LLM.md (opens in a new tab)ATTACK-CLASSES.md (opens in a new tab)AUDIT.md (opens in a new tab)CLIENT-SIDE.md (opens in a new tab)HUNTING.md (opens in a new tab)LICENSE (opens in a new tab)MEMORY-SAFETY-AND-BINARY.md (opens in a new tab)RECONNAISSANCE.md (opens in a new tab)VALIDATION-AND-REPORTING.md (opens in a new tab)WEB-PROTOCOL-AND-AUTH.md (opens in a new tab)report-schema.json (opens in a new tab)validate-findings.cjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gyuha/forge --plugin forge25 skills in this plugin
/fg-adversarial-reviewOptional adversarial review between fg-run and the seal (fg-done) — a reviewer assumes the result is WRONG and hunts for evidence across six lenses (failure points, hidden assumptions, misread requirements, security/perf/data-loss, unexpected misuse, weak decisions), fanning out as parallel subagents; fix-needed findings become a fix-forward plan on your approval. Outside the loop, never a seal gate, always skipped in fg-next all / fg-loop. Use in contexts like 'adversarial review', '적대적 리뷰', '이 결과 공격적으로 검토', '허점 찾아줘', 'red team this'./fg-agendaA decision queue for foggy work — outside the forge loop. Settles the destination with you, grills breadth-first to surface what must be decided, and keeps it in .forge/agenda.md (destination · decided · open questions · fog · out of scope), resolving one question at a time via fg-ask until the way is clear, then deleting itself. The agent finds the decisions; you answer them. Use in contexts like 'forge agenda', '의제', '결정 대기열', '뭘 결정해야 하는지 정리해줘', '어디서 시작할지 모르겠다'./fg-agentsGenerates a project's domain agents — conversational grilling derives the recurring roles, then writes standard Claude Code subagent cards to .claude/agents/<role>.md (each `description` carrying a "when to use" so fg-run can dispatch a matching role as agentType). Cards load only at session start, so RESTART the session after generating them before fg-run can use them. On-demand utility outside the loop. Use in contexts like 'forge agents', '도메인 에이전트 만들어', '에이전트 팀 구성', 'create project agents', 'domain agents', 'agent roles'.Other plugins' skills for the same job