Skip to content

実装: issue-refinement-loop Step 0a の gh api repos ハードコードを動的リポジトリ取得へ置換する #129

Open

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "issue-refinement-loop Step 0a の gh api コマンドに埋め込まれた squne121/loop-protocol というリポジトリ名ハードコードを、gh repo view による動的取得へ置換する"
change_kind: docs

Parent Issue

なし(単独改善)

Parent Goal Ref

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

Current Validated Scope

  • .claude/skills/issue-refinement-loop/SKILL.md の Step 0a コードブロック内にある repos/squne121/loop-protocol/issues/comments/$COMMENT_ID を、動的なリポジトリ名取得を使った形式に書き換える

Remaining Parent Gaps

なし

Outcome

.claude/skills/issue-refinement-loop/SKILL.md の Step 0a コードブロックから repos/squne121/loop-protocol/ というリテラル文字列が削除され、代わりに gh repo view --json nameWithOwner 等による動的リポジトリ名取得が記述されたコミットが存在する状態。

In Scope

  • SKILL.md の Step 0a の bash コードブロックを書き換え:
    • gh api "repos/squne121/loop-protocol/issues/comments/$COMMENT_ID" の squne121/loop-protocol 部分を、実行時に動的取得する形式へ置換する
    • 例: REPO=$(gh repo view --json nameWithOwner -q '.nameWithOwner') を前置し、gh api "repos/$REPO/issues/comments/$COMMENT_ID" へ変更する

Out of Scope

  • Step 0a 以外のセクションの変更
  • gh repo view 以外の動的取得方式の検討(調査不要、gh repo view が標準的手法)
  • SKILL.md 内の他のハードコード箇所の修正(今回は Step 0a のみ)

Acceptance Criteria

  • AC1: .claude/skills/issue-refinement-loop/SKILL.md に repos/squne121/loop-protocol/ というリテラル文字列が存在しない
  • AC2: Step 0a コードブロックに gh repo view または同値の動的リポジトリ名取得コマンドが記述されている

Verification Commands

# AC1: ハードコード文字列の削除確認
grep "squne121/loop-protocol" .claude/skills/issue-refinement-loop/SKILL.md && echo "FAIL: hardcode 残存" || echo "PASS: hardcode 削除済み"

# AC2: 動的取得コマンドの存在確認
grep -n "gh repo view\|nameWithOwner\|REPO=" .claude/skills/issue-refinement-loop/SKILL.md | grep -v "^Binary" && echo "PASS: 動的取得コマンド存在" || echo "FAIL: 動的取得コマンド未記述"

Allowed Paths

  • .claude/skills/issue-refinement-loop/SKILL.md

Stop Conditions

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

Required Skills

なし

Delivery Rule

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/implementerenhancementphase/implementationstate/blocked

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions