Skills
Give coding agents a deterministic recipe for finding ownership and checks.
View raw Markdown · llms.txt · For agents
Doc Bridge — agent routing skill
Use this skill in Cursor, Claude Code, or Codex so agents resolve ownership before editing packages.
When to trigger
- User asks to change code under
packages/*,apps/*, or any monorepo module - Task mentions auth, billing, API, schema, or a package name
- Before creating or moving files in an unfamiliar area of the repo
Required workflow
- Resolve handoff first — call MCP tool
handoff.resolvewith the package id, or run:ak-docs query ownership <id> --agent - Read
startHere— open the agent doc path from the handoff - Edit only
editRoots— do not touch sibling packages - Run
checksfrom the handoff before claiming done - Bridge to humans — if
bridge.humanDocismissing, tell the user and suggestak-docs bootstrap agent-docs; ifhumanDocis set, link it in your summary
MCP setup (one-time)
ak-docs mcp install --cursorOr paste into .cursor/mcp.json:
{
"mcpServers": {
"ak-docs": {
"command": "npx",
"args": ["ak-docs", "mcp"],
"cwd": "/absolute/path/to/repo"
}
}
}Cursor rule (paste into .cursor/rules/doc-bridge.mdc)
---
description: Resolve doc-bridge handoff before editing packages
globs: packages/**/*
---
Before editing any file under packages/ or apps/:
1. Call MCP `handoff.resolve` for the owning package id
2. Read `startHere` from the handoff
3. Only modify paths under `editRoots`
4. Run every command in `checks` before finishing
5. If humanDoc is missing, surface `ak-docs bootstrap agent-docs` to the userQuick consult (no LLM)
ak-docs ask "auth is broken in staging"
ak-docs doctor --textThe AgentsKit ecosystem