/agents:docs-to-doorstop <input directory>from agents
Turn a directory of docs and specs into a Doorstop requirements tree in ASPICE 4.0 form - the full V-model, SYS.1 to SYS.5, HWE.1 to HWE.4 and SWE.1 to SWE.6 - written in short, simple YAML items with D2, Mermaid or animated SVG diagrams where a picture explains it more simply. Scans the input first and asks every doubt before writing, then proves the tree with Doorstop and a bundled ASPICE checker. Use when the user says convert docs to doorstop, make requirements from these specs, ASPICE requirements, doorstop tree, or runs /docs-to-doorstop.
Ships in agents. 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.
Read a folder of docs and specs. Write a Doorstop tree that follows ASPICE 4.0. Every behaviour the docs describe becomes a requirement.
Separate from Lemmax. Do not use the Lemmax workflow or its files here.
Before step 1, read lessons.md and follow it.
SKILL_DIR below is the directory holding this file. The scripts are in
SKILL_DIR/scripts/.
Read these when a rule here is unclear. Do not guess past them.
develop branch:
.doorstop.yml:
https://github.com/doorstop-dev/doorstop/blob/develop/docs/reference/document.mdThis skill must work on any computer. Before anything else, run:
SKILL_DIR/scripts/deps.sh
It installs nothing. It prints ok or MISSING for each tool, with the
install command for this computer.
git, python3, doorstop, and PyYAML (check.py uses it;
installing Doorstop brings it).d2, mmdc with a headless Chrome, xmllint.When anything is MISSING:
sudo without a yes for that command.deps.sh again. Go on only when every required tool is ok.The scripts are bash. On Windows, run the skill in WSL or Git Bash.
reqs/ next to the input, at <parent of input>/reqs/.reqs/SYS1/.doorstop.yml exists, load the tree. This is an update run
(see step 6).Before writing anything, ask the user every doubt, 4 questions a round, until none are left. Ask in plain words, one decision a question. Doubts include:
trace_exception (step 4).Never guess. Write nothing until the user has answered all of them.
Create the tree with the bundled script. Never create documents by hand.
SKILL_DIR/scripts/create_tree.sh <parent of input>/reqs
It makes 15 documents, each with --sep - and the default fields, and runs
git init when reqs/ is not already inside a git repo (Doorstop needs one).
It stops with an error if a tree exists there or if the repo already has a
Doorstop tree elsewhere (Doorstop allows one root per repo). On that error,
ask the user. Never delete or move their tree.
The V-model:
SYS1 stakeholder reqs
└ SYS2 system reqs ─────────────────────────── SYS5 system verification
└ SYS3 system architecture ──────────────── SYS4 integration verification
├ HWE1 hardware reqs ───────────────────── HWE4 hw reqs verification
│ └ HWE2 hardware design ───────────────── HWE3 hw design verification
└ SWE1 software reqs ───────────────────── SWE6 sw verification
└ SWE2 software architecture ─────────── SWE5 integration verification
└ SWE3 detailed design and units ───── SWE4 unit verification
| Prefix | ASPICE 4.0 | Kind | Parent document |
|---|---|---|---|
| SYS1 | SYS.1 Requirements Elicitation | requirement | - |
| SYS2 | SYS.2 System Requirements Analysis | requirement | SYS1 |
| SYS3 | SYS.3 System Architectural Design | design | SYS2 |
| SYS4 | SYS.4 System Integration and Integration Verification | test | SYS3 |
| SYS5 | SYS.5 System Verification | test | SYS2 |
| HWE1 | HWE.1 Hardware Requirements Analysis | requirement | SYS3 |
| HWE2 | HWE.2 Hardware Design | design | HWE1 |
| HWE3 | HWE.3 Verification against Hardware Design | test | HWE2 |
| HWE4 | HWE.4 Verification against Hardware Requirements | test | HWE1 |
| SWE1 | SWE.1 Software Requirements Analysis | requirement | SYS3 |
| SWE2 | SWE.2 Software Architectural Design | design | SWE1 |
| SWE3 | SWE.3 Software Detailed Design and Unit Construction | design | SWE2 |
| SWE4 | SWE.4 Software Unit Verification | test | SWE3 |
| SWE5 | SWE.5 Software Component Verification and Integration Verification | test | SWE2 |
| SWE6 | SWE.6 Software Verification | test | SWE1 |
Doorstop facts that shape the work:
doorstop add <PREFIX>, then read the UID it prints. Link
with doorstop link <CHILD> <PARENT>.doorstop edit opens an editor). Fill
fields by editing the YAML file. Keep the keys Doorstop wrote.level: '1.10', or YAML reads
it as 1.1.normative: false and a level ending in .0.
Use headings to group items by function (ASPICE BP2: structure).
A heading has no links. check.py skips it.derived: true. It
still needs a rationale. Ask the user before making one.Every normative item carries these fields:
header: Short name
text: |
The system shall ...
links:
- SYS1-001
status: draft # draft | reviewed | approved
priority: must # must | should | could
rationale: |
Why it is needed, one or two lines.
verification: |
How to show it is met.
source: docs/spec.md#section
Text rules, every level:
text is at most 5 lines. If it is longer, split it into more items. The
limit covers only text. Keep the other fields short too.Requirements (SYS1, SYS2, HWE1, SWE1):
verification holds the verification criteria.Design (SYS3, HWE2, SWE2, SWE3):
allocation, a list from hardware, software and
other, as the user confirmed in step 2. Write the hardware-software
interfaces at SYS3 (ASPICE SWE.1 Note 4).other (mechanics, housing) has no lower level. Its SYS4 test verifies it.Tests (SYS4, SYS5, HWE3, HWE4, SWE4, SWE5, SWE6) are ASPICE verification measures (08-60):
text is the measure: what to do and what to observe.
verification has five labelled lines:
verification: |
Technique: test | measurement | analysis | simulation | review | inspection
Pass: the pass/fail criteria, with numbers.
Entry: what must be ready before it starts.
Exit: when it is done, and when to abort.
Setup: the environment and equipment needed.
Link each test to the item it verifies. Verification results are not in this tree. Say so in the report.
Coverage (checked by check.py):
| Parent | Needs a child in |
|---|---|
| SYS1 | SYS2 |
| SYS2 | SYS3 (waivable), SYS5 |
| SYS3 | SYS4, plus HWE1 if hardware, SWE1 if software |
| HWE1 | HWE2 (waivable), HWE4 |
| HWE2 | HWE3 |
| SWE1 | SWE2 (waivable), SWE6 |
| SWE2 | SWE3 (waivable), SWE5 |
| SWE3 | SWE4 |
"Waivable" means a requirement with trace_exception: <reason> may skip the
design child. ASPICE allows this for requirements that are not properties of
the product, such as process requirements (SYS.2 Note 8, SWE.1 Note 10). The
test child is never waived. Ask the user before adding each one.
Every behaviour in the map from step 1 needs at least one requirement.
Add a diagram only when it explains something more simply than text.
Store it at reqs/<PREFIX>/diagrams/<UID>.<ext>.
Link it from the item with references. The path is relative to the git
root that create_tree.sh printed, not to reqs/. Doorstop then fails if
the file is missing.
references:
- path: SYS3/diagrams/SYS3-003.d2 # git root is reqs/
# - path: reqs/SYS3/diagrams/SYS3-003.d2 # reqs/ inside a bigger repo
type: file
D2 (.d2): structure, architecture, data flow, states. Check with
d2 fmt <file> and d2 <file> <file>.svg.
Mermaid (.mmd): sequences, flows, states. Check with
mmdc -i <file> -o <file>.svg. mmdc needs a headless Chrome. If
deps.sh did not show mmdc as ok, draw the diagram in D2 instead and
tell the user.
Animated SVG (.svg): only for behaviour over time, such as sequences and
state changes, where motion makes the order clear. Use SMIL or CSS
animation, with no scripts. It must have a <title> and be readable when
paused. Check with xmllint --noout <file>. Without xmllint, check with
python3 -c "import sys, xml.dom.minidom as m; m.parse(sys.argv[1])" <file>.
A diagram that fails its check is fixed or removed before finishing.
When the tree exists:
active: false on its item. Never
delete an item. Doorstop then fails on every active item that links to it
(no item with UID), and check.py lists them. For each one, ask the
user: remove that link (if it has another parent), or make it inactive
too. Repeat down the tree until none are left.Run both checks in reqs/. Fix every error and warning, then run them again.
doorstop -W # Doorstop's own validation
SKILL_DIR/scripts/check.py . # ASPICE rules Doorstop does not check
WARNING: <DOC>: no items is allowed only for a whole domain the product
does not have: all SWE documents when no SYS3 element is software, all
HWE documents when none is hardware. Confirm it with the user and list it
in the report. Any other empty document is a gap to fix.-W. Plain doorstop marks every new item as reviewed by
itself (REVIEW_NEW_ITEMS). Review is the user's sign-off, not the
skill's.doorstop review or doorstop clear.- SYS1-001: <hash>). That is
normal. Keep them.check.py checks the fields, the 5-line limit, "shall" wording, the test
labels, allocation, the extra SYS2 links, coverage and dead links. It exits
1 when anything is wrong.Then report:
trace_exception items and their reasons,When: after every run, before ending. Judge this skill, not the requirements.
Signals, from this run only. Up to 5 suggestions, costliest problem first, each saying why it helps next time.
check.py errors that took more than one fix,Every suggestion follows skill_improvement.md. Read it first. Change nothing without a yes.
Where it goes: a rule change in SKILL.md or a script. A narrow lesson (one
tool quirk, one wording fix) in lessons.md as one dated line.
Keep lessons.md short. When a lesson has held for 3 runs, suggest moving it
into SKILL.md. When a lesson is wrong or stale, suggest deleting it.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub raveensrk/agent1 --plugin agents20 skills in this plugin
/all-doneThe last prompt before the user exits a session. Checks this session's work for loose ends - git state, things still running, leftover files, unverified work, dropped requests, the task list, open improvement notes, installed versus source - shows them in a question dialog, fixes the ones picked, offers to save the rest as tasks, then says whether it is safe to exit. Use when the user says all done, wrap up, am I safe to exit, closing check, or runs /all-done./ask-simpleAsk the user clear questions in simple language, as if they are new to the topic, so each one is easy to answer. Use when the user says ask simple questions, assume I am a newbie, keep it simple, explain like I am new, I do not understand your question, I do not know what you mean, idkwym, I do not understand your last response, or runs /ask-simple. Also use whenever a task needs the user's decision and they have asked for plain words. When run also ask about any open decisions remains to be answered. When invoked manually review the previous response and ask questions based on that./detective-antCheck a change against what it was asked to do - a task, an issue or a plan - and find real bugs, each with its cause and a fix plan a worker can build. Never edits code. In normal use it checks the current branch against main and the task text and answers in the session with pass or fail. Run by Ishikari's detective ant it checks a task or a fix and replies in the ant's JSON. Use when the user says check this against the task, does this do what the issue asked, find bugs in my branch, or runs /detective-ant.Other plugins' skills for the same job