Overview

NikCLI provides sophisticated project operation capabilities that enable comprehensive project analysis, dependency management, code structure evaluation, and automated project setup. These operations are designed to understand your codebase deeply and provide intelligent assistance throughout the development lifecycle.

Project Analysis

Deep codebase analysis and structure detection

Dependency Management

Package and dependency tracking across technologies

Code Intelligence

AST parsing and semantic code understanding

Automated Setup

Intelligent project initialization and scaffolding

Project Analysis Commands

/analyze - Project Analysis

Perform comprehensive project analysis including technology detection, dependency mapping, and code structure evaluation.
# Analyze current directory
/analyze

# Analyze specific directory
/analyze src/
/analyze components/
/analyze backend/

# Quick analysis summary
/analyze --summary
/analyze --quick

/structure - Code Structure Analysis

Analyze and visualize project structure and architecture patterns.

/dependencies - Dependency Analysis

Comprehensive dependency analysis and management across all supported package managers.
# Show all dependencies
/dependencies
/dependencies list

# Production vs development
/dependencies --prod
/dependencies --dev
/dependencies --peer

# Show dependency tree
/dependencies tree
/dependencies --tree --depth 3

/metrics - Code Metrics

Generate comprehensive code quality metrics and complexity analysis.

Project Initialization Commands

/init - Project Initialization

Initialize new projects with intelligent scaffolding and best practices.
# React projects
/init react my-react-app
/init react --typescript --tailwind

# Vue projects
/init vue my-vue-app
/init vue --composition-api --pinia

# Angular projects
/init angular my-angular-app
/init angular --standalone --material

# Next.js projects
/init nextjs my-next-app
/init nextjs --app-router --typescript

/scaffold - Code Scaffolding

Generate code scaffolding for common patterns and components.

Code Intelligence Commands

Advanced code search with semantic understanding and pattern matching.

/refactor - Code Refactoring

Intelligent code refactoring with AST-based transformations.

/lint - Code Quality Analysis

Comprehensive code quality analysis with multiple linting tools.
# ESLint analysis
/lint eslint
/lint --eslint --fix --typescript

# TypeScript compiler check
/lint tsc
/lint --typescript-check --strict

# Prettier formatting
/lint prettier
/lint --format --check --write

Build and Testing Commands

/build - Project Building

Intelligent build system integration with optimization and analysis.

/test - Testing Operations

Comprehensive testing operations with intelligent test discovery and execution.
# Run all tests
/test
/test --coverage --watch

# Run specific tests
/test UserService
/test --pattern "auth.*"
/test --file user.test.ts

# Test with options
/test --verbose --bail --parallel

Workspace Management

/workspace - Multi-Project Workspace

Manage complex workspaces with multiple projects and shared dependencies.

/monorepo - Monorepo Management

Specialized monorepo operations with advanced dependency management.
# Nx operations
/monorepo nx
/monorepo --nx --affected --parallel

# Lerna operations
/monorepo lerna
/monorepo --lerna --bootstrap --hoist

# Rush operations
/monorepo rush
/monorepo --rush --install --purge

# Turborepo operations
/monorepo turbo
/monorepo --turbo --cache --parallel

Performance and Optimization

/optimize - Code Optimization

Automated code optimization with performance analysis.

/profile - Performance Profiling

Deep performance analysis and profiling capabilities.
# CPU profiling
/profile cpu
/profile --cpu --flame-graph --sampling

# Memory profiling
/profile memory
/profile --memory --heap --garbage-collection

# Network profiling
/profile network
/profile --requests --latency --throughput

Integration Commands

/git - Enhanced Git Operations

Git integration with intelligent branch management and workflow automation.

/docker - Container Operations

Docker integration with intelligent container management.
# Build with optimization
/docker build
/docker --build --optimize --multi-stage

# Image analysis
/docker analyze
/docker --layers --vulnerabilities --size

# Registry operations
/docker registry
/docker --push --pull --tags --cleanup

Configuration and Setup

/setup - Project Setup Automation

Automated project setup with best practices and tooling integration.

/config - Project Configuration

Advanced project configuration management with validation and optimization.
# Analyze current configuration
/config analyze
/config --files --validation --conflicts

# Configuration recommendations
/config recommend
/config --best-practices --optimization

# Configuration migration
/config migrate
/config --upgrade --compatibility --backup

Next Steps

Use /analyze as your first command in any new project to get a comprehensive understanding of the codebase structure, technologies, and potential optimization opportunities.