Docsbook
← Back to catalog
creation

docs-create

Turn a URL or repo into a live docs site in one command. Full end-to-end pipeline — detects the source (website, code, or Mintlify/GitBook/Docusaurus), generates structured Markdown, publishes to GitHub, and configures the Docsbook workspace. Minimal questions, maximum output.

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-create -a claude-code
2. Use
/docs-create

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-create"

docs-create — End-to-end docs pipeline

Docsbook chat agent (in-app)#

When this skill is read by the Docsbook /chat agent — the environment where agent-engine tools (crawl_website, create_workspace, generate_doc_site, commit_docs, update_branding, set_option) are available — map the workflow onto those tools instead of the CLI steps below, and follow the auto-mode contract:

Workflow#

  1. Ask at most 1 question before starting: the source URL/repo (if missing). The GitHub account comes from gh auth status when present; if absent, the pipeline still runs the crawl and stops cleanly with the path printed.
    • Project name — never invent it. Derive the project/site name in this priority order: (1) the source website's brand name (from its <title> / og:site_name); (2) the GitHub repo name (the part after owner/); (3) if neither source exists or the name is unclear, ask the user what to name the project. Do not synthesize a random or placeholder name. This name is used for the output folder and the workspace display name.
  2. Ask about content enrichment. Before the crawl, ask the user which marketing-driven pages to add on top of the core docs — competitor comparisons (blog/<you>-vs-<competitor>.md), educational topic cluster (learn/), glossary + use-cases (glossary/, use-cases/), migration guides (migrate-from-<competitor>.md). Multi-select; skipping is a valid answer. If competitor-vs or migration is chosen, ask for a comma-separated competitor list or leave blank to auto-detect from the crawl.
  3. Detect the source type using the /docs-detect-source logic — route to website (/docs-from-site), github-code-repo (/docs-from-code), or a docs platform (/docs-from-docs). All three routes run end-to-end with pinned Haiku subagents.
  4. Build core docs using the appropriate sub-skill. Simultaneously extract branding signals from the SOURCE — read its <meta name="theme-color">, og:image, favicon, title, and any inline --accent CSS tokens; for code repos also scan the README for explicit hex values or brand color mentions. Store every signal you found (or explicitly note when none was found). Never invent an accent color when no signal exists.
  5. First-run enrichment. Apply /docs-first-run-enrichment so the first thing the user sees is a sellable, on-brand site and not a bare skeleton — it auto-brands from the step 4 signals and generates a multi-section structure (hero/landing, getting-started, concepts, guides, reference) instead of one or two thin pages. Announce what you are applying: before generating, tell the user in one short line which writing sub-skills you are using for high-quality, conversion-oriented docs — docs-audience (reader fit), docs-style-tone (tighten prose), docs-content-types (Diátaxis structure), docs-seo (rankability) — and actually apply each of them while writing the pages, so the user sees the orchestration and the output reads like sales-grade docs.
  6. Enrich (only if step 2 selected any category). Generate 3–5 pages per chosen category on top of the crawled folder. Never fabricate competitors or terms — skip a section silently if inputs are insufficient. Enrichment failure does not block publish — core docs still ship.
  7. Preview + confirm. Before publishing, print the folder tree (including enriched folders) and excerpts from up to 3 representative pages plus one enriched page if available. Ask the user before pushing — never silently create a GitHub repo.
  8. Publish the generated folder to GitHub using the /docs-publish logic — only if gh is authenticated. Otherwise stop with status: crawl_only and instructions to run /docs-publish <path> after gh auth login.
  9. Confirm workspace settings, then configure the Docsbook workspace using /docs-setup-workspace. Show what will be applied (branding, UI, AI, SEO, languages) and let the user accept all, decline, or pick sections. Branding runs by default and always leads with the detected SOURCE brand signals from step 4 — present the derived palette (accent, muted, foreground, background, theme) built from those signals before showing other settings, so the user sees real brand options and not generic placeholders. If MCP is available, apply branding via /docs-branding before any other workspace config, using the signals collected in step 4 as the DERIVE input. If no signal was detected (noted in step 4), run /docs-branding anyway — let it ask the user for a reference URL or color rather than skipping or inventing. Skip gracefully if MCP is unavailable — print connection instructions but do not fail the pipeline.
  10. Report the local path, GitHub URL (if published), Docsbook URL (if configured), core page count, enriched page count by section, and detected source type.

Guardrails#

Acceptance Criteria#

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