Skip to content

実装: body-authoring.md に lint 系 AC/VC の実行環境(worktree vs main repo root)を明示するガイドラインを追記する #217

Open

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: none
goal_ref: "lint 系 VC の実行環境(worktree vs main repo root)を body-authoring.md に明示し、同種の証跡不足を再発防止する"
change_kind: docs

Parent Issue

なし(単独改善)

Parent Goal Ref

  • Goal: N/A(単独改善)
  • Desired Destination: N/A

Current Validated Scope

  • .claude/skills/create-issue/references/body-authoring.md の「VC 作成ガイダンス」セクションに、lint 系 VC の実行環境に関するガイドラインを追記する

Remaining Parent Gaps

なし

Outcome

.claude/skills/create-issue/references/body-authoring.md の「VC 作成ガイダンス」セクションに「lint 系 VC(pnpm lint、eslint . 等)は main repo root を cwd として実行する前提」「worktree 内 cwd からの lint 実行が ignore 設定効果の証拠として不十分なケースの説明」「正しい証跡例(pwd/git rev-parse --show-toplevel/find .claude/worktrees -maxdepth 1 -type d の出力を含めること)」が追記され、git grep で当該ガイドラインの記述が確認できる状態。

Background

PR #215(eslint.config.mjs への worktree ignore 追加)のレビューで以下の問題が発覚した:

  • implementation-worker SubAgent が lint 系 AC の検証を worktree 内の cwd から実行した
  • これは「worktree が存在する状態で pnpm lint が pass する」という AC2/AC3 を満たす証跡として 不十分だった
  • worktree 内 cwd から eslint . を実行しても、sibling の main repo .claude/worktrees/ は traversal 対象に入らないため、「ignore が機能している」ことを直接証明できない
  • 正しい証跡は main repo root から pnpm lint と eslint --debug を実行することだった

現行の body-authoring.md(.claude/skills/create-issue/references/body-authoring.md)には、lint 系 VC で「どの cwd から実行すべきか」の明示ガイドラインがなく、同種の設計ミスが再発するリスクがある。

In Scope

  • .claude/skills/create-issue/references/body-authoring.md の「VC 作成ガイダンス」セクションに以下を追記する:
    • lint 系 VC(pnpm lint、eslint . 等)は main repo root(git rev-parse --show-toplevel の出力先)を cwd として実行する前提を明記する
    • worktree 内 cwd からの lint 実行が「ignore 設定の効果を証明する」証跡として不十分なケースの説明(traversal 範囲の差異)
    • 正しい証跡例の記載: pwd、git rev-parse --show-toplevel、find .claude/worktrees -maxdepth 1 -type d の出力を証跡として含めること

Out of Scope

Acceptance Criteria

  • AC1: .claude/skills/create-issue/references/body-authoring.md の「VC 作成ガイダンス」セクション配下に、lint 系 VC は main repo root を cwd として実行する前提である旨の記述が存在する
  • AC2: 同ファイルに、worktree 内 cwd からの lint 実行が ignore 設定効果の証跡として不十分なケースの説明が存在する
  • AC3: 同ファイルに、正しい証跡例(pwd/git rev-parse --show-toplevel/find .claude/worktrees -maxdepth 1 -type d の出力を含める)の記載が存在する

Verification Commands

# AC1: lint 系 VC は main repo root から実行する前提の記述を確認
git grep -n "main repo root" .claude/skills/create-issue/references/body-authoring.md
# → 1 件以上ヒットすること

# AC2: worktree 内 cwd が証跡として不十分なケースの説明を確認
git grep -n "worktree" .claude/skills/create-issue/references/body-authoring.md | grep -i "lint\|ignore\|不十分\|traversal"
# → 1 件以上ヒットすること

# AC3: 正しい証跡例(git rev-parse --show-toplevel)の記載を確認
git grep -n "git rev-parse --show-toplevel" .claude/skills/create-issue/references/body-authoring.md
# → 1 件以上ヒットすること

# 全 AC 一括確認(PASS/FAIL)
PASS=true
git grep -qn "main repo root" .claude/skills/create-issue/references/body-authoring.md || { echo "FAIL AC1: main repo root の記述なし"; PASS=false; }
git grep -n "worktree" .claude/skills/create-issue/references/body-authoring.md | grep -qiE "lint|ignore|不十分|traversal" || { echo "FAIL AC2: worktree 証跡不十分の説明なし"; PASS=false; }
git grep -qn "git rev-parse --show-toplevel" .claude/skills/create-issue/references/body-authoring.md || { echo "FAIL AC3: 証跡例なし"; PASS=false; }
$PASS && echo "ALL PASS"

Allowed Paths

  • .claude/skills/create-issue/references/body-authoring.md

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合
  • In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
  • 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
  • 後続 Phase / 別スコープへの波及が判明した場合
  • nested SubAgent delegation が必要になった場合
  • 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合

Required Skills

なし

Scope Delta(任意)

N/A

Delivery Rule

Related Issues

Activity

  1. added
    enhancement
    phase/implementation
    state/queued
    agent/implementer
    on May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/implementerenhancementphase/implementationstate/queued

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions