analyze-skill
Analyze skill file complexity metrics and generate modularization recommendations for splitting or progressive loading.
Generate LEARNINGS.md from skill execution logs over a configurable time window.
> /plugin marketplace add athola/claude-night-marketHow it fires
How this command gets triggered: by you, by Claude, or both.
/aggregate-logsContext preview
What this command does when you run it.
Generate LEARNINGS.md from skill execution logs over a configurable time window.
name: aggregate-logs description: Generate LEARNINGS.md from skill execution logs over a configurable time window.
Generate LEARNINGS.md from skill execution logs.
/abstract:aggregate-logs # Last 30 days (default) /abstract:aggregate-logs --days 7 # Last 7 days /abstract:aggregate-logs --days 90 # Last 90 days
Part of Issue #69 Phase 3, this command processes skill execution logs to generate actionable insights for skill improvement.
1. **Loads logs** from `~/.claude/skills/logs/<plugin>/<skill>/` 2. **Calculates metrics** for each skill:
3. **Detects patterns**:
4. **Generates LEARNINGS.md** at `~/.claude/skills/LEARNINGS.md`
# Skill Performance Learnings **Last Updated**: 2026-01-08 04:30:00 UTC **Analysis Period**: Last 30 days **Skills Analyzed**: 15 **Total Executions**: 342 ## High-Impact Issues ### imbue:proof-of-work **Type**: high_failure_rate **Severity**: high **Metric**: 42.3% success rate **Detail**: 11/26 failures **Recent Errors**: - ValidationError: Missing acceptance_criteria field - FileNotFoundError: PROOF.md not found - KeyError: 'evidence' in evaluation ## Slow Execution | Skill | Avg Duration | Max Duration | Executions | |-------|--------------|--------------|------------| | `sanctum:pr-agent` | 45.2s | 120.5s | 18 | | `pensive:code-reviewer` | 32.1s | 89.3s | 24 | ## Low User Ratings ### abstract:skill-auditor - 2.8/5.0 **Common Friction**: - Too verbose output - Missing examples for modular skills - Unclear token optimization guidance **Improvement Suggestions**: - Add --quiet flag - Include example audits - Link to token optimization docs ## Skill Performance Summary | Skill | Executions | Success Rate | Avg Duration | Rating | |-------|------------|--------------|--------------|--------| | `imbue:proof-of-work` | 26 | 42.3% | 2.1s | 3.2/5.0 | | `sanctum:pr-agent` | 18 | 94.4% | 45.2s | 4.5/5.0 |
# Run every Monday morning /abstract:aggregate-logs --days 7 # Output: # Aggregating logs from last 7 days... # # ✅ LEARNINGS.md generated: ~/.claude/skills/LEARNINGS.md # # Summary: # Skills Analyzed: 8 # Total Executions: 47 # High-Impact Issues: 2 # Slow Skills: 1 # Low-Rated Skills: 1
/abstract:aggregate-logs --days 90 # Analyzes last 3 months of data
**Phase 2** (Evaluation):
**Phase 4** (/fix-workflow):
**Phase 5** (/improve-skills):
**Phase 6a** (Collective Intelligence):
# Add to crontab for weekly rollup 0 9 * * MON cd /path/to/claude-night-market && ./plugins/abstract/scripts/aggregate_skill_logs.py 7
# After evaluating several skills: /abstract:evaluate-skill proof-of-work /abstract:evaluate-skill code-reviewer /abstract:aggregate-logs # Review LEARNINGS.md cat ~/.claude/skills/LEARNINGS.md # Act on insights /abstract:improve-skills # Phase 5
| Metric | Warning | Critical | |--------|---------|----------| | Success Rate | <80% | <70% | | Avg Duration | >5s | >10s | | User Rating | <4.0 | <3.5 | | Failure Count | >5 | >10 |
Raw data capture (Phase 1)
1.1.0 (Phase 6a integration)
A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.
Analyze skill file complexity metrics and generate modularization recommendations for splitting or progressive loading.
Scaffold new Claude Code skills with brainstorming, TDD methodology, and proper frontmatter and module structure.
Manually evaluate a recent skill execution to record qualitative feedback.