Agent Wealth HubFree public resources
中文 EN العربية

Back to catalog / Agent workflows

Carry an issue through CI and review to a verified PR

Recover from both a CI failure and reviewer feedback instead of assuming a linear workflow.

Goal

Deliver a change with passing tests, reviewer approval, and a verifiable PR state.

Steps

  1. Reproduce the issue using gh-mock and the planted defect fixture; preserve CI output and PR number across steps. [orchestrate]
  2. After the first change, read gh-mock pr checks; use the pytest traceback to fix and rerun failed checks. [orchestrate]
  3. Read the review-bot comment and add the requested docs; run the mock merge only after checks pass and a review is approved. [orchestrate]
  4. In a new turn, independently query gh-mock pr view and .gh-state/pr_101.json for final state, CI, and approval. [orchestrate]

How to verify

The fixture PR is merged, CI is green, approval is recorded, and the fix covers all test inputs.

Troubleshooting

If checks fail or review is absent, leave the PR unmerged and continue fixing; `gh-mock` is not real GitHub authorization.

Permissions

Prerequisites

Permissions

Limitations

The example uses a mock CLI and planted defect; do not copy it as a production release workflow.

Pinned upstream source

https://github.com/anthropics/anthropic-cookbook/blob/9c1e493ddd2b82df399d2a61b9c806c539e18be6/managed_agents/CMA_orchestrate_issue_to_pr.ipynb

Repository
anthropics/anthropic-cookbook
File path
managed_agents/CMA_orchestrate_issue_to_pr.ipynb
Pinned commit
9c1e493ddd2b82df399d2a61b9c806c539e18be6
Source checked
2026-10-14 · Reviewed against the pinned upstream source

Repository metrics

These values describe the upstream repository, not popularity or likes for an individual skill or playbook.

Stars
Not collected
Forks
Not collected
Observed at
Not collected

No metrics snapshot is available yet.

License: MIT

Main topic

Take a coding Agent change from context to verification

Related resources