Claude Code skill for querying, browsing, and reading the M-Doc document system via natural language.
mdoc-skills adds an mdoc skill to Claude Code. Once installed, you can paste any mdoc.cc URL—or a short orgSlug/docSlug path—directly into your prompt, and Claude will authenticate against the M-Doc OpenAPI, fetch the document manifest or article content, and display it inline.
Triggers when you:
https://mdoc.cc/… URLmliev/mdoc or mliev/mdoc/v1.0.0/32mdoc.cc URLs and short org/doc[/version[/articleId]] paths automaticallyMDOC_TOKEN and prompt you to create one if it's missingMDOC_TOKEN)mdoc_pat_xxxxxxxxxxxxxxxx.~/.zshrc or ~/.bashrc to persist):export MDOC_TOKEN="mdoc_pat_your_token_here"
If MDOC_TOKEN is not set when the skill runs, it will stop and show you the setup instructions above.
Pass any of the following input formats as your prompt argument:
| Format | Example |
|---|---|
| Full URL | https://mdoc.cc/mliev/mdoc |
| URL with version | https://mdoc.cc/mliev/mdoc/v1.0.0 |
| URL with article | https://mdoc.cc/mliev/mdoc/v1.0.0/32 |
| Short path | mliev/mdoc |
| Short path with version | mliev/mdoc/v1.0.0 |
| Short path with article | mliev/mdoc/v1.0.0/32 |
List a document's table of contents:
/mdoc mliev/mdoc
Output (example):
📄 mdoc [version: master] [1] Quick Start [3] Installation [4] Configuration [2] API Reference [5] Authentication [6] Endpoint List
Read a specific article:
/mdoc https://mdoc.cc/mliev/mdoc/v1.0.0/32
Output: The article's raw Markdown content is displayed inline.
The skill executes four steps:
orgSlug, docSlug, version (optional), and articleId (optional) from the input URL or short path.echo $MDOC_TOKEN; stops and prompts for setup if unset.articleId → GET /openapi/organizations/{org}/documents/{doc}/articles/{id}/content.mdarticleId → GET /openapi/organizations/{org}/documents/{doc}/manifestKey endpoints used by this skill (all require Authorization: Bearer <token>):
| Endpoint | Description |
|---|---|
GET /openapi/organizations/:orgSlug/documents | List documents in an org |
GET /openapi/organizations/:orgSlug/documents/:docSlug/manifest | Get document manifest (TOC) |
GET /openapi/organizations/:orgSlug/documents/:docSlug/articles/:articleId/content.md | Get article Markdown |
Full endpoint reference: mdoc/references/endpoints.md
mdoc-skills/ ├── mdoc/ │ ├── SKILL.md # Skill definition and step-by-step logic │ └── references/ │ └── endpoints.md # Full OpenAPI endpoint reference ├── README.md # This file (English) └── README.zh-CN.md # Chinese documentation