plugins/agent-agentic-os/skills/os-evolution-planner/SKILL.md
Codifies the plan-and-delegate workflow for evolving plugins, skills, and agents. Given a target (plugin/skill/agent name) and an evolution goal, this skill first brainstorms 2-3 approach options using the cheapest available model, presents them for selection, then writes a structured task plan and Copilot CLI delegation prompt for the chosen approach. Called by os-architect for Path B (update) and Path C (create) executions. Can also be invoked standalone.
npx skillsauth add richfrem/agent-plugins-skills os-evolution-plannerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
os-evolution-planner transforms an evolution goal into a structured task plan and a Copilot CLI delegation prompt that can be dispatched in one premium request. Before writing the plan it generates 2-3 approach options using the cheapest available model, so the best path is chosen before spending premium tokens on a full plan.
| Input | How provided | Default | |-------|-------------|---------| | Target plugin | argument or interview question | required | | Target skill or agent | argument or interview question | "all" (full plugin audit) | | Evolution goal | argument or interview question | required | | Auto-detect gaps | flag | true | | Dispatch immediately | flag | false (present for human review) |
Before doing anything else, check context/memory/environment.md:
## Delegation Strategy section to determine:
"No environment profile found — defaulting to Claude-only. Run
os-environment-probeto unlock low-cost Copilot or Agy brainstorming."
Do this before gap detection and before writing any plan.
Using the cheapest available model, generate 2-3 distinct approaches to the evolution goal. Each approach sketch is ~3-5 sentences: what it does, what it doesn't do, estimated effort, key tradeoff.
Model selection (use first that is available per environment profile):
Consult
references/cheapest_models.mdfor current model names and costs.
| Priority | Engine | How to invoke |
|----------|--------|---------------|
| 1 | Copilot CLI (gpt-5-mini) | run_agent.py --cli copilot |
| 2 | Agy CLI (gemini-3.5-flash) | run_agent.py --cli agy |
| 3 | Claude Haiku subagent | Spawn Agent(subagent_type="haiku", prompt=...) |
Brainstorm prompt template:
Evolution goal: <goal>
Target: <target skill/agent>
Current gaps detected: <gap list>
Generate exactly 3 distinct approaches to this evolution goal. For each:
- Approach name (2-4 words)
- What it does (2-3 sentences)
- What it trades off (1 sentence)
- Estimated effort: [Small / Medium / Large]
Present options to user:
Here are 3 approaches to <goal>:
**Option A — <name>** [<effort>]
<description>
Tradeoff: <tradeoff>
**Option B — <name>** [<effort>]
<description>
Tradeoff: <tradeoff>
**Option C — <name>** [<effort>]
<description>
Tradeoff: <tradeoff>
My recommendation: **Option <X>** — <one-line reason>.
Which would you like to proceed with? (A / B / C / modify)
Wait for the user to select before proceeding to Phase 2.
Once the approach is confirmed, read the target files and check for each gap below. Each confirmed gap becomes one workstream:
| Check | Gap if... | Workstream type |
|-------|-----------|-----------------|
| ## Gotchas section | absent from SKILL.md or agent file | Add Gotchas (3–5 field-derived patterns) |
| ## HANDOFF_BLOCK in completion | absent from child skill completion section | Add HANDOFF_BLOCK code fence |
| evals.json | stub (< 6 cases) or REPLACE placeholders | Fill with real routing cases |
| Model identifiers | contain dashes (claude-sonnet-4-6) | Fix to dot notation |
| Domain patterns layer | references/domain-patterns/ absent | Create README + first pattern file |
| ## Smoke Test | absent from SKILL.md | Add with 2–3 acceptance criteria |
| Session hook | hooks/session_end.py absent | Create session-end hook |
| Script security | --dangerously-skip-permissions unconditional | Add --tier flag |
Task plan written to tasks/todo/<YYYY-MM-DD>-<slug>-plan.md:
# <task-number> — <title>
## Context
[What triggered this evolution, what was found]
## Approach Selected
Option <X> — <name>: <one-line description of chosen approach and why>
(Options considered: <A>, <B>, <C> — see brainstorm output for tradeoffs)
## Gaps Identified
[One bullet per gap found by the detection lens]
## Workstreams
| WS | Scope | Delegate to |
...
**WS ordering rule**: Structural fixes (model identifiers, path bugs, security flags) MUST
be listed as the first workstreams. Additive content (Gotchas, HANDOFF_BLOCK, domain
patterns, smoke tests) comes after. The delegated agent executes workstreams in listed order.
## Delegation Plan
1. Delegation prompt at tasks/todo/copilot_prompt_<slug>.md
2. Dispatch via run_agent.py with claude-sonnet-4.6
3. Review output (diff, symlink audit)
4. Commit and PR
## Status
- [ ] WS-A ...
Delegation prompt written to tasks/todo/copilot_prompt_<slug>.md:
If the --dispatch flag is set (or the user confirms dispatch), run the heartbeat then dispatch:
Invoke the copilot-cli-agent skill with the following parameters:
Heartbeat check (always first):
/dev/null/dev/nulltemp/heartbeat_<slug>.mdgpt-5-miniVerify heartbeat before premium dispatch:
grep -q "HEARTBEAT_OK" temp/heartbeat_<slug>.md || (echo "HEARTBEAT FAIL — aborting dispatch" && exit 1)
Main Dispatch:
tasks/todo/copilot_prompt_<slug>.md/dev/nulltemp/copilot_output_<slug>.mdclaude-sonnet-4.6non-interactiveAfter dispatch, verify output before claiming complete:
wc -l temp/copilot_output_<slug>.md # expect 100+ lines for multi-workstream output
test -s temp/copilot_output_<slug>.md || echo "ERROR: empty output — copilot-cli-agent dispatch failed"
After dispatch completes (or after plan is written if dispatch is off), log to experiment log:
python3 plugins/agent-agentic-os/scripts/experiment_log.py append \
--source-type planner \
--report tasks/todo/<slug>-plan.md \
--session-id "<slug>" \
--target "<target-skill-or-agent>" \
--triggered-by os-evolution-planner
This records the workstream count and gaps identified as a qualitative entry in
context/experiment-log/ — traceable alongside any subsequent verifier or tester runs.
If dispatch flag is NOT set, present the plan and prompt paths and ask:
"Plan written to
tasks/todo/<slug>-plan.mdand delegation prompt totasks/todo/copilot_prompt_<slug>.md. Dispatch to Copilot CLI now? (yes / review first)"
os-architect calls this skill when:
os-architect provides the intent classification and gap audit as context. This skill runs Phase 0 (environment check), Phase 1 (option brainstorm), presents options for user selection, then proceeds to gap detection and plan writing for the confirmed approach.
.agents/ files: Always read from plugins/<plugin>/skills/<skill>/SKILL.md — the installed .agents/ copy may be stale.os-eval-runner skill, Phase 1 produces 3 named approaches with effort estimates before any plan file is written.--dispatch flag set and heartbeat passes, the skill calls run_agent.py with claude-sonnet-4.6 and verifies output line count before reporting complete.testing
Skill for creating and managing isolated git worktrees (`.worktrees/issue-NNN`) for issue execution branches. USE ONLY when setting up or cleaning up isolated git worktrees for specific issue execution. DO NOT USE for managing local task files (use `task-agent`) or escalating tasks to issues (use `github-issue-backlog-agent`).
data-ai
Skill for orchestrating the end-to-end GitHub issue lifecycle flow: Issue -> Worktree -> Implementation -> PR Creation -> Resolution Closure. USE ONLY when running or dry-running full lifecycle orchestration for resolving an issue with a PR. DO NOT USE for isolated worktree management only (use `issue-worktree-agent`) or logging issues (use `github-issue-agent`).
tools
Automatically ranks GitHub issues (P0-P3) based on friction tier, frequency, and blockages, synchronizing priority labels and GitHub Projects v2 custom fields.
testing
Bridge skill for escalating ephemeral local task scratchpad items (`tasks/*.md`) into durable, taxonomy-validated, evidence-rich GitHub Issues. USE ONLY when promoting a single-session local task into durable repository backlog. DO NOT USE for managing local kanban boards (use `task-agent` instead) or directly querying/commenting on issues (use `github-issue-agent` instead).