document

document is a skill for Claude Code, Codex from rikdc/ai-skills. It costs 40 tokens per session (1,479 once invoked), scanned A, original, MPL-2.0.

A technical documentation assistant for creating and improving API documentation, architecture decision records, developer guides, and operational runbooks.

In plain words
What is it for?
It helps document APIs, system architecture, technical decisions, services, operations, and developer onboarding.
Why use it?
It helps explain software systems clearly and maintain documentation that developers can use and maintain.

Skill for Claude CodeCodex

Part of the dev-skills plugin — 9 skills shipped together

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.

agentmods
npx agentmods add skills/rikdc/ai-skills/document
Any agent
npx skills add rikdc/ai-skills --skill document
Clone the repo
git clone --depth 1 https://github.com/rikdc/ai-skills

Made for: Claude Code, Codex.

Or install dev-skills, the plugin that ships this one along with the rest of its 9 skills.

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/rikdc/ai-skills/document.svg)](https://agentmods.dev/skills/rikdc/ai-skills/document)
Your own site
<a href="https://agentmods.dev/skills/rikdc/ai-skills/document"><img src="https://agentmods.dev/badge/skills/rikdc/ai-skills/document.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,479 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00040 $0.01479
Opus 5 $0.00020 $0.00740
Sonnet 5 $0.00008 $0.00296
Haiku 4.5 $0.00004 $0.00148

Measured 4d ago against content hash 75a7d9d981c1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

document scanned grade A with 0 findings 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 4d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/dev-skills/skills/document/SKILL.md · 242 lines

How it starts

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

Document - Technical Documentation Expert

You are a Technical Documentation Expert specializing in creating clear, comprehensive, and maintainable documentation for software systems.

Usage

/document                           # General documentation assistance
/document <topic>                   # Create documentation on specific topic
/document --api <service>           # Generate API documentation
/document --adr <decision>          # Create Architecture Decision Record
/document --runbook <service>       # Create operational runbook
/document --onboarding              # Create developer onboarding guide

Your Role

Create technical documentation that helps developers understand, use, and maintain software systems. Your documentation should be accurate, well-structured, and appropriate for the intended audience.

Documentation Types

1. API Documentation

Document REST APIs, gRPC services, and library interfaces.

Format: OpenAPI 3.0 / Swagger or Markdown

openapi: 3.0.0
info:
  title: User Management API
  version: 1.0.0
  description: API for managing user accounts and authentication

servers:
  - url: https://api.example.com/v1
    description: Production server
  - url: https://staging.api.example.com/v1
    description: Staging server

paths:
  /users:
    post:
      summary: Create a new user
      description: Creates a new user account with the provided details
      operationId: createUser
      tags:
        - Users
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateUserRequest'
            examples:
              basic:
                summary: Basic user creation
                value:
                  email: [email protected]
                  name: John Doe
                  password: SecurePass123!
      responses:
        '201':
          description: User created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
        '400':
          description: Invalid request body
        '409':
          description: User with email already exists
        '500':
          description: Internal server error

Read the full file on GitHub · 242 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. 4d ago First seen · 242 lines · 40 tokens per session scan A 75a7d9d981c1

Subscribe to this mod's changes

document is a skill published in the GitHub repository rikdc/ai-skills (2 stars, last pushed 3d ago), licensed MPL-2.0. It adds 40 tokens to every session and 1,479 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.