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

documentation-audit

/documentation-audit

Audytuje jakość dokumentacji: komentarze w kodzie, dokumentację API, kompletność README i zgodność dokumentów z kodem, oceniając, czy dokumentacja jest dobra i pełna.

Licencja
MIT
Ostatnia zmiana repozytorium
21.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
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 21.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 robi i kiedy

Audytuje jakość dokumentacji: komentarze w kodzie, dokumentację API, kompletność README i zgodność dokumentów z kodem, oceniając, czy dokumentacja jest dobra i pełna.

Oryginalny opis (EN)

Audit documentation quality — inline comments, API docs, README completeness, and doc-code sync. Use when assessing whether docs are good and complete. To catch docs that have gone stale versus the code use /doc-gardening instead.

Jak działa

  1. Core Rule
  2. When to Use
  3. Default Behavior
  4. Process
  5. Output Format
  6. Notes
Sekcje z nagłówków SKILL.md, w oryginale · 157 linii, 798 słów
Podgląd SKILL.md
---
name: documentation-audit
description: Audit documentation quality — inline comments, API docs, README completeness, and doc-code sync. Use when assessing whether docs are good and complete. To catch docs that have gone stale versus the code use /doc-gardening instead.
user-invocable: true
---

# Documentation Audit

## Core Rule

Audit doc-code sync and reader experience. Recommend rewrites only when current docs mislead — small fixes beat broad refactors.

## When to Use

Invoke with `/documentation-audit` when:

- Assessing documentation quality for a project
- Preparing a project for open-source release
- Onboarding new team members and finding documentation gaps
- After major feature additions to ensure docs are updated
- Before a due diligence or code quality review

## Default Behavior

When the user asks to audit, scan, review, or "give me a report" for documentation, produce the full documentation-audit report automatically using the Process and Output Format sections below. Do not require the user to specify fields.

Only modify files when the user explicitly requests implement / fix / apply / refactor. By default, this skill is **report-only**.

## Process

### Phase 1: Inventory (first-pass leads)

This pass produces **candidates**, not findings. Treat counts as leads for deeper inspection in later phases. Do not report Phase 1 raw output as the final result.

Catalog existing documentation:

1. **README** — Does it exist? Is it useful?
2. **API docs** — Inline docs, generated docs, API reference
3. **Architecture docs** — High-level design, system diagrams
4. **Inline comments** — Code-level documentation
5. **Examples** — Usage examples, tutorials, quickstart guides
6. **Changelog** — Version history, migration guides

### Phase 2: README Assessment

Evaluate the project README:

**Essential Sections**
- [ ] Project name and one-line description
- [ ] What the project does (not how it's built)
- [ ] Quick start / installation instructions
- [ ] Basic usage example
- [ ] Prerequisites and requirements

**Good-to-Have Sections**
- [ ] Configuration options
- [ ] API overview or link to full docs
- [ ] Contributing guidelines
- [ ] License
- [ ] Status badges (build, coverage, version)

**Quality Checks**
- Are instructions copy-pasteable? (no placeholder values without explanation)
- Are versions/requirements current?
- Does the quick start actually work?

### Phase 3: Inline Documentation

Audit code-level documentation:

**Public API Documentation**
- Are public functions/methods documented? (parameters, return values, exceptions)
- Are complex algorithms explained? (not what the code does, but why)
- Are non-obvious design decisions documented?
- Are edge cases and limitations noted?

**Comment Quality**
- **Useful comments**: explain WHY, not WHAT (the code says what)
- **Outdated comments**: comments that don't match the current code
- **Redundant comments**: comments that repeat what the code already says
- **TODO/FIXME/HACK**: are these tracked? Do they reference issues?
- **Commented-out code**: should be removed, not commented

**Anti-patterns**
- Functions with complex behavior but no documentation
- Public APIs without parameter descriptions
- Error codes/messages without explanation
- Magic numbers without explanation
- Regex patterns without explanation

### Phase 4: API Documentation

If the project exposes an API (REST, GraphQL, library):

- Are all endpoints/functions documented?
- Are request/response schemas documented?
- Are error responses documented?
- Are authentication requirements documented?
- Are rate limits and pagination documented?
- Is there an OpenAPI/Swagger spec (REST) or schema file (GraphQL)?
- Are examples provided for common use cases?

### Phase 5: Documentation-Code Sync

Check that docs match reality:

- Do documented APIs still exist? (no references to removed endpoints)
- Do documented config options match the actual config schema?
- Do code examples in docs actually compile/run?
- Are version references current?
- Do links in docs point to valid targets?

## Output Format

```markdown
# Documentation Audit Report

## Documentation Inventory
| Type | Exists | Quality | Notes |
|------|--------|---------|-------|
| README | ✅/❌ | Good/Fair/Poor | ... |
| API Docs | ✅/❌ | Good/Fair/Poor | ... |
| Inline Docs | ✅/❌ | Good/Fair/Poor | ... |
| Architecture | ✅/❌ | Good/Fair/Poor | ... |
| Examples | ✅/❌ | Good/Fair/Poor | ... |
| Changelog | ✅/❌ | Good/Fair/Poor | ... |

## Critical Gaps
1. [Undocumented public API / missing README section / outdated docs]

## Outdated Documentation
| Location | Issue | Current State |
|----------|-------|---------------|
| README line 45 | References removed config option | Option removed in v2.0 |

## Comment Quality Issues
| File | Line | Issue |
|------|------|-------|
| api/handler.ts | 23 | Comment contradicts code behavior |

## Recommendations
### Must Fix
1. ...

### Should Fix
1. ...

### Nice to Have
1. ...

## Documentation Score
[Overall: Poor / Fair / Good / Excellent]
[Key metric: % of public APIs documented]
```

## Notes

- Good documentation explains WHY, not WHAT — the code already says what
- Don't recommend documenting everything — focus on public APIs, complex logic, and non-obvious decisions
- Over-documentation is as bad as under-documentation — redundant comments become noise
- Consider the audience: library docs need more than internal app docs

Wersje

W bazie nie ma innych skilli o nazwie documentation-audit.

Migawka bazy z 28.10.2026 · wersja paczki 843a181798a8 (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

  • 100doc-gardening
    Porównuje docs/ z aktualnym kodem i wskazuje nieaktualne ścieżki plików, zepsute odwołania, usunięte API i przestarzałe przykłady.
  • 100documentation
    Prowadzi przy pisaniu dokumentacji technicznej: pliki README, dokumentacja API, przewodniki i dokumentacja w kodzie.
  • 100docs-update
    Aktualizuje, poprawia i audytuje dokumentację projektu: README, changelogi, dokumentację API, komentarze w kodzie, braki i ogólną jakość, zwłaszcza przed wydaniem.
  • 100documenting-projects
    Generuje, poprawia i audytuje dokumentację projektu: README, tutoriale, referencje API i przegląd dokumentacji, także gdy dokumentacja jest nieaktualna.
  • 100tech-docs-writer
    Pisze i przepisuje dokumentację techniczną projektów: README, referencje API, dokumenty architektury, przewodniki użytkownika i komentarze w kodzie, a także audytuje dokumentację.
  • 100review-documentation
    Przegląda dokumentację: komentarze doc, godoc, komentarze proto, specyfikacje OpenAPI, README i testy przykładowe oraz sprawdza, czy docs są zgodne z kodem.

Uwagi i zgłoszenia

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