mcpbeat Sign in

Phx Document Skill for Claude

Document tested Elixir APIs; may update README/ADRs. Not for docs lookup, audits/reviews, or standalone decisions.

3k tokens
context cost
the whole folder, loaded on every use
5
files
instructions only
0
copies elsewhere
how many repositories repackaged it
514
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/oliver-kriska/claude-elixir-phoenix --skill phx-document

What comes with it

9 577 bytes besides the instruction
references/doc-best-practices.md
references/doc-templates.md
references/documentation-patterns.md
references/output-format.md

The instruction itself

9 sections, as written by the author

Document

Generate documentation for newly implemented features.

Usage

$elixir-phoenix:phx-document .claude/plans/magic-link-auth/plan.md
$elixir-phoenix:phx-document magic link authentication
$elixir-phoenix:phx-document  # Auto-detect from recent plan

Iron Laws

  • Never remove existing documentation — Existing docs may reflect design intent that isn't obvious from code alone; update rather than replace
  • @moduledoc on every public module — Undocumented modules accumulate quickly and create onboarding friction for new team members
  • ADRs capture the "why", not the "what" — Code shows what was built; ADRs explain why this approach was chosen over alternatives
  • Match @doc to function's public API — Document parameters, return values, and edge cases; callers shouldn't need to read the implementation
  • 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."

This prevents 35-message analysis sessions that conclude "PASS" with

zero output (confirmed: session bb0a0454 wasted ~2K tokens on no-op).

  • Identify new modules from recent commits or plan file
  • Check documentation coverage (@moduledoc, @doc)
  • Generate missing docs using templates
  • Add README section if user-facing feature
  • Create ADR if architectural decision was made
  • 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

$elixir-phoenix:phx-plan → $elixir-phoenix:phx-work → $elixir-phoenix:phx-review
       ↓
$elixir-phoenix: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

Other skills for the same job

different authors, same section of the catalogue
DOCX
by anthropics
vendor ×16

Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction. When Claude needs to work with professional documents (.docx files) for: (1) Creating new documents, (2) Modifying or editing content, (3) Working with tracked changes, (4) Adding comments, or any other document tasks

7k tokens
PDF
by anthropics
vendor ×16

Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.

13k tokens scripts
PPTX
by JayZeeDesign
×15

Presentation creation, editing, and analysis. When Claude needs to work with presentations (.pptx files) for: (1) Creating new presentations, (2) Modifying or editing content, (3) Working with layouts, (4) Adding comments or speaker notes, or any other presentation tasks

308k tokens scripts
Canvas Design
by anthropics
vendor ×13

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.

1388k tokens
PDF
by anthropics
vendor ×10

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.

15k tokens scripts
DOCX
by w95
×6

Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.

5k tokens
PPTX
by w95
×4

Use this skill any time a .pptx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates, layouts, speaker notes, or comments. Trigger whenever the user mentions \"deck,\" \"slides,\" \"presentation,\" or references a .pptx filename, regardless of what they plan to do with the content afterward. If a .pptx file needs to be opened, created, or touched, use this skill.

2k tokens
Obsidian Markdown
by ZhanlinCui
×3

Create and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and other Obsidian-specific syntax. Use when working with .md files in Obsidian, or when the user mentions wikilinks, callouts, frontmatter, tags, embeds, or Obsidian notes.

3k tokens

How to use it

Copy the folder

Take oliver-kriska/claude-elixir-phoenix-phx-document from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.