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

lifecycle-hooks

Behavioral rules and lifecycle event handlers for the dev-tools package. Defines automated behaviors that trigger at specific points in the agent workflow. (converted from hooks)

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

설치 방법 보기

포함된 파일(3)

  • SKILL.md3.0 KB
  • references/auto-approve-da-session.sh2.9 KB
  • references/resolve-cross-plugins.sh2.6 KB

SKILL.md(원문)

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

Lifecycle Hooks

This skill documents the lifecycle event handlers for the dev-tools package. These hooks define automated behaviors that trigger at specific points in the agent workflow.

Session Start Hook

Event: session_start Purpose: Cross-plugin dependency resolution for cache environments

Behavior

When a session starts, this hook runs a script that resolves cross-package references by creating symlinks in the plugin cache directory. The script:

  1. Detects whether execution is happening in a plugin cache environment (vs. local monorepo development)
  2. If in cache, iterates over sibling plugin directories under the same organization
  3. Strips the organization prefix to derive short names (e.g., agent-alchemy-claude-tools becomes claude-tools)
  4. Creates symlinks so that relative path references between packages work correctly
  5. Uses the installed plugins registry or filesystem sorting to resolve the correct version

When This Is Needed

In the original plugin system, cross-plugin references use filesystem paths like /../{short-name}/. In local development (monorepo), these paths resolve naturally because sibling directories have short names. In cache environments, the extra version subdirectory and organization-prefixed names break this convention.

Ported Context

In the ported format, this behavior may not be needed since ported files use named references (e.g., "Refer to the deep-analysis skill from the core-tools package") instead of filesystem paths. The script is preserved in references/resolve-cross-plugins.sh for environments that still need filesystem-based cross-package resolution.

Script Reference

See references/resolve-cross-plugins.sh for the full implementation.

Configuration

  • Timeout: 10 seconds (the script should never block session start)
  • Error handling: The script traps all errors and exits cleanly (exit 0) to never block session startup
  • Debug logging: Set AGENT_ALCHEMY_HOOK_DEBUG=1 to enable diagnostic logging to $AGENT_ALCHEMY_HOOK_LOG (default: /tmp/agent-alchemy-hooks.log)

Integration Notes

What this component does: Defines lifecycle event handlers that run at specific workflow points, primarily handling cross-plugin dependency resolution in cache environments.

Capabilities needed:

  • Shell command execution (to run the symlink resolution script)
  • Filesystem access (to create symlinks in the plugin cache)

Adaptation guidance:

  • In ported environments where skills reference each other by name rather than filesystem path, this hook may be unnecessary
  • If your platform uses a different plugin/package resolution mechanism, adapt the symlink logic in the reference script accordingly
  • The script is designed to be non-blocking: it silently exits on any error to avoid disrupting session startup

리뷰

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

댓글

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

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

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. 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의 스킬 모두 보기

이 스킬의 문제 신고