DocsbookDocsbook
← Back to catalog
creation

docs-detect-source

Detects what type of documentation source you have — website URL, code repository, or existing docs platform (Mintlify, GitBook, Docusaurus, etc.). Used internally by /docs-create to route to the right skill. Can also be run directly to identify your source type.

Local install
npx docs-skills install
Try in MCP
@docsbook find_skill "docs-detect-source"

docs-detect-source

Identifies the type of a documentation source so the pipeline can route to the correct skill.

Arguments#

Detection Logic#

If the argument looks like a URL (starts with http)#

Fetch the page and check for platform signals in the HTML:

Signal Platform
<meta name="generator" content="Mintlify"> or Mintlify CDN link Mintlify
Domain contains gitbook.io or <meta name="generator" content="GitBook"> GitBook
<meta name="generator" content="Docusaurus"> Docusaurus
Nextra HTML structure / generator meta Nextra
URL matches github.com/{owner}/{repo} See GitHub repo detection below

If none match → plain website → route to /docs-from-site.

If the argument is a GitHub repo URL (github.com/{owner}/{repo})#

Fetch the repo's root contents via the GitHub API and look for:

File / Directory Platform
mint.json Mintlify
docs.json Custom docs
SUMMARY.md GitBook
docusaurus.config.js Docusaurus
.vitepress/ directory VitePress
astro.config.* with Starlight Starlight

If the argument is a local path#

Run:

node scripts/detect-platform.js <path>

Map the result to the appropriate skill name.

Detected Types and Their Skill Mappings#

Detected type Skill
website /docs-from-site
github-code-repo /docs-from-code
mintlify-docs /docs-from-docs
gitbook-docs /docs-from-docs
docusaurus-docs /docs-from-docs
nextra-docs /docs-from-docs
vitepress-docs /docs-from-docs
starlight-docs /docs-from-docs
plain-markdown /docs-from-docs

Output#

Detected: {type}
Recommended skill: /{skill-name}
View source on GitHub →Browse full catalog repo →
Keywords
detectsourcemintlifygitbookdocusaurusplatform