Skip to content

実装: implement-issue に pre-existing lint 失敗の扱い方ガイドを追記する #188

Closed as not planned

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: none
goal_ref: "implement-issue / test-runner SubAgent が pre-existing lint 失敗を自律的に識別し PR 本文に記録できるようにする"
change_kind: docs

Parent Issue

なし(単独改善)

Parent Goal Ref

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

Current Validated Scope

  • .claude/skills/implement-issue/SKILL.md に「lint が fail した場合に pre-existing か否かを判定する手順」を追記
  • .claude/agents/test-runner.md に同じ判定基準を追記(TEST_VERDICT の baseline_only フィールドと連動)

Remaining Parent Gaps

なし

Outcome

.claude/skills/implement-issue/SKILL.md と .claude/agents/test-runner.md の両ファイルに pre-existing lint 失敗の判定手順・PR 本文記録フォーマットが追記され、rg "pre-existing" .claude/skills/implement-issue/SKILL.md .claude/agents/test-runner.md が両ファイルで PASS している状態。

Background

PR #177 の実装・レビューで pnpm lint の pre-existing 失敗(worktree tsconfig 検出による 62 件)を繰り返し baseline_only として判断し直す工程が発生した。implement-issue / test-runner SubAgent が pre-existing lint 失敗を自律的に識別して PR 本文に記録できるよう、各 SKILL.md に判断基準を追記する必要がある。

In Scope

  • .claude/skills/implement-issue/SKILL.md に以下を追記:
    • lint が fail した場合に pre-existing か否かを判定する手順(main ブランチで同コマンドを実行して同じエラーが出るかを確認する)
    • PR 本文への記録フォーマット: lint: fail (pre-existing — <件数> errors, <理由>)
  • .claude/agents/test-runner.md に同じ判定基準を追記(TEST_VERDICT の baseline_only フィールドと連動)

Out of Scope

  • pnpm lint の pre-existing 失敗を自動修正するスクリプトの作成
  • impl-review-loop の自動判定スクリプト化
  • 他の VC コマンド(typecheck / test / build)への pre-existing 判定拡張
  • pr-review-judge/SKILL.md の変更

Acceptance Criteria

  • .claude/skills/implement-issue/SKILL.md に、lint fail 時の pre-existing 判定手順(main ブランチで同コマンドを実行して同じエラーが出るか確認する)が追記されている
  • .claude/skills/implement-issue/SKILL.md に PR 本文への記録フォーマット lint: fail (pre-existing — <件数> errors, <理由>) が記載されている
  • .claude/agents/test-runner.md に同じ pre-existing 判定基準が追記され、baseline_only フィールドとの連動が明記されている

Verification Commands

  • rg "pre-existing" .claude/skills/implement-issue/SKILL.md && echo "PASS: implement-issue に pre-existing 記述あり" || echo "FAIL: 記述なし"
  • rg "pre-existing" .claude/agents/test-runner.md && echo "PASS: test-runner に pre-existing 記述あり" || echo "FAIL: 記述なし"
  • rg "baseline_only" .claude/agents/test-runner.md && echo "PASS: baseline_only 連動記述あり" || echo "FAIL: 記述なし"
  • rg "lint: fail \(pre-existing" .claude/skills/implement-issue/SKILL.md && echo "PASS: PR 本文記録フォーマットあり" || echo "FAIL: フォーマット記述なし"
  • uv run pytest .claude/skills/gemini-cli-headless-delegation/tests/test_model_routing.py

Allowed Paths

  • .claude/skills/implement-issue/SKILL.md
  • .claude/agents/test-runner.md

Stop Conditions

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

Required Skills

なし

Scope Delta(任意)

N/A

Delivery Rule

Activity

  1. added
    enhancement
    phase/implementation
    state/queued
    agent/implementer
    on May 21, 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