document

document is a skill for Claude Code from mystilleef/spae-framework. It costs 11 tokens per session (1,122 once invoked), scanned C, original, MIT.

An agent that writes or updates documentation for code APIs, modules, commands, configuration, and workflows. An API is the documented way other code or users interact with a program.

In plain words
What is it for?
Use it to document public interfaces, behavior changes, constraints, errors, rationale, edge cases, and runnable examples within a project.
Why use it?
It helps callers and maintainers understand what code does, how to use it, what it requires, and how it fails. It also addresses documentation that no longer matches the implementation.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to document public interfaces, behavior changes, constraints, errors, rationale, edge cases, and runnable examples within a project.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mystilleef/spae-framework/document
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mystilleef/spae-framework --skill document
Clone the repo
git clone --depth 1 https://github.com/mystilleef/spae-framework

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for document

README.md
[![agentmods](https://agentmods.dev/badge/skills/mystilleef/spae-framework/document/github.svg)](https://agentmods.dev/skills/mystilleef/spae-framework/document)
Your own site
<a href="https://agentmods.dev/skills/mystilleef/spae-framework/document"><img src="https://agentmods.dev/badge/skills/mystilleef/spae-framework/document/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for document

Your own site · 80×15
<a href="https://agentmods.dev/skills/mystilleef/spae-framework/document"><img src="https://agentmods.dev/badge/skills/mystilleef/spae-framework/document.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,122 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00011 $0.01122
Opus 5.5 $0.00004 $0.00449
Sonnet 5.5 $0.00002 $0.00224
Haiku 4.5 $0.00001 $0.00112

Measured 6d ago against content hash 3708789f8322, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

document scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- prettier-ignore-start -->
skills/document/SKILL.md · 142 lines

How it starts

The opening of the file, as written. The whole thing — 142 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

Halt if no scope exists.

Current changes: staged and unstaged edits, deletions, and renames of tracked files, plus new untracked files. Requires a versioned project.

Workflow

  1. GATE—Resolve scope per Input, halting if none exists.
  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, skipping 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.
  • IMPORTANT: Return the result to the caller.

Read the full file on GitHub · 142 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago Changed · -7 lines 744e9dddd993
  2. 13d ago Changed · +2 lines 3708789f8322
  3. 18d ago Changed · -1 lines f03569c9d489
  4. 21d ago Changed · +7 lines dab983303574
  5. 1mo ago Changed dd72ede4266d
  6. 3mo ago First seen · 134 lines · 11 tokens per session scan C e2463ccaa6af

Subscribe to this mod's changes

document is a skill published in the GitHub repository mystilleef/spae-framework (2 stars, last pushed 5d ago), licensed MIT. It adds 11 tokens to every session and 1,122 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

document compared with skills from other repositories

document next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
documentmystilleef/spae-frameworkSkill25d agoMITC11Claude Code
anywhere-uianywhere-labs/Agents-AnywhereSkill3.9ktodayApache-2.0A46Claude Code, Codex
model-routingverivus-oss/llm-cli-gatewaySkill19yesterdayMITA59Claude Code
agent-codex-gateverivus-oss/llm-cli-gatewaySkill19yesterdayMITA50Claude Code
multi-llm-orchestrationverivus-oss/llm-cli-gatewaySkill19yesterdayMITA70Claude Code
ahk-testenmanuelmag/agent-harness-kitSkill1831mo agoApache-2.0A36Claude Code
ahk-reviewenmanuelmag/agent-harness-kitSkill1831mo agoApache-2.0A35Claude Code