/superpowers:sdl-authoringfrom superpowers
Use when writing or editing a Scenario Definition Language (.sdl) document for a cyber range — nodes, services, features, infrastructure links and dependencies — or when a range's topology has to be expressed and validated
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 authoring the scenario definition: the machine-readable topology of the range. One document per scenario, YAML, validated by the parser before you hand it on.
sdl/<scenario>.sdl — the scenario's nodes, features and infrastructure.
Find where the project keeps scenario files first; if there is no such
directory, ask before creating one.
name is the only required key. Everything else is optional and may be
absent. Read references/sdl-grammar.md for the section shapes before you
write a field you have not used.
Start from the smallest thing that describes the range and grow it:
name: hospital-ransomware
description: Hospital network under ransomware pressure
nodes:
ehr01:
type: VM
source: ubuntu22
features:
ehr_svc: default
fwsrv:
type: Switch
features:
ehr_svc:
type: service
dependencies: [auth_svc]
auth_svc:
type: configuration
infrastructure:
ehr01:
count: 1
links: [fwsrv]
links is how you say two hosts reach each other;
leaving it out makes every node look stranded.ehr_svc depends on auth_svc,
not the other way round, and never in a cycle.python3 scripts/validate.py sdl/<scenario>.sdl
PASS — the parser accepted it. That means the YAML is well formed and
every reference resolves. It does not mean the scenario is sensible.FAIL — the parser's message, verbatim. It has no line number; read the
field it names and look there. Fix one error at a time — the parser
reports the first failure and stops.UNKNOWN — the parser is not installed. Give your human partner the
install command the message carries (sudo apt install libsdl-parser,
then pip install <sdl-parser repo>/python-package); do not hand-write
YAML and claim it is validated.| Thought | Reality |
|---|---|
| "The parser accepted it, so the scenario is sound" | Syntax and referential closure only. Run datalog-verification for the rest. |
| "I'll add the nodes later, the shape is what matters" | A scenario with no nodes validates and describes nothing. |
| "This field probably exists" | Unknown keys are ignored or rejected. Check the grammar reference. |
| "I'll rename the node, it's clearer" | Inject targets and assessment maps refer to it by name. Rename everywhere or not at all. |
| "I'll put the real hostname in, it's internal" | The SDL outlives the exercise and gets shared. Use invented names. |
A validated SDL goes to datalog-verification with the exercise documents,
then to the development phase. An SDL that validates but fails the
structural rules is not ready: fix the graph, not the rules.
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)./datalog-verificationUse 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/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