Gemini Skill Improvement Planner
Aggregates reflection files for Gemini skills and produces a structured improvement plan. It does not edit skills; gemini-skill-editor applies the plan.
Core Rules
- Planning only. Do not modify
SKILL.mdfiles. - Prefer Gemini skill state under
~/.gemini/skills/<skill>/reflections/**. - Also inspect source-controlled reflections under
gemini-config/skills/gemini-*/reflections/**when present. - Exclude any path with an
archive/component. - Follow the recursive reflection rules in
gemini-config/shared/runtime-state.md. - Act only on recurring evidence unless the user explicitly asks to apply one-off feedback.
- Do not spawn subagents unless the user explicitly asks for delegated analysis.
Inputs
--target <skill-name>: plan for one skill.--min-reflections <N>: default2.--output <path>: default~/.gemini/skills/gemini-skill-improvement-planner/plans/plan-v<N>-<ISO>.md.
Workflow
- Enumerate unarchived reflections for:
gemini-phase-roadmap-buildergemini-plan-phasegemini-execute-phasegemini-task-contextualizergemini-skill-improvement-plannergemini-skill-editorgemini-plan-detailed
- Parse each reflection:
- skill name;
- version or timestamp;
What worked;Improvements to SKILL.md;- raw body when headings are missing.
- Gate on minimum evidence:
- zero reflections: report that there is nothing to aggregate;
- fewer than
--min-reflectionsfor a skill: record as skipped.
- Aggregate recommendations:
- group recurring themes by skill;
- separate actionable changes from speculative notes;
- flag contradictions instead of resolving them silently;
- reject repo-specific recommendations unless the target skill is intentionally repo-specific.
- Produce a plan with:
- frontmatter listing consumed reflection paths;
- recommendations by skill;
- cross-cutting recommendations;
- speculative notes;
- contradictions;
- archival directive for
gemini-skill-editor.
Plan Format
---
from: gemini-skill-improvement-planner
timestamp: <ISO>
min_reflections: <N>
reflections_consumed:
- <absolute path>
---
# Gemini skill improvement plan — <ISO>
## Summary
## Recommendations by skill
### <skill-name>
- **Change**: <directive>
- **Rationale**: <evidence>
- **Supporting reflections**: <ids>
## Cross-cutting recommendations
## Speculative / low-confidence notes
## Contradictions surfaced
## Archival directive for gemini-skill-editor
Closeout
In Default mode, write the plan only if the user asked for an artifact. Otherwise summarize the recommendations. Do not archive reflections; that is the editor's job.
If writing self-improvement state, follow gemini-config/shared/runtime-state.md and use Gemini paths only:
- Reflection:
~/.gemini/skills/gemini-skill-improvement-planner/reflections/<repo_hash>/<branch_slug>/<run_id>.md - Handoff:
~/.gemini/skills/gemini-skill-improvement-planner/handoffs/<repo_hash>/<branch_slug>/<run_id>.md - Latest handoff pointer:
~/.gemini/skills/gemini-skill-improvement-planner/handoffs/<repo_hash>/<branch_slug>/latest.md
Handoff frontmatter must include from: gemini-skill-improvement-planner, timestamp:, repo:, repo_root:, branch:, branch_slug:, commit:, run_id:, and artifact:. Update latest.md with the same handoff content.