Claude-skill-registry analyzer
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/analyzer" ~/.claude/skills/majiayu000-claude-skill-registry-analyzer && rm -rf "$T"
manifest:
skills/data/analyzer/SKILL.mdsource content
Kodo Analyzer Skill
Comprehensive codebase analysis methodology for existing projects.
Purpose
The Kodo Analyzer system provides systematic codebase analysis to:
- Infer and document existing features
- Identify gaps, bugs, and security issues
- Calculate health scores per category
- Generate actionable recommendations
- Track health trends over time
When to Use
- New project onboarding (existing codebase)
- Periodic health checks
- Pre-refactoring assessment
- Security audits
- Documentation generation
- Before major releases
Architecture
+-------------------------------------+ | /kodo analyze Command | +-----------------+-------------------+ | +-----------------v-------------------+ | kodo-codebase-analyzer (Main) | | - Orchestrates sub-agents | | - Aggregates results | | - Calculates health scores | +-----------------+-------------------+ | +-------------+-------------+ | | | +---v---+ +----v----+ +---v---+ | Group | | Group | | Group | | 1 | | 2 | | 3 | +---+---+ +----+----+ +---+---+ | | | +---v-------+ +--v--------+ +v------------+ | database | | deps | | security | | api | | analytics | | performance | | frontend | | docs | | | +-----------+ +-----------+ +-------------+
Analysis Categories
1. Database Analysis
- Schema quality and relationships
- RLS policy coverage
- Index optimization
- Unused table/column detection
- Migration health
2. API Analysis
- Endpoint inventory
- Authentication coverage
- Error handling patterns
- Edge function candidates
- Documentation gaps
3. Frontend Analysis
- Component inventory
- Accessibility compliance
- State management patterns
- Performance concerns
- UI consistency
4. Dependencies Analysis
- Outdated packages
- Security vulnerabilities
- Better alternatives
- Unused dependencies
- License compliance
5. Analytics Analysis
- Event coverage
- Naming consistency
- Feature flag usage
- Funnel completeness
- User identification
6. Documentation Analysis
- Coverage assessment
- Code-doc accuracy
- Staleness detection
- Quality metrics
7. Security Analysis
- Authentication flows
- Authorization patterns
- Input validation
- Secrets management
- CORS configuration
8. Performance Analysis
- Database query optimization
- Bundle size analysis
- Caching strategies
- Render performance
- Asset optimization
Output Structure
./docs/analysis/ ├── summary.md # Executive summary ├── database/ │ └── report.md ├── api/ │ └── report.md ├── frontend/ │ └── report.md ├── dependencies/ │ └── report.md ├── analytics/ │ └── report.md ├── documentation/ │ └── report.md ├── security/ │ └── report.md └── performance/ └── report.md
Health Scoring
See
references/health-scoring.md for detailed methodology.
| Category | Weight | Score Factors |
|---|---|---|
| Database | 15% | RLS, indexes, unused detection |
| API | 15% | Auth, errors, documentation |
| Frontend | 15% | A11y, states, performance |
| Dependencies | 10% | Freshness, security |
| Analytics | 10% | Coverage, consistency |
| Documentation | 10% | Coverage, accuracy |
| Security | 15% | Auth, validation, secrets |
| Performance | 10% | Queries, bundles, caching |
Issue Classification
See
references/issue-categories.md for severity definitions.
- Critical: Security vulnerabilities, data loss risks
- High: Bugs, missing auth, accessibility failures
- Medium: Performance issues, code quality
- Low: Style inconsistencies, minor improvements
Workflow
Step 1: Initialize
kodo analyze # Standard analysis kodo analyze --deep # Deep mode: extract full content + learnings from docs/ kodo analyze --deep --auto # Auto-accept all findings
Deep Mode (
--deep): In addition to standard analysis, extracts learnings from documentation:
- Scans
directory recursivelydocs/ - Extracts rules, decisions, tech-stack choices, workflows, domain terms, conventions
- Creates context entries in
.kodo/context-tree/ - Creates learnings in
(grouped by category).kodo/learnings/ - Assigns HIGH confidence to your design docs (
), MEDIUM to inherited docsdocs/plans/
Step 2: Review Summary
Check overall health score and critical issues.
Step 3: Drill Down
Review individual category reports in
./docs/analysis/.
Step 4: Prioritize
Use the prioritization matrix:
- High Impact + Low Effort = Do First
- Critical issues = Immediate attention
Step 5: Track Progress
# Store in context for trend tracking kodo curate --category analysis --title "Health Report $(date)"
Step 6: Re-analyze
Run periodic analyses to track improvement:
kodo analyze --quick # Weekly kodo analyze # Monthly
Integration
Kodo Context Storage
Analysis results are stored in
.kodo/context/analysis/:
# Query previous analyses kodo query "health score" kodo query "security issues" kodo query "performance bottlenecks"
Feature Documentation
Analysis can infer features and populate
./docs/features/:
kodo analyze # Also generates feature docs
Configuration
Set analysis preferences in
.kodo/config.json:
{ "analyzer": { "analyzers": { "database": { "enabled": true }, "api": { "enabled": true }, "frontend": { "enabled": true }, "dependencies": { "enabled": true }, "analytics": { "enabled": true }, "documentation": { "enabled": true }, "security": { "enabled": true }, "performance": { "enabled": true } }, "output": { "directory": "./docs/analysis", "populateFeatureDocs": true }, "thresholds": { "critical": 50, "warning": 70 } } }
Best Practices
- Run full analysis on new projects - Establish baseline
- Run quick analysis weekly - Catch regressions
- Fix critical issues immediately - Security first
- Review recommendations - Not all apply
- Track health trends - Compare over time
- Focus on high-impact fixes - Use prioritization matrix
Agent Model Assignments
| Agent | Model | Reason |
|---|---|---|
| kodo-codebase-analyzer | sonnet | Orchestration, complex decisions |
| kodo-security-analyzer | sonnet | Critical security analysis |
| kodo-performance-analyzer | sonnet | Complex performance patterns |
| kodo-database-analyzer | haiku | Straightforward schema analysis |
| kodo-api-analyzer | haiku | Pattern-based endpoint analysis |
| kodo-frontend-analyzer | haiku | Component scanning |
| kodo-dependencies-analyzer | haiku | Package checking |
| kodo-posthog-analyzer | haiku | Event tracking analysis |
| kodo-documentation-analyzer | haiku | Doc coverage checking |
Related Commands
- Run analysis/kodo analyze
- Run analysis with full content extraction + learnings/kodo analyze --deep
- Extract learnings from a single file/kodo extract <file>
- Store analysis in context/kodo curate
- Search previous analyses/kodo query
- Capture learnings from analysis/kodo reflect
References
- Score calculation methodologyreferences/health-scoring.md
- Issue severity definitionsreferences/issue-categories.md
- Output templatesreferences/analysis-templates.md