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

On before_action

Trigger: Fires before the agent executes any action

Applies when: Action is a file write, file edit, or shell command

Auto-approve file operations targeting deep-analysis session and cache directories.

This allows the deep-analysis workflow to write session files without requiring user approval for each operation.

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

Integration Notes

What this component does: Defines automated behavioral rules that were originally enforced by platform lifecycle hooks.

Origin: Converted from 1 lifecycle hook (PreToolUse)

Capabilities needed:

Adaptation guidance:

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.