mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-15 23:32:46 +00:00
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:
parent
ba9988d4ee
commit
ad07cf84bb
3 changed files with 25 additions and 1 deletions
20
fabro/workflows/gh-implement/workflow.fabro
Normal file
20
fabro/workflows/gh-implement/workflow.fabro
Normal 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
|
||||
}
|
||||
4
fabro/workflows/gh-implement/workflow.toml
Normal file
4
fabro/workflows/gh-implement/workflow.toml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
version = 1
|
||||
|
||||
[github]
|
||||
permissions = { issues = "read", pull_requests = "write" }
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue