/superlore:superlore-scaffoldfrom superlore
Guides users through scaffolding a new superlore knowledge base: asks type/auth questions, runs the CLI, writes config, seeds content, and offers MCP setup.
Ships in superlore. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This is the entry skill. A user opens their agent and says some version of "make me a docs
using superlore" — this skill drives the entire setup: greet, ask the two questions that actually
matter, scaffold with the superlore CLI, write the config, seed starter content, and (optionally)
connect the MCP. Narrate each step so the user always knows what just happened and what's next.
You are setting up a superlore KB: author once in MDX, humans get a clean visual site, and agents get a first-class MCP over the same structured content. The user does not need to know how superlore works — that's the whole point of this skill. Keep the conversation short and concrete.
superlore init with the answers (see CLI contract), narrating it.superlore.json — the canonical config (schema below).superlore init offers this itself (it detects VS Code / Cursor /
Windsurf and installs the superlore Preview extension). If the user ran init non-interactively,
mention they can run superlore connect to install the live-preview extension into their editor(s).superlore dev, then author (superlore-author) and,
when ready, deploy (superlore-deploy).Make one AskUserQuestion call with both questions so the user answers in one pass. Use
exactly these questions, options, and descriptions:
Question 1 — header: "KB type", question: "What kind of knowledge base is this?"
(multiSelect: false)
| Option label | Description |
|---|---|
Company KB | An internal company knowledge base — teams + agents read your org's corpus. Maps to type: company-kb. |
Product Documentation | Public product / developer docs for your users. Maps to type: product-docs. |
Question 2 — header: "Access", question: "Who should be able to read it?"
(multiSelect: false)
| Option label | Description |
|---|---|
Auth-protected | Gate the site and the MCP behind Google SSO (Auth.js). For internal / private knowledge. |
Public | Anyone can read the site and connect to the MCP. For open product docs. |
The AskUserQuestion tool always lets the user write a custom answer, so you don't need an "Other"
option — but do honour a custom answer (e.g. "public site but gated MCP" → set auth.enabled per
their intent and note it).
If the user picks Company KB and does not choose auth (picks Public, or declines auth), you must clearly warn before scaffolding — a company knowledge base usually contains internal information that should not be world-readable, and the MCP would expose that same content to any agent that finds the URL. Say something like:
⚠️ Heads up: a company knowledge base is usually internal. Without auth, both the site and the MCP are public — anyone with the URL (human or agent) can read everything. I'd strongly recommend adding Google SSO before you deploy. Want me to set that up now?
Then offer to enable auth (flip auth.enabled: true, provider google). If they still choose
public after the warning, respect it — but record in superlore.json that it's intentional and remind
them again at deploy time (the superlore-deploy skill re-checks this). Never silently scaffold a
public company KB.
Product Documentation + Public needs no warning — that's the expected case.
superlore ships a superlore CLI. Scaffold with init, passing the answers as flags so it's
non-interactive (you've already asked):
superlore init <dir> \
--type <company-kb|product-docs> \
--auth <on|off> \
[--provider google] \
[--name "<KB name>"] \
[--accent "#6D5CF0"]
npx superlore init … (or pnpm dlx superlore init …) if superlore isn't installed globally, so
the user doesn't need a global install.superlore init creates the project, installs deps, writes superlore.json, mounts the MCP route, and
(when --auth on) wires the Auth.js + proxy.ts gate with self-disabling env defaults../my-kb as a company KB with auth…" then report what landed.superlore CLI is not yet available in this environment, say so plainly and fall back to
the manual wiring in the docs (Getting started →
apps/docs/content/docs/getting-started.mdx): npm i superlore, import superlore/css, spread
getMDXComponents, base the schema on superloreFrontmatterSchema, mount the MCP route. Do not
pretend a command ran that didn't.superlore.json (the canonical config)superlore init writes this; verify/repair it to match the user's answers. The CLI package owns the
schema — keep to it exactly:
{
"name": "Acme Knowledge Base",
"type": "company-kb", // "company-kb" | "product-docs"
"accent": "#6D5CF0", // optional brand colour; one hue drives the whole palette (light + dark)
"theme": "mint", // optional skin: default | mint | geist | ledger | obsidian | prism | paste
"logo": { "light": "/logo.svg", "dark": "/logo-dark.svg" }, // optional; navbar lockup
"favicon": "/favicon.svg", // optional
"font": { "sans": "Inter", "mono": "JetBrains Mono" }, // optional override of the theme's type
"auth": {
"enabled": true, // false for a public KB
"provider": "google", // only when enabled
"allowedDomain": "acme.com", // optional; restrict SSO to one workspace domain
},
"mcp": {
"enabled": true,
"path": "/api/mcp", // default
},
}
type comes straight from Question 1.theme picks the visual skin (offer the seven; default look if omitted). accent is one
hue that derives the whole palette. logo / favicon / font are optional brand overrides
that work on any theme. All are presentation-only — they never touch the content or MCP face.
superlore init --theme geist --accent "#304FFE" sets them at scaffold time; the generated
app/layout.tsx reads them, so changing superlore.json reskins the site with no code edits.auth.enabled comes from Question 2 (plus the company-KB rule). When enabling, set
provider: "google" and ask for allowedDomain if it's a company KB — but make it optional
(leave it out if they don't have one handy; any Google account can sign in without it).mcp.enabled defaults to true (the MCP is a first-class surface); mcp.path defaults to
/api/mcp. Only disable the MCP if the user explicitly asks.superlore.json.Leave the user with a KB that isn't empty. Create one or two dual-representation pages so they
see the point immediately — e.g. an index/overview page and a small Timeline or KeyFacts page.
For anything beyond a trivial seed, hand off to superlore-author rather than hand-rolling MDX here.
Keep the seed honest to the contract: author the data, not a picture.
Once scaffolded, offer to register the KB's MCP with the user's agent so they can immediately query
their own corpus. Hand off to superlore-connect-mcp — that skill asks permission before touching
any Claude config and asks for the URL if it isn't known yet. Do not run claude mcp add from here.
Scaffold a full docs site (this flow) when they want a deployed KB with nav, search, and the MCP.
But superlore also renders a single .mdx — or a plan/spec an agent writes — live, with no site:
the Viewer (/viewer, drop-in MDX) and the superlore editor extension (the plugin) render any
doc with the same components + Canvas via the runtime. So a Claude-authored plan can be viewed/shared
through the plugin without scaffolding a site. Mention this when the user just has a doc, not a site —
point them at superlore-connect-mcp / the Viewer rather than a full scaffold.
End with a short, concrete next-steps list:
superlore dev (or npx superlore dev) → open the local URL.superlore connect installs the superlore Preview extension into
VS Code / Cursor / Windsurf (live preview of every component as you author). init already offers
this; mention it if it was skipped.mcp.enabled stays on unless the user opts out.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
superlore, knowledge-base, scaffolding, docs-setup, mcp-configuration
npx claudepluginhub krishnansg/superlore --plugin superlore7 skills in this plugin
/superlore-authorAuthor and edit content into an existing superlore knowledge base — "vibe your docs". Turns intent ("add a page about X", "document our onboarding", "make a roadmap") into well-structured MDX with dual-representation components (cards, timelines, boards, entity cards, tables, a Canvas), so humans get a clean page and agents get a typed knowledge face from one source. Use when adding, writing, editing, or restructuring pages, components, or a Canvas in a superlore KB./superlore-canvasAuthor rich, well-structured superlore Canvas diagrams — the `superlore-canvas` block in MDX that renders as a FigJam-grade interactive whiteboard AND a typed knowledge graph. Use whenever creating or editing a visual, diagram, whiteboard, board, architecture map, flow, mind-map, or brainstorm in a superlore knowledge base, or when asked to "visualize", "draw", "diagram", "map out", or "whiteboard" a concept./superlore-connect-mcpRegister a superlore knowledge base's MCP server with the user's Claude (or other MCP client) so their agent can read the corpus directly — search, get_page, list, navigate, get_component_data. Configures it at the USER level via `claude mcp add` (or the client's mcp.json). ALWAYS asks permission before modifying the user's Claude config, and ASKS for the URL / any credential / any missing detail rather than guessing. Use when someone wants to connect, add, hook up, or point their agent / Claude at a superlore KB or its MCP./superlore-deployGet a superlore knowledge base live. superlore Cloud (managed hosting, SSO, team features) is in private beta — this skill guides the user to the waitlist, and gives the full self-host / Vercel manual path so they can ship today for free. Use when someone asks to deploy, publish, host, or "put my superlore docs online", or runs into `superlore deploy`./superlore-migrateMigrate an existing docs site or a set of Markdown/MDX files (Mintlify, Docusaurus, Fumadocs, Nextra, GitBook, plain .md — any framework) into a superlore knowledge base. First produces a detailed migration PLAN authored as a superlore doc (with a Canvas of the migration) that the user reviews and comments on in the editor preview or the Viewer; on approval it converts every page to superlore MDX with dual-representation components, verifies the build + key pages with Playwright, and writes a post-migration summary doc with screenshots and per-item status. Use when someone wants to move / convert / port / migrate their docs to superlore, or says "migrate my Mintlify/Docusaurus/markdown docs to superlore"./superlore-releasePrepare best-in-class release notes for a superlore package, KB, or product — every time, the same way. Gathers what changed since the last release, classifies it (breaking / new / improved / fixed / security), writes developer-grade migration notes for breaking changes and usage notes for new features, decides whether the release is recommended to upgrade, scripts a 30–60s release reel, writes a dual-representation Release entry in the docs changelog, and cuts a GitHub Release that links back to that changelog. Use whenever someone says "cut a release", "prepare release notes", "what changed since the last version", "write the changelog entry", or "draft the GitHub release".Other plugins' skills for the same job