Skip to content
Back to skills

Analyze

ASecurity

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.

  • 18 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 2, 2026
ai-agentsbash

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned November 25, 2026

npx -y skills add bendrucker/claude --skill analyze --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Analyze?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Analyze
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bendrucker-analyze/badge)](https://www.skillsdirectory.com/skills/bendrucker-analyze)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Files in this skill

  • SKILL.md6 KB
  • references/linguistics.md11.9 KB
  • references/methodology.md22 KB
  • resources/judge/headings-prompt.md1.1 KB
  • resources/judge/prompt.md5.7 KB
  • resources/queries/correction-candidates.sql2.3 KB
  • resources/queries/corrective-feedback.sql2.1 KB
  • resources/queries/deliverable-prose.sql3.5 KB
  • resources/queries/fts-phrase-audit.sql1.6 KB
  • resources/queries/fts-setup.sql1.2 KB
  • resources/queries/model-summary.sql563 B
  • resources/queries/paste-filter.sql1.5 KB
  • resources/queries/text-export.sql754 B
  • scripts/__snapshots__/report.test.ts.snap79.2 KB
  • scripts/analyze.test.ts6.2 KB
  • scripts/analyze.ts16 KB
  • scripts/data-dir.ts2.2 KB
  • scripts/db.ts3.3 KB
  • scripts/deliverable-audit.test.ts2.2 KB
  • scripts/deliverable-audit.ts3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.