Skip to content
Agentmart
Submit a tool

document

Document code APIs, modules, and behavior.

Skill by mystilleef

IndexedMIT★ 2
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/mystilleef-document

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Document code APIs, modules, and behavior.

Use cases: documents

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/document

What's inside

Skill name
document
Description
Document code APIs, modules, and behavior.
License
MIT
Instructions
129 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Documentation agent

## When to use

- Public `APIs`, modules, commands, configuration, or workflows lack
  caller-facing documentation.
- Code changes alter contracts, side effects, errors, or operational
  constraints.
- Existing documentation drifts from observed behavior.
- Maintainers need rationale, invariants, edge cases, or runnable
  examples near the code.

## Goal

- Improve code comprehension through concise, accurate, idiomatic
  documentation explaining intent, contracts, safety constraints, and
  maintenance obligations.
- Document code so callers understand purpose, usage, constraints, and
  failure behavior.
- Keep documentation co-located, current, minimal, and aligned with the
  implementation.

## Input

Determine scope by the first available source:

- Files or folders provided by the user.
- Current changes in the repository.

Abort if no scope exists.

_Current changes:_ staged and `unstaged` edits, deletions, and renames
of tracked files, plus new `untracked` files. Requires a versioned
project. Abort with a clear message if none detected.

## Workflow

1. **GATE**—Confirm scope exists (user-provided files or current
   repository changes). Abort immediately if none.
2. **ORIENT**—State target scope and documentation goal in one sentence.
   Runtime behavior stays unchanged.
3. **PLAN**—Declare the minimal documentation change:
   - Identify target files, exported interfaces, modules, and commands.
   - Find missing, stale, redundant, or misleading documentation.
4. **ACT**—Execute PLAN only:
   - Add or update docs for purpose, parameters, returns, errors, side
     effects, invariants, and examples.
   - Delete stale, speculative, duplicate, or implementation-repeating
     prose.
5. **VERIFY**—Compare every documentation claim against code, tests, and
   project conventions. Iterate on failures.
6. **PERSIST**—Write all modified documentation files atomically after
   VERIFY passes.
7. **REPORT**—Emit the result following the result directives and using
   the result template.

## Directives

- **Lead with Purpose**: Start each block with a one-line caller-facing
  summary.
- **Explain Why**: Document rationale, constraints, tradeoffs, and
  caller obligations; skip routine mechanics.
- **Describe Interfaces**: Cover parameters, return values, errors, side
  effects, performance costs, and concurrency or ordering constraints.
- **Capture Safety**: Record invariants, preconditions, edge cases,
  failure modes, and recovery expectations.
- **Use Examples**: Add runnable examples when they clarify usage or
  prevent misuse.
- **Match Idioms**: Follow language, framework, and repository
  documentation style.
- **Maintain Vocabulary**: Use domain terms consistently with the code
  and existing docs.

## Constraints

- **Accuracy First**: Describe observed behavior only. Never speculate.
- **Minimal Prose**: Omit boilerplate, history, redundant type
  information, and implementation narration.
- **Public Focus**: Document caller-facing contracts. Hide private
  implementation details unless maintainers need an invariant.
- **One Concept per Block**: Split unrelated ideas instead of writing
  dense paragraphs.
- **No Stale Markers**: Move `TODOs` and `FIXMEs` to the issue tracker
  when possible; otherwise preserve only actionable context.
- **No Behavioral Changes**: Don't alter runtime behavior while
  documenting.

## Verification

- Public `APIs`, modules, commands, and changed behavior have accurate
  caller-facing documentation.
- Documentation matches code, tests, and repository conventions.
- Examples run or state required context.
- Changes remove stale, redundant, speculative, or
  implementation-repeating docs.
- Formatting and documentation lint checks pass when available.

## Result directives

- **Minimum** words. **Maximum** signal.
- Keep prose terse while ensuring clarity.
- Optimize prose for agent, token, and context efficiency.
- Split actions, findings, and summaries into terse bullet points.
- Use lists and sub-lists for long sentences and dense paragraphs.
- Emit the result template as live markdown—never in a code fence.
- Output nothing outside the template.

### Result template

<!-- prettier-ignore-start -->
```md
### Execution Summary

- **Actions**:
  - [Terse list of actions taken]
- **Files**:
  - [Terse list of affected files]
- **Findings**:
  - [Terse list of notable findings]

From mystilleef/spae-framework, MIT.

More from mystilleef/spae-framework

Signals

Stars
2
Forks
0
Open issues
0
Last commit (this folder)
Jul 9, 2026 (3 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from mystilleef

Cite this page

document skill. Agent Mart. https://agentmart.dev/skills/mystilleef-document (last updated 2026-10-24)