Add gh-implement workflow for GitHub issue implementation

Introduces a two-stage workflow (plan → implement) that fetches a GitHub
issue via `gh issue view`, writes an implementation plan, then delegates
to the existing implement workflow. Also removes the unnecessary
`backend: api` directive from the implement workflow's model stylesheet.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Bryan Helmkamp 2026-03-20 20:52:25 -04:00
parent ba9988d4ee
commit ad07cf84bb
No known key found for this signature in database
3 changed files with 25 additions and 1 deletions

View file

@ -0,0 +1,20 @@
digraph GhImplement {
graph [
goal="Implement a GitHub issue",
model_stylesheet="
* { model: claude-opus-4-6; }
"
]
rankdir=LR
start [shape=Mdiamond, label="Start"]
exit [shape=Msquare, label="Exit"]
plan [label="Plan", prompt="Fetch the GitHub issue from the goal using: gh issue view $goal --json title,body,labels,comments\n\nRead the issue title, description, and any comments carefully. Analyze what code changes are needed to resolve the issue.\n\nWrite a detailed implementation plan to plan.md that includes:\n- Summary of the issue\n- Files to create or modify\n- Step-by-step implementation approach\n- Test cases to add or update\n\nThe plan should be specific enough for another agent to implement without seeing the original issue.\n\nRespond with the location of the plan file (plan.md)."]
implement [label="Implement", shape=house, stack.child_workflow="fabro/workflows/implement/workflow.fabro", manager.max_cycles=100]
start -> plan
plan -> implement [fidelity="summary:high"]
implement -> exit
}

View file

@ -0,0 +1,4 @@
version = 1
[github]
permissions = { issues = "read", pull_requests = "write" }

View file

@ -2,7 +2,7 @@ digraph ImplementAndSimplify {
graph [
goal="Implement and simplify",
model_stylesheet="
* { backend: api; model: claude-opus-4-6;}
* { model: claude-opus-4-6; }
"
]
rankdir=LR