Skip to content

feat(development-pr-workflow): rewrite resolve-pr-issues as orchestration pipeline#410

Merged
wkoutre merged 5 commits intonextfrom
feat/resolve-pr-issues-rewrite
Feb 26, 2026
Merged

feat(development-pr-workflow): rewrite resolve-pr-issues as orchestration pipeline#410
wkoutre merged 5 commits intonextfrom
feat/resolve-pr-issues-rewrite

Conversation

@wkoutre
Copy link
Contributor

@wkoutre wkoutre commented Feb 19, 2026

Summary

  • Rewrites the resolve-pr-issues skill from a loose reference guide into a structured 7-phase orchestration pipeline with explicit triage-then-dispatch for all PR feedback (inline comments, review bodies, CI failures)
  • Adds new comment-resolver-agent for per-file-group comment resolution via subagent dispatch
  • Updates pr-guide.md with triage decision framework, reply protocol, blocking classification, and CI handling reference
  • Bumps plugin version 2.0.12.1.0

Changes

New: agents/comment-resolver.md

Per-file agent that receives triaged ACTION_REQUIRED comments and applies code changes. Handles CI failures (can run commands, not just edit files). Supports cross-file changes when a comment requires it. Does NOT commit or post replies — the orchestrator handles those.

Rewritten: skills/resolve-pr-issues/SKILL.md

New 7-phase workflow:

  1. Phase 0: Input Parsing — extract PR number, owner/repo, validate access
  2. Phase 1: Gather — parallel fetch of inline comments, review bodies (via gh api), CI status, diff
  3. Phase 2: Normalize — unified item list with blocking classification, resolved/outdated detection, CI bot deduplication
  4. Phase 3: Triage — per-item decision tree: ACTION_REQUIRED → subagent, RESPOND_ONLY → post reply, NO_ACTION → skip
  5. Phase 4: Dispatch — group by file → spawn comment-resolver-agent per group; post replies for RESPOND_ONLY items directly
  6. Phase 5: Collect & Verify — gather agent results, detect project tooling, run lint/typecheck/tests
  7. Phase 6: Commit & Report — ask user before committing, structured summary

Key improvements over previous version:

  • Review bodies are now handled — the old skill only processed inline comments
  • Subagent dispatch — code changes are parallelized per-file instead of running sequentially in one context
  • Explicit triage protocol — every comment gets a visible classification before action
  • Reply-when-decliningRESPOND_ONLY items get substantive replies instead of being silently skipped
  • Resolved/outdated filtering — already-resolved threads are skipped to avoid duplicate work
  • Unified CI handling — CI failures go through the same triage pipeline as human comments

Rewritten: skills/resolve-pr-issues/pr-guide.md

Complete restructure to support new workflow. Adds: triage decision framework with examples, blocking classification rules with language overrides, review body parsing guidance, CI bot deduplication rules, subagent dispatch reference, reply protocol with templates, unified CI handling, phase-specific error handling table.

Modified: .claude-plugin/plugin.json

Added ./agents/comment-resolver.md to agents array. Version bump 2.0.12.1.0.

Modified: Plugin CLAUDE.md and root CLAUDE.md

Updated component lists and version table.

Backward Compatibility

  • review-executor.md agent is unchangedresolve-all-prs continues to work as before
  • resolve-all-prs skill is unchanged
  • No breaking changes to existing workflows

Test plan

  • Run node scripts/validate-plugin.cjs packages/plugins/development-pr-workflow — validates plugin structure
  • Run npm exec markdownlint-cli2 -- --fix on changed files — validates markdown
  • Smoke test: invoke /resolve-pr-issues on a real PR with inline comments and review body
  • Verify resolve-all-prs still works (backward compat)

✨ Claude-Generated Content

Summary

  • Rewrites the resolve-pr-issues skill from a loose reference guide into a structured 7-phase orchestration pipeline with explicit triage-then-dispatch for all PR feedback (inline comments, review bodies, CI failures)
  • Adds new comment-resolver-agent for per-file-group comment resolution via subagent dispatch
  • Updates pr-guide.md with triage decision framework, reply protocol, blocking classification, and CI handling reference
  • Bumps plugin version 2.0.12.1.0

Changes

File Change
agents/comment-resolver.md New agent: receives triaged ACTION_REQUIRED comments per file group, applies code changes, handles CI failures (can run commands), supports cross-file changes. Does NOT commit or post replies — the orchestrator handles those
skills/resolve-pr-issues/SKILL.md Rewritten as 7-phase workflow: Input Parsing → Gather → Normalize → Triage → Dispatch → Collect & Verify → Commit & Report. Adds review body handling, subagent dispatch, explicit triage protocol, reply-when-declining, resolved/outdated filtering, and unified CI handling
skills/resolve-pr-issues/pr-guide.md Complete restructure: adds triage decision framework with examples, blocking classification rules with language overrides, review body parsing guidance, CI bot deduplication rules, subagent dispatch reference, reply protocol with templates, and phase-specific error handling table
.claude-plugin/plugin.json Added ./agents/comment-resolver.md to agents array; version bump 2.0.12.1.0
Plugin CLAUDE.md Updated component descriptions, agents list, and file structure tree
Root CLAUDE.md Updated version table for development-pr-workflow

