SkillAgentSearch skills...

phx-document

'Use when asked to document Elixir code: add or fill in @moduledoc and

Install / Use

npx skills add oliver-kriska/claude-elixir-phoenix --skill phx-document

Installs into whichever agent you are using.

About this skill
📄

SKILL.md

Installable skill definition

Quality Score

82/100

Supported Platforms

Claude Code

Our assessment of phx-document

phx-document scores 82/100 on our quality scale, 986th of 1,184 Content & Media skills we index.

Its SKILL.md is 2.9 KB long, well organised into 9 sections with 2 code examples: a solid amount of guidance for an agent.

It has 560 GitHub stars, a meaningful sign that others use it.

Substance
26/30
Structure
18/20
Description
12/15
Adoption
12/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated 3 days ago, so phx-document is actively maintained.
  • It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
  • Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

phx-document compared with similar skills

All 4 of these similar skills score higher than phx-document; compare them before choosing.

SkillScoreStarsUpdatedFormat
phx-document (this skill)by oliver-kriska825603d agoSKILL.md
siyuanby siyuan-note10046.6ktodayMCP Server
algorithmic-artby anthropics100177.9k13d agoSKILL.md
pptxby anthropics100177.9k13d agoSKILL.md
designby nextlevelbuilder100130.2k14d agoSKILL.md

Frequently asked questions

How do I install phx-document?
Run npx skills add oliver-kriska/claude-elixir-phoenix --skill phx-document. The install tabs above show the steps for each supported agent.
Which AI agents does phx-document work with?
It is written for Claude Code, as a SKILL.md file. Other agents that read the same format can often use it too.
Is phx-document safe to use?
It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is phx-document still maintained?
The repository was last updated 3 days ago, so phx-document is actively maintained.

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

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

Related Skills

View on GitHub
GitHub Stars560
CategoryContent
Updated3d ago
Forks44

Languages

Python

Trust signals

100/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

No cautions