Docs / How it works

Skill and knowledge base: deploy a ready project into Notion

Status: skill and knowledge pack built; the core modules have been deployed to a scratch page through the Notion MCP, and the pack's schemas and views diff clean against the live CRMs (decision 0019). Owner acceptance and the token-backed read-back are open in the owner's plan.

Goal

A local skill plus a local knowledge pack from which a workflow agent, using only the Notion MCP, builds a project's CRM in a Notion teamspace by itself: databases, properties, relations, views, Help pages. No Hub installer, no human clicking. A future client who deploys our workflow gets a working Notion project from one run of project-setup.

What exists now

Design

  1. Knowledge pack as markdown, schema as the pack's tables. The agent reads tables, not JSON. Machine-readable JSON per database (schema/*.json) and per view (views/*.json) is generated from the live databases (all 14) and wins over the tables; the tables carry meaning and rules.
  2. Idempotency key: a database is found by (1) the id in project.md, (2) a first description line deploy-id: <slug>/<db> under the parent, (3) the same title under the parent (asked once, never adopted silently). No hidden property is added to the schema.
  3. Dry run first: the plan lists CREATE / ADD / SKIP (with the trap number) / exists / differs and creates nothing until the owner says go; it covers only the printed plan.
  4. Add only: a property, an option, a relation, a view. Differences that need a change or removal are reported. Rows are never touched. Delete and move tools are not in the skill's allow-list.
  5. Write-back: after each database the data source id goes into project.md ## Notion databases; decisions go into ## Answers.
  6. Interview: the core module list (Clients, Leads, Tasks, Documents) needs no questions; the skill asks once about optional modules and the vertical (real estate) options, defaults core and generic. project-setup step 3.3 calls this skill when the project's Notion has no databases.
  7. Verify: the inventory is run again (0 missing), notion-dump check reads each database through the integration, two dumps hash identically, a second plan is empty except SKIP lines.

Known limits (traps, in the skill's checklist and 10-api-traps.md)

Drift check

The pack follows the live CRM (decision 0019). Each inventory run saves the live data-source schema and runs notion-dump diff <slug> --live <file>; differences are fixed in schema/*.json (aliases, optional, contract), never in the live Notion. The leads contract is 21-leads.md.

Source: @docs/core/15-notion-project-deploy-skill.md