docs: Update all documentation to use new 'analyze' command

- Update Chinese README (README.zh-CN.md) with new preset flags
- Update docs/features/*.md (PATTERN_DETECTION, HOW_TO_GUIDES, BOOTSTRAP_SKILL_TECHNICAL)
- Update scripts/bootstrap_skill.sh to use 'skill-seekers analyze'
- Update scripts/skill_header.md command examples
- Update tests/test_bootstrap_skill.py assertions
- Fix CHANGELOG.md historical entry with correct command name

All references to 'skill-seekers-codebase' updated to 'skill-seekers analyze'
except where needed for backward compatibility (pyproject.toml, E2E tests).

Related to Phase 1 implementation from previous commits.
This commit is contained in:
yusyus
2026-01-29 22:56:33 +03:00
parent 41fdafa13d
commit 5a78522dbc
8 changed files with 30 additions and 32 deletions

View File

@@ -530,7 +530,7 @@ This **minor feature release** completes the C3.x codebase analysis suite with s
- Includes language statistics, analysis depth indicators, and feature checkboxes
- Creates references/ directory with organized outputs (API, dependencies, patterns, architecture, config)
- Integration points:
- CLI tool: `skill-seekers-codebase-scraper --directory /path/to/code --output /path/to/output`
- CLI tool: `skill-seekers analyze --directory /path/to/code --output /path/to/output`
- Unified scraper: Automatic SKILL.md generation when using codebase analysis
- Format helpers for all C3.x sections (patterns, examples, API, architecture, config)
- Perfect for local codebase documentation without GitHub

View File

@@ -305,17 +305,17 @@ ls ~/.claude/skills/skill-seekers/SKILL.md
**用法:**
```bash
# AUTO 模式(默认)- 自动检测最佳选项
skill-seekers-codebase tests/ --build-how-to-guides --ai-mode auto
# 快速分析1-2 分钟,基础功能)
skill-seekers analyze --directory tests/ --quick
# API 模式 - 快速、高效(需要 ANTHROPIC_API_KEY
skill-seekers-codebase tests/ --build-how-to-guides --ai-mode api
# 综合分析20-60 分钟,所有功能 + AI
skill-seekers analyze --directory tests/ --comprehensive
# LOCAL 模式 - 使用 Claude Code Max 免费(无需 API 密钥
skill-seekers-codebase tests/ --build-how-to-guides --ai-mode local
# 启用 AI 增强(自动检测 API 或 LOCAL
skill-seekers analyze --directory tests/ --enhance
# 禁用增强 - 仅基础指南
skill-seekers-codebase tests/ --build-how-to-guides --ai-mode none
# 自定义:禁用特定功能
skill-seekers analyze --directory tests/ --skip-how-to-guides
```
**完整文档:**[docs/HOW_TO_GUIDES.md](docs/HOW_TO_GUIDES.md#ai-enhancement-new)

View File

@@ -148,7 +148,7 @@ Fails fast with helpful installation instructions.
**Step 2: Codebase Analysis (lines 37-45)**
```bash
rm -rf "$OUTPUT_DIR" 2>/dev/null || true
uv run skill-seekers-codebase \
uv run skill-seekers analyze \
--directory "$PROJECT_ROOT" \
--output "$OUTPUT_DIR" \
--depth deep \

View File

@@ -31,7 +31,7 @@ First, extract workflow examples from your test files:
```bash
# Extract test examples including workflows
skill-seekers-codebase tests/ \
skill-seekers analyze tests/ \
--extract-test-examples \
--output output/codebase/
@@ -64,13 +64,13 @@ Enable guide generation during codebase analysis:
```bash
# Automatic pipeline: extract tests → build guides
skill-seekers-codebase tests/ \
skill-seekers analyze tests/ \
--extract-test-examples \
--build-how-to-guides \
--output output/codebase/
# Skip guide generation
skill-seekers-codebase tests/ \
skill-seekers analyze tests/ \
--skip-how-to-guides
```
@@ -284,7 +284,7 @@ AI enhancement happens automatically with AUTO mode detection:
```bash
# Auto-detects best mode (API if key set, else LOCAL)
skill-seekers-codebase tests/ \
skill-seekers analyze tests/ \
--extract-test-examples \
--build-how-to-guides \
--ai-mode auto
@@ -299,7 +299,7 @@ Use Claude API directly (requires ANTHROPIC_API_KEY):
export ANTHROPIC_API_KEY=sk-ant-...
# Enable API mode
skill-seekers-codebase tests/ \
skill-seekers analyze tests/ \
--build-how-to-guides \
--ai-mode api
```
@@ -316,7 +316,7 @@ Use Claude Code CLI (no API key needed):
```bash
# Uses your Claude Code Max plan (FREE!)
skill-seekers-codebase tests/ \
skill-seekers analyze tests/ \
--build-how-to-guides \
--ai-mode local
```
@@ -334,7 +334,7 @@ Generate basic guides without AI:
```bash
# Faster, but basic quality
skill-seekers-codebase tests/ \
skill-seekers analyze tests/ \
--build-how-to-guides \
--ai-mode none
```
@@ -358,7 +358,7 @@ skill-seekers-codebase tests/ \
```bash
# 1. Extract test examples from your codebase
skill-seekers-codebase tests/ \
skill-seekers analyze tests/ \
--extract-test-examples \
--output output/codebase/
@@ -401,7 +401,7 @@ which claude
**Issue: Enhancement takes too long**
```bash
# Switch to API mode for faster processing
skill-seekers-codebase tests/ \
skill-seekers analyze tests/ \
--build-how-to-guides \
--ai-mode api # Much faster than LOCAL
@@ -873,7 +873,7 @@ How-to guides are built from workflow examples extracted by C3.2:
```bash
# Full pipeline
skill-seekers-codebase tests/ \
skill-seekers analyze tests/ \
--extract-test-examples \
--build-how-to-guides
```
@@ -907,7 +907,7 @@ skill-seekers-how-to-guides examples.json --no-ai
Automatic guide generation during codebase analysis:
```bash
skill-seekers-codebase /path/to/repo/ \
skill-seekers analyze /path/to/repo/ \
--extract-test-examples \
--build-how-to-guides \
--output output/codebase/
@@ -946,7 +946,7 @@ skill-seekers-how-to-guides tests/integration/test_examples.json \
Extract usage patterns from test suites:
```bash
skill-seekers-codebase tests/api/ \
skill-seekers analyze tests/api/ \
--extract-test-examples \
--build-how-to-guides
```
@@ -1375,7 +1375,7 @@ pytest tests/test_how_to_guide_builder.py --cov=skill_seekers.cli.how_to_guide_b
**Get Started:**
```bash
# Quick start
skill-seekers-codebase tests/ --output output/codebase/
skill-seekers analyze tests/ --output output/codebase/
# Check your new guides
cat output/codebase/tutorials/index.md

View File

@@ -119,10 +119,10 @@ The `--detect-patterns` flag integrates with codebase analysis:
```bash
# Analyze codebase + detect patterns
skill-seekers-codebase --directory src/ --detect-patterns
skill-seekers analyze --directory src/ --detect-patterns
# With other features
skill-seekers-codebase \
skill-seekers analyze \
--directory src/ \
--detect-patterns \
--build-api-reference \

View File

@@ -37,11 +37,9 @@ echo "✓ Done"
# Step 2: Run codebase analysis
echo "Step 2: Analyzing codebase..."
rm -rf "$OUTPUT_DIR" 2>/dev/null || true
uv run skill-seekers-codebase \
uv run skill-seekers analyze \
--directory "$PROJECT_ROOT" \
--output "$OUTPUT_DIR" \
--depth deep \
--ai-mode none 2>&1 | grep -E "^(INFO|✅)" || true
--output "$OUTPUT_DIR" 2>&1 | grep -E "^(INFO|✅)" || true
echo "✓ Done"
# Step 3: Prepend header to SKILL.md

View File

@@ -16,7 +16,7 @@ pip install skill-seekers
| Source | Command |
|--------|---------|
| Local code | `skill-seekers-codebase --directory ./path` |
| Local code | `skill-seekers analyze --directory ./path` |
| Docs URL | `skill-seekers scrape --url https://...` |
| GitHub | `skill-seekers github --repo owner/repo` |
| PDF | `skill-seekers pdf --file doc.pdf` |
@@ -25,7 +25,7 @@ pip install skill-seekers
```bash
# Analyze local codebase
skill-seekers-codebase --directory /path/to/project --output output/my-skill/
skill-seekers analyze --directory /path/to/project --output output/my-skill/
# Package for Claude
yes | skill-seekers package output/my-skill/ --no-open

View File

@@ -37,7 +37,7 @@ class TestBootstrapSkillScript:
# Must have commands table
assert "## Commands" in content, "Header must have Commands section"
assert "skill-seekers-codebase" in content, "Header must mention codebase command"
assert "skill-seekers analyze" in content, "Header must mention analyze command"
assert "skill-seekers scrape" in content, "Header must mention scrape command"
assert "skill-seekers github" in content, "Header must mention github command"