Deterministic pass/fail check of a guidance dir: area.topic ids unique, each topic file listed once and present, no frontmatter, no position in two files, files within 200 lines. Use when asked to check guidance or validate a guidance index before a pull request. Loading guidance: /engineering-guidance:load.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Check?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/melodic-software-check-1d408a43)
---
description: "Deterministic pass/fail check of a guidance dir: area.topic ids unique, each topic file listed once and present, no frontmatter, no position in two files, files within 200 lines. Use when asked to check guidance or validate a guidance index before a pull request. Loading guidance: /engineering-guidance:load."
argument-hint: "[<guidance dir>]"
user-invocable: true
disable-model-invocation: false
metadata:
workflow-stage: review
summary: Check a guidance dir's index and topic files
---
# Check
Run the check script over a guidance dir and report what it prints:
```bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/check.mjs" [<guidance dir>]
```
With no argument it reads `guidance_dir` from `docs/conventions/standards.yaml` at the git top
level (the current directory outside a repository). `--help` lists the rules' output shape and exit codes.
- Exit 0: clean; stderr names the id and file counts.
- Exit 1: each stdout line is one finding, `<file>:<line>: <rule>: <message>`. Report them as
printed, grouped by rule. Fix one only when asked.
- Exit 2: the dir or its `README.md` index could not be found or read, or the standards reader
failed to run; stderr says which. Report it; it is not a finding.
If the run is refused, report the refusal and stop; never reshape the command and retry.
Which index lines and rows load is the standards reader's rule, not this script's: check runs the
bundled reader over a copy of the dir and reports each line or row it drops, or its reason for
refusing the whole index, as a `reader` finding in the reader's words. Its own rules then run over
the rows the reader keeps and the topic files, from the topic-file shape the
[Guidance layer](../../reference/standards-contract.md#guidance-layer) and its index follow:
| Rule | Fails when |
|---|---|
| `reader` | the standards reader drops an index line or row, or finds no usable index |
| `id-shape` | a `Surface` is not `area.topic`, each part lowercase kebab-case |
| `duplicate-id` | an id is on two rows |
| `file-listed-twice` | two rows name one file |
| `missing-file` | a row names a file that does not exist |
| `file-unlisted` | a topic file no row names |
| `frontmatter` | a topic file starts with `---` |
| `too-long` | a topic file has more than 200 lines |
| `position-in-two-files` | one position (a list item, compared without case, spacing or a final period) is in two files |
## Next
`/engineering-guidance:add`, to place a new position once the dir is clean.
## Gotchas
- A position wrapped over several lines is compared by its first line only, so two positions
that share a first line and differ after the wrap are reported as one held in two files.