From d92ee47fe3c53bdbd297f244f6d265fecfe4679e Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Thu, 30 Apr 2026 08:35:48 -0400 Subject: [PATCH] chore(demo): move simplify prompt to prompts/ alongside graphs Rename `files-internal/prompts/simplify.md` to `prompts/simplify.md` adjacent to the .fabro files that reference it, and update the plan-implement and simplify demos plus the plan-implement test fixture to match. Co-Authored-By: Claude Opus 4.7 (1M context) --- docs/internal/demo/09-simplify.fabro | 2 +- docs/internal/demo/10-plan-implement.fabro | 2 +- docs/internal/demo/prompts/simplify.md | 3 +++ test/docs/tutorials/plan-implement/plan-implement.fabro | 2 +- .../plan-implement/{docs-internal => }/prompts/simplify.md | 0 5 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 docs/internal/demo/prompts/simplify.md rename test/docs/tutorials/plan-implement/{docs-internal => }/prompts/simplify.md (100%) diff --git a/docs/internal/demo/09-simplify.fabro b/docs/internal/demo/09-simplify.fabro index ee355c522..c8be79ddf 100644 --- a/docs/internal/demo/09-simplify.fabro +++ b/docs/internal/demo/09-simplify.fabro @@ -5,7 +5,7 @@ digraph Simplify { start [shape=Mdiamond, label="Start"] exit [shape=Msquare, label="Exit"] - simplify [label="Simplify", prompt="@files-internal/prompts/simplify.md"] + simplify [label="Simplify", prompt="@prompts/simplify.md"] start -> simplify -> exit } diff --git a/docs/internal/demo/10-plan-implement.fabro b/docs/internal/demo/10-plan-implement.fabro index 3a396bd47..d36cf2998 100644 --- a/docs/internal/demo/10-plan-implement.fabro +++ b/docs/internal/demo/10-plan-implement.fabro @@ -8,7 +8,7 @@ digraph PlanImplement { plan [label="Plan", prompt="Analyze the goal and codebase. Write a clear, step-by-step implementation plan to a Markdown file called plan.md. Include what files will change and why.", reasoning_effort="high"] approve [shape=hexagon, label="Approve Plan"] implement [label="Implement", prompt="Read plan.md and implement every step. Make all the code changes described in the plan."] - simplify [label="Simplify", prompt="@files-internal/prompts/simplify.md"] + simplify [label="Simplify", prompt="@prompts/simplify.md"] start -> plan -> approve approve -> implement [label="[A] Approve"] diff --git a/docs/internal/demo/prompts/simplify.md b/docs/internal/demo/prompts/simplify.md new file mode 100644 index 000000000..aedf41bff --- /dev/null +++ b/docs/internal/demo/prompts/simplify.md @@ -0,0 +1,3 @@ +Review the recent code changes and simplify the implementation without changing behavior. + +Prefer removing unnecessary abstraction, duplication, and indirection. Keep the code clear, idiomatic, and focused on the requested behavior. diff --git a/test/docs/tutorials/plan-implement/plan-implement.fabro b/test/docs/tutorials/plan-implement/plan-implement.fabro index 3a396bd47..d36cf2998 100644 --- a/test/docs/tutorials/plan-implement/plan-implement.fabro +++ b/test/docs/tutorials/plan-implement/plan-implement.fabro @@ -8,7 +8,7 @@ digraph PlanImplement { plan [label="Plan", prompt="Analyze the goal and codebase. Write a clear, step-by-step implementation plan to a Markdown file called plan.md. Include what files will change and why.", reasoning_effort="high"] approve [shape=hexagon, label="Approve Plan"] implement [label="Implement", prompt="Read plan.md and implement every step. Make all the code changes described in the plan."] - simplify [label="Simplify", prompt="@files-internal/prompts/simplify.md"] + simplify [label="Simplify", prompt="@prompts/simplify.md"] start -> plan -> approve approve -> implement [label="[A] Approve"] diff --git a/test/docs/tutorials/plan-implement/docs-internal/prompts/simplify.md b/test/docs/tutorials/plan-implement/prompts/simplify.md similarity index 100% rename from test/docs/tutorials/plan-implement/docs-internal/prompts/simplify.md rename to test/docs/tutorials/plan-implement/prompts/simplify.md