본문으로 건너뛰기
cccskills
무료GitHub에 공개

lifecycle-hooks

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(2)

  • SKILL.md3.3 KB
  • references/auto-approve-da-session.sh2.9 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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:

PatternDescription
.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).

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Analyze test coverage and identify gaps with actionable recommendations

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

sequenzia/agent-alchemy452026년 6월 1일 업데이트

Analyze an existing spec for inconsistencies, missing information, ambiguities, and structure issues. Use when user says "analyze spec", "review spec", "spec quality check", "validate requirements", "audit spec", or "check spec quality".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

sequenzia/agent-alchemy452026년 6월 1일 업데이트

Provides architectural pattern knowledge for designing feature implementations including MVC, event-driven, microservices, and CQRS patterns. Use when designing system architecture or choosing implementation patterns.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

sequenzia/agent-alchemy452026년 6월 1일 업데이트

Executes diagnostic investigation tasks to test debugging hypotheses. Runs tests, traces execution, checks git history, and reports evidence. (converted from agent)

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

sequenzia/agent-alchemy452026년 6월 1일 업데이트

Systematic, hypothesis-driven debugging workflow with triage-based track routing. Use when asked to "fix this bug", "debug this", "why is this failing", "this is broken", "investigate this error", "track down this issue", or any debugging situation. Supports --deep flag to force full investigation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

sequenzia/agent-alchemy452026년 6월 1일 업데이트

Systematic, hypothesis-driven debugging workflow with triage-based track routing. Use for debugging, fixing bugs, and investigating errors.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

sequenzia/agent-alchemy452026년 6월 1일 업데이트

sequenzia의 스킬 모두 보기

이 스킬의 문제 신고