🎯

hooks

🎯Skill

from parcadei/continuous-claude-v3

VibeIndex|
What it does

Enables custom hook development for intercepting and modifying Claude AI interactions at specific event points in the workflow.

hooks

Installation

Install skill:
npx skills add https://github.com/parcadei/continuous-claude-v3 --skill hooks
14
Last UpdatedJan 26, 2026

Skill Details

SKILL.md

Hook Development Rules

Overview

# Hook Development Rules

When working with files in .claude/hooks/:

Pattern

Shell wrapper (.sh) β†’ TypeScript (.ts) via npx tsx

Shell Wrapper Template

```bash

#!/bin/bash

set -e

cd "$CLAUDE_PROJECT_DIR/.claude/hooks"

cat | npx tsx .ts

```

TypeScript Handler Pattern

```typescript

interface HookInput {

// Event-specific fields

}

async function main() {

const input: HookInput = JSON.parse(await readStdin());

// Process input

const output = {

result: 'continue', // or 'block'

message: 'Optional system reminder'

};

console.log(JSON.stringify(output));

}

```

Hook Events

  • PreToolUse - Before tool execution (can block)
  • PostToolUse - After tool execution
  • UserPromptSubmit - Before processing user prompt
  • PreCompact - Before context compaction
  • SessionStart - On session start/resume/compact
  • Stop - When agent finishes

Testing

Test hooks manually:

```bash

echo '{"type": "resume"}' | .claude/hooks/session-start-continuity.sh

```

Registration

Add hooks to .claude/settings.json:

```json

{

"hooks": {

"EventName": [{

"matcher": ["pattern"], // Optional

"hooks": [{

"type": "command",

"command": "$CLAUDE_PROJECT_DIR/.claude/hooks/hook.sh"

}]

}]

}

}

```

More from this repository10

🎯
agentica-claude-proxy🎯Skill

Enables seamless integration between Agentica agents and Claude Code CLI by managing proxy configurations, tool permissions, and response formatting.

🎯
git-commits🎯Skill

Manages git commits by removing Claude attribution, generating reasoning documentation, and ensuring clean commit workflows.

🎯
debug-hooks🎯Skill

Systematically diagnose and resolve hook registration, execution, and output issues in Claude Code projects by checking cache, settings, files, and manual testing.

🎯
migrate🎯Skill

Systematically researches, analyzes, plans, implements, and reviews migrations across frameworks, languages, and infrastructure with minimal risk.

🎯
background-agent-pings🎯Skill

Enables background agent execution with system-triggered progress notifications, avoiding manual polling and context flooding.

🎯
agentica-infrastructure🎯Skill

Provides comprehensive reference and infrastructure for building sophisticated multi-agent coordination patterns and workflows with precise API specifications and tracking mechanisms.

🎯
system-overview🎯Skill

Generates a comprehensive summary of the current system's configuration, components, and key metrics across skills, agents, hooks, and other core systems.

🎯
cli-reference🎯Skill

Provides comprehensive CLI commands and flags for interacting with Claude Code, enabling headless mode, automation, and session management.

🎯
braintrust-tracing🎯Skill

Traces and correlates Claude Code session events across parent and sub-agent interactions using comprehensive Braintrust instrumentation.

🎯
morph-apply🎯Skill

Rapidly edits files using AI-powered Morph Apply API with high accuracy and speed, without requiring full file context.