lifecycle-hooks
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)
npx skills add majiayu000/claude-skill-registry --skill lifecycle-hooks --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Lifecycle Hooks This skill defines behavioral rules that were originally enforced by platform lifecycle hooks. These rules describe automated behaviors that trigger at specific points in the agent workflow. --- ## On before_action **Trigger:** Fires before the agent executes any action (file write, shell command, etc.) **Applies when:** Action matches `Write|Edit|Bash` This rule auto-approves file operations targeting deep-analysis session and cache directories. It prevents permission prompts from interrupting autonomous exploration workflows. The implementation logic is in **references/auto-approve-da-session.sh**. This script: - Reads action context from stdin (JSON with action type and parameters) - Checks if the target file path or command references session directories (`.agents/sessions/__da_live__/`, `.agents/sessions/exploration-cache/`, `.agents/sessions/da-*/`) - If matched, approves the action automatically - If not matched, passes through to normal permission flow (no opinion) ## Integration Notes **What this component does:** Defines automated behavioral rules that were originally enforced by platform lifecycle hooks. **Origin:** Converted from 1 lifecycle hook (PreT
- On beforeaction
- Integration Notes
What does the lifecycle-hooks skill do?
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 do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill lifecycle-hooks --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
