Skip to content
Skills Library
Management & product · Planning

advanced-planner

/advanced-planner

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.

Repository
find_home ↗
Licence
Apache-2.0
Last repository change
10.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 10.11.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

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.

Original author 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.

How it works

  1. Constants
  2. Boundaries
  3. Target folder
  4. Workflow
  5. Research phase
  6. Investigation guidelines
  7. Explaining visually
  8. QA process
  9. Plan style guide
  10. Output modes
Original SKILL.md headings · 266 lines, 2,082 words
SKILL.md preview
---
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).

Versions

The database has no other skills named advanced-planner.

Database snapshot: 13.11.2026 · package version fe8c2f16b408 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100task-planner
    Generate tasks.json directly from a feature description. Full pipeline: research, spec analysis, story decomposition, JSON output. Triggers on: plan feature, generate tasks, create task list, direct planning.
  • 100planner
    Create comprehensive, phased implementation plans with sprints and atomic tasks. Use when user says: "make a plan", "create a plan", "plan this out", "plan the implementation", "help me plan", "design a plan", "draft a plan", "write a plan", "outline the steps", "break this down…
  • 85planner-feature
    Create a plan for a feature, and the files required to continue working on it. Use when the user asks for research for a feature or a plan to run it.
  • 96planner
    Use when the user asks to create, write, or review a docs/plans plan.
  • 100planner
    Create structured plans for multi-task projects that can be used by the task-orchestrator skill. Use when breaking down complex work into parallel and sequential tasks with dependencies.
  • 100incident-response-planner
    Configure incident response planner operations. Auto-activating skill for Security Advanced. Triggers on: incident response planner, incident response planner Part of the Security Advanced skill category. Use when working with incident response planner functionality. Trigger…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.