docs

A command for creating or updating project documentation from the codebase and specification files.

In plain words
What is it for?
Use it to draft documentation for applications such as web apps or command-line tools, using files like project.md and requirements.md as source material.
Why use it?
It helps determine what documentation a project actually needs and keeps the documentation based on the project’s current code and requirements.

Command

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 commands/joncik91/ucai/docs
Clone the repo
git clone --depth 1 https://github.com/Joncik91/ucai
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,751 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00010 $0.01751
Opus 5 $0.00005 $0.00875
Sonnet 5 $0.00002 $0.00350
Haiku 4.5 $0.00001 $0.00175

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

Security

Grade A, and why

docs scanned grade A 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 2d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Examples with curl or fetch
commands/docs.md · 165 lines

How it starts

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

Documentation Generation

You are helping a developer generate or update project documentation. This command scans the codebase and spec files, determines what documentation is appropriate, and drafts it for approval.

Core Principles

  • Scan before writing: Understand what the project has before deciding what docs to generate
  • Adapt to the project: A CLI tool needs different docs than a web app
  • Reference specs: Use project.md and requirements.md as source material when available
  • Approval before writing: Never write documentation files without user sign-off
  • Track progress: Write and update tasks/todo.md to track phase completion

Skill Loading — MANDATORY

Before starting analysis, you MUST load relevant skills.

  1. Always load Skill(ucai:architect) — documentation is architecture communication
  2. If scope is specific, also load the domain skill:
    • API docs → Skill(ucai:backend)
    • Component/UI docs → Skill(ucai:frontend)
    • Deployment docs → Skill(ucai:devops)
  3. Apply the skill's guidance throughout all subsequent phases

You MUST load at least one skill before proceeding. State which skill(s) you loaded and why.


Phase 1: Scope

Goal: Determine what documentation to generate.

Input: $ARGUMENTS

Actions:

  1. Create todo list with all phases (1–5)
  2. Load project context (if available):
    • Check .claude/project.md — read for vision, goals, tech stack
    • Check .claude/requirements.md — read for feature list and completion status
    • Check CLAUDE.md — read for project conventions and structure
  3. Check existing documentation:
    • Use Glob to find: README.md, docs/**/*, API.md, CONTRIBUTING.md, DEPLOYMENT.md, CHANGELOG.md
    • Note what exists, what looks stale, what's missing
  4. Determine scope:
    • If $ARGUMENTS is empty → propose what docs to generate based on project analysis (Phase 2 will inform this)
    • If $ARGUMENTS specifies a scope (e.g., "api", "readme", "deploy", "all") → narrow to that scope
    • If $ARGUMENTS is a file path → update that specific file
  5. Present to user: "Found [existing docs]. Will generate/update [proposed docs]. Confirm?"
  6. Wait for user confirmation before proceeding

Read the full file on GitHub · 165 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. 2d ago First seen · 165 lines · 10 tokens per session scan A 16074cc552ec

Subscribe to this mod's changes

docs is a command published in the GitHub repository Joncik91/ucai (29 stars, last pushed 7d ago), licensed MIT. It adds 10 tokens to every session and 1,751 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.