aggregate-logs
Generate LEARNINGS.md from skill execution logs over a configurable time window.
Generate context optimization report for skill directories
> /plugin marketplace add athola/claude-night-marketHow it fires
How this command gets triggered: by you, by Claude, or both.
/context-reportContext preview
What this command does when you run it.
Generate context optimization report for skill directories
name: context-report description: Generate context optimization report for skill directories usage: /context-report [directory-path]
Generates a detailed context window optimization report for all skills in a directory. Identifies large files, categorizes by size, and provides actionable optimization recommendations.
Use this command when you need to:
Avoid this command if:
# Analyze skills directory /context-report skills/ # Analyze specific plugin's skills /context-report ~/.claude/plugins/my-plugin/skills # Full statistics with detailed breakdown /context-report skills/ --stats # Estimate tokens for a single skill file /context-report --estimate skills/my-skill/SKILL.md # Estimate with dependency analysis /context-report --estimate skills/my-skill/SKILL.md --include-dependencies
Skills are categorized by byte size for optimization priority:
| Category | Size Range | Recommendation | |----------|------------|----------------| | Small | < 2KB | Optimal, no action needed | | Medium | 2-5KB | Good, monitor growth | | Large | 5-15KB | Consider modularization | | XLarge | > 15KB | Should modularize |
/context-report skills/ # Output: # Context Optimization Analysis # ================================================== # Total Skills: 12 # Total Size: 45,230 bytes # Estimated Tokens: 11,842 # # Size Distribution: # Small (<2KB): 8 files # Medium (2-5KB): 3 files # Large (5-15KB): 1 files # XLarge (>15KB): 0 files # # Recommendation: 1 file(s) exceed 5KB # Consider using progressive disclosure or modularization /context-report skills/ --report # Adds detailed per-file breakdown: # Path Size Category Tokens # ---------------------------------------------------------------- # skills-eval/SKILL.md 4,521 medium 1,180 # modular-skills/SKILL.md 3,892 medium 985 # ...
Get a bird's-eye view of your entire skill collection's context efficiency:
/context-report ~/.claude/skills
Before publishing a plugin, validate all skills are within optimal bounds:
/context-report ./skills
Identify which skills need the most attention for modularization.
When used with `--estimate`, provides detailed per-file token breakdown:
/context-report --estimate skills/modular-skills/SKILL.md # Output: # === skills/modular-skills/SKILL.md === # Total tokens: 1,847 # Component breakdown: # Frontmatter: 45 tokens # Body content: 1,402 tokens # Code blocks: 400 tokens # === Recommendations === # GOOD: Optimal token range (800-2000 tokens)
Complements other commands:
# Directory report mode
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/context_optimizer.py report "${1:-.}"
# Token estimation mode (--estimate flag)
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/token_estimator.py --file "${1:-.}"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.
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.