Skip to content
Back to skills

Lifecycle Hooks Sequenzia Agent Alchemy 2

ASecurity

Behavioral rules and lifecycle event handlers for the core-tools package. Includes auto-approval of file operations targeting deep-analysis session directories.

  • 30 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 12, 2026
ai-agentsshell

Security analysis

A100/100

Scanned November 12, 2026

npx -y skills add majiayu000/claude-skill-registry-data --skill lifecycle-hooks-sequenzia-agent-alchemy-2 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Lifecycle Hooks Sequenzia Agent Alchemy 2?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Lifecycle Hooks Sequenzia Agent Alchemy 2
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-lifecycle-hooks-sequenzia-agent-alchemy-2-claude-skill-registry-data/badge)](https://www.skillsdirectory.com/skills/majiayu000-lifecycle-hooks-sequenzia-agent-alchemy-2-claude-skill-registry-data)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: lifecycle-hooks
description: Behavioral rules and lifecycle event handlers for the core-tools package. Includes auto-approval of file operations targeting deep-analysis session directories.
dependencies: []
---

# Lifecycle Hooks

This skill defines behavioral rules and lifecycle event handlers converted from the core-tools hook configuration. These rules describe when certain operations should be automatically approved or handled without user intervention.

---

## Auto-Approve Deep Analysis Session Operations

**Trigger:** Before any file write, file edit, or shell command execution.

**Matcher:** Operations targeting Write, Edit, or shell commands.

**Behavior:** Automatically approve file operations that target deep-analysis session and cache directories. All other operations pass through to the normal permission flow.

### Approved Paths

The following directory patterns are auto-approved for file operations:

| Pattern | Description |
|---------|-------------|
| `.agents/sessions/__da_live__/*` | Active deep-analysis session files |
| `.agents/sessions/exploration-cache/*` | Exploration cache (cached analysis results) |
| `.agents/sessions/da-*/*` | Archived deep-analysis sessions |

### Logic

1. For **file write/edit** operations: Extract the target file path. If it matches any of the approved path patterns above, approve the operation automatically.
2. For **shell commands**: Check if the command string contains any of the approved directory paths. If so, approve automatically.
3. For **all other operations**: No opinion — let the normal permission flow handle it.

### Implementation Reference

See **references/auto-approve-da-session.sh** for the reference shell implementation of this auto-approval logic. The script:
- Reads tool input as JSON from stdin
- Extracts the tool name and relevant parameters (file path or command)
- Matches against the approved path patterns
- Returns an approval decision or exits silently (no opinion)
- Never exits with a non-zero status code (a non-zero exit would break the permission flow)

### Debug Logging

The reference implementation supports optional debug logging:
- Set environment variable `AGENT_ALCHEMY_HOOK_DEBUG=1` to enable
- Logs are written to the path in `AGENT_ALCHEMY_HOOK_LOG` (default: `/tmp/agent-alchemy-hook.log`)

---

## Integration Notes

**What this component does:** Defines lifecycle event handlers that auto-approve file operations targeting deep-analysis session directories, enabling autonomous execution during analysis workflows without manual permission grants.

**Capabilities needed:** Pre-action hook/interceptor system that can inspect file operation targets and approve them programmatically. The host platform must support a way to intercept file writes and shell commands before execution.

**Adaptation guidance:** The auto-approval logic is straightforward path matching. On platforms without a hook system, this can be implemented as: (1) a pre-configured allow-list of directory patterns, (2) a middleware that checks file operation targets, or (3) a configuration setting that grants write access to session directories. The reference shell script in `references/` shows the exact matching logic.

**Configurable parameters:** None (the approved paths are tied to the deep-analysis session directory structure).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.