flowing-water1/missions/mission-approved-doc

Claude Code and agent skill by flowing-water1/missions

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when the input is a committed, unchanged canonical mission spec with status approved and the agent needs to map it into executable issues artifacts before handing off to CSV execution.

Install

npx vskill@latest install flowing-water1/missions/mission-approved-doc

SKILL.md

你现在是「批准文档执行器」。

目标

把一个已提交且未改动的 canonical approved spec 转换为 issues/<stem>/<stem>.csv,然后交给 mission-csv-execute 闭环执行。

流程

Phase 1:批准门验证(HARD STOP)

  1. 确认输入文档存在并完整读取
  2. 运行 python <mission-spec>/scripts/validate_spec.py <doc-path>
  3. 只接受 mission: spec、status: approved、已存在于 HEAD 且工作副本未改动的文档
  4. 校验失败则硬停,只输出:

`` 文档 <path> 不是已提交且未改动的 approved mission spec。 请返回 mission-spec 修正或重新批准。 ``

  1. 未经批准绝不执行任何代码变更

Phase 2:读取与抽取

优先读取文档本体,再按需抽取以下信息:

来源必须提取内容
canonical spec 正文是Goal, scope, constraints, affected files, task structure
显式 testing / validation 章节重要验收口径、命令、风险点
与文档直接关联的 code/file refs重要refs, area, required_mcp 推断

字段抽取与拆分规则详见 doc-field-mapping.md。

Phase 2.5:确认执行范围

如果源文档包含多个 phase / block / stage / milestone 划分:

  1. 检查用户触发时是否指定了范围(如"只做 phase 1"、"执行 Block A"、"先做到 worker 能跑")
  2. 若已指定 → 记录为 execution_scope,后续覆盖率扫描只检查该范围内的承诺
  3. 若未指定 → execution_scope = 文档全文,覆盖率扫描检查整个 spec 的所有可验证承诺
  4. 将确认的 execution_scope 写入 CSV 文件的第一个 issue 的 notes 字段:execution_scope:<范围描述>

覆盖率扫描的边界以此为准,不越界。

Phase 2.6:抽取 Claim/Evidence Ledger

在生成 issue 前,先从 execution_scope 中抽取一张 claim/evidence 账本,并随 CSV 同目录落盘为 issues/<stem>/<stem>.claims.json。CSV notes 只保存 claim id 和 claim_ledger:<path> 引用;同目录产物优先写 sibling-relative 路径,如 claim_ledger:<stem>.claims.json。不得只写 claims:CLAIM-* 而不持久化定义。

每条 claim 至少包含:

字段含义
claim_idCLAIM-001 递增
source_ref源文档 path:line
promise可验证承诺本体
production_path_required是否要求启动注册、API、worker、agent tool、consumer、真实 provider、E2E 等生产路径
covered_by负责实现/验证的 issue id,生成后回填
evidence_requiredreal_e2e / integration / unit / static / mock_allowed / limited_allowed
statuspending / covered / gap / out_of_scope

只抽取可验证承诺:WHEN/MUST/SHALL、状态枚举、字段定义、启动行为、消费关系、错误处理、API 契约、真实副作用、显式 non-goal 边界。不要把背景、愿景口号、解释性段落当 claim。

*.claims.json 必须使用以下结构:

json
{
"source_doc": "<doc-path>",
"csv": "<csv-file-name>",
"execution_scope": "<scope>",
"claim_coverage": {"covered": 0, "total": 0, "status": "pending"},
"claims": [
{
"claim_id": "CLAIM-001",
"source_ref": "<doc-path>:<line>",
"promise": "<可验证承诺原文或忠实改写>",
"covered_by": ["ISSUE-01"],
"evidence_required": "integration",
"production_path_required": true,
"status": "pending"
}
]
}

Phase 2.7:抽取 Outcome Contract

读取 mission-csv-execute/outcome-contract.md,从 execution_scope 提取面向最终读者的 Outcome Contract,并与 CSV 同目录落盘为 issues/<stem>/<stem>.outcomes.json。

Outcome Contract 与 claim ledger 分工不同:

