Skip to main content

appmod-hooks

Lifecycle hooks for the modernize-rearchitecture coordinator. Defines hook points, registered actions, and execution rules.

来源信息

仓库
microsoft/github-copilot-modernization
最近来源活动
2026年7月17日 03:11
检测到的 SKILL.md 语言
英语
星标
49
分支
14

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
8 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
appmod-hooks
description
Lifecycle hooks for the modernize-rearchitecture coordinator. Defines hook points, registered actions, and execution rules.
# appmod-hooks Lifecycle hooks that fire at defined points during coordinator execution. Each hook point triggers registered actions in order. ## Hook Points | Point | When | Coordinator context | |---|---|---| | `before_all` | After DAG is generated, before first task dispatch | Full DAG available, no tasks started | | `before_task` | Before dispatching each worker | Task ID and role known, profile read for Progress | | `after_task` | After worker returns and verify passes | Task artifact available, status decided. If all tasks in the current phase are now ✅, also execute phase-completion actions (git commit, commit-pin, phase counter increment) | | `after_all` | After completion criteria met (§3.7) | All tasks resolved | ## Registered Actions See `references/actions.yml` for the action registry. Actions use dotted namespace: `appmod.<domain>.<verb>`. ## Execution Rules 1. Actions within a hook point execute **in order** (top to bottom in the registry) 2. An action that fails does NOT block subsequent actions — log the error and continue, unless the action explicitly declares itself a quality gate 3. `optional: false` actions MUST execute; `optional: true` actions execute only if their `condition` is met 4. The coordinator executes hook actions **itself** (shell commands for git, file writes for profile) — hooks are NOT delegated to workers 5. A quality-gate action failure blocks dependent dispatch: keep the task pending or create a remediation task, then re-run the hook after the artifact is updated
在 GitHub 查看