Skip to content
Development
Skill

/octocode-documentation

Use when writing or updating docs: README, API docs, runbooks, AGENTS.md, CLAUDE.md, ADRs, Diátaxis restructuring, or codebase documentation for humans or coding agents.

From plugin
octocode
90415 skills
Install
$ npx -y skills add bgauryy/octocode-mcp --skill octocode-documentation --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/octocode-documentation

Context preview

The summary Claude sees to decide when to auto-load this skill.

Use when writing or updating docs: README, API docs, runbooks, AGENTS.md, CLAUDE.md, ADRs, Diátaxis restructuring, or codebase documentation for humans or coding agents.

SKILL.md

octocode-documentation.SKILL.md
name: octocode-documentation
description: "Use when writing or updating docs: README, API docs, runbooks, AGENTS.md, CLAUDE.md, ADRs, Diátaxis restructuring, or codebase documentation for humans or coding agents."

Octocode Documentation

Evidence-backed docs for humans and agents. Classify first. Gate writes. Prefer durable cross-refs over code dumps.

Flow

`UNDERSTAND → RESEARCH → CLASSIFY → OUTLINE GATE → WRITE → VERIFY`

Compress when targets and type are named. Expand when claims need verification.

Hard rules

  • MUST verify claims in the repo before asserting them.
  • MUST pick one mode and load its routes before writing.
  • MUST gate creates/overwrites unless the user already approved targets this turn.
  • MUST treat `AGENTS.md` as a docs index (links + non-obvious rules), not a content dump.
  • Prefer durable pointers (module path, contract name, doc link) over line numbers and pasted code.
  • FORBIDDEN: inventing commands, paths, APIs, or env vars.
  • Keep one Diátaxis type per page; link siblings instead of mixing.
  • Do not copy README/CONTRIBUTING into `AGENTS.md`, or paste large code blocks — link the source.

Stop when: outline gate awaits answer; write+verify finishes; fact missing (report gap); user cancels.

Routes

Load only what the step needs:

  • Read `references/modes.md` when choosing mode or audience.
  • Read `references/evidence-research.md` when gathering or verifying repo facts.
  • Read `references/diataxis.md` when writing or reviewing human-docs.
  • Read `references/agents-md.md` when writing or updating agent instruction files.
  • Read `references/adr.md` when recording a decision.
  • Read `references/agent-readable.md` before WRITE (cross-refs, density, durability).
  • Read `references/write-verify.md` for outline gate, write steps, and verify checklist.
  • Skip `references/references.md` during normal tasks (creation audit only).

Related

  • Pure code/repo evidence with no docs deliverable → `octocode-research`.
  • Authoring a `SKILL.md` → `octocode-skills`.
  • Full multi-file pack → `octocode-documentation-writer` if installed.
  • Unclear mode → ask once: agent-docs / human-docs / adr / codebase-pack.
  • Conflicting conventions → surface; do not add a second scheme.
  • Missing command → omit or mark unverified. No Octocode → host search tools.
Read more
Ships withoctocode

Evidence-first code research for AI agents and developers. Octocode researches your local code and external code alike (GitHub repos, PRs, npm) with one toolset: ripgrep + AST search, trees, precise reads, and LSP.

Get the whole plugin

Other skills on octocode.