plan-new

plan-new is a command for Claude Code from primeline-ai/universal-planning-framework. It costs 9 tokens per session (4,605 once invoked), scanned A, original, MIT.

A command for creating a new plan through the Universal Planning Framework, a structured planning rulebook.

In plain words
What is it for?
Use it to make a plan for a feature, migration, investigation, or other project while editing only the plan file during planning.
Why use it?
It forces discovery, assumptions, success measures, failure conditions, and verification to be written down before implementation.

Command for Claude Code

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the universal-planning-framework plugin — 2 skills, 4 commands, 1 agent shipped together

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 commands/primeline-ai/universal-planning-framework/plan-new
Clone the repo
git clone --depth 1 https://github.com/primeline-ai/universal-planning-framework

Made for: Claude Code.

Or install universal-planning-framework, the plugin that ships this one along with the rest of its 2 skills, 4 commands, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for plan-new

README.md
[![agentmods](https://agentmods.dev/badge/commands/primeline-ai/universal-planning-framework/plan-new.svg)](https://agentmods.dev/commands/primeline-ai/universal-planning-framework/plan-new)
Your own site
<a href="https://agentmods.dev/commands/primeline-ai/universal-planning-framework/plan-new"><img src="https://agentmods.dev/badge/commands/primeline-ai/universal-planning-framework/plan-new.svg" alt="Measured on agentmods" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,605 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.00009 $0.04605
Opus 5 $0.00005 $0.02302
Sonnet 5 $0.00002 $0.00921
Haiku 4.5 $0.00001 $0.00460

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

Security

Grade A, and why

plan-new 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 5d 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.

.claude/commands/plan-new.md · 408 lines

How it starts

The opening of the file, as written. The whole thing — 408 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Create New Plan

You are creating a plan for: $ARGUMENTS

Follow the Universal Planning Framework. Execute ALL stages in order. No stage may be skipped or replaced by inline text.

STRICT READ-ONLY RULE

During /plan-new execution, ONLY the plan file may be edited. No other files may be created, edited, or deleted. No Bash commands that make changes. Only: Read, Grep, Glob, Explore/Plan Agents, AskUserQuestion, Skill (for interview/refine/review), TodoWrite (for phase/task tracking). Violation = abort planning.

This replaces EnterPlanMode/ExitPlanMode to avoid repeated UI previews that clutter the screen.


Step 0: Planning Mode Selection

Before starting, ask the user how they want to work:

AskUserQuestion:
  "How would you like to work through the plan?"
  Options:
    1. "Manual - I'll go through each phase step by step"
       (User controls each phase, chooses interactive or self-interview)
    2. "Autonomous - you handle everything independently"
       (All phases autonomous, interview in self-mode)
    3. "Autonomous with interactive interview"
       (All phases autonomous, but I answer the interview myself)

Store the selected mode and follow it through all stages.


Stage 0.pre: DSV (Quick Reasoning Check)

MANDATORY - Before any planning, run DSV on the task itself:

  1. Decompose: What are the 2-3 key claims in this request?
  2. Suspend: What alternative interpretation haven't I considered?
  3. Validate: Which claim am I least sure about? Validate that first.

If Suspend reveals a plausible alternative: raise it before proceeding. Document DSV results in the plan file under ## DSV Pre-Check.


Stage 0: Discovery (Before Planning)

Determine which of the 12 checks to run. Use the intelligence rule: skip checks you can articulate a reason for skipping.

Priority tiers:

  • Always: 0.1 Existing Work, 0.7 Feasibility, 0.9 Better Alternatives (AHA Effect)
  • Always (coding domains): + 0.3 Official Docs
  • Usually: 0.2 Factual Verification, 0.3 Official Docs, 0.8 ROI
  • Context-dependent: 0.4 Updates Scan, 0.5 Best Practices, 0.6 Deep Research, 0.10 Competitive, 0.11 Constraint Discovery, 0.12 People Risk

Read the full file on GitHub · 408 lines

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. 5d ago First seen · 408 lines · 9 tokens per session scan A 68a093e858de

Subscribe to this mod's changes

plan-new is a command published in the GitHub repository primeline-ai/universal-planning-framework (45 stars, last pushed 11d ago), licensed MIT. It adds 9 tokens to every session and 4,605 once invoked, about $0.0000 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.