plugin-hook-system

Solid

Generate hook-based plugin extension system with event emitter patterns.

AI & Automation 1,160 stars 71 forks Updated today MIT

Install

View on GitHub

Quality Score: 94/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
50
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Plugin Hook System Generate hook-based plugin extension system. ## Generated Patterns ```typescript type HookCallback = (...args: any[]) => Promise<any> | any; export class HookSystem { private hooks = new Map<string, HookCallback[]>(); register(hookName: string, callback: HookCallback): void { const callbacks = this.hooks.get(hookName) || []; callbacks.push(callback); this.hooks.set(hookName, callbacks); } async trigger(hookName: string, ...args: any[]): Promise<any[]> { const callbacks = this.hooks.get(hookName) || []; const results = []; for (const cb of callbacks) { results.push(await cb(...args)); } return results; } async waterfall<T>(hookName: string, initial: T): Promise<T> { const callbacks = this.hooks.get(hookName) || []; let result = initial; for (const cb of callbacks) { result = await cb(result); } return result; } } ``` ## Target Processes - plugin-architecture-implementation

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

plugin-loader-generator

Generate dynamic plugin loading system with discovery, validation, and lifecycle management.

1,160 Updated today
a5c-ai
Code & Development Solid

hook-development

Use when creating, modifying, or debugging Claude Code hooks — PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification. Covers the plugin `hooks/hooks.json` wrapper format vs. the user `settings.json` direct format, matchers, security patterns, `$CLAUDE_PLUGIN_ROOT` portability, lifecycle limitations, and debugging. Trigger on "add a hook", "validate tool use", "block dangerous commands", "enforce completion", "hook-based automation".

48 Updated 2 days ago
Kanevry
Web & Frontend Listed

building-hooks

Expert at creating and modifying Claude Code event hooks for automation and policy enforcement. Auto-invokes when the user wants to create, update, modify, enhance, validate, or standardize hooks, or when modifying hooks.json configuration, needs help with event-driven automation, or wants to understand hook patterns. Also auto-invokes proactively when Claude is about to write hooks.json files, or implement tasks that involve creating event hook configurations.

335 Updated today
aiskillstore
AI & Automation Solid

react-hooks

Deep expertise in React hooks patterns including custom hooks, composition, optimization, and testing strategies.

1,160 Updated today
a5c-ai
AI & Automation Listed

hooks

Operate omi's extension-native hook pipeline with deterministic triggers, safety gates, and efficiency budgets.

2 Updated today
ibahgat