Audit the writing hook from its run log: outcomes, latency, per-check fire counts, and whether each alert was acted on. Use when reviewing hook health, judging a Vale check's precision in practice, or deciding which checks to demote or retire.
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 Analyze?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/bendrucker-analyze)
---
name: writing:analyze
description: >-
Audit the writing hook from its run log: outcomes, latency, per-check fire
counts, and whether each alert was acted on. Use when reviewing
hook health, judging a Vale check's precision in practice, or deciding which
checks to demote or retire.
argument-hint: "[--since date] [--json]"
disable-model-invocation: true
allowed-tools:
- Bash
- Read
---
# Writing Analyze
The hook dispatcher (`hooks/lint.ts`) appends one JSONL line per run to `~/.claude/writing-hooks/log.jsonl` (controlled by `WRITING_HOOKS_LOG`, see `resolveLogPath` in `hooks/run-log.ts`). `hook-health.ts` reads it:
```bash
bun ${CLAUDE_SKILL_DIR}/scripts/hook-health.ts
bun ${CLAUDE_SKILL_DIR}/scripts/hook-health.ts --since 2026-07-01 --json
bun ${CLAUDE_SKILL_DIR}/scripts/hook-health.ts --log /path/to/log.jsonl
```
It reads the default log (plus its `.1` rotation) and reports run count, outcomes, a per-source split (file edits against Bash PostToolUse) of rows, injection rate, and acted-on rate, latency percentiles including the silent hot path, and per check its fire count, an acted-on column, and the alerts no whole-file re-lint reached.
The acted-on column pairs each shown alert with the next whole-file re-lint of the same file: a check that re-lint no longer raises was acted on, one it still raises was written past. Every file edit since the PostToolUse move lints the saved file. Older entries count only a `Write` as whole-file. Every shown alert no re-lint reached counts as `unconfirmed`, so the two columns account for all of them. The acted-on column reads `n/a` until pairs close. Recall is not measurable from this log, since a check that never fires leaves no line.
The log stores no prose. Each entry's `session_id` and `tool_use_id` find the tool call in `~/.claude/projects/*/<session_id>.jsonl`, whose input carries the edited text, and re-linting that text with the plugin's `.vale.ini` reproduces the alert. Entries from before `tool_use_id` was logged cannot be located this way.
A check acted on less than half the time over 20 or more pairs reads prose wrong: sample those runs. A silent-run p95 above 200ms means runs spawn Vale more than once or the machine is loaded. Fixes land as level overrides in `.vale.ini` or edits to `styles/Writing/`, and the next audit's log confirms or refutes them.