[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6K1VPY1QTTXJFKH7GPJP49V":3,"skill-same:01M6K1VPY1QTTXJFKH7GPJP49V":82},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":49,"ownerHtmlUrl":50,"ownerBlogUrl":51,"ownerDescription":52,"updatedAt":53,"install":54,"resources":67},"01M6K1VPY1QTTXJFKH7GPJP49V","notion-clone",null,"Repair and verify existing Gnosi Notion clones while preserving view tabs, deterministic IDs and edited content. Use for clone backfill, cleanup or exact schema\u002Fvalue comparison, not automatic live account access.","ismigar\u002FGnosi","ismigar","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6537880?v=4","01M6K1KJFJXCT6S4ATNXFRD1Y7","Ismael García","01M6K1KJM0CK16BDEYVZCV6949",2,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002Fismigar\u002FGnosi\u002Fblob\u002Fmain\u002Fpipeline\u002Fskills\u002Fnotion_clone\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"notion clone","clone","notion","repair","automatic","value","backfill","Existing","for","comparison","live","deterministic","schema","use","view","access","verify","ids","content","cleanup","2026-11-10 10:12:30",false,"---\nname: notion-clone\ndescription: Repair and verify existing Gnosi Notion clones while preserving view tabs, deterministic IDs and edited content. Use for clone backfill, cleanup or exact schema\u002Fvalue comparison, not automatic live account access.\n---\n\n# Skill: Notion Clone\n\nTools for exact Notion-to-Gnosi cloning and incremental repair of missing view\ntabs in existing clones.\n\n> ID: NOTION-CLONE-20260708\n> Stack: Gnosi's Python 3.11 environment with `httpx`, `yaml`, and a running backend\n\n## View-tab model\n\nNotion groups multiple table, board, or gallery views as **tabs** under one\nlinked-database block. MCP fetch returns every tab as\n`\u003Cview url>{json}\u003C\u002Fview>`. Clone v1 used `.search()` and kept only the first,\nreducing ten or thirteen tabs to one.\n\nThe corrected **anchor plus `tabs`** model keeps only the first view embed in\nthe page body as the anchor. Remaining views are created in the registry and\nreferenced from the anchor's `tabs` field. `DbViewEmbed` reads\n`anchorReg.tabs` and renders the group like Notion.\n\nThe `tabs` field passes through registry JSON because `ViewSection` uses\n`extra='allow'` and `update_view` merges by key. No data-model migration is\nrequired.\n\n## Scripts\n\n| Script | Use |\n|---|---|\n| [`scripts\u002Fbackfill_notion_views.py`](.\u002Fscripts\u002Fbackfill_notion_views.py) | Recover tabs 2 through N that clone v1 omitted without recloning or overwriting edited content |\n| [`scripts\u002Fverify_notion_table_exact.py`](.\u002Fscripts\u002Fverify_notion_table_exact.py) | Compare one live Notion database with its Gnosi clone schema and values |\n| [`scripts\u002Fcleanup_notion_views.py`](.\u002Fscripts\u002Fcleanup_notion_views.py) | Inspect and repair duplicate or misplaced cloned view embeds; review its dry-run output before applying |\n\n### `verify_notion_table_exact.py`\n\nThe verifier uses the configured Notion REST integration and the deterministic\nclone IDs. It compares property definitions and order, row IDs, structured\nvalues, and undeclared frontmatter keys. Relation wikilink labels are treated\nas storage decoration; the relation IDs must still match.\n\n```bash\nGNOSI_DATA_DIR=\"\u002Fpath\u002Fto\u002Fgnosi-data\" \\\nDIGITAL_BRAIN_VAULT_PATH=\"\u002Fpath\u002Fto\u002Fvault\" \\\n.venv\u002Fbin\u002Fpython pipeline\u002Fskills\u002Fnotion_clone\u002Fscripts\u002Fverify_notion_table_exact.py \\\n    --database-id \u003Cnotion-db-id> \\\n    --vault \"\u002Fpath\u002Fto\u002Fvault\"\n```\n\n### `backfill_notion_views.py`\n\nRequirements:\n\n- Native backend running on `uvicorn :5002`.\n- Connected Notion MCP integration through OAuth.\n- `GNOSI_DATA_DIR` pointing to Gnosi's configured data directory. Let the\n  integration manager resolve credentials; do not read a guessed secrets file.\n- An existing cloned vault on local disk. Cloud-synchronized folders must be\n  available locally regardless of whether the provider is OneDrive, Google\n  Drive, Nextcloud or another service; this is not a remote storage adapter.\n\nWorkflow:\n\n1. Scan Markdown files containing `gnosi-view:def`, excluding `.history`,\n   `.trash`, `Assets`, and other ignored directories.\n2. Map Vault pages back to Notion pages by enumerating IDs through\n   `import-config`, `query_database`, and the `search_pages` fallback.\n   `uuid5` is one-way.\n3. Fetch each page through MCP and call `build_clone_views` for every real tab,\n   excluding suggested charts.\n4. Reconcile state: keep only the anchor embed in the body, upsert every view\n   through `POST \u002Fviews`, assign `tabs` to the anchor, delete incorrect charts,\n   and remove stacked `gnosi-view:def` blocks through `PATCH \u002Fpages\u002F{id}`.\n\nIDs are deterministic, so the operation is idempotent. It is a dry run by\ndefault. Use `--apply` to write and `--state \u003Cjsonl>` to resume.\n\n```bash\n.venv\u002Fbin\u002Fpython pipeline\u002Fskills\u002Fnotion_clone\u002Fscripts\u002Fbackfill_notion_views.py \\\n    --vault-dir \u002Fpath\u002Fto\u002Fcloned-vault \\\n    --vault-id \u003Cvault-id> [--apply] [--only .Dashboards] [--state \u002Ftmp\u002Fstate.jsonl]\n```\n\nThe summary reports `pages`, `views_upserted`, `embeds_added`, `unmapped`,\n`mcp_empty`, `errors`, and `chart_views_deleted`.\n\nTests use synthetic provider responses and disposable vaults. A dry run can\nstill read the configured provider; do not run it against real accounts as a\ndocumentation check. Preserve opaque metadata and tab order when narrowing\ntypes; malformed traversed structures must fail before unsafe writes. Keep\nresume state outside source and review the operation before using `--apply`.\n","# Skill: Notion Clone\n\nTools for exact Notion-to-Gnosi cloning and incremental repair of missing view\ntabs in existing clones.\n\n> ID: NOTION-CLONE-20260708\n> Stack: Gnosi's Python 3.11 environment with `httpx`, `yaml`, and a running backend\n\n## View-tab model\n\nNotion groups multiple table, board, or gallery views as **tabs** under one\nlinked-database block. MCP fetch returns every tab as\n`\u003Cview url>{json}\u003C\u002Fview>`. Clone v1 used `.search()` and kept only the first,\nreducing ten or thirteen tabs to one.\n\nThe corrected **anchor plus `tabs`** model keeps only the first view embed in\nthe page body as the anchor. Remaining views are created in the registry and\nreferenced from the anchor's `tabs` field. `DbViewEmbed` reads\n`anchorReg.tabs` and renders the group like Notion.\n\nThe `tabs` field passes through registry JSON because `ViewSection` uses\n`extra='allow'` and `update_view` merges by key. No data-model migration is\nrequired.\n\n## Scripts\n\n| Script | Use |\n|---|---|\n| [`scripts\u002Fbackfill_notion_views.py`](.\u002Fscripts\u002Fbackfill_notion_views.py) | Recover tabs 2 through N that clone v1 omitted without recloning or overwriting edited content |\n| [`scripts\u002Fverify_notion_table_exact.py`](.\u002Fscripts\u002Fverify_notion_table_exact.py) | Compare one live Notion database with its Gnosi clone schema and values |\n| [`scripts\u002Fcleanup_notion_views.py`](.\u002Fscripts\u002Fcleanup_notion_views.py) | Inspect and repair duplicate or misplaced cloned view embeds; review its dry-run output before applying |\n\n### `verify_notion_table_exact.py`\n\nThe verifier uses the configured Notion REST integration and the deterministic\nclone IDs. It compares property definitions and order, row IDs, structured\nvalues, and undeclared frontmatter keys. Relation wikilink labels are treated\nas storage decoration; the relation IDs must still match.\n\n```bash\nGNOSI_DATA_DIR=\"\u002Fpath\u002Fto\u002Fgnosi-data\" \\\nDIGITAL_BRAIN_VAULT_PATH=\"\u002Fpath\u002Fto\u002Fvault\" \\\n.venv\u002Fbin\u002Fpython pipeline\u002Fskills\u002Fnotion_clone\u002Fscripts\u002Fverify_notion_table_exact.py \\\n    --database-id \u003Cnotion-db-id> \\\n    --vault \"\u002Fpath\u002Fto\u002Fvault\"\n```\n\n### `backfill_notion_views.py`\n\nRequirements:\n\n- Native backend running on `uvicorn :5002`.\n- Connected Notion MCP integration through OAuth.\n- `GNOSI_DATA_DIR` pointing to Gnosi's configured data directory. Let the\n  integration manager resolve credentials; do not read a guessed secrets file.\n- An existing cloned vault on local disk. Cloud-synchronized folders must be\n  available locally regardless of whether the provider is OneDrive, Google\n  Drive, Nextcloud or another service; this is not a remote storage adapter.\n\nWorkflow:\n\n1. Scan Markdown files containing `gnosi-view:def`, excluding `.history`,\n   `.trash`, `Assets`, and other ignored directories.\n2. Map Vault pages back to Notion pages by enumerating IDs through\n   `import-config`, `query_database`, and the `search_pages` fallback.\n   `uuid5` is one-way.\n3. Fetch each page through MCP and call `build_clone_views` for every real tab,\n   excluding suggested charts.\n4. Reconcile state: keep only the anchor embed in the body, upsert every view\n   through `POST \u002Fviews`, assign `tabs` to the anchor, delete incorrect charts,\n   and remove stacked `gnosi-view:def` blocks through `PATCH \u002Fpages\u002F{id}`.\n\nIDs are deterministic, so the operation is idempotent. It is a dry run by\ndefault. Use `--apply` to write and `--state \u003Cjsonl>` to resume.\n\n```bash\n.venv\u002Fbin\u002Fpython pipeline\u002Fskills\u002Fnotion_clone\u002Fscripts\u002Fbackfill_notion_views.py \\\n    --vault-dir \u002Fpath\u002Fto\u002Fcloned-vault \\\n    --vault-id \u003Cvault-id> [--apply] [--only .Dashboards] [--state \u002Ftmp\u002Fstate.jsonl]\n```\n\nThe summary reports `pages`, `views_upserted`, `embeds_added`, `unmapped`,\n`mcp_empty`, `errors`, and `chart_views_deleted`.\n\nTests use synthetic provider responses and disposable vaults. A dry run can\nstill read the configured provider; do not run it against real accounts as a\ndocumentation check. Preserve opaque metadata and tab order when narrowing\ntypes; malformed traversed structures must fail before unsafe writes. Keep\nresume state outside source and review the operation before using `--apply`.\n",{"name":5,"description":7},"main","ddf5fc580ae6656e98e3222889a9c49181664a45","pipeline\u002Fskills\u002Fnotion_clone",0,"https:\u002F\u002Fgithub.com\u002Fismigar\u002FGnosi","https:\u002F\u002Fgnosi.temenosismael.org","https:\u002F\u002Fgithub.com\u002Fismigar","https:\u002F\u002Ftemenosismael.org","💻 & 📚 Computer scientist & philosopher. Exploring the intersection of tech & philosophy for social change & the common good.","2026-11-15 01:43:32",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add ismigar\u002FGnosi --skill notion-clone",{"tool":60,"command":61},"bunx","bunx skills add ismigar\u002FGnosi --skill notion-clone",{"tool":63,"command":64},"pnpm","pnpm dlx skills add ismigar\u002FGnosi --skill notion-clone","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fismigar\u002FGnosi\u002Fblob\u002Fmain\u002Fpipeline\u002Fskills\u002Fnotion_clone\u002FSKILL.md",true,[68,74,78],{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"scripts\u002Fbackfill_notion_views.py","SCRIPT","脚本",20173,"https:\u002F\u002Fgithub.com\u002Fismigar\u002FGnosi\u002Fblob\u002Fmain\u002Fpipeline\u002Fskills\u002Fnotion_clone\u002Fscripts\u002Fbackfill_notion_views.py",{"path":75,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":76,"sourceHtmlUrl":77},"scripts\u002Fcleanup_notion_views.py",9818,"https:\u002F\u002Fgithub.com\u002Fismigar\u002FGnosi\u002Fblob\u002Fmain\u002Fpipeline\u002Fskills\u002Fnotion_clone\u002Fscripts\u002Fcleanup_notion_views.py",{"path":79,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":80,"sourceHtmlUrl":81},"scripts\u002Fverify_notion_table_exact.py",8081,"https:\u002F\u002Fgithub.com\u002Fismigar\u002FGnosi\u002Fblob\u002Fmain\u002Fpipeline\u002Fskills\u002Fnotion_clone\u002Fscripts\u002Fverify_notion_table_exact.py",[83,103,123,144,159,172],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":39},"01M6K1XMNQTR2Z9F0HV40M9CV6","zotero-sync-compatibility","Preserve the historical Zotero reference-table configuration path after Gnosi replaced bidirectional Zotero synchronization with its native reference manager.","https:\u002F\u002Fgithub.com\u002Fismigar\u002FGnosi\u002Fblob\u002Fmain\u002Fpipeline\u002Fskills\u002Fzotero_sync\u002FSKILL.md",[],[90,91,92,93,94,95,96,97,98,99,100,101,102],"sync","Zotero","compatibility","zotero sync compatibility","preserve","path","manager","with","native","configuration","reference","synchronization","table",{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":39},"01M6K1XE33SSY5RXR5D4S8Y4RV","zotero-schema","Generate Gnosi's Python and TypeScript item-type constants from the repository-pinned Zotero schema, or perform an explicitly requested pinned schema refresh. Use for mapping or generated-constant maintenance, not runtime downloads.","https:\u002F\u002Fgithub.com\u002Fismigar\u002FGnosi\u002Fblob\u002Fmain\u002Fpipeline\u002Fskills\u002Fzotero_schema\u002FSKILL.md",[],[91,31,110,111,112,113,114,115,27,116,117,118,119,32,120,121,122],"zotero schema","generate","python","typescript","constants","repository","mapping","type","runtime","maintenance","generated","refresh","downloads",{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":39},"01M6K1X9M6AKK8JTQJA9G37ZRP","vault-core","Preserve Gnosi vault identifiers, internal links and active-vault context during file or metadata changes. Use for vault integrity work, not blanket normalization or cleanup of user documents.","https:\u002F\u002Fgithub.com\u002Fismigar\u002FGnosi\u002Fblob\u002Fmain\u002Fpipeline\u002Fskills\u002Fvault_core\u002FSKILL.md",[],[130,131,132,133,94,134,27,135,136,32,137,138,139,140,141,38,142,143],"vault core","core","vault","integrity","changes","links","active","user","context","work","normalization","metadata","documents","file",{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":39},"01M6K1X4TE0YP62D789CJWZ4YY","translate-row","Translate configured table-row fields and Markdown into language children, updating existing translations in place. Use for the explicit translate-row action or maintenance of its provider adapters.","https:\u002F\u002Fgithub.com\u002Fismigar\u002FGnosi\u002Fblob\u002Fmain\u002Fpipeline\u002Fskills\u002Ftranslate_row\u002FSKILL.md",[],[151,152,153,119,26,27,154,155,136,156,157,32,102,158],"translate","translate row","fields","action","Adapters","language","provider","markdown",{"skillNo":160,"name":161,"nameZh":6,"description":162,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":163,"categories":164,"keywords":165,"publishedAt":39},"01M6K1X0G5C2E91RS71NMX0GHG","translate-page","Translate a Vault page title and Markdown body into language children, updating existing translations and preserving Gnosi directives. Use for the explicit translate-page action or Markdown segmentation maintenance.","https:\u002F\u002Fgithub.com\u002Fismigar\u002FGnosi\u002Fblob\u002Fmain\u002Fpipeline\u002Fskills\u002Ftranslate_page\u002FSKILL.md",[],[166,151,167,119,32,158,132,168,156,169,170,171,26,27,154,136],"page","translate page","segmentation","body","title","directives",{"skillNo":173,"name":174,"nameZh":6,"description":175,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":176,"categories":177,"keywords":178,"publishedAt":39},"01M6K1WSRJTN93ZY4VPNZ2BJW3","technical-documentation","Generate and validate Gnosi's engineering portal from reviewed guides and deterministic source catalogs. Use for source-traceable documentation updates and pre-PR gates; never translate generated catalogs with a model.","https:\u002F\u002Fgithub.com\u002Fismigar\u002FGnosi\u002Fblob\u002Fmain\u002Fpipeline\u002Fskills\u002Ftechnical_documentation\u002FSKILL.md",[],[179,180,181,182,183,27,184,97,185,30,186,32,120,187,188,111,189,190,151],"technical","technical documentation","documentation","gates","source","updates","guides","never","model","engineering","pr","validate"]