The sk-cliKnowledge Base Dump

Knowledge Base Dump

Download SiteKnock's two-tier knowledge base so AI coding agents understand the kit and your project.

Why this matters

SiteKnock ships a two-tier knowledge base so AI coding agents — Copilot, Claude, Cursor, Windsurf, and others — can understand the kit and your specific project without you explaining everything by hand.

TierWhat it coversLives at
Common KBThe kit itself: every package, feature, and workflow.agent/siteknock-kb/ (workspace)
Project KBYour project: enabled apps, ports, features, languages, DB provider.agent/ + agent guide files (project)

Download the Common KB

The Common KB is a static, version-pinned set of focused topic files (auth flow, billing flow, scaffolding, deployment, UI components, and more). It matches your @siteknock/generator version and updates on kit upgrades.

# Default: dumps to <workspace>/.agent/siteknock-kb/
sk-cli kb dump

# Custom target directory
sk-cli kb dump --dir ~/.agent/siteknock-kb

# Overwrite existing files
sk-cli kb dump --force

# Resolve from a specific project's generator
sk-cli kb dump --project my-saas
FlagDescription
--dir <path>Target directory (default <workspace>/.agent/siteknock-kb/)
--project, -p <folder>Project to resolve the generator from
--forceOverwrite existing files

The dump writes all KB .md files plus index.json (a machine-readable file index). The chosen path and version are saved to sk-cli.json.

You can also download it from Studio → Workspace Manager → Download Common KB.

Download the Project KB

The Project KB is generated from your project's config and contains project-specific facts. Generate it from Studio (My Apps → project → Download AI Agent Guides) or from the project root:

sk-project add-agent-guides

This creates:

  • AGENTS.md, CLAUDE.md, GEMINI.md — entry points for each agent.
  • .github/copilot-instructions.md — project-specific rules, commands, and package reference.
  • .agent/ — working memory (history, memories, plans).

Re-run the Project KB download whenever your config changes — new features, new apps, or locale changes — so your agent always has current context.

Next steps