Key Improvements Over Previous Version

  • Review bodies are now handled — the old skill only processed inline comments
  • Subagent dispatch — code changes are parallelized per-file instead of running sequentially in one context
  • Explicit triage protocol — every comment gets a visible classification before action
  • Reply-when-decliningRESPOND_ONLY items get substantive replies instead of being silently skipped
  • Resolved/outdated filtering — already-resolved threads are skipped to avoid duplicate work
  • Unified CI handling — CI failures go through the same triage pipeline as human comments

Backward Compatibility

  • review-executor.md agent is unchangedresolve-all-prs continues to work as before
  • resolve-all-prs skill is unchanged
  • No breaking changes to existing workflows

Test plan

  • Run node scripts/validate-plugin.cjs packages/plugins/development-pr-workflow — validates plugin structure
  • Run npm exec markdownlint-cli2 -- --fix on changed files — validates markdown
  • Smoke test: invoke /resolve-pr-issues on a real PR with inline comments and review body
  • Verify resolve-all-prs still works (backward compat)

…tion pipeline

Redesign the resolve-pr-issues skill from a loose reference guide into a
structured 7-phase orchestration workflow that:

- Fetches all PR feedback: inline comments, review bodies (via gh api),
  and CI status in parallel
- Normalizes feedback into a unified item list with blocking classification,
  resolved/outdated detection, and CI bot deduplication
- Triages each item (ACTION_REQUIRED → subagent, RESPOND_ONLY → post reply,
  NO_ACTION → skip) using an explicit decision tree
- Dispatches comment-resolver-agent subagents per file group for code changes
- Posts substantive replies for items that don't need code changes
- Detects project tooling before running verification
- Asks user before committing

Also adds:
- New comment-resolver-agent for per-file comment resolution
- Updated pr-guide.md with triage framework, reply protocol, and CI handling
- Plugin version bump 2.0.1 → 2.1.0
@wkoutre wkoutre requested a review from a team as a code owner February 19, 2026 23:31
@vercel
Copy link

vercel bot commented Feb 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ai-toolkit-claude-review-bot-unleashed Error Error Feb 26, 2026 10:06pm
ai-toolkit-slack-oauth-backend Ready Ready Preview, Comment Feb 26, 2026 10:06pm

Request Review

@github-actions
Copy link
Contributor

github-actions bot commented Feb 19, 2026

🤖 Claude Code Review

Review complete

PR #410 Review — Add comment-resolver-agent and restructure resolve-pr-issues skill

Summary

This PR introduces a new comment-resolver-agent and significantly restructures the resolve-pr-issues skill from a simple sequential workflow into a phased orchestration pipeline (Phases 0–6) that triages PR feedback, dispatches parallel subagents per file group, and consolidates results. The changes are documentation-only (markdown agent definitions, skill instructions, and guide files) with no code changes.

What Changed

  1. New agent (agents/comment-resolver.md): Specialized subagent for resolving triaged PR review comments on specific files, with clear boundaries (no commits, no replies, no test suites).
  2. Rewritten SKILL.md: Replaced the simple "Quick Process" with a 7-phase orchestration workflow including input parsing, parallel data gathering, normalization, triage classification, parallel subagent dispatch, verification, and commit/report phases.
  3. Rewritten pr-guide.md: Expanded reference documentation with triage examples, blocking classification rules, CI bot deduplication, reply protocol with security notes, and error handling tables.
  4. Updated plugin.json: Added comment-resolver.md to agents array, bumped version 2.0.1 → 2.1.0.
  5. Updated docs: CLAUDE.md, README.md, and root CLAUDE.md version table all updated consistently.

Assessment

The PR is well-structured. The orchestration design is thorough — the phased approach with normalization, triage, and parallel dispatch is a solid architecture for handling the diverse types of PR feedback. The previous review comments have all been addressed with reasonable solutions (cross-agent conflict detection, dynamic base branch resolution, stale bot comment dedup exception).

No bugs, security issues, or blocking concerns found. The version bump (minor for new agent) is appropriate. All documentation files are internally consistent.

Minor Observations (Non-Blocking)

  • The allowed-tools line in SKILL.md frontmatter is quite long with duplicated MCP tool names for both mcp__plugin_github_github__* and mcp__plugin_uniswap-integrations_github__* prefixes. This is functional but could become a maintenance burden if MCP tool naming conventions change — not actionable now, just noting it.
  • The comment-resolver agent's naming follows the noun-role convention (comment-resolver) per the CLAUDE.md naming guidelines, which is correct.

💡 Want a fresh review? Add a comment containing @request-claude-review to trigger a new review at any time.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 19, 2026

📚 Documentation Check ✅

Verdict: Passed

All required documentation is properly updated: plugin version bumped from 2.0.1 to 2.1.0 (minor bump for new agent), root CLAUDE.md version table updated, plugin CLAUDE.md updated with new agent documentation and file structure, README.md updated with new agent in agents table, and plugin.json properly references the new comment-resolver agent.


PR #410 Documentation Review

Summary

PR #410 adds a new comment-resolver-agent to the development-pr-workflow plugin and significantly refactors the resolve-pr-issues skill into a structured triage-then-dispatch orchestration pipeline.

Checks Performed

Check Status Notes
Plugin version bumped ✅ PASS 2.0.1 → 2.1.0 (correct minor bump for new agent)
Root CLAUDE.md version table ✅ PASS Updated to show 2.1.0
Plugin CLAUDE.md updated ✅ PASS New agent documented, file structure updated, skill description updated
README.md updated ✅ PASS New agent added to agents table with accurate description
plugin.json agents array ✅ PASS comment-resolver.md added to agents array
New agent file created ✅ PASS agents/comment-resolver.md created with full documentation
SKILL.md significantly updated ✅ PASS Reflects new 6-phase orchestration workflow
pr-guide.md updated ✅ PASS New reference documentation for triage examples, reply templates, CI handling

No Issues Found

All internal documentation is synchronized with the code changes. The PR correctly follows semver (minor bump for backward-compatible new feature), updates all relevant documentation layers, and properly registers the new agent in plugin.json.

✨ No Documentation Updates Needed

All documentation appears to be up to date with the code changes.


🤖 Generated by Claude Documentation Validator | Mode: suggest

github-actions[bot]
github-actions bot previously approved these changes Feb 19, 2026
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📋 Review verdict: APPROVE

👆 The main review comment above is the source of truth for this PR review. It is automatically updated on each review cycle, so always refer to it for the most current feedback.

This formal review submission is for the verdict only. 2 inline comment(s) are attached below.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7edff7e731

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

- Add cross-agent file conflict detection in Phase 5 — orchestrator
  compares modified file lists from parallel agents and re-runs
  sequentially if overlaps detected
- Fix verification --base flag to use PR base branch (origin/next)
  instead of HEAD to match CI behavior
- Fix CI bot dedup to preserve CI failures when inline bot comment
  is stale/resolved
- Update comment-resolver-agent to emphasize reporting all modified
  files for conflict detection
github-actions[bot]
github-actions bot previously approved these changes Feb 20, 2026
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📋 Review verdict: APPROVE

👆 The main review comment above is the source of truth for this PR review. It is automatically updated on each review cycle, so always refer to it for the most current feedback.

This formal review submission is for the verdict only.

The docs-check bot flagged that the new comment-resolver-agent was
missing from the README Agents table despite being in plugin.json
and CLAUDE.md.
…esolve-pr-issues

- Reorder agents table in README to match plugin.json order
- Expand MCP tool prefixes in SKILL.md allowed-tools (support both plugin namespaces)
- Add merged/closed PR state warning to Phase 0 validation
- Clarify changed files list purpose in Phase 1 gather table
- Differentiate error handling tiers (inline stop-and-surface vs CI continue-with-note)
- Add "security"/"vulnerability" blocking overrides and "minor"/"nice to have" non-blocking
- Add rule 6 for ambiguous bug concerns (RESPOND_ONLY with user-review flag)
- Batch unlocated review body items (up to 3 per agent) and cap CI failure agents at 3
- Fix gh api reply commands to use mktemp + -F body=@file to prevent shell injection
- Align pr-guide.md dispatch table and decision tree with SKILL.md
- Remove redundant local verification section from pr-guide.md (pointer in SKILL.md)
development-pr-workflow bumped to 2.1.0 on this branch (orchestration rewrite);
development-productivity bumped to 2.1.1 on next (generate-document skill).
Keep both version updates.
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📋 Review verdict: APPROVE

👆 The main review comment above is the source of truth for this PR review. It is automatically updated on each review cycle, so always refer to it for the most current feedback.

This formal review submission is for the verdict only.

@wkoutre wkoutre merged commit 6e40ea8 into next Feb 26, 2026
20 of 21 checks passed
@wkoutre wkoutre deleted the feat/resolve-pr-issues-rewrite branch February 26, 2026 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant