/inference-planz:run PROMPTfrom inference-planz
Add Prompt with command | Execute the inference-planz, Claude's best friend
Ships in inference-planz. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
MANDATORY: For EVERY survey question batch:
Read the CZ score from .claude/confidenz-latest.json:
cat .claude/confidenz-latest.json 2>/dev/null
Returns: {"score": 75, "level": "good", "color_code": "38;5;118"}
Display CZ score at BOTTOM after presenting the question (not before, not in the middle - AT THE BOTTOM):
CZ: [SCORE]%
Use ANSI color code from the JSON: \033[{color_code}mCZ: {score}%\033[0m
Color the recommended option label using the SAME ANSI color code from the CZ score.
| Score | Level | ANSI Code |
|---|---|---|
| 90+ | excellent | 38;5;46 |
| 80-89 | high | 38;5;82 |
| 70-79 | good | 38;5;118 |
| 60-69 | moderate | 38;5;154 |
| 50-59 | fair | 93 |
| 40-49 | uncertain | 33 |
| 25-39 | low | 91 |
| <25 | very_low | 31 |
Step 1: Research Agent -> produces synthesis
Step 2: Read CZ score from .claude/confidenz-latest.json
Step 3: Call AskUserQuestion with recommended option colored using CZ color code
Step 4: Output CZ score at bottom: CZ: XX%
Step 5: IF "Review" selected -> Survey Agent -> present questions
Step 6: Plan Agent -> generate roadmap
| WRONG | CORRECT |
|---|---|
| Output text survey: "Q1: Goal? A)Build B)Fix" | CALL AskUserQuestion tool |
| Ask user to type "1C 2D 3A..." | User clicks interactive buttons |
| Skip the CZ score display | Output CZ: XX% at BOTTOM after question |
| Plain recommended label | Color recommended label with CZ ANSI code |
When this skill is invoked with /inference-planz:run <prompt>, execute the complete inference-planz pipeline.
The user's prompt is provided as "$ARGUMENTS".
Use the AskUserQuestion tool to display an INTERACTIVE domain selection survey:
AskUserQuestion({
questions: [
{
question: "What domain is this project for?",
header: "Domain",
multiSelect: false,
options: [
{ label: "Web Application (Recommended)", description: "Frontend/fullstack web apps with UI" },
{ label: "API/Backend Service", description: "REST/GraphQL APIs, microservices" },
{ label: "CLI Tool", description: "Command-line utilities and scripts" },
{ label: "Data Pipeline", description: "ETL, data processing, analytics" }
]
},
{
question: "What is the primary objective?",
header: "Goal",
multiSelect: false,
options: [
{ label: "Build new feature (Recommended)", description: "Create new functionality from scratch" },
{ label: "Fix bug or issue", description: "Debug and resolve existing problems" },
{ label: "Refactor/improve", description: "Restructure without changing behavior" },
{ label: "Research/exploration", description: "Investigate approaches and technologies" }
]
}
]
})
After receiving answers, use them to construct the full prompt context and proceed to the pipeline.
Execute the following 3-agent pipeline sequentially:
Launch a research agent with this prompt:
You are a Research Agent analyzing a user's request. Your job is to deeply understand their intent and provide structured analysis.
User Request: {user_prompt}
Analyze this request and provide:
1. **Intent Summary**: What is the user truly trying to accomplish?
2. **Assumptions Inferred**: What assumptions can we reasonably make?
3. **Key Unknowns**: What critical information is missing?
4. **Constraints Detected**: What limitations or requirements are implied?
5. **Recommended Approaches**:
- **Option A**: [Description] - Tradeoffs: [pros/cons]
- **Option B**: [Description] - Tradeoffs: [pros/cons]
- **Option C**: [Description] - Tradeoffs: [pros/cons]
6. **Risks and Mitigations**: What could go wrong and how to prevent it?
7. **Success Criteria**: How do we know when this is done well?
Be concise but thorough. Focus on actionable insights. This is research only - do not write code or make changes.
Capture the Research Agent output.
IMMEDIATELY after Research Agent completes:
cat .claude/confidenz-latest.json 2>/dev/null
# Returns: {"score": 85, "level": "high", "color_code": "38;5;82"}
The recommended option label should be colored using ANSI escape code from color_code.
{
"questions": [
{
"question": "Research complete! Would you like to accept all recommended defaults or review each question individually?",
"header": "Quick Start",
"multiSelect": false,
"options": [
{ "label": "Accept All Recommended", "description": "Skip survey, use smart defaults from research, proceed directly to plan generation" },
{ "label": "Review each question", "description": "Answer 5-10 survey questions to customize the implementation plan" }
]
}
]
}
AFTER the AskUserQuestion renders, output the CZ score line using ANSI color:
CZ: 85%
(colored with \033[38;5;82m for score 85)
┌─────────────────────────────────────────────────────────────┐
│ 1. SKIP Step 2 (Survey Agent) entirely │
│ 2. AUTO-GENERATE defaults from research synthesis: │
│ • Goal: Inferred from research intent │
│ • User: Inferred from detected entities │
│ • Output: Working code with tests │
│ • Quality: Production-ready │
│ 3. DISPLAY: "Accepted: Goal=X, User=X, Output=X, Quality=X" │
│ 4. PROCEED DIRECTLY to Step 3 (Plan Agent) │
└─────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────┐
│ Continue to Step 2 (Survey Agent) │
│ Generate and present individual questions │
└─────────────────────────────────────────────────────────────┘
ONLY RUN THIS STEP IF USER SELECTED "Review each question" IN STEP 1.5
Launch a survey agent with this prompt, including the research synthesis:
You are a Survey Agent creating clarification questions. Use the research synthesis to generate targeted questions that will unblock planning.
User Request: {user_prompt}
Research Synthesis:
{research_agent_output}
Generate 5-10 multiple-choice questions covering:
- Primary goal and success metrics
- Target user/audience
- Output format and structure
- Scope boundaries (what's in/out)
- Technical constraints
- Timeline expectations
- Quality bar
Rules:
- Each question must have 2-4 options (to fit AskUserQuestion tool limits)
- Mark the RECOMMENDED option with "(Recommended)" suffix and color label using CZ ANSI code
- Put the recommended option FIRST in the options array
- "Other" option is automatically provided by the tool
- Avoid open-ended essay questions
- Prioritize questions that unblock planning decisions
- End with a confirmation question: "Is this understanding correct?"
Output as structured JSON array for AskUserQuestion:
{
"questions": [
{
"question": "What is the primary goal?",
"header": "Goal",
"multiSelect": false,
"options": [
{ "label": "Option A text (Recommended)", "description": "Why this is best based on research" },
{ "label": "Option B text", "description": "Brief explanation" },
{ "label": "Option C text", "description": "Brief explanation" }
]
}
]
}
Color recommended option label using CZ ANSI code. Output CZ score at bottom.
This is research only - do not write code or make changes.
Capture the Survey Agent output.
NOTE: This step only runs if user selected "Review each question" in Step 1.5
DO NOT output a text-based survey asking users to type "1C 2D 3A..." format.
DO NOT display questions as plain text with A) B) C) D) options.
YOU MUST invoke the AskUserQuestion tool to present clickable, interactive options.
AskUserQuestion tool with questions in batches of 4Batch 1 (Questions 1-4) - CALL AskUserQuestion TOOL:
{
"questions": [
{
"question": "First question from Survey Agent?",
"header": "Topic1",
"multiSelect": false,
"options": [
{ "label": "Best option (Recommended)", "description": "Why this is recommended" },
{ "label": "Alternative option", "description": "When to choose this" },
{ "label": "Another option", "description": "Different tradeoffs" }
]
}
]
}
AFTER each batch: Output CZ score at bottom:
CZ: XX%
(Use ANSI color code from confidenz-latest.json)
Batch 2 (Questions 5-8) - CALL AskUserQuestion TOOL AGAIN if needed.
Final Batch (Confirmation):
{
"questions": [
{
"question": "Is this understanding of your requirements correct?",
"header": "Confirm",
"multiSelect": false,
"options": [
{ "label": "Yes, proceed with planning (Recommended)", "description": "The research synthesis captures my intent accurately" },
{ "label": "Mostly correct, minor adjustments", "description": "I'll provide small clarifications in the next message" },
{ "label": "Partially correct, needs changes", "description": "Significant aspects need to be reconsidered" },
{ "label": "No, different goal entirely", "description": "The analysis missed my actual intent" }
]
}
]
}
Then output: CZ: XX% (colored)
| Requirement | Details |
|---|---|
| Max options | 2-4 per question (tool limit) |
| Recommended Label | Add "(Recommended)" to label, color with CZ ANSI code |
| Order | Put recommended option FIRST in options array |
| Descriptions | Required - explain implications of each choice |
| "Other" | Automatically provided by tool - do not add manually |
| Headers | Short (max 12 chars): "Goal", "Scope", "Timeline", etc. |
| CZ Score | Output CZ: XX% at BOTTOM after question (colored) |
Quick Reference:
Q#: 1 - Question: Version Management - Options: A)Submodule B)NPM C)GitHub fetch
Q#: 2 - Question: Config Hierarchy - Options: A)Global B)Per-farm C)Per-user
Type your answers: 1C 2D 3D...
Call AskUserQuestion tool which renders as clickable buttons/chips in Claude Code UI.
Capture all survey responses for the Plan Agent.
Launch a plan agent with this prompt:
You are a Plan Agent creating an actionable roadmap. The survey has not been answered yet, so create a PROVISIONAL plan with branches for likely outcomes.
User Request: {user_prompt}
Research Synthesis:
{research_agent_output}
Survey Questions:
{survey_agent_output}
Create a production-grade roadmap with:
1. **Project Overview**: Brief summary of what will be built
2. **Milestones and Phases**: High-level breakdown
- Phase 1: [Name] - [Description]
- Phase 2: [Name] - [Description]
- etc.
3. **Detailed Task Breakdown**: Per phase
- Task 1.1: [Description] - Size: [small/medium/large]
- Task 1.2: [Description] - Size: [small/medium/large]
- etc.
4. **File and Folder Structure**: Proposed layout
5. **Interfaces and Contracts**: Key APIs and data flows
6. **Data Structures**: Core types and schemas
7. **Failure Modes and Recovery**: What could fail and how to handle it
8. **Test Plan**: Testing strategy and key test cases
9. **Definition of Done**: Acceptance criteria
10. **Provisional Branches**: Note where plan might change based on survey answers
Mark this as PROVISIONAL - final plan will be generated after survey responses. This is research only - do not write code or make changes.
Capture the Plan Agent output.
1. Display Research Synthesis (text output):
## Inference Planz Summary
[Brief overview: what was analyzed, key findings]
## Research Synthesis
[Research Agent output - Intent, Assumptions, Unknowns, Constraints, Approaches, Risks, Success Criteria]
2. Present "Accept All" Quick Decision - CALL AskUserQuestion TOOL IMMEDIATELY:
{
"questions": [
{
"question": "Research complete! Would you like to accept all recommended defaults or review each question individually?",
"header": "Quick Start",
"multiSelect": false,
"options": [
{ "label": "Accept All Recommended", "description": "Skip survey, use smart defaults from research, proceed directly to plan generation" },
{ "label": "Review each question", "description": "Answer 5-10 survey questions to customize the implementation plan" }
]
}
]
}
IF "Accept All Recommended" selected:
IF "Review each question" selected:
3. [Only if Review selected] Present Clarification Survey - CALL AskUserQuestion TOOL:
YOU MUST CALL THE TOOL - do not just describe the survey in text.
Parse the Survey Agent JSON and invoke AskUserQuestion:
4. Display Implementation Roadmap (after Accept All OR after Survey completion):
## Implementation Roadmap Plan
[Plan Agent output - now finalized based on user's choices or accepted defaults]
5. Final Proceed Question - CALL AskUserQuestion TOOL:
{
"questions": [
{
"question": "How would you like to proceed?",
"header": "Next Step",
"multiSelect": false,
"options": [
{ "label": "Generate finalized plan (Recommended)", "description": "Create detailed implementation plan using your survey answers" },
{ "label": "Proceed with defaults", "description": "Use inferred defaults and start implementation immediately" },
{ "label": "Refine requirements", "description": "I want to provide more context before planning" },
{ "label": "Start over", "description": "Begin fresh with a different approach" }
]
}
]
}
If Survey Agent fails, STILL present the Accept All option first, then fallback questions:
First: Accept All Quick Decision - CALL THIS IMMEDIATELY:
AskUserQuestion({
questions: [
{
question: "Would you like to accept all recommended defaults and proceed directly to planning?",
header: "Quick Start",
multiSelect: false,
options: [
{ label: "Accept All Recommended", description: "Skip survey questions, proceed with intelligent defaults" },
{ label: "Review each question", description: "Answer questions individually to customize the plan" }
]
}
]
})
IF "Accept All Recommended" selected: Skip to Plan Agent with defaults (Goal=Build, User=End users, Output=Working code, Quality=Production-ready)
IF "Review each question" selected: Continue with fallback questions below:
Batch 1 (Questions 1-4):
AskUserQuestion({
questions: [
{
question: "What is the primary goal of this project?",
header: "Goal",
multiSelect: false,
options: [
{ label: "Build new functionality (Recommended)", description: "Create new features from scratch" },
{ label: "Fix existing issues", description: "Debug and resolve bugs or problems" },
{ label: "Improve performance", description: "Optimize speed, efficiency, or reliability" },
{ label: "Refactor/restructure", description: "Reorganize code without changing behavior" }
]
},
{
question: "Who is the target user for this?",
header: "User",
multiSelect: false,
options: [
{ label: "End users (Recommended)", description: "External customers or consumers" },
{ label: "Developers", description: "Engineers integrating or maintaining the system" },
{ label: "Internal team", description: "Operations, support, or internal stakeholders" },
{ label: "System/automation", description: "Machine-to-machine or automated processes" }
]
},
{
question: "What should be the primary deliverable?",
header: "Output",
multiSelect: false,
options: [
{ label: "Working code (Recommended)", description: "Functional implementation ready to use" },
{ label: "Documentation", description: "Guides, specs, or reference materials" },
{ label: "Analysis/report", description: "Research findings or recommendations" },
{ label: "Prototype", description: "Proof of concept or demo" }
]
},
{
question: "What is the biggest constraint?",
header: "Constraint",
multiSelect: false,
options: [
{ label: "Time/deadline (Recommended)", description: "Must be completed within a specific timeframe" },
{ label: "Technical complexity", description: "Challenging requirements or integrations" },
{ label: "Dependencies", description: "Waiting on external systems or decisions" },
{ label: "Resources", description: "Limited team size or tools available" }
]
}
]
})
Batch 2 (Confirmation):
AskUserQuestion({
questions: [
{
question: "Is this understanding of your requirements correct?",
header: "Confirm",
multiSelect: false,
options: [
{ label: "Yes, proceed (Recommended)", description: "Generate the implementation plan" },
{ label: "Mostly, with adjustments", description: "I'll clarify a few things" },
{ label: "No, needs clarification", description: "The understanding is significantly off" }
]
}
]
})
.claude/confidenz-latest.json before presenting questionsCZ: XX% (colored) AFTER each question batch# Read CZ score
cat .claude/confidenz-latest.json
# {"score": 78, "level": "good", "color_code": "38;5;118"}
# After AskUserQuestion, output at bottom:
echo -e "\033[38;5;118mCZ: 78%\033[0m"
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub blerbz/blerbz-plugins --plugin inference-planz5 skills in this plugin
/configureConfigure inference-planz plugin settings/helpShow help and documentation for inference-planz plugin/planzMulti-agent intelligence workflow for prompt understanding, clarification, and planning. Coordinates Research, Survey, and Plan agents to transform vague user intent into actionable roadmaps./statusShow current inference-planz session status and configuration