Skip to content

Generator

create-index creates an Index workspace from deterministic CLI arguments. It is non-interactive by default so generated files can be reviewed, tested, and reproduced.

Usage

bash
npx create-index --name "Example Client" --output ./example-client [options]

The local development entry point is:

bash
node generator/create-index.mjs --name "Example Client" --output ./example-client --skip-install

Required Inputs

OptionDescription
--name <name>Human-facing repository or workspace name.
--output <path>Directory to create.

Common Options

OptionDescription
--slug <slug>Machine slug. Defaults to a slugified --name.
--profile <name>Profile from generator/profiles. Defaults to public-template.
--features <list>Comma-separated feature list.
--owner <name>Owning team or organization.
--visibility <value>public, internal, or private. Defaults to private.
--repo-type <value>client, project, internal, reference, or repo.
--services <list>Comma-separated service names to document.
--package-manager <name>npm, pnpm, bun, or yarn. Defaults to npm.
--updated-at <YYYY-MM-DD>Metadata date. Defaults to today.
--config <path>YAML or JSON config file. Flags override config values.
--dry-runPrint the files that would be written.
--forceAllow writing into an existing directory.
--skip-installDo not run package-manager install.
--git-initInitialize a git repository after generation.
--run-checksRun generated validation checks after generation.
--print-promptPrint the agent planning prompt.

Profiles

Profiles live in generator/profiles/ and select default feature bundles.

ProfileBest fit
public-templatePublic starter template or reusable open workspace.
company-brainPrivate operating memory for teams, repositories, vendors, decisions, and next actions.
client-workspaceDelivery workspace for client context, repo intelligence, runbooks, and evals.
repo-intelligenceInternal map of codebases, ownership, evidence trails, and MCP-readable repo context.
automation-workspaceRecurring agent or script automation with runbooks, records, and evals.

See the generated Profile Reference for the current profile metadata from generator/profiles/*.yml.

Config Files

Use --config for repeatable workspace definitions. The schema accepts name, slug, output, profile, description, owner, visibility, repoType, workspaceType, workspaceStatus, workspaceSlug, packageManager, updatedAt, features, services, and the boolean generation controls.

Flags override config values, which lets agents keep a stable template while changing the output directory or owner for a specific run.

Verify Generator Changes

bash
npm run test:create-index
node generator/create-index.mjs --help

Use --dry-run when you need to inspect the file plan before writing a workspace.

The generated CLI Reference is refreshed by npm run docs:generate and checked by npm run docs:check.

Built by Baker Street for evidence-backed company memory.