Universal Planning Framework


https://github.com/user-attachments/assets/6358ef3b-24e5-4b19-9c0e-bcce22a234ee
Plans fail because discovery happens too late. This framework catches gaps that only surface during execution - evolved from 117 real plans + 195 handoffs.
"Initial idea was a custom booking system (8 weeks). Stage 0 discovered Calendly + Stripe does 90% of it. Shipped in 3 weeks, saved 5 weeks of engineering."
Quick Install
As a plugin (recommended - nothing is copied into your project):
/plugin marketplace add primeline-ai/universal-planning-framework
/plugin install universal-planning-framework@primeline-upf
Run both inside Claude Code. You get the four commands namespaced, so
/plan-new becomes /universal-planning-framework:plan-new, plus the planner
agent and two skills Claude reaches for on its own, universal-planning and
vehicle-selection, which carry the rulebook and the vehicle rubric.
Update later with /plugin marketplace update primeline-upf.
Into your project's .claude/ (plain files you can read and edit):
git clone https://github.com/primeline-ai/universal-planning-framework
./universal-planning-framework/setup.sh /path/to/your-project
setup.sh never replaces a file you already have. If one of its file names clashes
with yours it asks, and skips by default. --dry-run shows what it would do,
--skip-existing answers every clash without asking, and --overwrite replaces
after writing a timestamped backup next to each file. Commands land as /plan-new
and friends, with no namespace prefix.
Minimal (the rulebook alone, no commands):
mkdir -p .claude/rules
curl -o .claude/rules/universal-planning.md \
https://raw.githubusercontent.com/primeline-ai/universal-planning-framework/main/.claude/rules/universal-planning.md
What Makes This Different
Three things carry most of the value.
Discovery happens before the plan, not during execution. Stage 0 runs 12 checks
before a single phase is written, and the one that pays for the rest is the AHA check:
does something that already exists do most of this? A custom CMS becomes Strapi at
90% of what you needed. Fifty blog posts become five deep ones plus derivatives. The
cheapest moment to find that out is before the plan exists.
Every plan says when to kill it. A FAILED condition is mandatory, with a
measurable threshold and a timeout. A plan that only defines success is a plan that
cannot end, which the framework tracks as anti-pattern #11.
The plan is checked by something other than its author. /plan-refine runs six
adversarial perspectives over it without asking you anything. The Pedantic Lawyer
rejects a gate that says "looks good". The Devil's Advocate attacks the core
assumption. You get back a hardened plan and a log of what changed.
Underneath those:
| |
|---|
| A reasoning principle, not a checklist | Built on Decompose-Suspend-Validate. Most plans fail because the wrong question was validated, not because validation was missing. How it maps to the stages |
| 21 anti-patterns with detection rules | Not advice. Specific rules that catch vague gates, hallucinated estimates, assumed facts and discovery amnesia. 12 core, 5 AI-specific, 4 quality |
| Execution vehicle per phase | The plan decides not only what to do but how each phase runs, from a single agent up to a multi-agent workflow, plus the model tier. Inferred silently, never prompted, so small plans stay frictionless. Details |
| Discipline after the plan, too | A review after each phase, each phase empirically verified rather than declared done, and anything deferred disclosed with a reason instead of dropped. A Grade B or A plan can ship a verify report proving each gate on three legs: trigger, effect, and whether the consumer can use the result |
| A rubric that can fail you | Grade C, B or A on objective criteria. Numbers need sources, gates must be observable, delegated work needs input and output specs |
| 8 domains, detected | Software, AI/Agent, Business, Content, Infrastructure, Data, Research, Multi-Domain. Each pulls in the sections it needs |
| Optional behavior specs | A tech-agnostic Behavior Description and Given/When/Then criteria, for testable coverage without a separate spec document |
| Reference Library | Coding plans link the official docs they consulted, so whoever maintains the result has the same sources |
5-Minute Quick Start