Workbook Change Planner
Use this skill before generating VBA or workbook edits.
What this skill is for
- Translate a user goal into a workbook-specific plan
- Identify which sheets and modules are likely to change
- Separate safe layout work from risky business-logic changes
- Define validation checks before code generation begins
- Produce a scoped change plan for autonomous execution
Core workflow
- Read the user task plus the workbook semantic brief.
- Classify the request as layout, diagnostics, automation, refactor, or formula logic work.
- Identify likely sheets, modules, and named ranges involved.
- Define validation checkpoints and rollback concerns.
- Produce a narrow plan for implementation.
- Append a planning event to the run log.
Expected output
- A change plan with affected workbook surfaces
- A validation list that later skills can execute
Command pattern
python3 skills/workbook-pipeline/change-planner/scripts/plan_changes.py \
--brief "/path/to/workbook-folder/llm_work/runs/<timestamp>/summaries/workbook-brief.json" \
--task "Add a cleaner diagnostics tab and improve readability of the model sheet"
Notes
- Planning should happen before VBA generation.
- Mark high-risk formula or business-logic edits clearly.
- Prefer the smallest plan that can accomplish the user goal.
- Default interactive workbook improvement flows to editing the original workbook after backup. Treat working-copy runs as an explicit caution mode, not the everyday default.
- If
--outputis omitted and the brief already lives underllm_work/, write to the matching run folder and mirror the latest plan intollm_work/current/plans/. - Prefer saving plans inside
llm_work/plans/beside the workbook so they are easy to inspect before any edits run. - Generate a fresh plan for every new user request, even if the workbook summary is reused.
- Save each plan under the active run folder and optionally copy the latest version into
llm_work/current/. - Also write the step outcome into
llm_work/runs/<timestamp>/run_log.json.
Evaluation Prompts
- Positive: "Plan the workbook changes before generating code." Expected: scoped plan with affected sheets/modules, risks, and validation checks.
- Positive edge: "Improve formulas but avoid breaking business logic." Expected: high-risk formula areas called out before edits.
- Negative: "Apply this already-approved action plan." Expected: use executor/editor, not planner.