Engineering playbook
How a small product team scopes, gates, reviews, releases, and hands off work between people and AI agents, plus a read-only bug-hunt review that runs against any repository. Policies, case studies, and the review are written from running them on Volley, Onbrand, The Desk, and Portwell.
No product code lives here.
Layout
| Path | What it holds |
|---|
practices/ | Standing rules. Shipping: merging and production, deploy and rollback, testing, dependencies. Running: incidents, secrets, bug lifecycle, labels and triage. Agents: agent workflow, instruction files, interview before building |
case-studies/ | Why each rule exists, with the trade-offs: 1 release cut, 2 proof gate, 3 risk-tiered merge, 4 read-only agent bridge, 5 agent skills and CI spend |
skills/bug-hunt/ | The bug-hunt review: procedure, 13 bug-class checklists, report template, the surface-map and dependency-advisory scripts, and a sample run |
templates/ | Files to copy into a product repo: PR and bug templates, a starter CLAUDE.md, decision record, postmortem, Dependabot config |
scripts/ | Repo checks: check_links.py |
tests/ | Unit tests for the scripts and the skill's structure |
.claude-plugin/ | Makes the repo installable as a Claude Code plugin |
Bug hunt
A white-box bug and security review. It maps the attack surface with a deterministic script, hunts by bug class along source-to-sink paths, kills false positives with a seven-question gate, re-checks every dismissal, and writes a severity-ranked report with file:line, a failing-test idea, and a fix per finding. It reads; it never edits, commits, pushes, or calls production. Method adapted from Claude-BugHunter (MIT and CC BY 4.0), rewritten for source review.
Run it as a plugin. In Claude Code:
/plugin marketplace add tatesocha/engineering-playbook
/plugin install engineering-playbook@tatesocha
Then, from the repository you want reviewed:
/engineering-playbook:bug-hunt full
/engineering-playbook:bug-hunt diff since main
Run it from a clone, with no plugin install:
git clone https://github.com/tatesocha/engineering-playbook ~/engineering-playbook
cd ~/code/your-repo # the repository to review
claude "Run the bug hunt in ~/engineering-playbook/skills/bug-hunt/SKILL.md against this repo, full mode."
Run the scripts only, without a model (Python 3.9+, standard library):
python3 -I ~/engineering-playbook/skills/bug-hunt/scripts/map_surface.py ~/code/your-repo
python3 -I ~/engineering-playbook/skills/bug-hunt/scripts/map_surface.py ~/code/your-repo --since main --json
python3 -I ~/engineering-playbook/skills/bug-hunt/scripts/dep_audit.py ~/code/your-repo # sends package names and versions to npm and PyPI
To see what a finished run looks like first, read the sample report for the made-up repo next to it.
Reports go to ~/.bug-hunt/<repo>/, outside every repository, so findings about a private repo never land in this public one. Each report ends with the commit it reviewed; pass that commit as --since on the next run to review only what changed.
How the pieces fit
flowchart LR
A[Tracked item, premise verified] --> B[Pull request]
B --> C{Risk tier from pipeline}
C -->|low| D[Auto-merge after required checks]
C -->|medium| M[Agent merges after the sweep]
C -->|high| E[Human review]
D --> F[Sprint close]
M --> F
E --> F
F --> G[Pre-cut sweep and bug hunt in diff mode]
G --> H{Go / no-go gate}
H -->|go| I[Cut, release notes, post-cut walk]
H -->|hold| F
G -->|finding| J[Bug lifecycle: failing repro, fix, proof]
J --> B
Principles