Doc Bridge
Allows doc-bridge to index Docusaurus documentation sites and link human docs to agent handoffs.
Provides a GitHub Action to integrate doc-bridge into CI/CD pipelines, enabling stale index checks and human-doc link validation on pull requests.
doc-bridge
npm: @agentskit/doc-bridge · CLI: ak-docs · Landing: agentskit-io.github.io/doc-bridge
Topics: ai-agents · documentation · developer-experience · mcp · llms-txt · typescript
Compatibility: node >=22 · TypeScript 5.8+ · pnpm, npm, or yarn consumers
Turn your docs into executable handoffs for coding agents.
doc-bridge reads your repo docs, ownership map, and human documentation site, then gives every agent the same answer:
where to start reading
which files/packages it may edit
which checks prove the change
which human docs explain the feature
It is not a wiki or hosted RAG. The core works without any LLM or API key; the documentation portal dogfoods AgentsKit Chat as an optional surface over that deterministic layer.

Why teams use it
Agents are powerful, but most repo docs are written for humans. The result is familiar: the agent guesses ownership, edits the sibling package, runs the wrong test, or ignores the human guide that already explained the rule.
doc-bridge works in both directions:

Direction | What it does | Command |
Human docs → agents | Turns Fumadocs, Docusaurus, markdown, and ownership docs into |
|
Agent memory → docs | Reads |
|
The handoff is a routing contract:
{
"startHere": "docs/for-agents/packages/auth.md",
"editRoots": ["packages/auth"],
"checks": ["pnpm --filter @demo/auth test"],
"humanDoc": "/docs/guides/auth"
}That contract works from the terminal, MCP, CI, and optional RAG/chat.
60-second proof
npm i -D @agentskit/doc-bridge
npx ak-docs demo --textNo config, no docs to read first. Output shows before/after, a real handoff, gate red→green, and the MCP snippet:
After (handoff.resolve / query --agent)
✓ target: auth (packages/auth)
✓ start: docs/for-agents/packages/auth.md
✓ edit: packages/auth
✓ checks: pnpm --filter @demo/auth test · pnpm --filter @demo/auth lint
✓ human guide: /docs/guides/auth
Gate: red → greenMonorepo fixture with auth + billing:
npx ak-docs demo --fixture monorepo --textVerify the real handoff path
This checked example runs the bundled demo through the public CLI. The README gate compares this block byte-for-byte with the executable fixture and runs it on every PR.
import { execFileSync } from 'node:child_process'
execFileSync(process.execPath, ['bin/ak-docs.js', 'demo', '--text'], {
stdio: 'inherit',
})node examples/verify-handoff.mjsFull setup in your repo:
npx ak-docs init
npx ak-docs index
npx ak-docs query package example --agent
ak-docs mcp install --cursor # wires MCP into .cursor/mcp.jsonWhat ships

Surface | Use it for | Command / artifact |
CLI | Inspect ownership, search docs, run gates, ask local questions |
|
MCP server | Let Cursor, Claude Code, Codex-style agents resolve handoffs before editing |
|
GitHub Action / CI | Fail stale indexes and broken human-doc links on PRs |
|
Documentation conformance | Check the stable ecosystem standard with auditable evidence |
|
Doc adapters | Link human docs to agent docs |
|
Monorepo routing | Discover workspaces and checks |
|
Memory pipeline | Turn agent notes into reviewable documentation drafts |
|
Optional RAG/chat | Ground chat in the same handoff-first index |
|
See docs/getting-started.md, docs/mcp.md, and docs/examples.md.
Why this exists
Pattern | Gap |
Wiki + RAG | Explains; weak on where to act and proof docs match code |
AGENTS.md alone | Great static rules; no ownership index, gates, or human bridge |
Context7-class tools | Library docs for the model; not your monorepo routing |
doc-bridge ships AgentHandoff JSON:
{
"type": "agent-handoff",
"startHere": "docs/for-agents/packages/auth.md",
"editRoots": ["packages/auth"],
"checks": ["pnpm --filter @demo/auth test"],
"humanDoc": "/docs/guides/auth",
"bridge": { "humanDoc": "linked" }
}When a human guide is missing, handoffs surface it as a feature:
{
"bridge": {
"humanDoc": "missing",
"action": "ak-docs bootstrap agent-docs"
},
"notes": ["Human guide missing for billing. Run: ak-docs bootstrap agent-docs"]
}Four loops (with real commands)
Loop | Command | What you see |
Act |
|
|
Bridge |
| Draft agent docs from human site; |
Learn |
| HITL draft for agent corpus |
Explain |
| Ownership match + handoff preview + next commands |
ak-docs ask "who owns schemas"
# Best match: ownership os-core
# Handoff preview
# start: docs/for-agents/packages/os-core.md
# edit: packages/os-core
# checks: pnpm --filter os-core lint · pnpm --filter os-core testCoverage your team checks daily
ak-docs doctor --text
ak-docs doctor --badge # shields.io markdown for README
ak-docs index --watch # keep index fresh while editing docsScore: 82/100 (B)
Agent docs: 8/10 (80% handoff-ready)
Human guides: 6/10 (60% bridged)
Gates: 3/3 passing
Next actions
→ ak-docs bootstrap agent-docs
→ ak-docs query package billing --agentAgent uses it alone
MCP auto-wire:
ak-docs mcp install --cursorSkill/rule: paste docs/skills/doc-bridge.md into Cursor rules — agents call
handoff.resolvebefore editingpackages/*Handoff is the next step:
startHere,checks, andbridgeare in the JSON/MCP response
CI as first-class citizen
Reuse the bundled GitHub Action on every PR:
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: AgentsKit-io/doc-bridge@v1.2.1
with:
config-path: doc-bridge.config.jsonThe Action checks the committed index before changing anything, pins the matching npm package, and rejects non-exact package versions. See the Marketplace guide.
Run ak-docs doctor --badge locally to refresh — or pnpm coverage:badge in CI.
Or locally:
ak-docs index && ak-docs gate runGate fails with Index is stale. Run: ak-docs index — same check in CI annotations.
Product surface
Core — always (no LLM)
Surface | Purpose |
Demo |
|
Doctor | Coverage score, missing humanDoc/agent doc, next actions |
Index |
|
CLI |
|
MCP |
|
Gates | Freshness, human-link validation, optional OKF style |
Adapters |
|
Optional AgentsKit peers
npm i -D @agentskit/rag @agentskit/ink @agentskit/adapters @agentskit/memory react
ak-docs rag ingest && ak-docs chatSee docs/chat-and-rag.md.
AgentsKit ecosystem
Who uses it (public)
Designed for and dogfooded on open AgentsKit surfaces:
Surface | Link |
for-agents | |
Registry | |
Playbook | |
AgentsKit Chat | |
AgentsKit OS | |
Code Review | |
This repo | CI green · |
Playbook pattern: docs/playbook/doc-bridge-pattern.md — export with ak-docs playbook pattern --text
Configuration examples
Profile | Example |
Solo markdown | |
pnpm monorepo | |
Demo monorepo | |
Fumadocs + chat |
Contract: docs/spec/config-v1.md · CLI: docs/spec/cli.md · MCP: docs/mcp.md · Skill: docs/skills/doc-bridge.md · Pattern: docs/playbook/doc-bridge-pattern.md · Recipes: docs/recipes/index-pipeline.md
Learn loop — memory → draft PR
ak-docs memory ingest
ak-docs memory classify
ak-docs memory promote --pr --dry-run # preview gh commands
ak-docs memory promote --pr # opens draft PR via ghStatus
v1.2.1 stable — deterministic Documentation Standard v1 conformance, verified release provenance, Fumadocs portal, Marketplace Action, doctor + CI + skill, and full Tier A/B/C.
pnpm install && pnpm build && pnpm test
pnpm smoke:ollama # optional — skips if Ollama/peers unavailableLanding: https://doc-bridge.agentskit.io/
Contributing
Issues and PRs are welcome. Start here:
Need | Doc |
Local setup, tests, release flow | |
Vulnerability reports | |
Community standards | |
Release history | |
Product positioning |
License
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/AgentsKit-io/doc-bridge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server