Hook Lifecycle Execution

Load and execute YAML-defined lifecycle hooks with optional conditions and controlled timeouts.

shyamsridhar123 c944e7c 904 B Updated

File contents

Hook Lifecycle Execution

Load and execute YAML-defined lifecycle hooks with optional conditions and controlled timeouts.

When to Use

Use this skill when:

  • Working with code in src/hooks/index.ts/
  • User mentions "hooks"
  • User mentions "pre-commit"
  • User mentions "post-generate"
  • User mentions "condition"
  • User mentions "timeout"

Patterns

  • event-scoped hook discovery under .github/hooks
  • execSync command execution with timeout
  • file/command condition evaluation
  • verbose output and early failure stop
  • per-hook success/error aggregation

Examples

const runner = new HookRunner(rootPath, verbose); await runner.execute('post-generate');

Category

reliability - Error handling, recovery, and fault tolerance

shyamsridhar123/agentsmith-cli/tree/main/.github/skills/hook-lifecycle-execution commit c944e7c9d1

Frequently asked questions

npx skillmds@latest add shyamsridhar123/hook-lifecycle-execution