/superpowers:datalog-verificationfrom superpowers
Use when verifying a cyber range exercise for integrity against Datalog rules — that every service is hosted, the scenario graph is sound, classifications are respected, and the exercise documents agree with the SDL — before development builds against it
Ships in superpowers. 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; scripts run unread.
You are verifying an exercise, not writing one. Facts go in, rules judge them, and every verdict carries the derivation that produced it.
A traceability table with one row per check:
| Check | Verdict | Evidence |
|---|---|---|
structural/no_orphan_nodes | VIOLATION | ("structural/no_orphan_nodes", "lonely") |
artefact/declared_dependency_present | UNKNOWN | ("…", "nginx_svc") |
Written into the exercise's plan and, in summary, into its design spec's traceability section.
Facts are JSON: {"predicate": [[arg, …], …]}. Two sources, merged:
scripts/facts.py turns a parsed SDL document into
node/2, feature/2, edge/3 and source/2. The parser emits no graph,
so the relation labels are ours: has_feature, has_inject,
has_condition, links, depends_on.If a fact set is missing, the affected checks come back UNKNOWN. That is the correct answer, not a failure — do not invent facts to turn it green.
python3 scripts/verify.py facts.json --rules references/rules
Exit 0 all pass, 1 at least one violation, 2 at least one unknown and
no violation, 3 the run itself failed. Several fact files merge.
Rules live in references/rules/*.dl. A pack declares its invariants with
check("id") and derives violation("id", subject) or
undecidable("id", reason). See references/rules.md for the syntax, the
stratification constraint, and the fact names available.
| Thought | Reality |
|---|---|
| "Every check passes" | Check the fact count first. Vacuous passes are the common failure. |
| "This violation is a rule bug" | Prove it with the derivation, then fix the rule separately. |
| "I'll mark it PASS, it's obviously fine" | UNKNOWN exists precisely so you do not have to guess. |
| "I'll add the missing facts from the design doc's intent" | Intent is not a fact. Extract what the documents say. |
| "The cycle is fine in practice" | A dependency cycle is a violation even when the range boots. |
A table with no VIOLATION and no UNKNOWN goes to the development phase as the scenario's integrity record. Anything else goes back to whoever owns the SDL or the exercise documents, with the evidence column quoted.
references/rules.md (opens in a new tab)references/rules/artefact_integrity.dl (opens in a new tab)references/rules/classification.dl (opens in a new tab)references/rules/scenario_integrity.dl (opens in a new tab)references/rules/structural.dl (opens in a new tab)scripts/datalog.py (opens in a new tab)scripts/facts.py (opens in a new tab)scripts/provisioning.py (opens in a new tab)scripts/verify.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub ncr-no/sdl-superpowers --plugin superpowers18 skills in this plugin
/brainstormingYou MUST use this before any creative work - designing a cyber range exercise or drill, creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation)./diagnosing-superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness./dispatching-parallel-agentsUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies/executing-plansUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available/exercise-designUse when designing a cyber range exercise, drill, tabletop or training event — turning a scenario idea into learning objectives, audience, scope, classification and assessment criteria/finishing-a-development-branchUse when implementation is complete, all tests pass, and you need to decide how to integrate the work