debug-hooks

Debug Maestro hooks by verifying registration, inspecting files, and testing execution.

8|1|Updated Jan 4, 2026
One-click install
npx skills add https://github.com/scooter-lacroix/Maestro --skill debug-hooks-scooter-lacroix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: debug-hooks
Source: https://github.com/scooter-lacroix/Maestro/tree/main/maestro/skills/debug-hooks
Command: npx skills add https://github.com/scooter-lacroix/Maestro --skill debug-hooks-scooter-lacroix

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a structured approach to diagnose and resolve issues with Maestro hooks, ensuring they execute correctly and produce the expected results.

Core Features & Use Cases

  • Troubleshoot Hook Execution: Identify why hooks might not be firing, are producing incorrect output, or failing to trigger at the right time (e.g., SessionEnd, PostToolUse).
  • Verify Configuration: Check hook registration in both project and global settings.
  • Inspect Hook Files: Ensure hook scripts and compiled bundles are present and up-to-date.
  • Manual Testing: Directly test hook functionality with sample inputs.
  • Identify Silent Failures: Detect and fix issues caused by detached process spawns that hide errors.
  • Use Case: When a PostToolUse hook fails to process tool output as expected, use this Skill to trace the execution flow, verify the input payload, and confirm the hook script's logic.

Quick Start

Use the debug-hooks skill to systematically check why a hook is not firing.

Frequently Asked Questions about debug-hooks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why are my Maestro hooks not firing during execution?

Maestro hooks may not fire due to incorrect registration in settings, missing hook scripts, or silent failures in detached processes. To debug hook execution, systematically verify hook configuration, inspect compiled bundles, and manually test inputs.

How do I debug a PostToolUse hook that produces incorrect output?

To debug a PostToolUse hook producing incorrect output, trace the execution flow, verify the input payload format, and confirm the hook script's logic. Manually test the hook with sample inputs to isolate processing errors.

How do I verify Maestro hook registration in project and global settings?

Verifying Maestro hook registration involves checking both project and global settings files for correct hook declarations. Ensure the hook scripts and compiled bundles are present, up-to-date, and properly referenced in the configuration.

What causes silent failures in Maestro hook detached processes?

Silent failures in Maestro hook detached processes occur when spawned processes hide errors from the main execution flow. Identify these by inspecting hook files, checking outputs directly, and testing hook functionality manually.

What is the best way to troubleshoot unexpected Maestro hook behavior?

The best way to troubleshoot unexpected Maestro hook behavior is following a systematic workflow: check outputs, verify hook registration, inspect hook files, manually test with sample inputs, and identify silent failures in detached processes.