Skip to main content

Plan Generation

Plan generation is the core intelligence of NikCLI’s planning system, transforming high-level user goals into detailed, executable plans through AI-powered analysis, context awareness, and intelligent decomposition.

Generation Process

Overview

Step-by-Step Flow

  1. Request Analysis: Parse and understand user intent
  2. Context Gathering: Collect project and workspace information
  3. AI Planning: Generate structured plan using AI
  4. Step Generation: Create executable steps with dependencies
  5. Risk Assessment: Evaluate plan safety and complexity
  6. Validation: Check plan integrity and feasibility
  7. Execution Plan: Return validated, executable plan

Plan Generator

Basic Usage

Plan Structure

Request Analysis

Intent Detection

The generator analyzes user requests to understand intent:

Operation Detection

Complexity Assessment

Step Generation

Execution Steps

Each step represents an atomic operation:

Step Types

Tool Steps

Execute specific tools:

Validation Steps

Verify prerequisites and results:

User Input Steps

Request user confirmation:

Decision Steps

Evaluate conditions:

Step Generation Strategies

Operation-Specific Steps

Dependency Management

AI-Powered Generation

Enhanced Planning System

Uses AI to generate comprehensive plans:

AI Planning Prompt

Todo Items

Autonomous Planning

Autonomous Planner

Self-directed planning with AI:

Workspace Context Integration

Toolchain Registry

Pre-configured toolchains for common patterns:

Risk Assessment

Risk Calculation

Enhanced Risk Assessment

Plan Validation

Validation Process

Circular Dependency Detection

Tool Capability Discovery

Tool Registration

Dynamic Tool Discovery

Plan Templates

Creating Templates

Using Templates

Best Practices

Effective Planning

DO:
  • Analyze project context thoroughly
  • Generate 5-15 steps for optimal execution
  • Set realistic duration estimates
  • Define clear dependencies
  • Include validation steps
  • Assess risks accurately
DON’T:
  • Generate overly complex plans (50+ steps)
  • Skip context analysis
  • Ignore tool capabilities
  • Omit risk assessment
  • Create circular dependencies

Plan Quality

Next Steps

Execution Flow

Learn about plan execution

Plan Templates

Explore pre-built templates

Interactive Planning

Master interactive workflows

Tool System

Understand tool integration