aggregate-logs
CommandGenerate LEARNINGS.md from skill execution logs over a configurable time window.
Identify and implement skill improvements from execution logs and user evaluations.
> /plugin marketplace add athola/claude-night-market
name: improve-skills description: Identify and implement skill improvements from execution logs and user evaluations.
Automatically identify and implement skill improvements based on execution logs and user evaluations.
/abstract:improve-skills # Analyze all skills /abstract:improve-skills --skill proof-of-work # Improve specific skill /abstract:improve-skills --top 5 # Top 5 improvement opportunities /abstract:improve-skills --dry-run # Preview without implementing
Part of Issue #69 Phase 5, this command closes the self-improvement loop by: 1. Reading LEARNINGS.md for improvement opportunities 2. Prioritizing by severity (frequency × impact × ease) 3. Generating skill update proposals 4. Optionally implementing changes with validation
1. **Loads LEARNINGS.md** from `~/.claude/skills/LEARNINGS.md` 2. **Identifies opportunities**:
3. **Prioritizes improvements**:
4. **Generates proposals**:
5. **Optionally implements**:
which bumps the adaptation version and opens the evaluation window (skill-improver agent, step 5C)
Priority Score = (Frequency × Impact) / Ease Where: - Frequency: Execution count in analysis period - Impact: - High failure rate: 10 - Low rating: rating_diff × 2 (e.g., 2.5 vs 5.0 = 5.0 impact) - Slow execution: seconds_over_threshold / 10 - Ease: - Simple text update: 1 - Add examples: 2 - Restructure workflow: 5 - Refactor logic: 10
**Threshold**: Priority > 5.0 = implement now, 2.0-5.0 = discuss, <2.0 = defer
/abstract:improve-skills # Output: # Reading LEARNINGS.md... # Found 12 improvement opportunities # # Top 5 by priority: # 1. imbue:proof-of-work (Priority: 8.5) # Issue: 42% failure rate (11/26 executions) # Fix: Add error handling for missing PROOF.md # Ease: Simple (add try/catch) # # 2. abstract:skill-auditor (Priority: 6.2) # Issue: 2.8/5.0 rating - "too verbose" # Fix: Add --quiet flag # Ease: Medium (new parameter) # ... # # Implement top 5? (y/n):
/abstract:improve-skills --skill proof-of-work # Focuses only on imbue:proof-of-work # Shows all identified issues for that skill # Proposes fixes in priority order
/abstract:improve-skills --dry-run # Shows what would be changed without implementing # Useful for review before committing
/abstract:improve-skills --top 3 # Only processes top 3 highest-priority improvements # Useful for focused improvement sessions
**Example**: `imbue:proof-of-work` fails 42% of the time
**Typical Fixes**:
**Example**: `sanctum:pr-agent` averages 45s (threshold: 10s)
**Typical Fixes**:
**Example**: `abstract:skill-auditor` rated 2.8/5.0 - "too verbose output"
**Typical Fixes**:
**Example**: Users report "unclear what 'evidence' means"
**Typical Fixes**:
For each improvement (if not --dry-run):
1. **Read skill file** (SKILL.md or skill module) 2. **Apply changes**:
3. **Validate**:
4. **Test** (if applicable):
5. **Commit**:
## Improvement Proposal: imbue:proof-of-work **Issue**: High failure rate (42.3% - 11/26 executions) **Priority**: 8.5 (High) **Root Cause** (from LEARNINGS.md): - Missing PROOF.md file (5 occurrences) - Invalid acceptance_criteria field (3 occurrences) - KeyError on 'evidence' (3 occurrences) **Proposed Fix**: 1. Add validation at start: - Check PROOF.md exists before parsing - Validate required fields with clear error messages 2. Add error recovery: - Suggest creating PROOF.md if missing - Show example of valid acceptance_criteria 3. Record with `scripts/record_skill_improvement.py` (adaptation 1.0.0 → 1.1.0) **Expected Impact**: - Reduce failure rate from 42% to <10% - Improve error messages for remaining failures - Better user experience **Files to modify**: - plugins/imbue/skills/proof-of-work/SKILL.md - plugins/imbue/skills/proof-of-work/modules/validation-protocols.md Implement this improvement? (y/n):
**Phase 1-3 Data Sources**:
**Phase 4 Feedback Loop**:
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.
Generate LEARNINGS.md from skill execution logs over a configurable time window.
Analyze skill file complexity metrics and generate modularization recommendations for splitting or progressive loading.
Generate context optimization report for skill directories
Create slash commands with brainstorming and best practices
Scaffold new Claude Code skills with brainstorming, TDD methodology, and proper frontmatter and module structure.
Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.