with one click
athena-review
// PACE review stage 执行 skill. v9.6.4 升级: 6 维度 (并行 spawn 3 subagent: reviewer + spec-compliance + evaluator).
// PACE review stage 执行 skill. v9.6.4 升级: 6 维度 (并行 spawn 3 subagent: reviewer + spec-compliance + evaluator).
检查项目依赖 (库 / 包 / jar) 是否有可升级版本, 适配多生态: Maven / npm·pnpm·yarn·bun / PyPI / Cargo / Go / RubyGems / Composer / NuGet. 铁律: 版本号必须从官方 registry 在线查询, 不靠记忆/编造, 且区分 "声明的版本是否存在" 与 "是否最新". 用户要求"看有没有要更新的依赖"时使用.
维护 .ai_state/architecture/ 长效档案 (项目现状档). Refactor/System 路径完成后强制更新 ARCHITECTURE.md 总入口 + {type}-{slug}.md 子系统档. 注: 不同于 cx 端的 architect.toml subagent (后者是 design stage 工作者).
Athena 主入口 skill. 接收用户任务, 做 PACE 路由分诊 (brainstorm/roadmap/plan/...), 启动对应 stage. v9.6.4 升级: 加 brainstorm + roadmap 分诊 (铁律 14), 加路由检测自动 ultrathink 提示.
Athena 项目初始化 skill. 在项目中执行 /athena-init 时调用. 职责: 探测平台 / 工具可用性, 创建 .ai_state/ 目录 + 复制 _index.md 模板 + 填入探测结果.
Athena 版本迁移工具. v9.6.4 重写: 含 v9.6.2 → v9.6.4 破坏式重构 (sprints/ + compound/ + 4 新 ai_state 文件 + lessons.md 三选项交互).
快速查看当前项目的 Athena 状态: stage / path / sprint / 进度 / 活动 worktree. 无副作用, 只读.
| name | athena-review |
| description | PACE review stage 执行 skill. v9.6.4 升级: 6 维度 (并行 spawn 3 subagent: reviewer + spec-compliance + evaluator). |
| effort | high |
impl stage 完成 (checklist.yaml 全 completed + tests passing) → 主 agent 进 review.
或 Stop hook prompt 自动检测 + 推进:
stage = impl AND all checklist done AND tests passing → suggest next_stage = review
| # | 维度 | 由谁负责 |
|---|---|---|
| 1 | Correctness (代码正确) | reviewer subagent |
| 2 | Security (安全) | reviewer |
| 3 | Test (测试) | reviewer |
| 4 | Design 一致 (代码符合 design) | reviewer |
| 5 | Quality (质量) | reviewer |
| 6 | Spec Compliance (文档覆盖, v9.6.4 新) | spec-compliance subagent |
# 主 agent 用 Task tool 并行调用
spawn_parallel([
Task(subagent_type="reviewer", prompt="..."), # 1-5 维度
Task(subagent_type="spec-compliance", prompt="..."), # 6 维度 (新)
])
# 等两个完成后, spawn evaluator (后跑, 综合两家)
Task(subagent_type="evaluator", prompt="...")
写入 sprints/{slug}/reviews/pass1.md, 段:
## Reviewer (代码层 findings)读 sprints/{slug}/design.md 提取 ## 验收标准 + ## 实现要点 + ## File Structure Plan.
Bash git diff main...HEAD --stat + --name-only.
逐项对比, 写 sprints/{slug}/reviews/pass1.md 段:
## Spec Compliance (spec-compliance, {timestamp})### MISSING (做少了)### EXTRA (做多了, 分合理 refactor / scope creep)### DEVIATED (做偏了)### 总评 (PASS | REWORK)evaluator 读 reviews/pass1.md 的两段 (reviewer + spec-compliance), 综合给 VERDICT:
| VERDICT | 含义 | 下一步 |
|---|---|---|
| PASS | 全部维度合规 | next_action = polish (Refactor/System) 或 ship |
| CONCERNS | 有 P1/P2 但可推后 | next_action = polish (Refactor/System) 或 ship |
| REWORK | 有 P0 或 MISSING/DEVIATED | next_action = rework_impl |
| FAIL | 严重违规 (e.g. 安全漏洞) | next_action = rework_impl, 标 _index.major_issue |
evaluator 写 _index.next_action.
stage=review 时, Stop hook prompt 自动检查:
pass1.md 缺 ## Spec Compliance 段 → block + 提示 "spawn spec-compliance subagent"REWORK → 主 agent 回 impl 修, 再进 review:
reviews/pass2.md (不覆盖 pass1.md)