Lifecycle hooks

From sequenzia/agent-alchemy · View interactive version

Lifecycle hooks is an AI agent skill from the GitHub repository sequenzia/agent-alchemy. Behavioral rules and lifecycle event handlers for the core-tools package. Defines automated behaviors that trigger at specific points in the agent workflow. (converted from hooks)

How to use this skill

Skill file

Lifecycle Hooks

This skill defines automated behaviors that trigger at specific points in the agent workflow for the core-tools package.


On before_action

Trigger: Fires before the agent executes any action (file write, shell command, etc.)

Applies when: Action matches Write|Edit|Bash

Auto-approve file operations targeting deep-analysis session and cache directories. This allows the deep-analysis workflow to write session files (checkpoints, findings, cache) without requiring manual approval for each operation.

The implementation logic is in references/auto-approve-da-session.sh. This script:


Integration Notes

This skill documents lifecycle automation that was originally implemented as platform-specific hooks. When integrating with a specific agent platform:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.