Skip to content

実装: open-pr SKILL.md の validator rule 一覧を runtime LP059 まで同期し drift を pytest で検出する #2820

Open

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "open-pr SKILL.md の validator rule 一覧を validate_pr_body.py の runtime rule 集合(LP059 を含む)と一致させ、drift を focused pytest で検出する"
change_kind: docs

Parent Issue

none

Parent Goal Ref

N/A(独立 follow-up Issue のため親 Goal なし)

Current Validated Scope

N/A(親 Issue が存在しないため対象外)

Remaining Parent Gaps

N/A(親 Issue が存在しないため対象外)

Outcome

.claude/skills/open-pr/SKILL.md の validator rule 列挙と「LP050〜LP058 を検査」の記述を、.claude/skills/open-pr/scripts/validate_pr_body.py が emit する全 rule id(LP054 と LP059 を含む)に同期した状態にする。あわせて .claude/skills/open-pr/tests/test_skill_validator_rule_parity.py を 1 本追加し、validate_pr_body.py 中の LP0xx 集合が SKILL.md に全て言及されていることを検査する。完了条件は AC の VC が全て pass することとする。

Runtime Verification Applicability

  • decision: not_applicable
  • reason: docs 同期と静的 parity pytest のみで完結し、runtime 挙動を変更しないため

In Scope

  • .claude/skills/open-pr/SKILL.md の「validate_pr_body.py が担う rule」箇条書き(現状 LP050〜LP058、L69-76 付近)に、runtime に存在し未掲載の rule(LP054 / LP059)を追記する
  • 同 SKILL.md の「LP050〜LP058 を検査」記述(L258 付近)を current runtime の範囲(LP050〜LP059)に更新する
  • 新規 test .claude/skills/open-pr/tests/test_skill_validator_rule_parity.py: validate_pr_body.py のソースから LP\d{3} を抽出し、全 id が SKILL.md に出現することを assert する(最小 1 本。新しい registry / schema / harness は作らない)

Out of Scope

  • LP059 自体の変更、validate_pr_body.py の実装変更
  • 他 skill の docs 更新
  • generic な docs-drift gate の導入
  • 新しい registry / schema / approval layer / heavyweight harness の追加

Acceptance Criteria

  • AC1: SKILL.md に LP054 と LP059 の rule 説明行が存在する
  • AC2: SKILL.md に stale な「LP050〜LP058」記述が残っていない
  • AC3: parity pytest が存在し、validate_pr_body.py の全 LPxxx が SKILL.md に言及されていることを検査して pass する
  • AC4: 追加 test が既存 CI target(.claude/skills/open-pr/tests/)で収集される

Verification Commands

# AC1
$ rg -c "^- (LP054|LP059):" .claude/skills/open-pr/SKILL.md
# AC2
# expect: exit 1 (0 hit)
$ rg -n "LP050〜LP058" .claude/skills/open-pr/SKILL.md
# AC3
# baseline-expect: fail
$ uv run pytest .claude/skills/open-pr/tests/test_skill_validator_rule_parity.py -v
# AC4
$ uv run pytest --collect-only -q .claude/skills/open-pr/tests/test_skill_validator_rule_parity.py

Allowed Paths

  • .claude/skills/open-pr/SKILL.md
  • .claude/skills/open-pr/tests/test_skill_validator_rule_parity.py
  • .github/ci/python-test-plan.json(.claude/skills/open-pr/tests/ が既存 target に含まれるため原則変更不要)

Stop Conditions

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

Required Skills

なし

Required Design References

  • .claude/skills/open-pr/SKILL.md(同期対象)
  • .claude/skills/open-pr/scripts/validate_pr_body.py(rule id の runtime 正本)

Scope Delta(任意)

N/A

Notes for Reviewer

Delivery Rule

Activity

  1. added
    enhancement
    phase/implementation
    on Sep 28, 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

    enhancementphase/implementation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions