Repository navigation
refactor: レビュー系 skill / agent を LOOP_PROTOCOL 用に適合 (phase C-3) - #19
Merged
Merged
Conversation
PR #12 のトリアージ判定 + PR #17-18 で確立した「SubAgent = 役割、Skill = 作業手順」 モデルに従い、レビュー系 skill / agent を LOOP_PROTOCOL 用に書き直す。 スコープ: - .claude/skills/pr-review-judge/SKILL.md (388 → 189 行) - .claude/skills/pr-review-judge/references/best-practices.md (41 → 71 行、書き直し) - .claude/skills/pr-review-judge/references/review-output-contract.md → 削除 (SKILL.md と重複) - .claude/skills/pr-review-judge/references/step-3x-domain-verification-template.md → 削除 (KindleAudiobook 固有) - .claude/skills/pr-review-judge/agents/openai.yaml → 削除 (CodexCLI 設定、LOOP_PROTOCOL 不要) - .claude/agents/pr-reviewer.md (82 → 40 行、薄い役割定義) 主な変更: ### pr-review-judge (skill) - LOOP_PROTOCOL 用に書き直し - TEST_VERDICT_MACHINE v1 マーカー経由の mergeable 状態取得は維持 - LOOP_VERDICT YAML 出力契約は維持 (impl-review-loop との連携) - self-authored PR ガード (--comment のみ) 維持 削除した残骸: - adversarial-review / adversarial-reviewer 参照 (不採用方針 PR #12) - structured comment (FINDING_REF) — adversarial 連携用、不要 - Normalized Findings Reference 章 - HALT_BASELINE verdict / baseline-only failure 複雑判定 (簡素化) - local-ci/just-check / just check → pnpm typecheck/lint/test/build - KindleAudiobookMakeSystem 絶対 API パスのハードコード - .codex/agents/*.toml / AGENTS.md / GEMINI.md exempt path patterns - cc-sdd profile checks (doc-lint / structure チェッカー PR 専用) - live verification 検証ステップ (LOOP_PROTOCOL はブラウザゲームで live verify なし) - .agents/rules/ / shared-agent-skills-governance/ 参照 - ## Use When セクション (description で代替) - ## 責務分離原則 章 (docs/dev/agent-skill-boundaries.md に集約済み) ### pr-reviewer (agent) - 薄い役割定義に (82 → 40 行) - 作業手順は pr-review-judge skill に委譲 - Rules Injection 機構を撤去 - adversarial-reviewer / security-reviewer 言及を削除 ### references - best-practices.md: shared-agent-skills-governance 参照を除去、PR 用 worktree を tmp/pr-review-* → .claude/worktrees/pr-review-* に更新 - review-output-contract.md: SKILL.md と重複のため削除 - step-3x-domain-verification-template.md: KindleAudiobook 固有 (Kindle for PC2 実機検証、.kiro/specs/) のため削除 検証: - pnpm typecheck / lint / test (5) / build すべて通過 - 残骸 grep 全件 0 件 Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This was referenced May 19, 2026
squne121
added a commit
that referenced
this pull request
May 19, 2026
#22) * refactor: 補助系 (codebase-investigator) を LOOP_PROTOCOL 用に適合 (phase C-5) 設計記述・責務境界の長い説明を agent ファイルから削除(PR #21 の方針: 設計は docs/dev/agent-skill-boundaries.md に集約、agent / skill は作業手順に専念)。 スコープ: - .claude/agents/codebase-investigator.md (93 → 64 行) 主な変更: - 「責務境界: ローカルコード調査専念」セクション削除(設計記述) - 「役割と責務」「制約」の冗長記述削除(description と disallowedTools で表現) - web-researcher への委任フロー → gemini-cli-headless-delegation 経由 (呼び出し元の責務として簡素化) - 入力契約をコンパクトに web-researcher は保留方針 (PR #12) のため本 PR では触らない。 検証: pnpm typecheck / lint / test (5) / build すべて通過 これで Phase C (流用 skill / agent の LOOP_PROTOCOL 適合) が完了: - C-1: Issue 管理系 (PR #17 マージ済み) - C-2: 実装系 (PR #18 マージ済み) - C-3: レビュー系 (PR #19 マージ済み) - C-4a: open-pr + post-merge-cleanup (PR #20 マージ済み) - C-4b: impl-review-loop + issue-refinement-loop (PR #21 マージ済み) - C-5: 補助系 (本 PR) 次は Phase D (統合検証)。 Co-Authored-By: Claude Sonnet 4.6 <[email protected]> * refactor: PR #22 レビュー指摘を反映 — codebase-investigator は必ず gemini-cli-headless-delegation 経由で委譲 PR #22 のレビュー指摘 r3266005474 を反映する。 > .claude/agents/codebase-investigator.md も gemini-cli-headless-delegation で必ず作業を委譲するようにして。 実調査 (Read / Grep / Glob による大規模スキャン) はすべて gemini-cli-headless-delegation skill 経由で Gemini に委譲する設計に変更。本 SubAgent 自身はリクエスト構築 + 委譲 + 結果整形に専念する。 主な変更: - tools から Grep / Glob を削除 (disallowedTools に移動して技術的にもブロック) - 残った tools: Bash (wrapper 起動) + Read (結果読み取り) - 振る舞いセクションを「実調査は Gemini に委譲」と明示 - 入力モードを 2 種類定義し、それぞれの delegation_request_v1 JSON 雛形を例示 - ローカル調査モード: tool_profile=local_asset_research, role=code_research - gh 調査モード: tool_profile=github_research, role=github_research, gh_commands で gh issue list を委譲実行 - 報告形式に「委譲メタ」(wrapper exit / model / request path) を追加 - 委譲不可時 (wrapper ok: false、preflight 失敗) は fail-close (自力代替調査しない) 検証: pnpm typecheck / lint / test (5) / build すべて通過 Co-Authored-By: Claude Sonnet 4.6 <[email protected]> --------- Co-authored-by: Claude Sonnet 4.6 <[email protected]>
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PR #12 のトリアージ判定 + PR #17 / #18 で確立した 「SubAgent = 役割、Skill = 作業手順」 モデルに従い、レビュー系 skill / agent を LOOP_PROTOCOL 用に書き直しました。
.claude/skills/pr-review-judge/SKILL.md.claude/skills/pr-review-judge/references/best-practices.md.claude/worktrees/に統一等).claude/skills/pr-review-judge/references/review-output-contract.md.claude/skills/pr-review-judge/references/step-3x-domain-verification-template.md.claude/skills/pr-review-judge/agents/openai.yaml.claude/agents/pr-reviewer.md差分: +230 / -611 行(381 行削減)
主な変更
pr-review-judgeskill保持:
--commentのみ使用、--approve/--request-changes使わない)Procedure(簡素化):
0. self-authored PR ガード判定
Closes #N)gh pr view --json)gh pr checks)pr-revieweragent「PR レビューを担当する役割」 として薄く(手順は
pr-review-judgeskill に委譲)。除去した残骸(grep 全件 0 件確認)
adversarial-review/adversarial-reviewer参照(不採用方針 PR chore: フェーズ A — 流用 agent/skill 群の import-as-is + トリアージ表 #12)FINDING_REF)/ Normalized Findings Reference 章(adversarial 連携用)local-ci/just-check/just check→pnpm typecheck/lint/test/buildKindleAudiobookMakeSystem絶対 API パスのハードコード.codex/agents/*.toml/AGENTS.md/GEMINI.mdexempt path patternscc-sddprofile checks(doc-lint / structure チェッカー PR 専用).agents/rules//shared-agent-skills-governance/参照## Use Whenセクション(description で代替)## 責務分離原則章(docs/dev/agent-skill-boundaries.mdに集約済み)検証
pnpm typecheck✅pnpm lint✅pnpm test✅ (4 files / 5 tests)pnpm build✅関連
🤖 Generated with Claude Code