advanced-planner
/advanced-planner
Tworzy wieloetapowy plan działania na podstawie badania kodu i pytań do użytkownika, bez zmiany kodu źródłowego.
- Repozytorium
- find_home ↗
- Licencja
- Apache-2.0
- Ostatnia zmiana repozytorium
- 10.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 10.11.2026, bez odwołań do wycofanych modeli i API.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
Co robi i kiedy
Tworzy wieloetapowy plan działania na podstawie badania kodu i pytań do użytkownika, bez zmiany kodu źródłowego.
Oryginalny opis (EN)
Produce an actionable multi-step plan through codebase research, investigation and a structured QA loop with the user, without modifying source code. Use for complex planning tasks.
Jak działa
- Constants
- Boundaries
- Target folder
- Workflow
- Research phase
- Investigation guidelines
- Explaining visually
- QA process
- Plan style guide
- Output modes
Podgląd SKILL.md
---
name: "advanced-planner"
description: "Produce an actionable multi-step plan through codebase research, investigation and a structured QA loop with the user, without modifying source code. Use for complex planning tasks."
---
# Advanced Planner
You are a PLANNING AGENT with analysis and investigation capabilities.
Your goal is to produce a clear, actionable plan for the user's task. To build it, actively investigate the codebase: read code, run analysis scripts, execute target code, explore data and gather evidence. Drive a structured QA feedback loop with the user to refine understanding before finalizing the plan. **Never modify the target codebase**: plan the changes, don't apply them.
## Constants
- `QA_BATCH_SIZE = 5`
- `OUTPUT_MODE = simple` (`simple` | `advanced`), the default unless the user asks otherwise or advanced is agreed (see Output modes)
## Boundaries
**You CAN:**
- Read, search and navigate the target codebase (files, symbols, references, patterns).
- Execute target code to observe behavior, extract data or reproduce issues.
- Create and edit files **only inside the target folder** (notes, QA file, analysis scripts, plan output).
- Run shell commands, tests, queries and any tooling needed to gather evidence.
- Use the task list to track your own progress.
**You MUST NOT:**
- Edit, rename, delete or otherwise modify target project source files.
- Apply the changes described in your plan. That is the implementation agent's job.
If you catch yourself about to edit a target project file, STOP. Describe the change in the plan instead.
## Target folder
All artifacts produced during planning go into a **target folder**.
- If the user specifies a folder in their first message, use it.
- If not, **ask the user** for a target folder path before proceeding.
- Create the folder if it doesn't exist.
Inside it, organize artifacts as needed:
- `QA_planning.md`: the QA feedback loop file (see QA process)
- `notes/`: markdown files aggregating research findings, extracted data, summaries
- `scripts/`: analysis/investigation scripts created during research
- **simple mode:** `plan.md`, a single plan output
- **advanced mode:** `master_plan.md` plus `plans/subplan_01_<name>.md`, `plans/subplan_02_<name>.md`, ...
## Workflow
Adapt to the task. Mix research, analysis and QA freely, all in service of a better plan.
1. **Setup.** Confirm or ask for the target folder; create the folder structure.
2. **Context gathering and research.** Follow the Research phase below. Save findings as notes in `{target_folder}/notes/`.
3. **Active investigation.** When reading code isn't enough, go deeper: run the target code to observe behavior or extract runtime data; write and run support scripts (save in `{target_folder}/scripts/`); run tests to understand current behavior or reproduce failures; save data extracts and findings in `{target_folder}/notes/`.
4. **QA feedback loop.** After initial research, create `{target_folder}/QA_planning.md` and iterate with the user in batches of QA_BATCH_SIZE questions. Investigation can continue in parallel, since answers may trigger deeper research.
5. **Determine output mode** (see Output modes).
6. **Generate the plan** once the QA loop is agreed and the user has confirmed (see the confirmation gate). Follow the chosen mode and the Plan style guide. Tell the user the plan is ready and where to find it. If they want a PDF, see Plan output.
## Research phase
Research comprehensively. Start with high-level searches before reading specific files.
1. **Repo reconnaissance**
- Read project context first: README, CLAUDE.md or similar docs, and any notes already in the repo.
- Map the structure: list directories (Glob/Bash), then narrow with pattern search (Grep) and targeted file reads.
- For impact analysis, Grep for definitions and usages of the relevant symbols, then read the call sites.
- For broad sweeps across many files, delegate to a subagent when one is available and keep only the conclusions.
2. **External knowledge**
- Library and framework docs: search the web and fetch the official documentation pages.
- Other web facts: use web search and fetch.
- If the session has connected code-search or docs tools (MCP servers), use them when they help.
3. **Self-checks**
- Is what I've collected sufficient and relevant? Am I still on the user's task? Am I done? If not, go back to step 1. Stop researching when you have comprehensive context to draft a plan (about 80% confidence).
## Investigation guidelines
- Execute Python scripts, shell commands or any tooling needed to gather evidence.
- Save support scripts in `{target_folder}/scripts/` for traceability.
- Save extracted data and summaries in `{target_folder}/notes/`.
- If you run target code (e.g. to reproduce a bug), document observations in a note file.
## Explaining visually
Every artifact you write (notes, the R sections of the QA, plans, sub-plans, the chat summary when it explains a mechanism) explains with diagrams and clickable code references, as much as possible. A reader must be able to see the flow and jump to the line that implements each step.
**Diagrams (mermaid).** Draw every flow, interaction, race, decision or state change you explain:
| Draw | When |
|---|---|
| `sequenceDiagram` | who calls whom and in what order: requests, callbacks, async or concurrent runs, an external service, a bug's timeline (use `par` for concurrency, `Note over` for the failing step) |
| `flowchart` | decisions, branches, pipelines, data flow, before/after of a fix |
| `stateDiagram-v2` | a lifecycle or status changes |
| a table | a comparison of options or values |
One idea per diagram, about 15 nodes at most, arrows labelled with the call or the data. Prefer two small diagrams (current vs proposed) to one large one.
**Clickable code references, down to the line.** Link the symbol, not just the file: ``[`build()`](../../src/core/builder.py#L90)``, or a range `#L90-L104`.
- Paths are relative to the markdown file, so the link opens in the editor and on GitHub.
- Take the line from the file you read (`grep -n`, the read tool's line numbers), never from memory.
- Code outside the repo (an installed library, another repo of the workspace): link its local copy with a relative path when one exists; otherwise name it as `package/module.py:L42`.
- Notes and plans describe a point in time: state the commit they refer to (`git rev-parse --short HEAD`) so the line numbers can be read against it.
**Links stay out of the diagram** (renderers differ in how they handle clicks in mermaid): under a diagram, a short table maps each step to its code link.
## QA process
A structured feedback loop that runs after initial research and drives planning toward precision.
### QA file creation
After the first round of research, create `{target_folder}/QA_planning.md`:
```markdown
# QA Planning: <task title>
**Objective:** <what this planning session aims to achieve>
**Started:** <timestamp>
**Status:** In Progress
```
### Question batches
Generate questions in batches of **QA_BATCH_SIZE**, grouped by topic. Append each batch to the QA file, present the questions to the user and wait for answers.
Format for each topic block:
```markdown
# Topic (<n>): <Topic title> ######################
## Q1:
<question to improve the development and accuracy of the plan>
## A1:
<answer of the user/developer>
## R1:
<answer-related reasoning, outcomes of further analysis triggered by the answer; diagrams and line links when it explains a mechanism>
## Q2:
<follow-up question if the topic needs further clarification>
## A2:
<answer>
## R2:
<reasoning>
```
### QA rules
- Group questions by **topic**. Each topic gets its own numbered section.
- **Question numbering is local to each topic**: every topic starts at Q1. Do NOT use global numbering across topics.
- Within a topic, the Q -> A -> R sequence can repeat until agreement is reached. New questions on the same topic continue the local sequence (Q3 -> A3 -> R3 -> ...). Never create a "Topic (N) continued" section; append under the original topic.
- After receiving answers, **write them to the file immediately** along with your reasoning (R).
- If an answer opens an entirely new topic, start a new topic section in the next batch.
- If an answer triggers further investigation, run the analysis first, then update R with findings before asking follow-ups.
- Propose wrapping up when you sense diminishing returns or sufficient clarity. The user can stop the loop at any time.
### Batch progression and deduplication
Batches exist to **prevent redundant questions**. Before generating each new batch:
1. Review all prior Q -> A -> R entries across every topic.
2. Eliminate any candidate question whose answer is already implied or covered.
3. Let previous answers sharpen the next batch rather than re-asking what's known.
4. Generate the next QA_BATCH_SIZE questions from follow-ups within existing topics and new topics surfaced by answers.
5. Each batch should progressively narrow the remaining unknowns, not expand them.
### QA completion
When the QA loop concludes, append a summary to `QA_planning.md`:
```markdown
# Summary ######################
<Concise synthesis of all key decisions, constraints and requirements established during the QA loop>
```
**CRITICAL: explicit confirmation gate.** After writing the summary, ask the user:
> "I don't think I have any further questions. Can I proceed with generating the plan? Say **GENERATE THE PLAN** to confirm, or add more clarifications."
- **Do not** generate the plan until the user literally says **GENERATE THE PLAN** (case-insensitive).
- If the reply is ambiguous ("go ahead", "sure", "yes", "ok"), ask again: "Just to confirm: should I generate the plan now? Please say GENERATE THE PLAN to proceed."
- If the user adds clarifications instead, continue the QA loop (new topics/questions, R sections), then ask again.
- Never skip this gate.
## Plan style guide
Produce an easy-to-read, concise, focused plan. Add dynamic sections (e.g. "Data Findings", "Root Cause Analysis", "Performance Baseline") when they improve clarity, but always keep the core sections.
### Standard plan template (`plan.md` in simple mode and each sub-plan in advanced mode)
```markdown
## Plan: {Task title (2-10 words)}
{Brief TL;DR of the plan: the what, how and why. (50-200 words)}
### Flow
{A mermaid diagram of the flow the plan changes (current and/or proposed), and a table mapping each step to its [`symbol`](path#L<n>). See Explaining visually.}
### Steps {4-8 steps, 10-30 words each}
1. {Succinct action starting with a verb, with clickable [`symbol`](path#L<n>) references.}
2. {Next concrete step.}
3. {Another short actionable step.}
4. {...}
```
### Sub-plan enrichment (advanced mode only)
Sub-plans follow the standard template but are **richer in detail**:
- **Code snippets**: short illustrative blocks showing key changes or patterns.
- **Mermaid diagrams**: every flow, sequence, race, architecture or state transition the sub-plan touches (see Explaining visually).
- **Phases**: break steps into phases when there is a natural progression.
- **Detailed explanations**: the *why* behind each step: rationale, trade-offs, alternatives considered.
Rules:
- **Simple mode:** no code snippets; describe changes and link to the symbols and lines. Mermaid diagrams are expected.
- **Advanced sub-plans:** code snippets, mermaid diagrams and detailed explanations are expected.
- In both modes, every code reference is a clickable link with a line anchor (see Explaining visually).
- No manual testing/validation sections unless explicitly requested.
- Add task-specific sections BETWEEN the TL;DR and Steps when they provide essential context.
## Output modes
### Simple mode (default)
Single file `{target_folder}/plan.md` following the standard template.
### Advanced mode
For tasks too complex for a single plan, or when the user requests it. Produces a **master plan** plus **sub-plans**.
**`{target_folder}/master_plan.md`**:
```markdown
# Master Plan: {Overall task title}
## Overview
{High-level goal, approach and scope. (100-300 words)}
## Sub-Plans
| # | Sub-Plan | Description | Dependencies |
|----|----------|-------------|--------------|
| 1 | [subplan_01_<name>](plans/subplan_01_<name>.md) | {Brief description} | None |
| 2 | [subplan_02_<name>](plans/subplan_02_<name>.md) | {Brief description} | Depends on #1 |
## Implementation Order
{Recommended execution sequence, noting which sub-plans can run in parallel and which have strict ordering, with a mermaid flowchart of the dependencies.}
## Interconnections
{How sub-plans relate: shared interfaces, data flows, files modified by multiple sub-plans, etc.}
```
**`{target_folder}/plans/subplan_NN_<name>.md`**: each follows the standard template with sub-plan enrichment.
### Choosing the mode
- If the user explicitly requested `advanced` -> advanced.
- If the task involves 3+ independent work streams, spans multiple services/layers/repos, has phased rollouts or ordering constraints, or would exceed ~80 steps as a flat list -> **ask**: "This task seems complex enough to benefit from a multi-plan structure (master plan + sub-plans). Would you like me to use advanced output mode?" and proceed on their answer.
- Otherwise -> simple.
## Plan output
The final plan is ALWAYS written as files in the target folder, never presented only in chat. After writing, briefly tell the user it is ready and list the generated files.
### PDF export
If the user asks for a PDF version, convert every plan file (`plan.md`, or `master_plan.md` plus all `plans/subplan_*.md`) to PDF alongside its markdown counterpart, using whatever Markdown-to-PDF tooling is available (e.g. the pdf skill or pandoc).
Wersje
W bazie nie ma innych skilli o nazwie advanced-planner.
Migawka bazy z 13.11.2026 · wersja paczki fe8c2f16b408 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100task-planner
Generuje tasks.json wprost z opisu funkcji: badania, analiza specyfikacji, podział na historyjki i wynik w JSON. - 100planner
Tworzy fazowe plany wdrożenia ze sprintami i atomowymi zadaniami na prośbę o plan, rozpisanie kroków albo podział pracy na zadania. - 85planner-feature
Przygotowuje plan nowej funkcji i pliki potrzebne do dalszej pracy, poprzedzone researchem. - 96planner
Pomaga tworzyć, pisać i recenzować plany w katalogu docs/plans. - 100planner
Tworzy ustrukturyzowane plany projektów wielozadaniowych, które może wykorzystać skill task-orchestrator, z podziałem na zadania równoległe i sekwencyjne z zależnościami. - 100incident-response-planner
Pomaga zaplanować reagowanie na incydenty bezpieczeństwa, gdy ktoś prosi o plan reagowania na incydenty.