Skip to content
Back to skills

Ship A Detector

ASecurity

Author a hook or gate detector end to end: the seven defect kinds this repo keeps re-shipping, then the install, test, README, and inventory wiring a detector is not finished without. Trigger before writing or widening anything under engine/hooks/ or a scripts/check_*.py gate — a new PreToolUse/Stop/UserPromptSubmit hook, a new detector inside an existing hook, or a regex change to one that already ships.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 19, 2026
ai-agentsgo

Security analysis

A100/100

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

Scanned September 19, 2026

npx -y skills add EdbertChan/catstack --skill ship-a-detector --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ship A Detector?

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

Security grade badge for Ship A Detector
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/edbertchan-ship-a-detector/badge)](https://www.skillsdirectory.com/skills/edbertchan-ship-a-detector)

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: ship-a-detector
description: >
  Author a hook or gate detector end to end: the seven defect kinds this
  repo keeps re-shipping, then the install, test, README, and inventory
  wiring a detector is not finished without. Trigger before writing or
  widening anything under engine/hooks/ or a scripts/check_*.py gate —
  a new PreToolUse/Stop/UserPromptSubmit hook, a new detector inside an
  existing hook, or a regex change to one that already ships.
---

# ship-a-detector

Use this before writing or widening a detector — a hook under
`engine/hooks/`, or a CI gate under `scripts/check_*.py`. Both decide
"does this input match the bad thing", and both break the same seven ways
here.

## Why this exists

Measured on this repo's own history: 65 of 185 merged PRs touch
`engine/hooks/`, 13 of 28 hooks needed post-ship repair, and 37 PRs did
nothing but repair a shipped detector. `diu-stop` took 8, `pr-schema-gate`
7, `wrong-check-reflect` 6, `scope-lock` 4. `gh-write-verification` hit two
separate known kinds in three days. None of those were
new problems; each was a kind already fixed in another hook.

## The playbook

Open [playbooks/detector-lifecycle.md](playbooks/detector-lifecycle.md)
before any task-specific work and copy the 20-line block under **The
list** into your todolist, verbatim. Each line says what "done" means for
its step. Then work it top to bottom, using the numbered sections below the
block for how. A step that does not apply
stays in the list marked `skip: <reason>` — deleting it is how a kind gets
re-shipped.

The same list covers both jobs. A new hook works every step. A widening of
a shipped detector skips the wiring tail with reasons and still works the
detection steps, because 37 of this repo's repair PRs were repairs of
detection, not of wiring.

## Two rules that outrank the list

- Every numbered step names the PRs that motivated it. If you add a step,
  it names its prior art or says "no known prior art" — a step invented
  from a guess is the thing this repo already tried.
- The list ends by calling the installed `make-pr` skill. `make-pr` opens
  the PR; it does not own the install, README, or inventory steps. Those
  are steps 14–18 here, because that is measurably where this repo breaks:
  10 of 31 hooks have no `docs/ecosystem.md` row, and 8 got theirs in a
  later PR.

Files in this skill

  • SKILL.md2.3 KB
  • playbooks/detector-lifecycle.md20.7 KB
  • tests/fires_example.md946 B
  • tests/stays_silent_example.md629 B
  • tests/test_playbook.py2.4 KB
  • tests/test_prose_carries_no_incident_history.py575 B

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.

Comments

Loading comments…

Newsletter

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