Set up the repo as a Notion-backed idea wiki. Do infrastructure only; do not create ideas.
Ask first.
If the user has not already provided it, ask for the Notion page URL to use as the wiki root.
Do not proceed until you have the root page URL.
Set up Notion.
- Read
README.md,AGENTS.md,docs/agent/notion-contract.md, andnotion.config.jsonif it exists. - Check whether
ntnexists withcommand -v ntnorntn --version. - If
ntnis missing, tell the user the Notion CLI is required. Ask before installing external software, then install with the official commandcurl -fsSL https://ntn.dev | bashwhen approved. - Run
ntn doctor. - If the CLI is not authenticated, run
ntn login. This should open the user's browser; ask the user to complete the browser approval and confirm the verification code. - If the environment is headless and
ntn loginprints a URL and poll command, show the URL/code to the user, then run the printed poll command after they approve in the browser. - Re-run
ntn doctorafter login. - Extract the page ID from the Notion URL and store it as the compact ID in
notion.config.json. - For a new wiki root, reset
pagesinnotion.config.jsonbefore seeding so old page IDs are not reused. - Set
modetonotion-cli, keepversion: 1, and storeroot_url,root_page_id,root_title, androot_emoji. - Run
scripts/notion_wiki.py seed --refresh-existingto createRaw,Shared,Wiki, andTemplates.
Finish.
- Run the ritual (
AGENTS.md§ Mechanics), plusscripts/notion_wiki.py ls. - Tell the user setup is complete and the next step is
/founder-profile. After that, use/new-ideato create the first idea.
Rules.
- Do not create idea pages during onboarding.
- If the root page title or icon cannot be read, default to
LLM Wikiand🧠. - The agent can start browser login, but the user must approve Notion access themselves.