架构重构生命周期钩子
appmod-hooks
用于 modernize-rearchitecture 协调器的生命周期钩子。定义钩子点、已注册的动作以及执行规则。
- License 许可
- MIT
- 最近更新
- 2026-09-24
- Stars
- ★ 55
- Forks
- 15
01 前言 Front Matter
- name
- appmod-hooks
- description
- Lifecycle hooks for the modernize-rearchitecture coordinator. Defines hook points, registered actions, and execution rules.
02 资源文件 24
- 参考文档agents/openai.yaml1.0 KB
- 参考文档commands/appmod.board.commit-pin.md631 B
- 参考文档commands/appmod.board.floor-check.md7.9 KB
- 参考文档commands/appmod.dependency.consumption-check.md3.5 KB
- 参考文档commands/appmod.git.commit.md960 B
- 参考文档commands/appmod.git.snapshot.md452 B
- 参考文档commands/appmod.profile.sync.md3.0 KB
- 参考文档references/actions.yml2.0 KB
- 参考文档references/rules/defensive-code.md9.0 KB
- 参考文档references/rules/java-annotation-order.md3.7 KB
- 参考文档references/rules/java-collections.md4.9 KB
- 参考文档references/rules/java-constructors.md2.3 KB
- 参考文档references/rules/java-exceptions.md2.5 KB
- 参考文档references/rules/java-expressions.md1.9 KB
- 参考文档references/rules/java-line-wrapping.md5.9 KB
- 参考文档references/rules/java-naming.md5.7 KB
- 参考文档references/rules/java-preconditions.md4.2 KB
- 参考文档references/rules/java-testing.md4.2 KB
- 参考文档references/rules/java-types.md1.5 KB
- 参考文档references/rules/maven-dependencies.md6.8 KB
- 参考文档references/standalone-audit.md10.7 KB
- 脚本scripts/build_audit_inventory.py14.9 KB
- 脚本scripts/tests/test_build_audit_inventory.py17.2 KB
- 脚本scripts/tests/test_checkstyle_rules.py6.9 KB
03 SKILL.md 正文
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
- Actions within a hook point execute in order (top to bottom in the registry)
- An action that fails does NOT block subsequent actions — log the error and continue, unless the action explicitly declares itself a quality gate
optional: falseactions MUST execute;optional: trueactions execute only if theirconditionis met- The coordinator executes hook actions itself (shell commands for git, file writes for profile) — hooks are NOT delegated to workers
- 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
04 同仓库更多 Skills
迁移后基线测试验证
verify-test-baseline
根据冻结的基线规范生成并运行迁移后测试。
团队连接信息与密钥申请
team-request
团队成员如何在团队模式下申请基础设施连接信息并处理密钥
多智能体团队角色章程
team-charters
为多智能体编码团队提供角色章程(使命、职责范围、核心原则、质量标杆)。每份章程定义该角色的使命、职责范围、核心原则(边界约束)和质量标杆。大多数角色还包含沟通规则。协调者在任务分解时读取这些章程,以将工作分配给正确的角色。 触发场景:"查找角色章程"、"架构师负责什么"、"检查角色边界"、"查找团队角色"、"哪个角色处理 X"、"列出智能体章程"、"角色职责"。 不适用于:任务分解(使用 breaking-down-tasks)、代码实现(使用 implementing-code)、架构分析(使用 analyzing-architecture)。
Struts 2 至 Spring Boot 迁移
struts-to-spring
将 Apache Struts 2 应用程序迁移到 Spring Boot 3.x 和 Spring MVC 的迁移指南。
Spring Boot 项目脚手架搭建
spring-boot-scaffolding
在重写迁移过程中创建新 Spring Boot 项目的参考指南。
项目经验教训记录与共享
sharing-learnings
介绍如何记录项目经验教训,以便后续阶段的工作者和未来的智能体运行能够参考使用。