- Remove Wiki.js MCP server entirely - Add wiki, milestone, and dependency tools to Gitea MCP server - Add parallel execution support based on dependency graph - Add mandatory pre-planning validations (org check, labels, docs/changes) - Add CLI blocking rules to all agents (API-only) - Add standardized task naming: [Sprint XX] <type>: <description> - Add branch naming convention: feat/, fix/, debug/ prefixes - Add MR body template without subtasks - Add auto-close issues via commit keywords - Create claude-config-maintainer plugin for CLAUDE.md optimization - Update all sprint commands with new tools and workflows - Update documentation to remove Wiki.js references New MCP tools: - Wiki: list_wiki_pages, get_wiki_page, create_wiki_page, create_lesson, search_lessons - Milestones: list_milestones, get_milestone, create_milestone, update_milestone - Dependencies: list_issue_dependencies, create_issue_dependency, get_execution_order - Validation: validate_repo_org, get_branch_protection, create_label Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
133 lines
3.3 KiB
Markdown
133 lines
3.3 KiB
Markdown
---
|
|
description: Analyze CLAUDE.md for optimization opportunities
|
|
---
|
|
|
|
# Analyze CLAUDE.md
|
|
|
|
This command analyzes your project's CLAUDE.md file and provides a detailed report on optimization opportunities.
|
|
|
|
## What This Command Does
|
|
|
|
1. **Read CLAUDE.md** - Locates and reads the project's CLAUDE.md file
|
|
2. **Analyze Structure** - Evaluates organization, headers, and flow
|
|
3. **Check Content** - Reviews clarity, completeness, and conciseness
|
|
4. **Identify Issues** - Finds redundancy, verbosity, and missing sections
|
|
5. **Generate Report** - Provides scored assessment with recommendations
|
|
|
|
## Usage
|
|
|
|
```
|
|
/config-analyze
|
|
```
|
|
|
|
Or invoke the maintainer agent directly:
|
|
|
|
```
|
|
Analyze the CLAUDE.md file in this project
|
|
```
|
|
|
|
## Analysis Criteria
|
|
|
|
### Structure (25 points)
|
|
- Logical section ordering
|
|
- Clear header hierarchy
|
|
- Easy navigation
|
|
- Appropriate grouping
|
|
|
|
### Clarity (25 points)
|
|
- Clear instructions
|
|
- Good examples
|
|
- Unambiguous language
|
|
- Appropriate detail level
|
|
|
|
### Completeness (25 points)
|
|
- Project overview present
|
|
- Quick start commands documented
|
|
- Critical rules highlighted
|
|
- Key workflows covered
|
|
|
|
### Conciseness (25 points)
|
|
- No unnecessary repetition
|
|
- Efficient information density
|
|
- Appropriate length for project size
|
|
- No generic filler content
|
|
|
|
## Expected Output
|
|
|
|
```
|
|
CLAUDE.md Analysis Report
|
|
=========================
|
|
|
|
File: /path/to/project/CLAUDE.md
|
|
Lines: 245
|
|
Last Modified: 2025-01-18
|
|
|
|
Overall Score: 72/100
|
|
|
|
Category Scores:
|
|
- Structure: 20/25 (Good)
|
|
- Clarity: 18/25 (Good)
|
|
- Completeness: 22/25 (Excellent)
|
|
- Conciseness: 12/25 (Needs Work)
|
|
|
|
Strengths:
|
|
+ Clear project overview with good context
|
|
+ Critical rules prominently displayed
|
|
+ Comprehensive coverage of workflows
|
|
|
|
Issues Found:
|
|
|
|
1. [HIGH] Verbose explanations (lines 45-78)
|
|
Section "Running Tests" has 34 lines that could be 8 lines.
|
|
Impact: Harder to scan, important info buried
|
|
|
|
2. [MEDIUM] Duplicate content (lines 102-115, 189-200)
|
|
Same git workflow documented twice.
|
|
Impact: Maintenance burden, inconsistency risk
|
|
|
|
3. [MEDIUM] Missing Quick Start section
|
|
No clear "how to get started" instructions.
|
|
Impact: Slower onboarding for Claude
|
|
|
|
4. [LOW] Inconsistent header formatting
|
|
Mix of "## Title" and "## Title:" styles.
|
|
Impact: Minor readability issue
|
|
|
|
Recommendations:
|
|
1. Add Quick Start section at top (priority: high)
|
|
2. Condense Testing section to essentials (priority: high)
|
|
3. Remove duplicate git workflow (priority: medium)
|
|
4. Standardize header formatting (priority: low)
|
|
|
|
Estimated improvement: 15-20 points after changes
|
|
|
|
Would you like me to:
|
|
[1] Implement all recommended changes
|
|
[2] Show before/after for specific section
|
|
[3] Generate optimized version for review
|
|
```
|
|
|
|
## When to Use
|
|
|
|
Run `/config-analyze` when:
|
|
- Setting up a new project with existing CLAUDE.md
|
|
- CLAUDE.md feels too long or hard to use
|
|
- Claude seems to miss instructions
|
|
- Before major project changes
|
|
- Periodic maintenance (quarterly)
|
|
|
|
## Follow-Up Actions
|
|
|
|
After analysis, you can:
|
|
- Run `/config-optimize` to automatically improve the file
|
|
- Manually address specific issues
|
|
- Request detailed recommendations for any section
|
|
- Compare with best practice templates
|
|
|
|
## Tips
|
|
|
|
- Run analysis after significant project changes
|
|
- Address HIGH priority issues first
|
|
- Keep scores above 70/100 for best results
|
|
- Re-analyze after making changes to verify improvement
|