optimize-claudemd
/optimize-claudemd
Optymalizuje plik CLAUDE.md na podstawie rzeczywistego użycia: analizuje, z których sekcji, dokumentów i komend Claude naprawdę korzysta, i zaleca usunięcia, kompresje i uzupełnienia.
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 4
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 22.08.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
- SKILL.md zawiera komentarze HTML (4). Nie widać ich w podglądzie Markdown, a model je czyta.
Co robi i kiedy
Optymalizuje plik CLAUDE.md na podstawie rzeczywistego użycia: analizuje, z których sekcji, dokumentów i komend Claude naprawdę korzysta, i zaleca usunięcia, kompresje i uzupełnienia.
Wyzwalacze z opisu
Oryginalny opis (EN)
Optimize CLAUDE.md based on actual usage patterns. TRIGGER ON: 'optimize CLAUDE.md', 'improve CLAUDE.md', 'make CLAUDE.md better', 'trim CLAUDE.md', 'what is unused in CLAUDE.md', 'CLAUDE.md is too big', 'shrink CLAUDE.md', 'which docs are never read', 'CLAUDE.md usage', 'optimize context'. Analyzes which sections, docs, and commands Claude actually uses and recommends removals, compressions, and additions.
Jak działa
- When to trigger
- Prerequisites
- Execution flow
- Key constraints
- When to hand off
Podgląd SKILL.md
--- name: optimize-claudemd description: "Optimize CLAUDE.md based on actual usage patterns. TRIGGER ON: 'optimize CLAUDE.md', 'improve CLAUDE.md', 'make CLAUDE.md better', 'trim CLAUDE.md', 'what is unused in CLAUDE.md', 'CLAUDE.md is too big', 'shrink CLAUDE.md', 'which docs are never read', 'CLAUDE.md usage', 'optimize context'. Analyzes which sections, docs, and commands Claude actually uses and recommends removals, compressions, and additions." --- # optimize-claudemd — Optimize CLAUDE.md Based on Usage You are the optimize-claudemd skill. You analyze how Claude actually uses the CLAUDE.md file — which sections are referenced, which docs are read, which commands are run — and recommend optimizations to maximize the value of every byte. ## When to trigger - User asks to optimize, improve, trim, or shrink CLAUDE.md - User asks what's unused or which docs are never read - User says CLAUDE.md is too big or wants to improve context quality - After significant project evolution (new features, removed docs) - Health score shows CLAUDE.md-related deductions **DO NOT trigger on:** general CLAUDE.md questions (use explain-state), initial CLAUDE.md generation (use bootstrap), or manual CLAUDE.md editing. ## Prerequisites - Usage tracking must be enabled (`memory/claudemd-usage.json` must exist) - At least 10 sessions of tracked data (override with `--force`) - CLAUDE.md must have nyann markers (`<!-- nyann:start -->` / `<!-- nyann:end -->`) If tracking is not enabled, offer to enable it: create `memory/claudemd-usage.json` with the empty template, then explain that data will accumulate over future sessions. ## Execution flow ### Phase 1: Analyze usage 1. Run `bin/analyze-claudemd-usage.sh --target .` to get the usage analysis. 2. Check `sufficient_data` — if false, explain how many more sessions are needed and offer `--force`. ### Phase 2: Present findings 3. Show the analysis summary: - Total sessions tracked - Section-by-section density table (section, bytes, references, density, verdict) - Unused docs (referenced in CLAUDE.md but never read by Claude) - Missing commands (frequently run but not documented) - Budget usage (bytes used / remaining) 4. For each recommendation, explain: - What to change (remove, compress, or add) - Why (density score, usage count) - Estimated byte savings ### Phase 3: Apply optimizations 5. Ask which recommendations to apply (all, specific ones, or none). 6. Run `bin/optimize-claudemd.sh --target . --profile <path> --dry-run` to preview. 7. Show the before/after diff. 8. On confirmation, run without `--dry-run`. 9. Report total bytes saved and new budget status. ### Phase 4: Next steps 10. Suggest running `/nyann:doctor` to see the health score impact. 11. If tracking was just enabled, explain that optimization will improve with more usage data. ## Key constraints - Only modifies content within `<!-- nyann:start -->` / `<!-- nyann:end -->` markers - Preserves all user content outside markers - Respects 3KB soft budget and 8KB hard cap - Never removes sections without showing the user what will be removed - Compression is advisory — the skill shows what could be shortened but the actual rewrite is done by the LLM, not the bash script ## When to hand off - "Regenerate CLAUDE.md from scratch" → `gen-claudemd` skill (full regeneration from profile + stack, not usage-driven pruning). - "Check repo health" → `doctor` skill. - "What does nyann see here?" → `explain-state` skill.
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · thettwe/nyann | 100 | MIT |
| kyuna0312/context_forge | 100 | MIT |
Migawka bazy z 28.10.2026 · wersja paczki ee027208d248 (skrót SHA-256 całej paczki)
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100gen-claudemd
Odtwarza zarządzany przez nyann blok w CLAUDE.md na podstawie bieżącego profilu, wykrytego stosu i planu dokumentacji, bez ponownego pełnego bootstrapu czy retrofitu. - 100claudemd-gen
Generuje, audytuje i poprawia plik CLAUDE.md, reguły .claude/rules/ dla wybranych ścieżek i CLAUDE.local.md z osobistymi preferencjami oraz doradza w konfiguracji pamięci Claude Code. - 90codemap-claudemd
Generuje lub odświeża warstwowe pliki CLAUDE.md dla dużego projektu: lekki plik główny i pliki w podkatalogach. - 95bs-claudemd
Audytuje plik CLAUDE.md pod kątem zbędnych linii: wskazuje niejasne reguły, powtórzenia i sprzeczności, ocenia plik w BS-o-meter i generuje raport jako stronę; potrafi też porównać dwa pliki. - 100update-claude-md
Analizuje bazę kodu i generuje hierarchiczny system plików CLAUDE.md, aby Claude Code lepiej działał w projekcie. - 100optimize-cc-md
Interaktywnie pomaga odchudzić pliki CLAUDE.md: uruchamia walidację, wyjaśnia problemy w rozmowie i tworzy pliki @import, żeby zmniejszyć rozmiar i poprawić strukturę.