thinking-partner
A deterministic thinking partner that challenges assumptions and applies mental models to sharpen decisions, solve problems, and think more clearly. Use this…
Import external plans. Validates context, detects conflicts, generates PLAN.md.
$ npx -y skills add SienkLogic/plan-build-run --skill import --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/importContext preview
The summary Claude sees to decide when to auto-load this skill.
Import external plans. Validates context, detects conflicts, generates PLAN.md.
name: import description: "Import external plans. Validates context, detects conflicts, generates PLAN.md." allowed-tools: Read, Write, Bash, Glob, Grep, Task, AskUserQuestion argument-hint: "<phase-number> [--from <filepath>] [--skip-checker] | --prd <filepath>"
**STOP — DO NOT READ THIS FILE. You are already reading it. This prompt was injected into your context by Claude Code's plugin system. Using the Read tool on this SKILL.md file wastes ~7,600 tokens. Begin executing Step 1 immediately.**
**Before ANY tool calls**, display this banner:
╔══════════════════════════════════════════════════════════════╗ ║ PLAN-BUILD-RUN ► IMPORTING PLAN ║ ╚══════════════════════════════════════════════════════════════╝
Then proceed to Step 1.
You are the orchestrator for `/pbr:import`. This skill imports an external plan document (design doc, RFC, AI-generated plan, etc.) into the Plan-Build-Run planning format. It validates the imported document against project context, detects conflicts with locked decisions and existing architecture, and generates properly formatted PLAN.md files. Your job is to stay lean, do conflict detection inline, and delegate only the plan checker to a Task() subagent.
Reference: `skills/shared/context-budget.md` for the universal orchestrator rules. Reference: `skills/shared/agent-type-resolution.md` for agent type fallback when spawning Task() subagents.
Additionally for this skill:
---
Execute these steps in order.
---
Reference: `skills/shared/config-loading.md` for the tooling shortcut and config field reference.
1. Parse `$ARGUMENTS` for phase number 2. Parse optional `--from <filepath>` flag (path to the external document to import) 3. Parse optional `--skip-checker` flag (skip plan validation step) 3b. Parse optional `--prd <filepath>` flag.
4. **CRITICAL: Write .active-skill NOW.** Write the text "import" to `.planning/.active-skill` using the Write tool.
**→ If --prd flag was set: jump to PRD Import Flow (Step A). Do not continue to Step 2.**
5. Validate:
6. If no phase number given, read current phase from `.planning/STATE.md` 7. Check for existing plans in the phase directory (glob for `*-PLAN.md`)
---
> **Entered when `--prd <filepath>` is present in $ARGUMENTS. Steps A–G replace Steps 2–11 entirely for this path.**
---
1. Read the file at the `--prd <filepath>` path. 2. If the file does not exist: display the "Import file not found" error from the Error Handling section and stop. 3. If the file is empty or < 100 characters: display error "PRD file appears empty or too short to extract meaningful content." and stop. 4. Store the full PRD content for use in Steps B–E.
---
Analyze the PRD content for the presence of these six required sections:
| Section | What to look for | |---------|-----------------| | Project name / title | A clear product name or title | | Problem statement | What problem the product solves, who it's for | | Goals / success criteria | Measurable outcomes, KPIs, or acceptance tests | | Functional requirements | Feature list, user stories, or capabilities | | Non-functional requirements | Performance, security, reliability constraints | | Out of scope / deferred | Explicitly excluded features |
For each section that is **absent or ambiguous**, record it as a gap.
**If 1–3 gaps found:** Batch all gaps into ≤ 3 AskUserQuestion calls (max 4 options each). Ask the user to supply the missing info:
Example AskUserQuestion for missing requirements:
Use AskUserQuestion: question: "The PRD doesn't clearly specify functional requirements. Please describe the main features or capabilities this product must have." header: "Fill Gap" options: [] ← freeform (no options means free text input) multiSelect: false
**If 0 gaps:** proceed directly to Step C with no prompts.
Incorporate user answers into the extraction context used in Step C.
---
Using the PRD content (plus any gap-fill answers from Step B), generate the content for two fil
Plan it. Build it. Run it. A Claude Code plugin for structured development with context-engineered agents.
Repo: SienkLogic/plan-build-run
A deterministic thinking partner that challenges assumptions and applies mental models to sharpen decisions, solve problems, and think more clearly. Use this…
Run audit, prioritize findings, auto-fix via quick tasks, test, and commit.
Review past Claude Code sessions for PBR workflow compliance and UX quality.
Run multiple phases hands-free. Chains discuss, plan, build, and verify automatically.
Manage backlog items — ideas not ready for active planning. Add, review, promote, or remove.
Start a new project. Deep questioning, research, requirements, and roadmap.