Przejdź do treści
Biblioteka skilli
Programowanie · Pisanie

phx-document

/phx-document

Dopisuje @moduledoc i @doc do przetestowanych modułów Elixir, a także może dodać sekcję README albo ADR.

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

Brak sygnałów. Repozytorium zmienione 22.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

Dopisuje @moduledoc i @doc do przetestowanych modułów Elixir, a także może dodać sekcję README albo ADR.

Oryginalny opis (EN)

Use when asked to document Elixir code: add or fill in @moduledoc and @doc for modules and functions. Documents tested code only; may add a README section or ADR. Not for docs lookup or audits.

Jak działa

  1. Usage
  2. Iron Laws
  3. What Gets Documented
  4. Workflow
  5. When to Generate ADRs
  6. Integration with Workflow
  7. References
Sekcje z nagłówków SKILL.md, w oryginale · 73 linii, 394 słów
Podgląd SKILL.md
---
name: phx-document
description: 'Use when asked to document Elixir code: add or fill in @moduledoc and
  @doc for modules and functions. Documents tested code only; may add a README section
  or ADR. Not for docs lookup or audits.'
---

# Document

Generate documentation for newly implemented features.

## Usage

```
phx-document .claude/plans/magic-link-auth/plan.md
phx-document magic link authentication
phx-document  # Auto-detect from recent plan
```

## Iron Laws

1. **Never remove existing documentation** — Existing docs may reflect design intent that isn't obvious from code alone; update rather than replace
2. **@moduledoc on every public module** — Undocumented modules accumulate quickly and create onboarding friction for new team members
3. **ADRs capture the "why", not the "what"** — Code shows what was built; ADRs explain why this approach was chosen over alternatives
4. **Match @doc to function's public API** — Document parameters, return values, and edge cases; callers shouldn't need to read the implementation
5. **DO NOT add @doc to untested code** — documentation implies a stable contract; document only after tests confirm the function behaves as described

## What Gets Documented

| Output | Description |
|--------|-------------|
| `@moduledoc` | For new modules missing documentation |
| `@doc` | For public functions without docs |
| README section | For user-facing features |
| ADR | For significant architectural decisions |

## Workflow

### Step 0: Pre-check (avoid no-op runs)

Run `git diff --name-only HEAD~5 | grep '\.ex$' | head -20` to check for new `.ex` files.

If no new `.ex` files were added (only modifications), skip the full
audit and report: "No new modules — documentation coverage unchanged."
A full audit of unchanged coverage produces nothing to add.

1. **Identify** new modules from recent commits or plan file
2. **Check** documentation coverage (`@moduledoc`, `@doc`)
3. **Generate** missing docs using templates
4. **Add** README section if user-facing feature
5. **Create** ADR if architectural decision was made
6. **Write** report to `.claude/plans/{slug}/reviews/{feature}-docs.md`

## When to Generate ADRs

| Trigger | Create ADR |
|---------|-----------|
| New external dependency | Yes |
| New database table | Maybe (if schema non-obvious) |
| New OTP process | Yes (explain why process needed) |
| New context | Maybe (if boundaries non-obvious) |
| New auth mechanism | Yes |
| Performance optimization | Yes |

## Integration with Workflow

```text
phx-plan → phx-work → phx-review
       ↓
phx-document  ← YOU ARE HERE (optional, suggested after review passes)
```

## References

- `references/doc-templates.md` — @moduledoc, @doc, README, ADR templates
- `references/output-format.md` — Documentation report format
- `references/doc-best-practices.md` — Elixir documentation best practices
- `references/documentation-patterns.md` — Detailed documentation patterns
Pliki w paczce (5)
  • SKILL.md 3 KB
  • references/doc-best-practices.md 1 KB
  • references/doc-templates.md 1 KB
  • references/documentation-patterns.md 7 KB
  • references/output-format.md 1 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · oliver-kriska/claude-elixir-phoenix100MIT
oliver-kriska/claude-elixir-phoenix100MIT
oliver-kriska/claude-elixir-phoenix100MIT

Migawka bazy z 13.11.2026 · wersja paczki c18f6d5c5131 (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

  • 100document
    Dokumentuje kod Elixira: dodaje i uzupełnia @moduledoc oraz @doc dla modułów i funkcji, opisując tylko przetestowany kod, a w razie potrzeby sekcję README lub ADR.
  • 100elixir-writing-docs
    Prowadzi pisanie dokumentacji Elixira z @moduledoc, @doc, @typedoc, doctestami, odwołaniami krzyżowymi i metadanymi w plikach .ex.
  • 100elixir-docs-review
    Recenzuje dokumentację Elixira pod kątem kompletności, jakości i dobrych praktyk ExDoc: pokrycie @moduledoc, @doc i @spec, poprawność doctestów i odwołania krzyżowe.
  • 100phx-help
    Rekomenduje odpowiedni przepływ pracy phx-* przy wyborze skilla z pluginu Elixir.
  • 90doc-writer-readme
    Pisze lub aktualizuje README projektu: opis, szybki start, instalację, użycie, odznaki i sekcję licencji.
  • 100docs-from-code
    Generuje i aktualizuje README.md oraz referencje API na podstawie funkcji, tras, typów i schematów w kodzie, budując najpierw graf wiedzy narzędziem graphify.

Uwagi i zgłoszenia

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