/adef:forge-stagefrom adef
Guides detection through FORGE lifecycle stages (Observe, Refine, Govern, Evolve) with workspace conventions for artifacts, journal notes, and honest status claims.
Ships in adef. 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.
Guide a detection through the lifecycle stages after Find. Every convention here comes from real sessions where excellent analysis was undermined by placement, duplication, or claims the record didn't back.
analysis/<D-XXXX>/. Never /tmp,
never outside the workspace. Write them there directly — don't draft in
/tmp and copy. The workspace IS the durable memory; /tmp is gone at
reboot (a live Observe session parked its whole methodology there).adef detection <stage> D-XXXX --note "..." (repeatable; re-running a
stage is idempotent and appends the note only). Every artifact you write
gets a note pointing at it — an unreferenced artifact is invisible.adef detection show D-XXXX
says. If gates passed but the record reads status: draft, write "gate
decision: ready — recorded in journal; record status remains draft (no
status CLI yet)". Never declare "production ready" in prose the record
contradicts.adef detection tag-mitre D-X T… [--remove] (validated, INDEX rebuilt).
INDEX: adef reindex — a hand-rolled rebuild produced a wrong index in
a live session. Hand-editing record YAML is allowed only for
origin: authored records where no seam exists (query text, title,
owner) — and then bump updated:, run adef reindex, and keep the
journal frontmatter title in sync if the title changed.Goal: measure what the data actually does. Zero results is a finding, not a failure — it means the detection would never fire, and discovering that now is the stage doing its job.
adef detection observe D-XXXX --note "..." records the transition and the
findings. There is no chain here — Observe is the engineer running queries
against their own data and you interpreting what came back.analysis/<D-XXXX>/. Cover: volume/time distribution, source cardinality,
field population rates, threshold sensitivity (test several values),
top-pattern extraction (allowlist candidates), temporal patterns.adef schema show <source> as evidence, not memory.--note:
tag-mitre --remove old + add new,
adef reindex, sync the journal title). Journal the invalidation
evidence — the dead hypothesis is knowledge.adef detection refine D-XXXX runs the chain once, on the transition,
and all three steps are native by default — Similarity, Overlap, and
Verification execute real ADEF code, not a stub, with no configuration
needed. Overlap and Verification are always deterministic; they take no
mode. Only Similarity has a --similarity-mode.
WrapperUnavailable is no longer the default-path message. It now only
fires when someone has explicitly set an ADEF_WRAPPER_<KEY> override
that fails to import — that IS a real misconfiguration worth flagging,
not designed degradation.--note appends never re-run the chain; --chain re-runs it explicitly
(e.g. to pick up a newly-added candidate, or after wiring an
ADEF_WRAPPER_* override) — on a detection already at refine, the
chain does not re-run and any --similarity-mode is silently dropped
without it. The CLI says so, but check for it.adef detection refine D-XXXX --similarity-mode agent — the mode
to use from an assistant session, since you have context ADEF does not and
your reasoning belongs in the transcript, not a second model call:
adef detection show round trip per candidate needed — that's
the one thing this mode used to force you to do.adef detection show D-XXXX is still the right call for the target's
own full record (stage, MITRE, platform, needs_review) before or after
refining — just not for reading candidate queries anymore.bm25 (the CLI default) and agent both make no network call. llm and
auto (when it resolves to llm) send the target's title, MITRE IDs, and
query (truncated to 500 chars), plus each candidate's id, title, and
snippet, to the Anthropic API — see docs/cli-reference.md / CLAUDE.md
for exactly what that snippet contains before using either from a
sensitive workspace.adef detection search "<concept>" +
adef detection list --tactic/--engine. Name the verdict per neighbor:
duplicate (stop — tune the existing rule instead) vs complementary
(different layer/telemetry — keep both, cross-reference in the journal).adef schema check --detection D-XXXX must be clean;
run the query live in the SIEM if possible and record hit counts.adef detection govern D-XXXX --note "..." records the decision. There is
no gate chain here — Govern is judgment, and the note is the artifact.status field has no CLI
setter yet, so name both facts rather than papering over the gap.adef detection evolve D-XXXX runs a chain on the transition, like Refine:
Health → Tuning → Deprecation. All three are deterministic — there is no
mode flag, because the heuristics just read whatever health was ingested.
Health reports what is stored and what was derived from it; Tuning proposes
threshold/allowlist changes; Deprecation returns keep / tune /
deprecate / insufficient_data.adef ingest weekly-metrics.yml. See the
health-capture skill for the document kinds and shapes.insufficient-data / insufficient_data is not a failure — it means no
numbers were ingested for this detection, or the ones ingested lack the
counts a heuristic needs. Triage in this order, don't re-run hoping:
adef health show D-XXXX — is anything stored for this ID? adef doctor answers it for the whole workspace in one line.fp_ratio needs both false_positive_count and
true_positive_count (the denominator is what was adjudicated —
unlabeled signals are not known false positives); a key is omitted
rather than zeroed when its counts are absent; and only the metrics
kind feeds these heuristics, so a stored performance document is not
the data they were waiting for.adef detection evolve D-XXXX --chain. Without it the stage is
idempotent and only the note is appended — the new numbers are never read.D-XXXX) if any — a
deprecation without a pointer strands the coverage it provided (check
adef coverage for what goes dark)./tmp, or drafting there and copying afterrefine --note to re-run the chain (it doesn't; use --chain)adef detection show after --similarity-mode agent — the refine command already prints every candidate's queryinsufficient-data as a bug or a wrapper problem — it
says the numbers behind a heuristic aren't in the workspace. Diagnose which
(nothing ingested, or ingested without the counts) before prescribingevolve --note to re-run the chain after an ingest (use --chain)mitre: or hand-rolling an INDEX rebuildstatus: draftWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nebulock-inc/agentic-detection-engineering-framework --plugin adef9 skills in this plugin
/catalog-onboardingOnboard a detection-rule repository into the ADEF catalog. Use when the user wants to catalog a rules repo, when `adef catalog` leaves files unrecognized or needs_review, or when a repo contains a custom/in-house rule format ADEF doesn't parse yet. Drafts extraction profiles for unknown formats via the profile-author sub-agent, validates them deterministically, and gets human approval before installing./catalog-syncKeep the ADEF catalog current after the source rules repo changes, using `adef sync`. Use when the user says their rules repo changed and the catalog needs refreshing, asks to reconcile / re-sync / "what's new, modified, or orphaned since we catalogued", wants a CI staleness check, or asks why the catalog disagrees with the repo. Read-only on the source repo; preserves enrichment. For first-time cataloging use catalog-onboarding; for browsing use detection-explorer./coverage-reviewOther plugins' skills for the same job