LifeOSHooks
Installation
SKILL.md
LifeOSHooks
Diagnoses the LifeOS function-hook plugin, the in-process half of the hook system (one hooks module Claude Code's function-hook runtime loads once per interactive session; the command hooks under hooks/ remain the out-of-process half): whether it is armed, why a line or banner did or did not draw, and keeping its types and pure-core copies current. State of record: LIFEOS/FUNCTIONHOOKS/ISA.md (maintainer-side; the ISA does not ship).
Ideal State
- A status answer ("is the plugin loaded and working") says armed or not, on which build, and names its evidence: this session's stamp in
MEMORY/STATE/function-hooks/<session>.json(the command hooks read it to go quiet on the lines the plugin draws),hooks/lib/build.ts, and for a headless check the probe's debug log. A verdict with no evidence fails. - The check holds the plugin to its standing properties: armed in every interactive session on the declared build, and in a headless session (
-p, the SDK, Relay) every hook a passthrough with nothing drawn. - A "why did or didn't this draw" answer names the surface that owns the line (§ References) and the cause it found; a guess is labelled as one.
- After a Claude Code update,
.claude/types/claude-code.d.tswas written by the running build,hooks/lib/build.tsnames that build, and the typecheck and tests pass; the answer names the old and the new build. claude plugin validate <plugin dir>passes; its hooked-events list matches the ISA's closed criteria (/icchecks this).- The pure-core copies under
hooks/lib/equal their sources (tests/parity.test.ts; source tree only, not in the public release payload).
Anti-criteria
- No diagnostic
$.ui.logline is ever added to the live module, not even for one probe run. In any session that loads the edited module (§ Gotchas, reload), every$.ui.logline prints into the principal's transcript: one temporary diagnostic line, printed once per tool call, filled the screen (2026-10-02). Probe in a copy run withclaude --plugin-dir <copy>and--debug-file, or put the diagnostic inpushEvent, which only reaches the events log. - A report never tells the principal a save already reloaded an open session; a check of a change in a live session starts with
/reload-plugins(2026-10-11: a pane removed on disk kept drawing its old text in open sessions until a reload).