Skip to content

Commands

Ali Sadeghi edited this page Jan 6, 2026 · 7 revisions

Commands

Slash commands for manual operations.

/generate-spec

Generates living documentation from an existing feature implementation.

Usage: /generate-spec login

What it does:

  • Analyzes feature implementation in feature/login/
  • Extracts models, API contracts, state management, navigation
  • Generates comprehensive specification
  • Saves to .claude/docs/login/spec/login.md

Output Includes:

  • Feature overview and requirements
  • Architecture decisions
  • Data models with field descriptions
  • API endpoints and contracts
  • State management patterns
  • Navigation routes and callbacks
  • Implementation details

When to use:

  • After manually creating a feature (to generate docs)
  • When specs are missing for existing features
  • To document legacy features

/coverage

Generates test coverage reports for all feature modules.

Usage: /coverage

What it does:

  • Runs Kover coverage tool on all feature modules
  • Generates HTML reports with line-by-line analysis
  • Opens reports in browser
  • Shows coverage percentages by module

Output:

  • HTML coverage reports in build/reports/kover/
  • Coverage summary in terminal
  • Line, branch, and instruction coverage metrics

When to use:

  • Before merging features
  • To identify untested code paths
  • During code review
  • To meet coverage requirements

Clone this wiki locally