feat: Add discoverable 'analyze' subcommand with preset flags (Phase 1 UX improvement)
Implements Phase 1 of the codebase analysis UX improvement plan, making the command discoverable and adding intuitive preset flags while maintaining 100% backward compatibility. New Features: - Add 'analyze' subcommand to main CLI (skill-seekers analyze) - Add --quick preset: Fast analysis (1-2 min, basic features only) - Add --comprehensive preset: Full analysis (20-60 min, all features + AI) - Add --enhance flag: Simple AI enhancement with auto-detection - Improve help text with timing estimates and mode descriptions Files Modified: - src/skill_seekers/cli/main.py: Add analyze subcommand (lines 15, 273-311, 542-589) - src/skill_seekers/cli/codebase_scraper.py: Add preset logic and improve help text - tests/test_analyze_command.py: NEW - 20 comprehensive tests - tests/test_cli_paths.py: Fix version check (2.7.0 -> 2.7.2) - tests/test_package_structure.py: Fix 4 version checks (2.7.0 -> 2.7.2) - README.md: Update examples to use 'analyze' command - CLAUDE.md: Update examples to use 'analyze' command Test Results: - 81 tests related to Phase 1: ALL PASSING ✅ - 20 new tests for analyze command: ALL PASSING ✅ - Zero regressions introduced - 100% backward compatibility maintained Backward Compatibility: - Old 'skill-seekers-codebase' command still works - All existing flags (--depth, --ai-mode, --skip-*) still functional - No breaking changes Usage Examples: skill-seekers analyze --directory . --quick skill-seekers analyze --directory . --comprehensive skill-seekers analyze --directory . --enhance Fixes #262 (codebase UX issues) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
17
CLAUDE.md
17
CLAUDE.md
@@ -173,7 +173,7 @@ skill-seekers github --repo owner/repo --non-interactive # CI/CD mode
|
||||
skill-seekers scrape --config configs/react.json --dry-run
|
||||
|
||||
# Test codebase analysis (C2.x features)
|
||||
skill-seekers codebase --directory . --output output/codebase/
|
||||
skill-seekers analyze --directory . --output output/codebase/
|
||||
|
||||
# Test pattern detection (C3.1)
|
||||
skill-seekers patterns --file src/skill_seekers/cli/code_analyzer.py
|
||||
@@ -283,14 +283,17 @@ The project has comprehensive codebase analysis capabilities (C3.1-C3.8):
|
||||
|
||||
**C3.8 Standalone Codebase Scraper** (`codebase_scraper.py`):
|
||||
```bash
|
||||
# All C3.x features enabled by default, use --skip-* to disable
|
||||
skill-seekers codebase --directory /path/to/repo
|
||||
# Quick analysis (1-2 min, basic features only)
|
||||
skill-seekers analyze --directory /path/to/repo --quick
|
||||
|
||||
# Comprehensive analysis (20-60 min, all features + AI)
|
||||
skill-seekers analyze --directory . --comprehensive
|
||||
|
||||
# With AI enhancement (auto-detects API or LOCAL)
|
||||
skill-seekers analyze --directory . --enhance
|
||||
|
||||
# Disable specific features
|
||||
skill-seekers codebase --directory . --skip-patterns --skip-how-to-guides
|
||||
|
||||
# Legacy flags (deprecated but still work)
|
||||
skill-seekers codebase --directory . --build-api-reference --build-dependency-graph
|
||||
skill-seekers analyze --directory . --skip-patterns --skip-how-to-guides
|
||||
```
|
||||
|
||||
- Generates 300+ line standalone SKILL.md files from codebases
|
||||
|
||||
Reference in New Issue
Block a user