Skip to content

Submission: Claude Code Productivity Hook Pack — 6 verify-before-stop hooks #429

Description

@ianymu

Submission for the hooks/ category

Tool: Claude Code Productivity Hook Pack
Author: @ianymu
Free sample repo: https://github.com/ianymu/claude-verify-before-stop
Landing page: https://landing-ianymu.vercel.app
License: MIT (free tier) + paid tiers for full pack

What it does

6 battle-tested .claude/hooks/ from a solopreneur running 14 parallel projects:

  1. verify-before-stop.sh — Blocks Stop event unless task has been verified (curl/HTTP/file existence). Stops Claude from claiming completion without proof.
  2. cost-tracker.sh — Logs token usage per session, alerts at thresholds.
  3. secret-guard.sh — Pre-Write/Edit scan for sb_secret_, sk-ant-, JWT, AKIA, ghp_ patterns. Hard-fails the tool call before any leak hits git history.
  4. progress-checkpoint.sh — Forces progress.json update every N tool calls so multi-window work doesn't drift.
  5. enforce-frontend-qa.sh — After any .tsx/.css edit, requires a screenshot verification before Stop.
  6. pre-compact-diary.sh — Auto-extracts session learnings to .learnings/ before context compact.

Why it might fit the list

  • All 6 hooks include exit-code semantics + JSON contracts following the official hooks reference.
  • Tested on real workloads (this developer's daily 14-project portfolio).
  • Free GitHub sample is a single hook (verify-before-stop.sh) so reviewers can dogfood before listing.

Happy to open a proper PR adding the scripts to hooks/scripts/ + hooks.json if you'd prefer that route. Just wanted to ping first since the CONTRIBUTING.md says PRs are welcome but I didn't want to spam without a heads-up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions