strata-blueprints

Verify a Strata Blueprints document

The lint script checks the structure of Strata Blueprints documents mechanically. It flags structural problems and counts cells marked Not supplied:.

Run the lint

To check a single document:

node skills/strata-blueprints/scripts/strata-blueprints-lint.mjs path/to/document.md

To check a stack written as separate files in a folder:

node skills/strata-blueprints/scripts/strata-blueprints-lint.mjs path/to/stack-folder

For a folder, the lint reads sbp-vision.md, sbp-structure.md and every sbp-detail-*.md in it as one stack, ignores every other file, and reports each warning with its file and line.

Output

The script produces three kinds of output:

Warnings

WARN <check>: <message> (line N) flags a structural problem the script can decide. The checks are:

Info line

INFO not-supplied: N means N cells are marked Not supplied: and are ready to be asked for.

Exit codes

Warnings are advisory; exit code 0 indicates the script ran successfully.

Use –strict

Exit with code 1 if any warnings are found:

node skills/strata-blueprints/scripts/strata-blueprints-lint.mjs path/to/document.md --strict

Use this in a gate to fail a build when warnings are present.

Use –impact

To list every element that a change reaches, give the id of the element that changed:

node skills/strata-blueprints/scripts/strata-blueprints-lint.mjs --impact D1 path/to/document.md

The output is a tree of every element that cites the id, directly or through other elements, with its depth, place, layer, topic and first words. Exit codes: