Agent file
Documentation toolkit for AI-agent-ready docs
IMPORTANT: Read these rules before making any changes:
| Component | Path | Purpose |
|---|---|---|
| Cli | packages/docs/src/cli/ | |
| Components | packages/docs/src/components/ | |
| Skills | .claude/skills/ |
Documentation toolkit for AI-agent-ready docs
Dewey is a documentation toolkit that makes your docs AI-agent-ready. It audits, scores, and generates optimized documentation for LLM consumption.
Dewey is a docs agent, not a docs framework. It focuses on:
Dewey prepares your docs for AI consumption. Rendering is left to your framework of choice.
Each documentation page should have two versions:
| Version | Audience | Style |
|---|---|---|
.md | Humans | Narrative, explanatory |
.agent.md | AI agents | Dense, structured, self-contained |
Skills are LLM prompts, not code. Built-in skills:
docsReviewAgent - Reviews docs quality page-by-pagedocsDesignCritic - Critiques page structure and visual designpromptSlideoutGenerator - Generates AI-consumable prompt configsinstallMdGenerator - Creates install.md following installmd.orgFollows the installmd.org specification. LLM-executable:
curl https://your-project.com/install.md | claude
dewey init Create docs/ folder and dewey.config.ts
dewey audit Check documentation completeness
dewey generate Create agent-ready files
dewey agent Score agent-readiness (0-100)
Get started with Dewey in 5 minutes
Get your documentation agent-ready in under 5 minutes.
pnpm add -D @arach/dewey
npx dewey init
This creates:
docs/ folder with starter templatesdewey.config.ts configuration fileEdit dewey.config.ts with your project context:
export default {
project: {
name: 'your-project',
tagline: 'What your project does',
type: 'npm-package', // or cli-tool, react-library, etc.
},
agent: {
criticalContext: [
// Rules AI agents MUST know
'NEVER do X when Y',
],
entryPoints: {
'main': 'src/',
},
},
install: {
objective: 'Install and configure your-project.',
steps: [
{ description: 'Install', command: 'pnpm add your-project' },
],
},
}
Create docs in the docs/ folder:
docs/
overview.md # Project introduction
quickstart.md # Getting started guide
api.md # API reference
overview.agent.md # Agent-optimized version
npx dewey generate
Outputs:
AGENTS.md - Combined context for AI agentsllms.txt - Plain text summary for LLMsdocs.json - Structured documentationinstall.md - LLM-executable installation guidenpx dewey agent
Agent Readiness Report
Overall Score: 75/100 (Grade: C)
Categories:
✓ Project Context: 20/25
○ Agent-Optimized Files: 20/30
...
.agent.md versions of your docs.claude/skills/ for custom reviewsdewey audit to check completenessBuilt-in LLM prompt templates
Skills are LLM prompts that guide AI agents through specific tasks. They’re not code - they’re expert instructions.
Reviews documentation quality page-by-page. Catches:
Usage:
Use the docsReviewAgent skill to review docs/overview.md
Generates AI-consumable prompt configurations for documentation pages.
Usage:
Use promptSlideoutGenerator to create prompt config for the API page
Creates install.md files following the installmd.org specification.
Usage:
Use installMdGenerator to create install.md from dewey.config.ts
Skills live in .claude/skills/ as markdown files:
.claude/skills/
my-skill.md
# Skill Name
Brief description of what this skill does.
## When to Use
- Situation 1
- Situation 2
## Instructions
Step-by-step guide for the AI agent:
1. First, check X
2. Then, do Y
3. Finally, verify Z
## Example
Show an example input and expected output.
| Do | Don’t |
|---|---|
| Be specific and actionable | Use vague instructions |
| Include examples | Assume context |
| Define success criteria | Leave outcomes ambiguous |
| Reference file paths | Use relative descriptions |
Generated by Dewey | Last updated: 2026-01-22