context new
The new command scaffolds a new data product — an OSI model with companion governance and rules files — inside your existing project.
context new <name>Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
name | Name for the data product (e.g. sales-analytics, inventory) |
Options
Section titled “Options”| Option | Description | Default |
|---|---|---|
--source <name> | Bind to a named data source from contextkit.config.yaml | — |
--context-dir <path> | Path to context directory | context/ |
Examples
Section titled “Examples”Scaffold a new data product
Section titled “Scaffold a new data product”context new sales-analyticsCreates:
context/├── models/sales-analytics.osi.yaml├── governance/sales-analytics.governance.yaml├── governance/sales-analytics.rules.yaml└── owners/default-team.owner.yamlBind to a specific data source
Section titled “Bind to a specific data source”context new inventory --source warehouseThe scaffolded model includes a data_source: warehouse reference matching your config:
data_sources: warehouse: adapter: postgres connection: postgres://localhost:5432/warehouseMultiple data products
Section titled “Multiple data products”A single ContextKit project can contain multiple data products. Each is an independent model with its own governance, rules, and tier score:
context new sales-analytics --source crmcontext new inventory --source warehousecontext new marketing-attribution --source analytics-dbAll data products compile together and are served through the same MCP server. Run context tier to see the scorecard for each, or context blueprint to export their AI Blueprints.
Next steps
Section titled “Next steps”- Populate from a database:
context introspect --db <url> - Auto-fill descriptions:
context enrich --target silver --apply - Check progress:
context tier - Export the AI Blueprint:
context blueprint