LLM Wiki — Status
Confirm every piece of Layer 4 orchestration is wired and fires. Leave the vault exactly as you found it.
This skill answers the question: "If I ran the pipeline right now, which hooks would fire and which would silently skip?"
When to invoke
- Immediately after installing the plugin — verify the install.
- After editing hooks or scripts — verify the edit.
- When the user suspects a hook is not firing (e.g., frontmatter violations slip through).
- Periodically, as a smoke test.
Reading contract
hooks/hooks.json— the hook wiring manifest.- Every script referenced from
hooks/hooks.json— confirm executable, valid shell, returns expected exit codes for synthetic inputs. vault/CLAUDE.md— the schema, to construct valid and invalid test payloads.- The user's project tree — only to determine the vault path; never its contents.
Writing contract
Zero writes to vault/. Specifically:
- No log append (this skill is a diagnostic; logging health checks clutters the log).
- No scratch files under
vault/. - Transient test payloads may be constructed in a tempdir outside
vault/(e.g.,$TMPDIR) and must be removed before the skill returns.
The skill enforces its own non-mutation invariant: compare git status vault/ (or a checksum of vault/) before and after; any diff is a skill
bug and must be surfaced as a FAIL.
Workflow
Run these checks in order. Each produces one line in the report.
- Dependency check.
jq,bash >= 3.2, every hook script readable and executable. SessionStartpreamble. Synthesize a session open; confirm the schema-reminder preamble is printed.PreToolUsefrontmatter gate. Attempt a synthetic Write with malformed frontmatter; confirm exit code 2.PreToolUseraw-immutability gate. Attempt a synthetic Write undervault/raw/; confirm exit code 2.PreToolUsewikilink gate. Attempt a synthetic Write that uses a markdown link where a wikilink is required; confirm exit code 2.PreToolUseattachment gate. Attempt a synthetic source-page Write with a missingattachment_path; confirm exit code 2.PostToolUsereminder. Perform a read-only synthesis of a wiki write; confirm the index-reminder message appears.SubagentStopingest gate. Simulate the completion of an ingest agent; confirmverify-ingest.shruns.SubagentStoplint gate. Simulate the completion of a lint-fix agent; confirm the lint gate runs.- Schema read. Confirm
vault/CLAUDE.mdparses as YAML frontmatter- markdown,
schema_versionis an integer, and the plugin supports it.
- markdown,
Report format
STATUS — <YYYY-MM-DD> — vault: <path>
[ OK ] dependency check
[ OK ] SessionStart preamble
[ FAIL ] PreToolUse frontmatter gate — <reason>
...
Summary: <N passed> / <N total>. No wiki writes.
Exit codes:
0— every lineOK.1— any FAIL.2— skill self-invariant violated (vault was mutated).
Completion signal
On full pass:
READY: all <N> hook paths green. Vault unchanged.
On any failure:
FAILED: <N>/<M> hook paths failing. See report above.