跳到正文
cccskills
免费在 GitHub 公开

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)

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(2)

  • SKILL.md2.0 KB
  • references/auto-approve-da-session.sh2.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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 (PreToolUse/before_action)

Capabilities needed:

  • Event/lifecycle hook system (if the target harness supports one)
  • Alternatively, implement as middleware, conditional checks, or manual review steps

Adaptation guidance:

  • This behavior was originally enforced automatically by the platform. In the target harness, it may need to be implemented as middleware, event handlers, or manual review steps.
  • The command hook script in references/ can be executed directly if the harness supports shell-based hooks.
  • The auto-approval targets session file operations to enable uninterrupted deep analysis workflows.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 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 的全部技能

报告此技能的问题