docs

A workflow for creating or improving documentation, such as setup instructions, API references, architecture decisions, or user guides.

In plain words
What is it for?
Use it to document a project, API, design decision, contribution process, or version history after gathering information from the code and existing materials.
Why use it?
It helps match the documentation to its intended readers and checks that the technical details, examples, and instructions are accurate.

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/srstomp/pokayokay/docs
Clone the repo
git clone --depth 1 https://github.com/srstomp/pokayokay
Per session 4 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 460 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.00004 $0.00460
Opus 5 $0.00002 $0.00230
Sonnet 5 $0.00001 $0.00092
Haiku 4.5 $0.00000 $0.00046

Measured 2d ago against content hash 6d90acaf5e82, 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 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 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.

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/pokayokay/commands/docs.md · 90 lines

What it actually says

Documentation Workflow

Create documentation for: $ARGUMENTS

Steps

1. Identify Documentation Type

From $ARGUMENTS, determine:

  • README: Project overview and setup
  • API docs: Endpoint reference
  • ADR: Architecture Decision Record
  • User guide: How-to instructions
  • Contributing: Developer onboarding
  • Changelog: Version history

2. Identify Audience

  • Developers (internal team)
  • External developers (API consumers)
  • End users
  • Operations team

3. Gather Information

  • Read relevant code
  • Interview stakeholders (if needed)
  • Review existing docs
  • Check issue tracker for common questions

4. Generate Documentation

For README:

  • Project description
  • Quick start
  • Prerequisites
  • Installation
  • Usage examples
  • Configuration
  • Contributing link

For API Docs:

  • Endpoint reference
  • Request/response examples
  • Authentication
  • Error codes
  • Rate limits

For ADR:

  • Title and date
  • Status (proposed/accepted/deprecated)
  • Context (problem)
  • Decision (solution)
  • Consequences (trade-offs)

5. Review and Validate

  • Technical accuracy
  • Clarity for audience
  • Complete examples
  • Working code samples

6. Create Follow-up Tasks

npx @stevestomp/ohno-cli create "Docs: [specific doc]" -t docs

Covers

  • README creation
  • API documentation
  • Architecture Decision Records (ADR)
  • User guides and tutorials
  • Developer onboarding
  • Changelog management
  • /pokayokay:api - Document API design
  • /pokayokay:arch - Document architecture
  • /pokayokay:work - Implement documentation

Skill Integration

When documentation involves:

  • API reference → Also load api-design skill
  • Architecture docs → Also load architecture-review skill
  • Database docs → Also load database-design skill
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 · 90 lines · 4 tokens per session scan A 6d90acaf5e82

Subscribe to this mod's changes

docs is a command published in the GitHub repository srstomp/pokayokay (9 stars, last pushed 1mo ago), licensed MIT. It adds 4 tokens to every session and 460 once invoked, about $0.0000 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.