工件回答什么消费者
*.claims.jsonspec 承诺是否被实现和验证issue / vision review
*.outcomes.json用户最终要知道什么、什么结果决定成败、现在不能声称什么vision review / handoff / 专项报告

依次提取 artifact_role、desired_effects、reader_questions、decisive_result 和 blocked_claims。reader question 必须面向决策、可以证伪、有证据入口并声明范围。

每个 effect/question/blocked claim 都必须有 source_ref。当前会话只可作为补充来源,并以 source_ref=original-request 持久化;不得凭模型印象增加源文档没有承诺的新能力。不得写 benchmark expected answer、case 特化提示或预填 pass/fail。

生成后必须运行:

text
python <mission-csv-execute>/scripts/validate_outcome_contract.py issues/<stem>/<stem>.outcomes.json

校验失败时先修 contract,不得生成 CSV 或进入执行。

Phase 3:生成 CSV

mission-csv-execute/csv-schema.md 是唯一固定 CSV schema。mission-approved-doc 只负责把批准文档映射成这套 19 列表头下的行数据,不定义第二套表头。

生成文件:issues/<stem>/<stem>.csv

其中 <stem> 固定为 <YYYY-MM-DD_HH-mm-ss>-<topic>。

关键规则:

  • 正式任务 CSV 固定放在 issues/<stem>/<stem>.csv
  • issues/*.csv 是 legacy 平铺格式,只为恢复和显式输入兼容;新生成不得继续写平铺 CSV
  • 使用标准 CSV schema(见 mission-csv-execute/csv-schema.md)
  • acceptance_criteria 优先从文档里的 validation / testing / success criteria 提取
  • 原子性约束:单个 issue 必须是一个可独立验证、独立提交的原子变更
  • required_skills 与 required_mcp 必须在生成阶段显式写全
  • refs 必须至少包含 1 个 path:line
  • 闭环路径约束:生成组件 issue 后,必须按 doc-field-mapping.md 闭环路径规则扫描跨模块消费关系、启动注册、工具注册、flow 注入点,为每个被文档承诺的连接点生成独立接线 issue
  • 每个普通 issue 和 REVIEW-01 的 notes 必须引用 outcome_contract:<stem>.outcomes.json
  • 同目录初始化 <stem>.deferred.json:{"schema_version":1,"csv":"<stem>.csv","findings":[]};每个普通 issue 和 REVIEW-01 的 notes 都引用 deferred_ledger:<stem>.deferred.json
  • REVIEW-01 必须要求逐条回答 reader questions,并区分实现状态、验证状态和能力结论
  • 在普通执行 issue 之后,必须追加一条 REVIEW-01 作为首轮文档愿景验收;该行必须包含从源文档抽取的任务专属 claim/evidence 检查项,不能只写通用套话
  • 初始化状态:未开始 / 未提交
Claim 覆盖率扫描(HARD — 在追加 REVIEW-01 之前执行)

生成所有组件 issue 和接线 issue 后,执行以下覆盖率检查:

  1. 回读 Phase 2.6 的 claim ledger
  2. 对每条 claim,检查是否至少被一个 issue 的 acceptance_criteria 显式覆盖
  3. 若 claim 要求生产路径,检查是否存在独立接线 issue 或该 issue 的 AC 明确覆盖生产路径
  4. 检查每条 claim 的 evidence_required 是否能被对应 issue 的 test_mcp / required_mcp / review 条件支撑
  5. 未覆盖的 claim 按以下规则处理:
  • 在 execution_scope 内 → 补 issue 或追加到现有 issue 的 AC
  • 在 execution_scope 外(文档明确标注为 non-goal / future / deferred / 超出用户指定范围)→ 在 CSV 末尾 notes 记录 out_of_scope:<doc-section>;<reason>
  • 无法确定归属 → 补 issue 标 P2,交给 REVIEW-01 判断
  1. 覆盖率扫描完成后,在生成摘要中报告:Claim 覆盖: X/Y 条已覆盖,P 条生产路径已覆盖,Z 条标注 out_of_scope
  2. 将最终 claim/evidence ledger 写入 <stem>.claims.json;若任何 CSV notes 出现 claims:CLAIM-*,同一 notes 必须包含 claim_ledger:<path>

在 CSV 中记录账本时使用压缩 notes,不要把整篇 spec 复制进 CSV。推荐格式:

text
claim_ledger:<stem>.claims.json; claims:CLAIM-001,CLAIM-002; claim_coverage:X/Y; claim_coverage_status:pending; evidence_level:integration; production_path:covered
REVIEW-01 行规则

REVIEW-01 是审计事件,不是普通实现任务。

下表只列 REVIEW-01 需要覆盖的字段取值,不是完整 CSV 表头。实际 CSV 仍必须包含 csv-schema.md 中的全部 19 列;未列出的状态字段按标准默认值初始化:dev_state=未开始、review_initial_state=未开始、review_regression_state=未开始、git_state=未提交、owner=。

生成 REVIEW-01 时,先从批准文档中抽取用户真正承诺的结果,并写进 review 条件:

  • 若文档声明完成某个真实行为、真实副作用、真实集成、真实迁移、真实发送、真实同步、可见交互或端到端流程,review 条件必须检查证据是否支撑同等级声明
  • 若交付只使用 mock、fixture、stub、dry-run、scaffold、字符串检查或静态验证,review 条件必须要求它被如实标注,且不得冒充真实完成
  • 若测试或外部验证无法运行,review 条件必须检查是否记录 validation_limited / manual_test / risk,不得用替代假路径伪装通过
  • review_regression_requirements 必须包含 2-4 条来自源文档的任务专属检查项,并要求逐条审查 claim/evidence ledger;如果无法抽取,至少写明要审查 claim/evidence 是否一致

建议字段:

字段值
idREVIEW-01
priorityP0
phase最后阶段序号
areareview
titleReview documented vision against delivered work
descriptionUse the review capability ladder to compare approved-spec claims with delivered behavior, evidence level, CSV state, validation evidence, and review log.
acceptance_criteriaWHEN all non-review issues before this row are closed THEN try reviewer-subagent, codex-exec-independent, then self-review and classify every finding; WHEN a current-scope gap or overstated claim is found THEN append follow-up issues and REVIEW-02; WHEN a deferred improvement or future decision is found THEN write it to the deferred ledger without appending an issue; WHEN no current-scope gaps remain THEN close the CSV after the completed review, recording whether it was independent.
test_mcpMANUAL
required_skills留空
required_mcp留空,除非文档本身要求浏览器或外部验证
review_initial_requirementsVerify all prior non-review rows are closed before running this review.
review_regression_requirementsRun strongest available independent vision review against approved doc goals, non-goals, claim/evidence ledger, acceptance criteria, delivered diff, validation evidence, prior review logs, and source-specific claim/evidence alignment checks; classify current-scope gaps separately from deferred improvements and future decisions.
refs<doc-path>:1
notesreview_kind:vision; review_agent_mode:pending; review_independence:pending; review_requested_model:gpt-5.6-sol; review_observed_model:unknown; review_model_evidence:unknown; source_doc:<doc-path>; claim_ledger:<stem>.claims.json; outcome_contract:<stem>.outcomes.json; deferred_ledger:<stem>.deferred.json; review_json:reviews/review-01.json; claim_coverage:<X/Y>; claim_coverage_status:pending

Phase 4:生成后摘要

生成完成
- 快照: issues/<stem>/<stem>.csv
- 来源: <doc-path>
- Issues: N 条(含 REVIEW-01)
- 组件 issue: X 条
- 接线 issue: Y 条
- P0 任务: M 条
- Claim 覆盖: A/B 条 spec 承诺已覆盖,P 条生产路径已覆盖,C 条标注 out_of_scope
- Claim ledger: issues/<stem>/<stem>.claims.json
- Outcome Contract: issues/<stem>/<stem>.outcomes.json
- Deferred findings: issues/<stem>/<stem>.deferred.json
- 下一步: 进入闭环执行

Phase 5:委托执行

直接进入 mission-csv-execute 模式,以刚生成的 CSV 为输入,开始闭环执行。

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/flowing-water1/missions/mission-approved-doc/badge)](https://verified-skill.com/skills/flowing-water1/missions/mission-approved-doc)

Something wrong with this skill or its page? Tell us.