/dwsd-md:org-validate [org-folder] (defaults to the current folder)from dwsd-md
Validate a DWSD organization folder — frontmatter, wikilink, DSL-fence, locator, and ladder integrity. Use when asked to validate, check, or lint a DWSD org.
Ships in dwsd-md. 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.
None: SKILL.md is the whole skill.
Spec root — the folder that holds conventions.md, types/, templates/ and
examples/; paths below start there (<spec-root>/…). In Claude Code it is
${CLAUDE_PLUGIN_ROOT}; another host names its own.
Validate the DWSD organization rooted at the folder you are given ($ARGUMENTS in
Claude Code; default: the current working directory). You are the validator — list, search
and read the files; no parser needed. The authoritative type list and contracts are in the
spec (<spec-root>/conventions.md, <spec-root>/types/). This is
read-only — do not modify files; offer fixes only after reporting.
Report findings as file:line — issue, grouped, with a final PASS / FAIL summary:
.md entity has a valid type: and any required
discriminator. Folder placement follows the conceptual type, not the bare type::
type: unit whose unit-type includes work-system → work-systems/; otherwise
→ units/.type: interaction (including interaction-type: meeting) → interactions/.signal → signals/, …).
Flag a visualization missing visualization-type, an agreement missing
agreement-type, or an interaction missing interaction-type. Warn on
type: meeting (→ type: interaction + interaction-type: meeting).type the contract does not
know only inside a model folder (the folders of the entity types, directly under
the org root) — a likely typo. Elsewhere it is a host file: treat it as a note and say
nothing (<spec-root>/conventions.md › Host files). Under 1.0 and 1.1, warn wherever
it stands.<spec-root>/contracts/<major>.<minor>.json) names each type's known keys under
fields. Warn on a value outside a closed set of values, and on a link whose
target is not one of its targets. A key the contract does not list is the author's
own — say nothing.unit-type includes team should have at least one
individual with member-of naming it — note a team without members (its size
would read as zero).unit-type includes work-system must
have a flightlevel (flag if missing). Conversely, warn on a unit that has a
flightlevel but does not list work-system in unit-type — flightlevel no
longer makes a unit a work system, so this is likely an authoring slip.[[Target]] (frontmatter and body) and confirm a
file whose label matches it exists somewhere in the org, by key: cut at |, trim,
NFC(lowercase(NFC(label))) — no ß→ss, no transliteration, never by slug (see
conventions.md › Filename = label = slug). A note (a file without type:) is a valid
target. Report danglers. Flag two files in one org whose labels share a key.```dwsd.flightroute) — only the closed key set title: /
tags: / for: / for-domain: / bands: / triggers: / path: / bound-to: /
notes: / (from format 1.8.0) at-stages:. In at-stages:, warn on a stage that
path: and triggers: do not produce (route.unknown-stage), note a stage named
twice (route.duplicate-stage), warn (route.invalid-at-stages) on an item that is not a
string, on an at or any other unknown key, or on an invalid stage. Tolerated, as in
locators: a stage: prefix and [[X]] in stage; a single string under agreements:
counts as one item, as on a board node. A [[…]] item resolves like any wikilink.
Flag retired forms: a route "…" header or a root route: key (→ title:), the
legacy keys fl-path: (→ path:), fl-triggers: (→ triggers:), fl-bands:
(→ bands:) and a flow: section (→ bound-to:), @-handle references, a deliver edge (→ ..> ()), a bare
flightroute fence tag. A wikilink for: resolves like any wikilink (broken link
otherwise) and should name a flight-item-type file — warn when it names another
type; a plain-text for: is a description and is not checked.
for-domain: (a quoted wikilink or a list of them) must resolve to a work system,
a role or a unit — warn otherwise, including when it names a person
(see conventions.md › Up vs. into the detail). A stage item type is text or a wikilink:
text is never looked up or flagged, even when a file of that name exists; a
wikilink stage resolves like any wikilink (broken link otherwise) and should name a
flight-item-type file — warn when it names another type. (The DSL package
reports the same cases as route.unresolved-item-type-ref and
route.item-type-ref-kind, both warnings: "'[[X]]' is a , not a
flight-item-type — link a flight-item-type or write the stage as plain text".) Flag
an unquoted path / generates: line that contains [[ (YAML reads it as a list).
Warn when one band holds two stages whose names differ only by case or by
link-vs-text ([[Feature]] @ Train and feature @ Train). Every band named in a path:
edge or a trigger's generates: must be declared in bands: (fl ∈ 1..3 or a
numeric span; a pure custom band omits fl — never flag that). Edge sanity: one hop per line; () reached only via ..>; ->
stays inside one band, --> crosses bands (warn otherwise). Flow ⊆ Path: every
bound-to: band is declared in bands:, and every pinned item type lives in that
band per path:; each board: wikilink resolves to a visualization file, and each
pinned locator segment (lane: / col: / …) names a unit present in that board's
YAML.```dwsd.board) — the name key is title: (a root board:
key is retired); flag a hyphenated dwsd-board fence tag (it highlights but does
not render). Note a column's check: as retired from format 1.12.0 (still read as an
inline agreement; write it under agreements:). Inline inside-out agreements: / interactions: keys on a
column/lane/group are valid board content, not references to resolve.```dwsd.change-trail) — the body may be empty; the keys
are around: (a wikilink that must resolve, or self), show: (all | open | recent),
radius: (a whole number or inf), mode: (infer | mixed | declared) and
entries:. Warn on any other key or value; note entries: under infer as
ignored. Each entries: item (<spec-root>/conventions.md › Embedded DSL fences):
name) — type is one of signal, insight, driver,
proposal, organizational-decision-record, agreement; warn on anything else,
naming stage: and odr as earlier forms. Check its other keys as that type's
frontmatter. Warn when its name is also a file's name ("a file of that name
exists"), and on a second item of the same name."[[Name]]", or name: "[[Name]]") — must resolve. Warn on a
frontmatter key on it ("the file defines this").derived-from, observes, …) must match an
inline entry of the same fence; warn otherwise ("did you mean [[Name]]?").delta is add or remove; warn otherwise.around: in the four inferred views (topology, org chart, units, change trail) — a
wikilink that must resolve, or self. focus: is the earlier name: note it as
retired, don't flag it; warn when a fence carries both (around: wins).```dwsd.board id=intake) — optional,
never flag a fence without one. Flag two fences in one file with the same id; warn
when the value is not kebab-case ([a-z0-9][a-z0-9-]*), is quoted, or follows another
attribute. Match a fence by its tag only — text after the tag never hides a fence.interaction-of / agreement-of (and, from format 1.3.0, observes
on a signal or insight) carry a locator
[[Board]]/col:Column::in ([[Board]]#dwsd.board::in for the whole board,
#dwsd.board:<id> when the file holds several, earlier form #BoardName; a bare [[entity]] — a work system, a unit, a person (two persons
make a 1:1) or, from format 1.7.0, a visualization of any kind — for an entity anchor, or
[[Route]]/stage:itemType @ Band::in for a route stage). Confirm the target
file exists (a bare entity anchor that names a plain unit or a person is valid —
never flag it); any col: / lane: / group: / split: segment names a unit present
in that board's YAML — a board locator that lands nowhere is reported with one of three
reasons: document-not-indexed (the board file is not in the org), board-not-found
(no board of that title in the file, or a wrong #BoardName), unit-not-found (the
board exists but has no unit at that path); a stage: segment names an itemType @ Band pair — the token, or a linked stage's
target without brackets, matched exactly — the route's
path: (or a trigger's generates:) actually places in that band.<spec-root>/conventions.md ›
Relationship fields › Which fence, which heading) — after the file, #<tag>:<id-or-title>
names a fence (split at the first colon; the id wins; warn
locator.ambiguous-fence when a title equals another fence's id, and when a short
form — no fence segment, or #<tag> without a value — meets a file holding more than
one fence of that kind). A #anchor without a dot or colon is a heading anchor:
compare it with the GitHub-style anchors of the file's headings (raw heading text
accepted, compared as an anchor); warn when none matches and name the closest
heading, and warn when it hits a numbered repeat (-1, -2), which shifts when
headings are reordered. Note an earlier-form #BoardName / #Route Name that
resolves as a fence title (readable, superseded); report it as board-not-found when it
matches neither a heading nor a fence title.## Interactions (or ## Agreements) table, a
row whose Name is a [[…]] link must resolve to an interaction (or meeting /
agreement) file. Its Outcome and Interaction of (Agreement of) cells should be
empty; if filled, they are a copy — warn when the anchor cell differs from the
file's interaction-of (agreement-of), and note a differing outcome. The file wins;
never merge the two.## Accountabilities, ## Decision Rights,
## Key Responsibilities and ## Mandates are optional; never flag their absence.
A table form has the columns Name | Mandate of. A [[…]] link in Name must
resolve, and should name a type: mandate file (warn otherwise); its Mandate of
cell should be empty — if filled, note it as a copy (the file wins). A
Mandate of locator is checked like any locator, and must be absolute (a mandate's
holder is not a board).mandate files — mandate-of is checked like any locator; delegator must
resolve; for-domain follows the rule below. Note a mandate file no mandate row
names and no for-domain points from — it has no holder.for-domain on any entity names a work system, a role or a unit (a list may
mix them) — all are valid; warn only when it names a person.contributes-to on a role — not defined for roles (only between units and work
systems): warn role.contributes-to-undefined ("use for-domain"). It is not read
as for-domain; a role reaches its domain only through for-domain.role on an individual (the primary role): free text needs no check. A
[[link]] must resolve to a role (warn otherwise); warn
individual.primary-role-not-kept when that role's role-keeper does not name the
person (format 1.6.0).same-as (format 1.10.0) — a list; warn on an entry without system, or
without both id and url, and on a key other than system, id, url, instance,
label, part. A part resolves like a locator inside this file, without the
::before|in|after slot — warn when it lands nowhere (same reasons as a board
locator; a heading anchor is checked as in Fence and heading segments below). Never check that the object over there exists, and never flag the same
object named from two files. Note an earlier form (sources: map, flat
atlassian_id / atlassian_url) as readable but superseded by same-as.<spec-root>/conventions.md › Live Links) — an inline
body link whose title matches ^[a-z][a-z0-9-]{0,31}:\S+$ points out of the org. Never
a wikilink, never a dangler; do not check that the object exists. Note a word that
differs only in spelling from another system word of the org.click targets (format 1.11.0; conventions › Links from a Mermaid node) —
in a flowchart / graph, classDiagram or gantt fence, the last link-form click per node
counts: "[[Label]]" (an optional locator suffix is not checked) or a relative .md
path must resolve, as in Wikilink integrity. Every other target is an ordinary link.automation (format 1.11.0) — for-domain and bound-to as on an ai-agent.
Warn on anything that looks like a token, key or secret in the file.for-domain (a work system) and a board-position interaction-of / agreement-of,
note — not warn — if the anchored board's work system (its visualization-of)
differs from for-domain. Cross-level on purpose is common (an FL2 domain meeting at
an FL1 board); list it so the author can confirm, but it never affects PASS/FAIL.derived-from resolves; trace
signal → insight → driver → proposal → organizational-decision-record → agreement(s)
chains and report breaks. Steps may be skipped: an agreement whose derived-from
names the proposal it was consented from (no ODR in between) is valid, and so is
an ODR without derived-from — report those as informational, not as breaks. A break
is a derived-from that does not resolve, or one that points down the ladder. derived-from is the shared emergence key (any entity may carry
it); reading it in reverse from an ODR yields that decision's bundle of agreements.README.md carries frontmatter with two keys,
type: readme and dwsd-format, a quoted format version ("1.0.0") that a
Format: x.y.z line in <spec-root>/CHANGELOG.md names (<spec-root>/conventions.md ›
Format versions). The dates "2026-10-24" and "2026-10-25" are aliases of 1.0.0;
note them as such. Note a missing or unparseable id, a version no entry names,
and the newer versions (what a raise or a migration would bring; say whether the next
one is a minor or a major). Warn on an unquoted version, and on files that use what
a newer minor than the README's added (the id should have been raised with them). Note a README or a TOUR.md without type: readme
/ type: tour (OKF asks every Markdown file for a type). Warn on any other key in
the README's frontmatter, and on any other type there. readme and tour are never
reported as unknown types, and never counted as entities.unit whose unit-type includes work-system; meetings are
interaction+interaction-type: meeting).What SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/dwsd-formatRead, write, and review DWSD organization entities — the Dynamic Work Systems Design markdown format (entity types, frontmatter contracts, wikilink relationships, the board and flight-route DSLs, and the flat per-type folder layout). Use whenever creating, editing, or reviewing files in a DWSD org folder, or when asked about the DWSD format./explore-example-orgCopy a bundled DWSD example organization into the current working directory so the user can browse it, follow its guided tour, and see the boards render. Use whenever the user asks to see, explore, open, or try an example org (e.g. "show me the Goldcrust bakery", "give me an example organization to look at")./extract-interactionsOther plugins' skills for the same job
npx claudepluginhub worksystems-design/dwsd-markdown --plugin dwsd-md