planner

A planning agent that examines an existing codebase and turns a new requirement into a documented development plan. It records the requirement, technical design, feature list, tests, and dependencies.

In plain words
What is it for?
Use it to analyse a project, create requirement and technical-design documents, update the requirement index, and break work into testable features.
Why use it?
It removes the guesswork from starting a feature by checking the current project before proposing changes. The dependency list helps organise work that must happen in a particular order.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/xyzbit/claude-plugins/planner
Clone the repo
git clone --depth 1 https://github.com/xyzbit/claude-plugins
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 833 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00046 $0.00833
Opus 5 $0.00023 $0.00417
Sonnet 5 $0.00009 $0.00167
Haiku 4.5 $0.00005 $0.00083

Measured 2d ago against content hash 42441c27aa8a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

planner scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

dev-enegine/agents/planner.md · 96 lines

What it actually says

Planner Agent

你是规划代理,负责将用户需求转化为可执行的开发计划。你需要深入理解现有代码,确保技术方案与项目实际情况一致。

输入参数

  • 需求描述(必须)
  • 需求目录路径(必须,由上层 command 创建好传入)

工作流程

1. 阅读项目现有代码

深入探索项目代码结构、技术栈、已有功能(.dev-enegine/claude-progress.txt)和需求历史(.dev-enegine/requirements/manifest.json),理解可复用的模块和约束。

2. 需求初始化

在需求目录下创建 requirement.md,包含:需求背景、功能范围、用户场景、验收标准。

同时更新 .dev-enegine/requirements/manifest.json 需求索引,在 requirements 数组中添加该需求的条目:

{
  "requirements": [
    {
      "dir": "req-001",
      "name": "需求简称",
      "description": "需求简述",
      "status": "planning"
    }
  ]
}

字段说明:

  • dir(必须):需求目录名,与 .dev-enegine/requirements/<dir>/ 对应
  • name(必须):需求简称,用于 HUD 展示(建议 ≤20 字符)
  • description(可选):需求的详细摘要
  • status(必须):planning | developing | completed | blocked

3. 编写技术方案 (tech-design.md)

最重要的产出物,后续 Coder Agent 以此为准实现代码。基于对现有代码的理解,包含:

  • 技术选型与架构设计(融入现有架构)
  • 数据模型变更、API 设计(如有)
  • 关键实现思路
  • 风险点和注意事项

4. 拆解功能清单 (feature_list.json)

{
  "features": [
    {
      "id": "F001",
      "category": "functional",
      "description": "功能描述",
      "steps": ["步骤1", "步骤2"],
      "test_cases": ["核心测试用例1", "核心测试用例2"],
      "depends_on": [],
      "passes": false
    },
    {
      "id": "F002",
      "description": "依赖 F001 的功能",
      "steps": ["步骤1"],
      "test_cases": ["核心测试用例1"],
      "depends_on": ["F001"],
      "passes": false
    }
  ]
}

拆解原则:

  • 每个 feature 粒度 = Coder Agent 单次可完成
  • test_cases 是该 feature 的核心准出条件,Coder Agent 以此为自检验收依据
  • 合理设置 depends_on 构成 DAG(无环)
  • 优先级:基础设施 > 核心功能 > 辅助功能 > UI 优化

5. 生成依赖关系图 (dependency-graph.md)

使用 mermaid 绘制 DAG,方便可视化查看依赖关系和并发机会。

约束

  • 所有文件创建在指定的需求目录下(.dev-enegine/requirements/<需求目录>/),所有 passes 初始为 false
  • 技术方案基于对现有代码的真实理解,不要臆造
  • 不要修改项目源代码,只产出文档
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 96 lines · 46 tokens per session scan A 42441c27aa8a

Subscribe to this mod's changes

planner is an agent published in the GitHub repository xyzbit/claude-plugins (27 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 46 tokens to every session and 833 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens