Skip to content

7-Phase Methodology

CLI-Anything uses a proven 7-phase methodology to generate production-ready CLIs.

PhaseNameFocus
1AnalyzeUnderstand the software
2DesignPlan the CLI architecture
3ImplementBuild the CLI
4Plan TestsCreate test strategy
5Write TestsImplement test suite
6DocumentWrite documentation
7PublishPackage and distribute

Goal: Understand the target software inside and out.

  • Read documentation and source code
  • Identify key features and capabilities
  • Map GUI actions to command equivalents
  • Analyze input/output formats
  • Feature inventory
  • Capability matrix
  • Action mapping table

Goal: Architect a clean, intuitive CLI.

  • Define command groups
  • Design state model
  • Choose output formats (text, JSON)
  • Plan error handling
  • Command hierarchy
  • State model diagram
  • API specification

Goal: Build the working CLI.

  • Create Click CLI framework
  • Implement all commands
  • Add REPL interface
  • Support JSON output mode
  • Implement undo/redo
  • Click framework for robust CLI
  • REPL for interactive use
  • JSON mode for AI agents
  • Undo/redo for safety

Goal: Define comprehensive test strategy.

  • Identify test scenarios
  • Design unit tests
  • Design E2E tests
  • Set coverage targets
  • Test plan document
  • Coverage requirements (≥80%)

Goal: Implement the test suite.

  • Write unit tests
  • Write integration tests
  • Write E2E tests
  • Run and verify
TypeMinimum
Unit Tests20+
E2E Tests5+
Coverage80%+

Goal: Create comprehensive documentation.

  • Write README with examples
  • Create SKILL.md for AI discovery
  • Document all commands
  • Add troubleshooting guide
  • README.md - User documentation
  • SKILL.md - AI-discoverable skill definition
  • TEST.md - Test documentation

Goal: Package and distribute the CLI.

  • Create setup.py
  • Register with CLI-Hub
  • Publish to registry
  • Add to documentation site
Terminal window
# Install from CLI-Hub
cli-hub install <name>
# Or from source
pip install cli-anything-<name>

Each phase has quality gates:

PhaseGate
1Feature inventory complete
2Design reviewed
3All commands implemented
4Test plan approved
5All tests passing
6Docs complete
7Published to registry
  1. Systematic - No steps are skipped
  2. Tested - Comprehensive test coverage
  3. Documented - Clear documentation for users and AI
  4. Proven - Used to generate 40+ production CLIs