Files
SuperClaude/.claude/commands/load.md
NomenAK 219ff3905a feat: Optimize all 18 command files using @include reference system
Major streamlining achievement:
- Eliminate 2,733 lines of duplicate content across commands
- Reduce individual command files by ~70% (130-150 → 35-60 lines)
- Leverage existing shared/*.yml reference patterns
- Maintain full Claude Code compliance

Benefits:
• Single source of truth for universal content
• Guaranteed consistency across all commands
• Dramatically reduced maintenance overhead
• Massive token efficiency improvements

Implementation:
- Universal Legend: @include shared/universal-constants.yml#Universal Legend
- Universal Flags: @include shared/flag-inheritance.yml#Universal_Always
- Command patterns: References to appropriate shared/*.yml files
- Template system: Enhanced command-patterns.yml

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-24 22:46:52 +02:00

2.7 KiB

/load - Load and analyze project context

Legend

@include shared/universal-constants.yml#Universal_Legend

Purpose

Load and analyze project context in $ARGUMENTS to build comprehensive understanding of codebase structure, architecture, and patterns.

Syntax

/load [flags] [path]

@include shared/flag-inheritance.yml#Universal_Always

Core Flags

--scope flag:

  • minimal: Core files only
  • standard: Main source & config
  • comprehensive: All relevant files
  • full: Complete project analysis

--focus flag:

  • architecture: System design
  • api: API endpoints & contracts
  • database: Schema & queries
  • frontend: UI components
  • testing: Test coverage

--format flag:

  • summary: High-level overview
  • detailed: Comprehensive analysis
  • visual: Include diagrams
  • structured: YAML/JSON output

Loading Strategy

Progressive Loading:

  1. Core files (package.json, config)
  2. Entry points (main, index)
  3. Key modules & components
  4. Tests & documentation
  5. Supporting files

Smart Selection:

  • Prioritize by importance
  • Skip generated files
  • Focus on active code
  • Include critical configs
  • Respect .gitignore

Analysis Components

Structure Analysis:

  • Directory organization
  • Module dependencies
  • Component hierarchy
  • API surface area
  • Database schema

Pattern Detection:

  • Design patterns used
  • Coding conventions
  • Architecture style
  • Technology stack
  • Best practices

Quality Metrics:

  • Code complexity
  • Test coverage
  • Documentation level
  • Technical debt
  • Security concerns

Output Format

Standard Report:

Project: [Name]
Type: [Web App/API/Library]
Stack:
  Frontend: [Technologies]
  Backend: [Technologies]
  Database: [Type]
Architecture:
  Style: [Monolith/Microservices]
  Patterns: [List]
Key_Components:
  - [Component]: [Purpose]
Quality:
  Test_Coverage: X%
  Documentation: [Level]
  Complexity: [Score]

Best Practices

Efficiency:

  • Load incrementally
  • Cache analysis results
  • Focus on changes
  • Skip redundant files
  • Optimize memory usage

Accuracy:

  • Verify assumptions
  • Cross-reference files
  • Check documentation
  • Validate patterns
  • Update regularly

Examples

# Quick project overview
/load --scope minimal

# Full architecture analysis
/load --scope comprehensive --focus architecture

# API documentation generation
/load --focus api --format detailed

# Complete project understanding
/load --scope full --think-hard

Integration

@include shared/loading-config.yml#Loading_Strategies

Works with:

  • /analyze for deep inspection
  • /document for documentation
  • /improve for enhancements
  • /estimate for planning

Deliverables

  • Project structure map
  • Architecture diagram
  • Component inventory
  • Dependency graph
  • Quality metrics report
  • Pattern analysis