agent-hooks

Coordinate agent lifecycle hooks across session start, pre-delegate, post-delegate, and session end.

59|12|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/etylsarin/opencastle --skill agent-hooks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-hooks
Source: https://github.com/etylsarin/opencastle/tree/main/src/orchestrator/skills/agent-hooks
Command: npx skills add https://github.com/etylsarin/opencastle --skill agent-hooks

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Lifecycle hooks standardize the actions that run at key points in an AI agent's session, preventing missed steps and ensuring consistent behavior across Team Lead and specialist agents. It defines on-session-start, on-pre-delegate, on-post-delegate, and on-session-end hooks to enforce predictable workflows.

Core Features & Use Cases

  • Defines hook points: on-session-start, on-pre-delegate, on-post-delegate, and on-session-end to structure sessions.
  • Provides guidance for loading lessons, checkpoints, and skill bindings to maintain context and traceability.
  • Ideal for complex delegation workflows, ensuring consistent prompts, reminders, and observability signals across agents.

Quick Start

Integrate this skill into your agent orchestration workflow to enable standardized lifecycle handling across sessions.

Frequently Asked Questions about agent-hooks

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

FAQPage Schema
How do I standardize AI agent lifecycle hooks across multiple specialist agents?

You can standardize AI agent lifecycle hooks by defining consistent events like on-session-start, on-pre-delegate, on-post-delegate, and on-session-end across Team Lead and specialist agents to enforce predictable workflows.

What are agent lifecycle hooks and when do I need them for orchestration?

Agent lifecycle hooks are standardized actions running at key points during an AI agent session. You need them to prevent missed steps and enforce consistent behavior, logging, and guardrails across complex delegation workflows.

How do I add logging and validation guardrails before delegating tasks to AI agents?

You can add logging and validation guardrails by implementing on-pre-delegate and on-post-delegate hooks that intercept task delegation, enforcing standardized checks and observability signals before and after specialist agents execute.

Can I use lifecycle hooks to load lessons and checkpoints during agent session start?

Yes, lifecycle hooks can load lessons, checkpoints, and skill bindings during the on-session-start event to maintain context and ensure traceability across Team Lead and specialist agent sessions.

Does this agent hooks approach work without external dependencies?

Yes, the agent hooks approach works without external dependencies, relying solely on defined lifecycle events and observability integrations to coordinate agent sessions and enforce guardrails.