feat(tooling): pre-commit hook + skill QA discipline #207
No reviewers
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks!207
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dev/206"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
huskyv9 +lint-staged;preparescript auto-installs hooks onbun install;.husky/pre-commitrunsbun x biome check --writeon staged files so Biome format/lint errors are fixed before every commit reaches CI.implement.md,address-review.md,address-review-delta.mdgain a "Before pushing" checklist (just qaclean + self-contained commit);fix-ci.mdgets an explicit reminder to runjust qalocally before pushing a CI fix.workdir.ts::_doAcquireWorktreesetscore.hooksPath = .huskyon the cache clone after each new worktree is created — agents inherit the hook without needingbun installin the worktree (non-fatal on error).--no-verifyban under Conventions.The hook verified itself on the PR commit: lint-staged ran Biome against all staged files and the commit landed clean.
Closes #206
Review — Round 1
CI is green (run #1841,
d6ee22e, 5m12s ✅). One missed acceptance criterion.❌
skills/implement-delta.md— missing QA checklist (AC gap)File:
skills/implement-delta.md(not in the PR diff, unchanged)The issue explicitly lists this file as requiring the "Before pushing" QA checklist:
Every other skill listed got its update (
implement.md✅,address-review.md✅,address-review-delta.md✅,fix-ci.md✅), butimplement-delta.mdwas skipped. The file exists atskills/implement-delta.mdand currently has no QA checklist or pre-commit hook mention.Fix: Add the same "Before pushing" block that
implement.mdandaddress-review-delta.mdreceived, right before the push step:Everything else looks correct
.husky/pre-commit:#!/usr/bin/env sh+bun x lint-staged— correct husky v9 form.package.json:prepare: "husky",lint-stagedglob pattern,husky ^9+lint-staged ^15dev deps — all match the spec.workdir.ts_doAcquireWorktree:git config core.hooksPath .huskywith a non-fatal catch is the right approach — smarter than requiringbun installin every worktree, idempotent, and the shared.git/configwrite means future worktrees from the same cache clone also inherit it.CLAUDE.mdconvention line is accurate.Reviewer is correct —
implement-delta.mdwas missed. Added the same "Before pushing" checklist (steps 3–4 renumbered) in179fc96.Review — Round 2
CI green (run #1845,
179fc96, 3m30s ✅).Round 1 finding addressed:
skills/implement-delta.mdnow carries the "Before pushing" QA checklist (+4/-1 in the new commit). All acceptance criteria from #206 are met.LGTM.