Skip to content

Developer hooks that play alert sounds and keep CLAUDE.md files updated after changes.

CCM score
52 of 100
version
1.6.2
GitHub stars
25
View on GitHub

Own this plugin? Claim it

What it does

  • Adds a notification-sound.sh hook that plays a four-tone alert when Claude needs input or approval
  • Runs a claude-md-manager hook on session start and end to detect changed directories via git
  • Skips .claude/ folders, git-ignored files, and directories listed in .claude-md-manager-ignore
  • Enforces conservative edits, targeting about 150 lines at the root and 25 to 100 lines in subdirectories

Developer utilities (notifications, command creation)

Add marketplace

/plugin marketplace add CaptainCrouton89/crouton-kit

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install dev-utilities@crouton-kit

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

Step 1: Assess

Review this conversation and make a honest judgment: did the session have actual failures?

A failure is a moment where you concretely went wrong — took a wrong path, wasted significant tokens, backtracked, made an incorrect assumption, or were misled. A clean session with no failures is a normal, common outcome. If the session was clean, say so in 1-3 sentences and stop. Do not continue to Step 2.

These are NOT failures:

  • Codebase improvements you noticed along the way
  • Documentation that could be better but didn't actually cause a problem
  • Hypothetical future issues that didn't manifest in this session
  • Things that went fine but could theoretically go faster

Step 2: Enumerate failures (only if Step 1 found issues)

For each failure, all three fields are required:

  1. What happened — cite the specific moment. What did you do, and what went wrong? If you cannot point to a concrete action and its bad outcome, it is not a finding.
  2. Root cause — which failure mode category applies (see reference below)
  3. Proposed fix — specific fix with fix type (see reference below)

Prioritize by: (frequency x severity). Recurring issues that waste significant tokens rank highest. Skip one-off missteps, issues already fixed mid-session, or findings where the fix is "no action."

Failure mode reference
  • Went down a wrong path, wasted tokens, or had to backtrack
  • Made incorrect assumptions instead of reading code
  • Were misled by documentation, rules, CLAUDE.md files, or tool output
  • Struggled with confusing code (layout, naming, duplication, size, smells)
  • Used a script/tool/command that didn't behave as expected
  • Lacked context that would have prevented a mistake
  • Received conflicting guidance from different sources
  • Over-engineered or under-delivered due to unclear requirements
  • Context pollution: too much irrelevant context loaded, drowning useful signal
  • Stale docs: CLAUDE.md or rules describing outdated behavior
  • Hidden side effects: functions doing more than their names suggest
  • Over-abstraction: code too layered to trace
  • Silent failures: tools/scripts failing without useful error messages
  • Repeated manual ceremony: multi-step sequences that should be scripted
  • Wrong search strategy: grepped when should have globbed, read wrong files, rabbit-holed
Fix type reference

