02 Plan logo

02 Plan

Community
leing2021
02-plan

Turn requirements into an execution-ready plan with TDD-gated implementation units. Use when a brainstorm artifact exists and is ready for planning.

Overview

Publisherleing2021
Repositorysuper-pi
Skill name02-plan
Stars
30
Forks
2
Bundled files
5
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 5 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by leing2021 on GitHub. Read the source before you install it.

Installation

Install the 02 Plan AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/leing2021/super-pi/tree/main/skills/02-plan
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/leing2021/super-pi.git /tmp/super-pi
mkdir -p .claude/skills
cp -r /tmp/super-pi/skills/02-plan .claude/skills/02-plan
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable 02 Plan in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads 02 Plan on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so 02 Plan is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Plan

Use this skill when requirements are ready to become an execution-ready plan.

See shared pipeline instructions for model routing and pipeline behavior.

Core rules

  1. Load project rules (4 steps):
    • Load rules/common/development-workflow.md and rules/common/testing.md
    • Detect project language via language detection
    • Load matching language-specific rules (e.g., rules/typescript/)
    • If frontend/browser concerns, also load rules/web/ files
  2. Priority: project-level {repo-root}/rules/ overrides package defaults
  3. Search docs/brainstorms/ for relevant requirements first
  4. Run solution search (see ../references/solution-search.md):
    • Extract keywords → grep -rl "tags:.*keyword" docs/solutions/ ~/.pi/agent/docs/solutions/
    • Read frontmatter only (first 15 lines) of matches → score by severity + tag relevance
    • Fully read top 3 candidates
  5. Write plan to docs/plans/ with the > Status: draft header (closed vocabulary: draft → ready → executing → done → deprecated); flip to ready when the plan is finalized
  6. If plan exists, use plan_diff to compare and patch incrementally
  7. End by recommending 03-work — see the Work gate and chaining section below.
  8. Every question to the user ships with a recommended answer: put the recommendation and its one-line reason in the question text on its own line below the question (e.g. ✓ 推荐「X」:<理由>), NOT inside options — option labels must stay short (≤ 20 chars) or the selector UI truncates them. Questions without a recommendation are a blocking violation.

Work gate and chaining

When the plan is finalized (Status: ready), present a brief plan summary (units, files, verification strategy), then ask via ask_user_question with the review choice folded into the gate options: ✓ 开工 (recommended), CEO Review, Strict Review. Recommend by change scale: small/safe change → ✓ 开工, cross-cutting or risky change → CEO/Strict. This is the default path's only human confirmation point — no other prompt may precede or follow it. On ✓ 开工, immediately read ../03-work/SKILL.md and execute it in this session — do not wait for further user input. If CEO/Strict is chosen, run references/ceo-review-mode.md, update the plan artifact, then re-ask the gate. The four valves (defined in 03-work) apply chain-wide from this point.

Hard gates — TDD enforcement

Every unit follows RED → GREEN → REFACTOR:

TDD violation rejection criteria — reject and revise if any unit:

  • Implements code before failing test
  • Lacks RED step verification
  • Lacks GREEN step verification
  • Skips verification
  • Uses placeholders or unstated assumptions

Scope discipline — a unit adds only what the requirements name. No unrequested guards, retries, modes, kill switches, or runbooks; no quietly narrowing a feature the user asked for (a "retry now" that ships as "retry in 24h" is scope corruption). Adding defensive machinery nobody asked for is a violation, not diligence.

Planning flow

  1. Load context: consume latest handoff before any broad file reads — context_handoff load or read .context/compound-engineering/handoffs/latest.md. If found, use activeFiles and blocker as starting point. If not found, proceed normally (new project). Read CONTEXT.md (or GLOSSARY.md) if either exists at root — see ../references/domain-language.md.
  2. Read relevant brainstorm from docs/brainstorms/. If no relevant requirements artifact exists AND the user hasn't provided requirements inline in this conversation, stop and ask via ask_user_question (recommended option ✓ 转 01-brainstorm) — never draft a plan from verbal intent alone; the spec chain must start from an approved artifact
  3. Run solution search (keywords → grep frontmatter → read top 3)
  4. Grep docs/out-of-scope/ for prior rejections of features in this plan
  5. Gather repository context
  6. Source-driven check: For each unit that involves framework/library APIs, add a note: "Verify against official docs before implementing."
  7. If plan exists: use plan_diff compare → review with user → patch
  8. If no plan: write new plan under docs/plans/ using references/plan-template.md
  9. Structure work using references/implementation-unit-template.md
  10. Verify every unit follows TDD gates

Optional: CEO Review

Folded into the work gate (above): the gate's options include CEO Review and Strict Review. If chosen, read references/ceo-review-mode.md, execute the review flow, update the plan artifact, then re-run the gate. No separate pre-gate review prompt.

Artifact output

  • Plan: docs/plans/<slug>.md
  • Use references/plan-template.md structure
  • Implementation units follow references/implementation-unit-template.md

Before finishing this skill, apply the completion checklist in shared pipeline instructions.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the 02 Plan AI skill do?

Turn requirements into an execution-ready plan with TDD-gated implementation units. Use when a brainstorm artifact exists and is ready for planning.

Why use 02 Plan on TypingMind?

Because you install it once and use it with any model. 02 Plan is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install 02 Plan in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/leing2021/super-pi/tree/main/skills/02-plan. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use 02 Plan?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with 02 Plan?

As many as you like. As long as a model supports skills, you can use 02 Plan with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the 02 Plan AI skill free?

It is published on GitHub by leing2021. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