/adef:catalog-onboardingfrom adef
Onboards detection-rule repositories into the ADEF catalog by drafting extraction profiles for unknown rule formats, validating them deterministically, and requiring human approval before installation.
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.
You are onboarding a detection-rule repository into ADEF. Your job is to get every rule-shaped file in the repo recognized and correctly extracted — by drafting extraction profiles for formats ADEF doesn't know, never by hand-editing catalog output.
adef commands; do not reimplement the walk, recognition, or
index rebuild yourself.adef doctor in one command: is there a workspace at all, are there records
already, is the INDEX stale, which enrichment is missing. Run it first — it
decides whether you are onboarding (empty catalog → adef catalog) or
re-onboarding a populated one, which is adef sync's job, not this skill's.
Most findings print the next command to run — the fix where one command fixes
it, the triage entry point where the work is yours. A record with no paired
journal prints none — it names the files, because no command fixes that.
If the catalog already has records, the question is whether <rule_root>
is a repo ADEF has already seen — and records being present does not answer
it, because a second, unrelated repo is a normal thing to add. The dry-run in
step 1 answers it without writing anything, so run that, then decide:
adef catalog refuses the run rather than minting duplicate IDs, and --force is
not the answer: it mints them. Hand off to adef sync <rule_root>, whose
whole job is reconciling without losing enrichment.Run adef catalog <rule_root> --dry-run --report json (fall back to plain
--dry-run if --report json is unavailable — see "Before the profile
engine lands"). Summarize for the user:
needs_review (metadata gaps, not format gaps)If everything rule-shaped is supported, skip to step 6.
Group unclaimed (and recognized_unsupported, if the user wants them improved) files by structure: extension, container type (YAML/JSON/TOML/conf/raw), and top-level key set. Files sharing a key set are almost certainly one in-house format. Ignore obvious non-rules (READMEs, CI config, lookup data) — a rule has a query/logic field plus detection metadata; when in doubt, show the user one example and ask.
Present the clusters: one line each — count, example path, top-level keys. Ask the user which clusters to onboard if there are more than two.
For each cluster, launch the profile-author sub-agent. Give it:
docs/creating-extraction-profiles.md)It returns a draft profile YAML, self-reported extraction stats, and a list of uncertainties. Do not read the sample files yourself in bulk — that is exactly the context the sub-agent exists to absorb.
Write the draft to a temp file and lint its structure first — this catches a malformed profile (bad container, missing required map field) in a second, before you spend a full repo walk on it:
adef profile lint <draft.yml>
If lint fails, send the errors straight back to the sub-agent; don't walk the repo with a profile that won't load. Once it lints clean, measure extraction:
adef catalog <rule_root> --dry-run --profile <draft.yml>
Read the per-field extraction rates. Targets: query ≥ 95%, title ≥ 90%, uuid/mitre/data_source — best effort but investigate anything under 50%. If rates miss, send the failures (which files, which fields) back to the sub-agent for revision. At most 3 iterations; after that, show the user what's failing and ask how to proceed rather than looping.
Never grade the profile yourself by eyeballing samples — the engine's numbers are the scoreboard.
Show the user the final profile YAML and its extraction rates, and note that
the profile changes how every future catalog/sync run reads these files. Use
AskUserQuestion: install / edit first / discard. On approval, save to
<workspace>/config/profiles/<name>.yml.
Run adef catalog <rule_root>. Report: total catalogued, counts by
platform and format, needs_review count, and what (if anything) is still
unclaimed. Offer next steps: reviewing needs_review records, or a coverage
look at the freshly catalogued set.
If --report json / --profile are not yet available in the installed
adef version:
--dry-run output plus your own clustering (step 2
still works — it only needs file listings and top-level keys).<workspace>/config/profiles/ anyway — it is
the contract; the engine will consume it when it ships.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
adef, detection-rules, extraction-profiles, catalog-onboarding
npx claudepluginhub nebulock-inc/agentic-detection-engineering-framework --plugin adef9 skills in this plugin
/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-reviewAssess MITRE ATT&CK coverage from the ADEF catalog (read-only) and turn it into a work plan. Use when the user asks how good their detection coverage is, where the gaps or blind spots are, which techniques are single points of failure or ride one log source, what to build or tune next, or wants a shareable MITRE Navigator layer. To find or inspect individual detections, use the detection-explorer skill./detection-authorOther plugins' skills for the same job