Przejdź do treści
Biblioteka skilli
AI i agenci · Przegląd i audyt

context-audit

/context-audit

Inwentaryzuje pliki ładowane przez agenta z repozytorium, z rozmiarem, wyzwalaczem i trybem głębokości, i wskazuje, co posprzątać, w tym rozdęte CLAUDE.md, AGENTS.md, reguły i skille.

Repozytorium
claude-dev-env ↗
Licencja
MIT
Ostatnia zmiana repozytorium
27.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
14
Skrypty
12
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 27.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • 12 skryptów w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/context_audit.py, scripts/context_audit_constants/__init__.py, scripts/context_audit_constants/config/__init__.py, scripts/context_audit_constants/config/constants.py, scripts/context_audit_constants/config/test_constants.py, scripts/context_inventory.py, scripts/context_report.py, scripts/context_sources.py, scripts/test_context_audit.py, scripts/test_context_inventory.py, scripts/test_co

Co robi i kiedy

Inwentaryzuje pliki ładowane przez agenta z repozytorium, z rozmiarem, wyzwalaczem i trybem głębokości, i wskazuje, co posprzątać, w tym rozdęte CLAUDE.md, AGENTS.md, reguły i skille.

Oryginalny opis (EN)

Inventory every file an agent loads from a repository checkout, with size, trigger, and depth mode, then list what to clean up. Use when the user asks to audit the context in a repository, measure instruction or skill load, or find bloated CLAUDE.md, AGENTS.md, rules, or skills.

Jak działa

  1. Run
  2. Read the output
  3. Layout
Sekcje z nagłówków SKILL.md, w oryginale · 45 linii, 351 słów
Podgląd SKILL.md
---
name: context-audit
description: Inventory every file an agent loads from a repository checkout, with size, trigger, and depth mode, then list what to clean up. Use when the user asks to audit the context in a repository, measure instruction or skill load, or find bloated CLAUDE.md, AGENTS.md, rules, or skills.
---

# Context audit

Use this skill when the user says "audit the context in <repository>" or asks what an agent loads from a checkout.

## Run

```
python "${CLAUDE_SKILL_DIR}/scripts/context_audit.py" <repository-root> --rows <scratch>/rows.jsonl
```

Add these options when they apply:

| Option | When |
|---|---|
| `--rules-dir <path>` | The repository ships a folder that installs as the user rules folder. |
| `--skills-dir <path>` | The repository ships a folder that installs as the user skills folder. |
| `--session-start-text <file>` | A SessionStart hook prints text. Save that text to a file first. Repeat for each hook. |

Paths for `--rules-dir` and `--skills-dir` are relative to the repository root. The script runs no hook command.

## Read the output

The report opens with the startup load in lines and estimated tokens, then a table by trigger. The cleanup list follows in three sections.

1. **Carries depth over cap.** An entry file holds depth that belongs in a reference. Move that depth into a linked file and leave a pointer.
2. **Empty instruction stubs.** An instruction file or rule with no content. Delete it unless a tool needs the file to exist.
3. **Long skills to split.** A skill body over 200 lines. Keep the steps every run uses in `SKILL.md` and move the rest into `references/`.

Content used on every invocation stays in the entry file. Moving it behind a link adds a read to every run.

Hand the user the cleanup list with paths, line counts, and caps. The rows file holds every row for follow-up questions.

[references/depth-modes.md](references/depth-modes.md) has the triggers, the depth modes, the caps table, and the row fields.

## Layout

| File | Purpose |
|---|---|
| `scripts/context_audit.py` | Command line entry point. Prints the report and writes the rows file. |
| `scripts/context_inventory.py` | Walks the checkout and records one row per loaded file. |
| `scripts/context_sources.py` | Reads files, parses frontmatter, follows links and imports, and measures rows. |
| `scripts/context_report.py` | Formats the summary, the trigger table, and the cleanup list. |
| `scripts/context_audit_constants/config/constants.py` | Caps, patterns, labels, and report templates. |
Pliki w paczce (14)
  • SKILL.md 2 KB
  • references/depth-modes.md 3 KB
  • scripts/context_audit.py 3 KB
  • scripts/context_inventory.py 15 KB
  • scripts/context_report.py 6 KB
  • scripts/context_sources.py 7 KB
  • scripts/test_context_audit.py 8 KB
  • scripts/test_context_inventory.py 4 KB
  • scripts/test_context_report.py 4 KB
  • scripts/test_context_sources.py 4 KB
  • scripts/context_audit_constants/__init__.py 1 KB
  • scripts/context_audit_constants/config/__init__.py 1 KB
  • scripts/context_audit_constants/config/constants.py 6 KB
  • scripts/context_audit_constants/config/test_constants.py 1 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · jl-cmd-projects/claude-dev-env100MIT
weellio/gander100MIT
undefined-ui/second-brain-os100MIT
Neeeophytee/finding-unknowns-skills100MIT
adamlinscott/claude-skills98MIT

Migawka bazy z 28.10.2026 · wersja paczki 7d0dec21df66 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100agents-md-optimizer
    Audytuje rozdęte pliki instrukcji agentów (CLAUDE.md, AGENTS.md i warianty) i przepisuje je zwięźle albo tworzy nowy według zasady 200 linii książki przepisów.
  • 100managing-claude-context
    Konfiguruje i utrzymuje pliki kontekstu projektu ładowane przez Claude Code: CLAUDE.md główny i zagnieżdżone, reguły w .claude/rules/ i indeks rekordów decyzji, by konwencje repozytorium docierały do modelu bez rozdymania sesji.
  • 98doc-drift
    Audytuje pamięć i dokumenty ładowane przez Claude Code: CLAUDE.md, MEMORY.md, skille, agenty i pluginy, szukając nieaktualnych i sprzecznych zapisów.
  • 95solo-memory-audit
    Audytuje pamięć i kontekst agenta: pliki CLAUDE.md, mapę pamięci, reguły i budżet kontekstu, żeby zoptymalizować to, co ładuje się w sesji.
  • 100audit-skills
    Audytuje skille, pluginy i pliki instrukcji agentów (SKILL.md, CLAUDE.md, AGENTS.md, reguły) narzędziem agent-bom pod kątem zagrożeń bezpieczeństwa, na przykład przed instalacją cudzego skilla.
  • 100repo-agent-context-audit
    Audytuje i ocenia, jak pliki instrukcji dla agentów (AGENTS.md, CLAUDE.md, specs) opisują repozytorium, i proponuje poprawki.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.