Setup worker
You receive one task block per input. Do exactly that task, then finish with a
single line SETUP_RESULT: {json}.
Access
Use only NyxID's published operations, through the bundled
scripts/notion_hub.py (copy it into the workspace and run it with python3):
hub, verify, append build and check the Notion hub with the owner's
Notion connection ({NOTION_SERVICE}__notion_create_database,
__notion_create_page, __notion_append_block_children,
__notion_list_block_children, __notion_retrieve_database).
call TOOL --args JSON|@file runs any other published operation, for example
api-firecrawl__scrape or tools-firecrawl__search, and prints its result.
The script uses nyxid mcp call when available and otherwise NyxID's MCP
endpoint with the sandbox's NyxID credential. When NyxID's MCP endpoint refuses
that credential (CMA sandboxes reach NyxID through a local broker), the script
runs the same published operations, exactly as NyxID's MCP config lists them,
through nyxid proxy request; this is expected, not an error. Never write your
own proxy requests, use other credentials or other connections, and never touch
pages outside PARENT_PAGE_ID. The script is idempotent (reuses pages and
databases with the same title, never deletes) and prints one JSON line; on
failure it prints the error. Include that error text in SETUP_RESULT
problems; never discard an error. If an operation is refused or missing,
stop and report it.
TASK notion-hub
- Write RULES from the task block to
rules.json (keys listed in the script
docstring; add business and timezone).
- Run
python3 notion_hub.py hub --service {NOTION_SERVICE} --parent {PARENT_PAGE_ID} --modules {MODULES} --rules rules.json.
- If it fails on a transient network error, run it again (it is safe to repeat).
If it fails on a Notion or NyxID error, stop and report it. A reused
database with missing properties is reported in
problems, not altered.
- Run
python3 notion_hub.py verify ... and include its schema problems.
- Result:
{"task":"notion-hub","faq_page_id":...,"rules_page_id":..., "queue_db_id":...,"reservations_db_id":...,"reused":[...],"problems":[...]}.
TASK faq-research
Follow references/faq-research.md (Firecrawl for every web read). Write the
finished customer-facing FAQ as markdown (only ## , - and plain lines) to
faq.md, then run python3 notion_hub.py append --service {NOTION_SERVICE} --page {FAQ_PAGE_ID} --markdown faq.md. Result: {"task":"faq-research","sections_written":[...], "open_questions":n,"sources":n,"unreadable_sources":[...],"problems":[...]}.
Also include the "Open questions for owner" list in your final message so the
owner can answer them.
1---2name: nyxid-business-setup-worker3description: CMA worker procedure for nyxid-business-starter. Use when a task block starts with TASK notion-hub or TASK faq-research. Builds a small business's Notion hub (FAQ page, Bot rules page, Queue and Reservations databases) under a parent page with the bundled notion_hub.py script, or researches the business from official sources, the menu and its Google listing and appends a sourced FAQ. Ends with a SETUP_RESULT JSON line. Never contacts customers.4version: "1.5"5metadata:6 source: https://skillmd.com/skills/chronoaiproject/nyxid-business-setup-worker7 category: mixed8 output-type: text9 runtime:10 - python311 tool-list:12 - nyx__call_tool13 - nyx__search_tools14 tag:15 - cma16 - notion17 - small-business18 - faq19---2021# Setup worker2223You receive one task block per input. Do exactly that task, then finish with a24single line `SETUP_RESULT: {json}`.2526## Access2728Use only NyxID's published operations, through the bundled29`scripts/notion_hub.py` (copy it into the workspace and run it with python3):3031- `hub`, `verify`, `append` build and check the Notion hub with the owner's32 Notion connection (`{NOTION_SERVICE}__notion_create_database`,33 `__notion_create_page`, `__notion_append_block_children`,34 `__notion_list_block_children`, `__notion_retrieve_database`).35- `call TOOL --args JSON|@file` runs any other published operation, for example36 `api-firecrawl__scrape` or `tools-firecrawl__search`, and prints its result.3738The script uses `nyxid mcp call` when available and otherwise NyxID's MCP39endpoint with the sandbox's NyxID credential. When NyxID's MCP endpoint refuses40that credential (CMA sandboxes reach NyxID through a local broker), the script41runs the same published operations, exactly as NyxID's MCP config lists them,42through `nyxid proxy request`; this is expected, not an error. Never write your43own proxy requests, use other credentials or other connections, and never touch44pages outside PARENT_PAGE_ID. The script is idempotent (reuses pages and45databases with the same title, never deletes) and prints one JSON line; on46failure it prints the error. Include that error text in SETUP_RESULT47`problems`; never discard an error. If an operation is refused or missing,48stop and report it.4950## TASK notion-hub51521. Write RULES from the task block to `rules.json` (keys listed in the script53 docstring; add `business` and `timezone`).542. Run `python3 notion_hub.py hub --service {NOTION_SERVICE} --parent55 {PARENT_PAGE_ID} --modules {MODULES} --rules rules.json`.563. If it fails on a transient network error, run it again (it is safe to repeat).57 If it fails on a Notion or NyxID error, stop and report it. A reused58 database with missing properties is reported in `problems`, not altered.594. Run `python3 notion_hub.py verify ...` and include its schema problems.605. Result: `{"task":"notion-hub","faq_page_id":...,"rules_page_id":...,61 "queue_db_id":...,"reservations_db_id":...,"reused":[...],"problems":[...]}`.6263## TASK faq-research6465Follow references/faq-research.md (Firecrawl for every web read). Write the66finished customer-facing FAQ as markdown (only `## `, `- ` and plain lines) to67`faq.md`, then run `python3 notion_hub.py append --service {NOTION_SERVICE}68--page {FAQ_PAGE_ID} --markdown faq.md`. Result: `{"task":"faq-research","sections_written":[...],69"open_questions":n,"sources":n,"unreadable_sources":[...],"problems":[...]}`.70Also include the "Open questions for owner" list in your final message so the71owner can answer them.