What problem does it solve?
This Skill provides comprehensive guidance for creating and implementing Codex plugin hooks, focusing on advanced prompt-based hooks for event-driven automation. It automates the validation of operations, enforces policies, and integrates external tools into workflows.
Core Features & Use Cases
- Event-Driven Automation: Automate operations in response to Codex events like tool usage, session start, and notifications.
- Prompt-Based Hooks: Utilize LLM-driven decision making for context-aware validation without requiring bash scripting.
- Command Hooks: Execute bash commands for fast deterministic checks and external tool integrations.
- Use Cases: Implementing PreToolUse for validating tool calls, using PostToolUse for reacting to results, and setting up event-driven automation with hooks like SessionStart and UserPromptSubmit.
Quick Start
Create a new hook for 'PreToolUse' that prompts for user confirmation before running a tool.