TokenRoll LLMDoc for Coding Agent
npx skills add https://github.com/TokenRollAI/cc-plugin --skill update-docInstale esta skill com a CLI e comece a usar o fluxo de trabalho SKILL.md em seu espaço de trabalho.
llmdoc is a doc-driven workflow for both Claude Code and Codex.
llmdoc/llmdoc:init, /llmdoc:updatellmdoc-init, llmdoc-updateThe default setup is simple:
CLAUDE.md and AGENTS.md only need one short rule: step one is loading the llmdoc skillskills/llmdoc/references//llmdoc:update at the end of non-trivial tasksThe previous design exposed too many internal steps:
scout and investigator agents with overlapping responsibilitiesThis refactor keeps the public interface small and moves the rest into one reusable operating skill plus small Codex helper entry skills.
llmdoc/llmdoc:init, /llmdoc:updatellmdoc-init, llmdoc-update.claude-plugin/.codex-plugin/plugin.json and .agents/plugins/marketplace.json.codex/agents/*.tomlSessionStart, Stop templates includeduseuse is not a command.
It is the operating mode defined by the llmdoc skill. The recommended setup is to tell the model to load that skill first, then follow it.
/llmdoc:initUse /llmdoc:init to create or repair the llmdoc skeleton and generate initial docs.
In Claude Code, this is a command.
In Codex, use the helper skill llmdoc-init for the equivalent workflow.
The command:
llmdoc/index.md/llmdoc:updateUse /llmdoc:update after meaningful work when project knowledge should be persisted.
In Claude Code, this is a command.
In Codex, use the helper skill llmdoc-update for the equivalent workflow.
The command:
llmdoc/memory/reflections/llmdoc/index.mdIn normal use, the main assistant should proactively ask whether to run /llmdoc:update when the task produced durable knowledge or a useful reflection.
llmdoc/
├── index.md
├── startup.md
├── must/ # Small startup context package
├── overview/ # Project and feature identity
├── architecture/ # Retrieval maps, invariants, ownership
├── guides/ # One workflow per document
├── reference/ # Stable lookup facts and conventions
└── memory/
├── reflections/ # Post-task reflections
├── decisions/ # Durable process or design decisions
└── doc-gaps.md # Known documentation weaknesses
.llmdoc-tmp/
└── investigations/ # Temporary scratch investigation reports
llmdoc/index.md is the global doc map.
llmdoc/startup.md is only the startup reading order.
They should link to each other, but they should not repeat the same content.
| Agent | Purpose |
|---|---|
investigator |
Evidence gathering for chat or temporary scratch reports |
worker |
Executes well-defined tasks |
recorder |
Maintains stable llmdoc documents |
reflector |
Writes post-task reflections |
Install Claude Code first. Anthropic’s official docs currently list:
npm install -g @anthropic-ai/claude-codecurl -fsSL https://claude.ai/install.sh | bashOfficial docs:
Then install this plugin marketplace and plugin:
/plugin marketplace add https://github.com/TokenRollAI/llmdoc
/plugin install llmdoc@llmdoc-cc-plugin
After installation:
CLAUDE.example.md into ~/.claude/CLAUDE.md.AGENTS.example.md into the project root.Install Codex CLI first. OpenAI’s official docs currently list:
npm i -g @openai/codex
codex
Official docs:
This repository contains two separate Codex integration surfaces:
llmdoc itself:
.codex-plugin/plugin.jsonskills/llmdoc/skills/llmdoc-init/skills/llmdoc-update/.agents/plugins/marketplace.json as a repo-scoped local marketplace exampleUse this when you want to work inside this repository and keep the plugin local to the repo checkout.
.agents/plugins/marketplace.json exists./plugins.llmdoc in the plugin list, select it to open the detail page.llmdoc skill first for normal workllmdoc-init when you want the /llmdoc:init workflowllmdoc-update when you want the /llmdoc:update workflow@ and choose the plugin or one of its bundled skills explicitlyskills/llmdoc/templates/codex-hooks.json to .codex/hooks.json and adjust the script paths for your machine.When you open this repository itself, Codex can also use the project-scoped agents under .codex/agents/ and the agent limits from .codex/config.toml.
llmdoc as a personal local pluginUse this when you want the llmdoc plugin to be available across repositories on your machine.
~/.codex/plugins/llmdoc:mkdir -p ~/.codex/plugins
cp -R /absolute/path/to/llmdoc ~/.codex/plugins/llmdoc
~/.agents/plugins/marketplace.json so it points at that plugin directory with a ./-prefixed path relative to your home directory:{
"name": "local-personal",
"interface": {
"displayName": "My Local Plugins"
},
"plugins": [
{
"name": "llmdoc",
"source": {
"source": "local",
"path": "./.codex/plugins/llmdoc"
},
"policy": {
"installation": "AVAILABLE",
"authentication": "ON_INSTALL"
},
"category": "Productivity"
}
]
}
/plugins.llmdoc in the plugin list, select it to open the detail page.llmdoc skill first for normal workllmdoc-init when you want the /llmdoc:init workflowllmdoc-update when you want the /llmdoc:update workflow@ and choose the plugin or one of its bundled skills explicitlyThis personal install gives you the plugin and its bundled skill across repositories. The files under .codex/agents/ and .codex/config.toml in this repository are still project-scoped and only apply when you open this repository itself.
The reusable skill lives at skills/llmdoc/SKILL.md.
The Codex helper entry skills live at skills/llmdoc-init/SKILL.md and skills/llmdoc-update/SKILL.md.
Detailed references live under skills/llmdoc/references/.
Codex hook templates live under skills/llmdoc/templates/.
This repository now also includes project-scoped Codex custom agents:
.codex/config.toml.codex/agents/llmdoc-investigator.toml.codex/agents/llmdoc-worker.toml.codex/agents/llmdoc-recorder.toml.codex/agents/llmdoc-reflector.tomlThese follow the Codex subagent docs pattern for project-scoped standalone TOML files under .codex/agents/, so they apply when you open this repository in Codex.
The names are intentionally prefixed with llmdoc_ so they do not override Codex built-in agents like worker or explorer.
This version removes the old fragmented skills and replaces them with one skill:
llmdocread-doc, investigate, update-doc, doc-workflow, deep-dive, commitinitDoc, withScout, whatscoutIf you used those before:
/llmdoc:init instead of the old tr-prefixed init command/llmdoc:update instead of /update-docllmdoc skill instead of using separate read/investigate skills