Don't default to docs for everything — there are stronger options.

  • Hooks — deterministic lifecycle handlers. Unlike instructions, these cannot be ignored. Use the hooks skill.
  • Rules (.claude/rules/*.md) — auto-loaded constraints, optionally scoped via paths frontmatter. Use the rules-authoring skill.
  • CLAUDE.md updates — universal project context. Every line is scarce real estate; propose pruning alongside additions. If >5 lines of domain knowledge, suggest a skill instead. Use the claude-md-authoring skill.
  • Scripts/tools (bin/, MCP servers) — abstract repeated multi-step sequences. Use the scripts-and-tooling skill.
  • Skills (.claude/skills/) — on-demand reference, not loaded every session. Use the skills-authoring skill.
  • Commands — reusable prompts for specific workflows. Use the commands-authoring skill.
  • Refactoring — when the code itself is the problem.
  • ai-cli modes (ai -m <mode>) — preconfigured, non-interactive Claude Code sessions (full Agent SDK). Best for repeatable one-shot operations: hook-triggered validation (ai -m validate -p "$(git diff)"), black-box analysis, or scoped feedback where you want a complete agent but with a locked-in system prompt and no back-and-forth. Modes can target specific models. Define project-local modes in .claude/.ai/modes/.
  • Bug fixes — when tools/scripts are broken or misdocumented.

Constraints

  • Report only. Present findings, then ask before implementing anything.
  • Never auto-modify CLAUDE.md files, rules, skills, agent prompts, or hooks. Always show proposed content for review first.
  • When proposing hooks: specify the event, matcher, and behavior — confirm before writing code.
  • When proposing scripts: describe the interface (args, behavior) before implementing.
  • Be honest about issues that aren't fixable (inherent model limitations, genuinely ambiguous requirements).

Readme

dev-utilities

Developer workflow automation via session and notification hooks.

Hooks

notification-sound.sh

Trigger: Notification event (when Claude needs attention/permission)

Action:

  • Plays 4-tone ascending audio sequence using macOS Tink.aiff (volumes: 8, 5, 3, 8)
  • Logs notification message to ~/.claude/logs/hooks.log with timestamp

Purpose: Audible alert when Claude requires user input or approval.


claude-md-manager.mjs

Trigger:

  • SessionStart (when clear command is used)
  • SessionEnd (when session terminates)

Action: Spawns detached background worker that:

  1. Detects changes: Runs git diff --name-only HEAD to find modified files
  2. Groups by directory: Collects changed files per directory
  3. Filters candidates:
    • Skips .claude/ directories
    • Skips git-ignored files
    • Skips directories excluded in .claude-md-manager-ignore (global or local)
    • Skips global ~/.claude/CLAUDE.md
    • Skips directories with <4 files (unless root or already has CLAUDE.md)
  4. Caches state: Tracks file signatures (mtime + size) in ~/.claude/state/claude-md-manager-cache.json to avoid reprocessing unchanged files
  5. Processes directories: For each qualifying directory:
    • Reads existing CLAUDE.md (if present)
    • Collects parent CLAUDE.md files for context
    • Loads custom guidance from .claude-md-manager.md (if present)
    • Spawns Haiku 4.5 query with Write-only tool access
    • Agent decides whether to create/update/skip CLAUDE.md

Behavior:

  • Root directories: Target ~150 lines, comprehensive project overview
  • Subdirectories: Target <25–100 lines depending on complexity, only unique local context
  • Conservative updates: Only modifies CLAUDE.md when changes are meaningful
  • Session deduplication: Uses parent session ID to prevent duplicate processing across child sessions

Configuration:

Exclusion patterns (.claude-md-manager-ignore):

# Global: ~/.claude/.claude-md-manager-ignore or ~/.claude-md-manager-ignore
# Local: <project>/.claude-md-manager-ignore

node_modules
dist
commands/*

Custom guidance (.claude-md-manager.md in target directory):

  • Provides directory-specific instructions to the CLAUDE.md generation agent
  • Useful for enforcing local conventions or constraints

Logs: ~/.claude/logs/hooks.log


Installation

This plugin is automatically activated—no manual invocation required.

Details

Marketplace
CaptainCrouton89/crouton-kit
Source
plugins/dev-utilities
Category
Community
Keywords
utilities, notifications, worktree
Listed since
Apr 7, 2026

Questions

What does the dev-utilities plugin add to Claude Code?

dev-utilities runs hooks that work in the background, with no commands to call. Its notification-sound.sh hook plays an audible alert and logs the message whenever Claude needs attention or permission, and its claude-md-manager.mjs hook updates CLAUDE.md files for changed directories at session start and end.

How do I install the dev-utilities plugin?

Run /plugin marketplace add CaptainCrouton89/crouton-kit first, then /plugin install dev-utilities@crouton-kit inside Claude Code. Once installed, dev-utilities activates automatically with no manual invocation needed.

Which category is dev-utilities in on Claude Marketplaces?

dev-utilities is listed under Developer Tools on Claude Marketplaces. Its keywords are utilities, notifications and worktree, and its hooks cover audible notifications and automatic CLAUDE.md maintenance.

More from CaptainCrouton89/crouton-kit

All 19

Similar to dev-utilities

More Developer Tools