doc

doc is a command for coding agents from vakovalskii/ontoship. It costs 39 tokens per session (400 once invoked), scanned A, original, MIT.

A command for creating or updating documents in a searchable team knowledge base. It classifies each document, connects it to related material, and checks that the documentation structure is valid.

In plain words
What is it for?
Use it to add services, guides, runbooks, decisions, plans, reports, and reference pages to a Markdown-based knowledge base.
Why use it?
It prevents duplicate pages, unlinked information, and documentation that does not follow the project's agreed structure.

Command

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the ontoship plugin — 3 skills, 5 commands 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 commands/vakovalskii/ontoship/doc
Clone the repo
git clone --depth 1 https://github.com/vakovalskii/ontoship

Or install ontoship, the plugin that ships this one along with the rest of its 3 skills, 5 commands.

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 doc

README.md
[![agentmods](https://agentmods.dev/badge/commands/vakovalskii/ontoship/doc.svg)](https://agentmods.dev/commands/vakovalskii/ontoship/doc)
Your own site
<a href="https://agentmods.dev/commands/vakovalskii/ontoship/doc"><img src="https://agentmods.dev/badge/commands/vakovalskii/ontoship/doc.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 400 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.00039 $0.00400
Opus 5 $0.00019 $0.00200
Sonnet 5 $0.00008 $0.00080
Haiku 4.5 $0.00004 $0.00040

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

Security

Grade A, and why

doc 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.

commands/doc.md · 24 lines

What it actually says

Compose or update a KB document for: $ARGUMENTS

Follow the kb-curate skill (ontology over code):

  1. Search firstpython3 ${CLAUDE_PLUGIN_ROOT}/skills/kb-search/gitmark.py search "$ARGUMENTS". If the topic already exists → edit that doc, don't create a second one.
  2. Pick a node_typeservice · reference · runbook · gotcha · decision · plan · guide · report · index (unsure → spec = reference, how-to = guide) and the right folder (service → docs/services/<svc>/, cross-cutting → docs/reference/, ops → docs/ops/, plan → docs/plans/, decision → docs/decisions/).
  3. Write frontmatternode_type, title, service, status: active, updated: <today>.
  4. Add ≥1 typed link — to code (documents/implemented_by) or a sibling doc (depends_on/relates_to). No orphans.
  5. Add a line to the folder README.md (its index): - [Title](file.md) — hook.
  6. Lint + reindexpython3 ${CLAUDE_PLUGIN_ROOT}/skills/kb-search/gitmark.py lint then ... gitmark.py index.

Report which file you created/updated, its node_type, and the links you added.

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 · 24 lines · 39 tokens per session scan A c56701e999cf

Subscribe to this mod's changes

doc is a command published in the GitHub repository vakovalskii/ontoship (76 stars, last pushed 8d ago), licensed MIT. It adds 39 tokens to every session and 400 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-30.