cognitives/skills/planning/universal-planner/SKILL.md
Unified planning and execution skill for any software scenario. PLAN mode produces structured documentation; EXECUTE mode implements sprints from plan output. Trigger: When planning or executing any software work that requires structured analysis and actionable task plans.
npx skillsauth add synapsync/synapse_registry universal-plannerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill uses a modular assets architecture. Detailed documentation, templates, and helpers are in the assets/ directory:
See assets/README.md for full directory documentation.
Unified planning and execution skill for any software engineering scenario. This skill operates in two mutually exclusive modes:
RULE 1 — MODE BOUNDARY: PLAN NEVER EXECUTES, EXECUTE NEVER PLANS
PLAN mode produces documentation only — it MUST NOT implement, code, build, or deploy. EXECUTE mode implements existing plans only — it MUST NOT create new planning documents, modify strategy, or restructure sprints. This boundary is absolute.
RULE 2 — CONTEXT-FIRST: RESPECT EXISTING PATTERNS
Before making any decision on an existing codebase, explore and understand the project's established patterns, conventions, and architecture. Every proposal and implementation MUST align with what already exists. Deviations must be documented and justified.
RULE 3 — ADAPTIVE MODE DETECTION
Detect the top-level mode (PLAN vs EXECUTE) and planning sub-mode from the user's input. If ambiguous, ask. Never force a mode that doesn't match the scenario.
RULE 4 — PROFESSIONAL QUALITY
In PLAN mode: output must read as if produced by a senior engineering team — no vague language, no placeholders. In EXECUTE mode: write production-quality code — clean, readable, properly tested.
RULE 5 — COMPLETENESS
PLAN mode: generate ALL documents required by the active sub-mode. EXECUTE mode: complete ALL tasks in a phase before moving to the next.
RULE 6 — PLAN IS SOURCE OF TRUTH (EXECUTE MODE)
The planning documents define what to build, how to structure it, and which patterns to follow. Every implementation decision must trace back to the plan. Do not improvise architecture or invent new patterns.
RULE 7 — CONVENTIONS ARE NON-NEGOTIABLE
discovery/CONVENTIONS.mddefines the project's DNA. Every planning proposal and every line of implementation code MUST follow these conventions.
RULE 8 — ASSUMPTION TRANSPARENCY
When information is missing: PLAN mode documents assumptions in ANALYSIS.md. EXECUTE mode documents decisions in the Decision Log. Never silently assume.
| Mode | Signals | Example Inputs | |------|---------|----------------| | PLAN | Planning, analyzing, designing, "plan", "create a plan", new work without existing plan | "Plan the auth system", "I need an app to track expenses" | | EXECUTE | Implementing, executing, "start working", "implement the plan", existing plan output present | "Execute the project plan", "Start implementing Sprint 1" |
Disambiguation: If the user's intent is unclear, ask:
"Do you want me to plan this work (produce documentation) or execute an existing plan (implement code)?"
When in PLAN mode, detect the planning sub-mode. See assets/modes/PLAN.md for the full detection table and capabilities matrix.
| Sub-Mode | Signals | |----------|---------| | NEW_PROJECT | Product idea, "build from scratch", no existing codebase | | NEW_FEATURE | Adding to existing project, "add", "implement" | | REFACTOR | Restructure, reorganize, migrate patterns | | BUG_FIX | Fix, broken, regression, error | | TECH_DEBT | Cleanup, dead code, deprecated, missing tests | | ARCHITECTURE | System design, scaling, infrastructure change |
After detecting the mode, read ONLY the assets listed for that mode. Do NOT read assets for other modes — they waste context tokens.
| Mode | Read These Assets | Do NOT Read |
|------|-------------------|-------------|
| PLAN | output-resolve.md, PLAN.md, detected sub-mode .md | EXECUTE.md, config-resolver.md, decision-log.md, code-quality-standards.md, unrelated sub-mode files, examples/, validators/ |
| EXECUTE | output-resolve.md, EXECUTE.md, decision-log.md, code-quality-standards.md | PLAN.md, config-resolver.md, all sub-mode files, templates/, examples/, validators/ |
PLAN sub-mode loading: After detecting the sub-mode from user input, read ONLY that file (e.g., NEW_FEATURE.md). Do NOT read the other 5 sub-mode files. Templates are loaded on-demand as each workflow step references them.
On-demand helpers (both modes): troubleshooting.md — read only when issues arise. config-resolver.md — loaded only when output-resolve.md can't find existing config (first-time setup).
Use when planning any software work:
Plan the authentication system for the app.
Assets to read now: output-resolve.md + PLAN.md — then read only the detected sub-mode file from assets/modes/.
Use when implementing an existing plan:
Execute the project plan.
Assets to read now: output-resolve.md + EXECUTE.md + decision-log.md + code-quality-standards.md
| Capability | PLAN Mode | EXECUTE Mode | |------------|:---------:|:------------:| | Create planning documents | Yes | No | | Write/modify code | No | Yes | | Create CONVENTIONS.md | Yes | No (read-only) | | Modify sprint files (status, checkboxes) | Yes (creation) | Yes (updates) | | Modify PROGRESS.md | Yes (creation) | Yes (updates) | | Run verification commands | No | Yes | | Generate retrospectives | No | Yes (optional) | | Make architectural decisions | Yes (in docs) | No (follow plan) | | Log implementation decisions | No | Yes (Decision Log) |
{output_dir}discovery/CONVENTIONS.md (except NEW_PROJECT)analysis/ANALYSIS.mdplanning/PLANNING.mdexecution/EXECUTION.mdsprints/PROGRESS.md + sprints/SPRINT-*.mdFull details: See assets/modes/PLAN.md
Full details: See assets/modes/EXECUTE.md
{output_dir} is the directory where universal-planner stores all planning documents. Resolve it once at the start:
{output_dir} from those paths.agents/universal-planner/ in {cwd}.agents/universal-planner/{project-name}/No AGENTS.md. No branded blocks. The output directory is resolved at runtime.
See assets/helpers/output-resolve.md for the lightweight resolver. For full error handling, see assets/helpers/config-resolver.md.
All documents generated or modified by this skill MUST follow these rules:
.md file includes the universal frontmatter schema (title, date, updated, project, type, status, version, tags, changelog, related)conventions, analysis, plan, execution-plan, sprint-plan, progress, requirements, architecture, retrospective as appropriate[[filename]] syntax — never [text](relative-path.md)## References listing Parent, Siblings, Children, and Input Documentsversion, update changelog, transition status on modificationrelated and ## Referencias| Metric | Before | After | Delta | Status | format for all quantitative data## Graduation Gate with verifiable checkbox criteria## Carried Forward from [[previous-sprint]] for incomplete items01-, 02- prefixes where reading order mattersdraft → active → completed (or draft → active → failed) as work progressesFrontmatter template for sprint plans:
---
title: "Sprint {N}: {Name}"
date: "YYYY-MM-DD"
updated: "YYYY-MM-DD"
project: "{project-name}"
type: "sprint-plan"
status: "draft"
version: "1.0"
sprint: {N}
phase: "{active-phases}"
progress: 0
previous_doc: "[[SPRINT-{N-1}-name]]"
next_doc: "[[SPRINT-{N+1}-name]]"
parent_doc: "[[PROGRESS]]"
tags: ["{project-name}", "sprint-{N}", "sprint-plan"]
changelog:
- version: "1.0"
date: "YYYY-MM-DD"
changes: ["Initial sprint plan"]
related:
- "[[PROGRESS]]"
- "[[EXECUTION]]"
- "[[SPRINT-{N-1}-name]]"
- "[[SPRINT-{N+1}-name]]"
---
Mode-specific frontmatter extensions:
severity: "critical|high|medium|low" to ANALYSIS.md frontmatterscope_modules: ["module-a", "module-b"] to ANALYSIS.md frontmatterAll sprint documents follow the Obsidian-native markdown standard with structured frontmatter, progress tracking, and cross-references.
Complete sprint formats: See assets/templates/SPRINT.md
Task granularity:
Every task must include: checkbox, file paths (when applicable), before/after code snippets, verification command, and reference to existing patterns/components.
| Skill | Integration |
|-------|------------|
| code-analyzer | Use before PLAN mode (REFACTOR or TECH_DEBT sub-mode) to get a detailed technical report as input |
| skill-creator | Reference when building skills that complement planning outputs |
| obsidian | Sync planning output to vault or read notes for context. Invoke via Skill("obsidian") or say "sync to obsidian". Subagent fallback: read obsidian SKILL.md directly. |
Common issues and resolutions for both PLAN and EXECUTE modes.
Full troubleshooting guide: See assets/helpers/troubleshooting.md
development
Rigorous dead code audit for any module, folder, or file in any programming language. Detects orphan files never imported anywhere, classes/functions/ methods declared but never called, constructor parameters received but never consumed, unused imports/requires, private fields with no references, and commented-out code blocks. Use this skill whenever the user asks to: review unused code, clean up a feature after a refactor, find dead code, detect orphan files or classes, audit what can be deleted, find what's left over after a big change, or any variation of "what's not being used / what can I remove". Also triggers when the user says they made large changes and wants to know what became obsolete. IMPORTANT: This skill only reports — it never deletes anything. At the end it always offers to generate a removal plan with /plan.
tools
Registers new cognitives (skills, agents, prompts, workflows, tools) into the SynapSync Registry with proper structure, manifest, and registry index. Trigger: When the user says "GUARDA", "REGISTRA", "AGREGA" followed by a cognitive type and name, or asks to save/register/add a cognitive to the registry.
testing
Adaptive sprint workflow: deep analysis, evolving roadmap, one-at-a-time sprints, formal debt tracking, and re-entry prompts for context persistence. Trigger: When the user wants to analyze a project, create a roadmap, generate/execute sprints iteratively, or check project status and technical debt.
documentation
Session memory for AI agents — load context at the start, save sessions at the end, evolve knowledge across sessions. Like a professional's notebook: open before work, write a summary when done, persist between sessions. Trigger: When starting a session and need to recover context, or ending a session and want to save what happened.