Docsbook
← Back to catalog
creation

docs-detect-source

Identify what kind of docs source you have in one call. Detects website URLs, code repositories, and existing platforms (Mintlify, GitBook, Docusaurus, Nextra) so the right builder is picked. Used internally by /docs-create or directly when you're not sure where to start.

Install & use this skill

Pick your AI client — install this single skill and call it.

1. Install
npx skills add Docsbook-io/docs-skills --skill docs-detect-source -a claude-code
2. Use
/docs-detect-source

Invoke as a slash command in chat.

Or: runtime discovery via Docsbook MCP

Already connected to the Docsbook MCP server? Skip install — ask your agent to load this skill on demand.

@docsbook find_skill "docs-detect-source"

docs-detect-source — Identify and route a docs source

Workflow#

  1. Inspect the input: classify as a plain URL, a GitHub repo URL, or a local path.
  2. For a plain URL — fetch the page and look for platform signals in HTML meta tags, CDN links, and domain name. If no platform matches, classify as a generic website.
  3. For a GitHub repo URL — fetch root contents via the GitHub API and look for known config files (mint.json, SUMMARY.md, docusaurus.config.js, .vitepress/, astro.config.*, etc.). If only a README and source directory are present, classify as a code repo.
  4. For a local path — inspect the directory structure for the same config file signals.
  5. Map the detected type to a downstream skill and report both.

Guardrails#

Skill Routing#

Detected type Downstream skill Subagent
website /docs-from-site docs-site-crawler (Haiku)
github-code-repo /docs-from-code docs-code-crawler (Haiku)
Any recognized docs platform /docs-from-docs docs-platform-importer (Haiku)

Acceptance Criteria#

View source on GitHub →Browse full catalog repo →
Keywords
detectsourcemintlifygitbookdocusaurusplatform