Repository navigation
Open
Labels
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: none
goal_ref: "review-issue C4/C5 を同時に満たす Verification Commands 推奨形式のガイドが body-authoring.md に存在しない問題を解消する"
change_kind: docsParent Issue
なし(単独改善)
Parent Goal Ref
- Goal: create-issue / edit-issue skill が VC を生成・提案するとき、review-issue C4/C5 を同時に満たす形式の知識を持てるようにする
- Desired Destination: N/A(単独改善 Issue のため)
Current Validated Scope
.claude/skills/create-issue/references/body-authoring.mdの## VC 作成ガイダンスセクション配下に「Verification Commands 推奨形式」サブセクションを追記する
Remaining Parent Gaps
なし(単独改善 Issue のため)
Scope Delta
- 追加:
body-authoring.mdへの「Verification Commands の推奨形式」サブセクション追記 - 削除: なし
- 変更: なし
Background
review-issue には以下の 2 つの品質チェックが存在する。
- C4:
## Verification Commands配下に^[-$]先頭行が 1 件以上必要(bullet または$シェルプロンプト形式) - C5:
## Verification Commands内の AC 番号コメント件数 = AC チェックボックス数(rg "# AC[0-9]"の件数 =rg "- \[ \] AC[0-9]"の件数)
Issue #171 の refinement loop で 3 iteration を要した根本原因は、C4 と C5 を同時に満たす形式の知識が body-authoring.md に記載されていなかったことである。
具体的な経緯:
- 最初の VC はコードブロック形式(AC 番号コメント付きで C5 PASS だが
^[-$]なしで C4 FAIL) - bullet 形式に変換したら C4 PASS になったが AC 番号コメントが消えて C5 FAIL
- ハイブリッド形式(
-bullet 品質ゲート + コードブロック内に AC 番号コメント)で両立
body-authoring.md には ## AC/VC 番号一致制約 セクション(行 120)に AC 番号コメントの例が記載されているが、C4 との両立方法(bullet 形式との組み合わせ)は明示されていない。
Outcome
.claude/skills/create-issue/references/body-authoring.md の ## VC 作成ガイダンス セクション配下に「Verification Commands の推奨形式」サブセクションが追記され、C4/C5 を同時に満たすハイブリッド形式の例と NG 形式の説明が記載された状態が main にマージされている。
Runtime Verification Applicability
- decision: not_applicable
- reason: docs-only 変更。VC は静的
rgで確認可能。プロセス起動・I/O は不要。
In Scope
body-authoring.mdの## VC 作成ガイダンス配下に「### Verification Commands の推奨形式」サブセクションを追記する- 推奨ハイブリッド形式の例(
-bullet 品質ゲート + コードブロック内 AC 番号コメント)を示す - NG 例(コードブロックのみ → C4 FAIL、bullet のみで AC 番号コメントなし → C5 FAIL)を記載する
- C4 チェック要件(
^[-$]先頭行)と C5 チェック要件(AC 番号コメント件数一致)への参照を明記する
Out of Scope
review-issueC4/C5 チェックロジックの変更- 既存 Issue / PR の VC 本文を遡及して修正すること
body-authoring.mdの他セクションの変更create-issue/edit-issueskill の変更
Acceptance Criteria
- AC1:
body-authoring.mdに「Verification Commands の推奨形式」サブセクション(見出し###レベル)が追加されている - AC2: 推奨形式の例に
-prefix bullet(C4 品質ゲート)と AC 番号コメント付きコードブロック(C5 対応)のハイブリッド形式が示されている - AC3: NG 例として「コードブロックのみ(→ C4 FAIL)」と「bullet のみで AC 番号コメントなし(→ C5 FAIL)」の 2 パターンが記載されている
Verification Commands
# AC1: 推奨形式サブセクション見出しの存在確認
rg -n "Verification Commands の推奨形式" .claude/skills/create-issue/references/body-authoring.md# AC2: ハイブリッド形式(bullet と AC 番号コメント)が推奨形式セクション内に存在する
rg -nA 50 "Verification Commands の推奨形式" .claude/skills/create-issue/references/body-authoring.md | rg "^\- \`"
rg -nA 50 "Verification Commands の推奨形式" .claude/skills/create-issue/references/body-authoring.md | rg "# AC[0-9]"# AC3: NG 例に C4 FAIL / C5 FAIL の言及が存在する
rg -nA 80 "Verification Commands の推奨形式" .claude/skills/create-issue/references/body-authoring.md | rg "C4 FAIL|C5 FAIL"Allowed Paths
.claude/skills/create-issue/references/body-authoring.md
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
- 後続 Phase / 別スコープへの波及が判明した場合
- nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
Required Skills
なし
Delivery Rule
1 Issue = 1 PR- 同一ファイル(
body-authoring.md)を Allowed Paths に含む Issue 実装: body-authoring.md の VC コマンド例を $ プレフィックス形式に統一し review-issue C4 との不整合を解消する #161 が先行 OPEN のため、Depends on #161 merge(マージコンフリクト回避) - Draft PR 既定
Activity
squne121 commentedon May 22, 2026
追加事例: issue-author が AC 全件に対応する VC を省略した
issue-refinement-loop (#146 refinement, 2026-05-22) で issue-author SubAgent が Issue 本文を生成した際、
AC0〜AC6(7件)のうち AC2/AC3/AC5 の VC コマンドが省略され、VC AC 参照が 4件のみとなった(C5 FAIL)。
review-issueC5 が FAIL を検出して修正が入ったが、issue-author の生成時点で全 AC への VC 対応がbody-authoring.md に明記されていれば省略を防げた可能性がある。
特に「Issue コメント記録の確認」「API レスポンス確認」など runtime 後確認型の AC は、
具体的な VC コマンド例(
gh issue view --comments/gh apireadback)を body-authoring.md に追記することで issue-author が参照しやすくなる。
本コメントは issue-refinement-loop 完了後の派生改善記録として追加(dedupe_key: issue-author-vc-omission-2026-05-22)。
squne121 commentedon May 22, 2026
関連事例: #148 refinement loop (2026-05-22)
Issue #148 の refinement loop で同じ問題を踏んだ。
具体的なパターン:
bashコードブロック形式で VC を提示^[-$]始まり行)で FAIL → 追加 iteration が必要になった# AC[0-9]マーカー)も未対応で FAIL → さらに追加 iteration結果として iteration 0→1→2 と3回ループが必要になった。
期待する改善:
-リスト形式を使い、# AC#:コメントマーカーで AC 番号を明示する」を規定Source: issue-refinement-loop iteration on #148 / anchor_comment: #148 (comment)
squne121 commentedon May 23, 2026
issue-refinement-loop #211 での実症例 (2026-05-23)
Issue #211 の refinement loop (iteration 1) で、VC コマンドを bash code block 形式で書いたために C4 チェックが fail した実症例を記録します。
発生状況
anchor_comment(OWNER によるリフレーム提案)の VC は以下の bash code block 形式で記述されていた:
この形式では
^[-$]チェック(C4)に失敗する。edit-issue の iteration で- \cmd` — description # ACN` 形式に変換して解消した。示唆
- \cmd` — descriptionまたは$ cmd` 形式を使うこと」を明記すると、この変換コスト(1 iteration)を事前に防げる関連
squne121 commentedon May 23, 2026
refinement-loop #227 調査で判明: C5 check が '# ACN' スタイルを期待しているが、プロジェクトは '- ACN:' スタイルを使用している
#227 の refinement loop(2026-05-23)で C5 の機械的チェックが常に fail することを確認しました。
現状
# AC[0-9]+(shell comment style)を VC セクションで検索します- AC0–AC1: commandなどの list item スタイルです観察された例(#227 refinement loop)
- ACN:形式の参照あり# ACN→ FAIL提案
この Issue (#191) のスコープに「C5 check を format-agnostic に改修(
# ACNと- ACN:両スタイルを受け入れる)」も含めることを検討してください。body-authoring.md へのガイド追記だけでなく、check 自体の修正も必要です。source: #227 refinement loop, dedupe_key: review-issue-c5-check-format-agnostic
squne121 commentedon May 23, 2026
観察: refinement-loop #294 での VC $ プレフィックス連続失敗(2026-05-23)
Issue #294 の issue-refinement-loop 実行中に以下のパターンを観察:
何が起きたか
bash\n# ACN\n<command>\n)で生成したuv run、rg、test -f、pnpm)が$プレフィックスなし^[\-\$]始まり行が 1 件以上)が連続 2 回 FAILギャップ
edit-issueSubAgent は VC を生成する際に「$プレフィックスを付ける」というルールを知らない(または適用していない)。body-authoring.mdに「bash block 内のコマンド行には$プレフィックスを付ける」と明記する、またはedit-issueskill の VC 生成ガイダンスに追記することで再発を防げる。影響
max_iterations=3 の refinement-loop で iteration をこの 1 点に消費するケースが想定される(今回がその例)。
Source: #294 (comment)