[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6K1VCHNVHMT101K80YFW78N":3,"skill-same:01M6K1VCHNVHMT101K80YFW78N":65},{"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":36,"linkOnly":37,"markdownContent":38,"markdownBody":39,"frontMatter":40,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":46,"ownerHtmlUrl":47,"ownerBlogUrl":48,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M6K1VCHNVHMT101K80YFW78N","mail-sync",null,"Maintain Gnosi's Gmail and IMAP synchronization into vault notes, preserving message identity, metadata and HTML companions. Use for mail sync or persistence regressions, not real account operations without authorization.","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\u002Fmail_sync\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],"sync","mail sync","mail","notes","metadata","persistence","authorization","vault","synchronization","operations","use","html","maintain","message","identity","for","gmail","2026-11-10 10:12:30",false,"---\nname: mail-sync\ndescription: Maintain Gnosi's Gmail and IMAP synchronization into vault notes, preserving message identity, metadata and HTML companions. Use for mail sync or persistence regressions, not real account operations without authorization.\n---\n\n# SKILL: Mail Sync\n\nThis skill is responsible for synchronizing emails (via IMAP or API) to the Gnosi Vault, converting them into Markdown notes with structured metadata.\n\n> ID: MAIL-SYNC-20260408\n> Entry point: `backend\u002Fdomains\u002Fmail\u002Froutes\u002Fmessages.py`\n> Status: ACTIVE\n\n---\n\n## 1. Current entry points\n\n`POST \u002Fapi\u002Fmail\u002Fsync` dispatches configured accounts through the integration\nmanager. IMAP accounts use `backend\u002Fservices\u002Fimap_mail_sync_service.py`; other\nsupported accounts use the Gmail service in\n`backend\u002Fservices\u002Fvault_mail_sync_service.py`. Blocking provider I\u002FO runs outside\nthe async event loop. Preserve the distinction between an empty sync and a\nfailed IMAP connection, including the existing failure response.\n\nThere is no standalone `sync_mail.py`. The old `imap_to_md.py` was retired after\nconsumer review and private historical preservation; it is not a current sync\nentry point. Do not execute it against real accounts or migrate its duplicate\nfiles as an incidental test. The source cleanup does not delete existing mail.\n\n## 2. Metadata Requirements (Crucial)\nFor a mail note to appear correctly in the Vault UI tables, it **MUST CONTAIN** the `database_table_id` field in the frontmatter.\n\n- **Table ID**: `mail` (check `vault_db_registry.json` if it changes).\n- **Consequence**: Without this ID, the note will be a \"ghost\" (it will exist on disk but not in the UI table).\n\n---\n\n## 3. File Generation (Technical Protocol)\n\n### Robust YAML Frontmatter\nEmails contain special characters (quotes, emojis, symbols) that invalidate YAML if generated manually with strings.\n\n- **GOLDEN RULE**: Always use the Python `yaml` library (`yaml.dump`) to generate the frontmatter.\n- **Implementation**:\n  ```python\n  import yaml\n  metadata = {\n      \"database_table_id\": \"mail\",\n      \"sender\": sender_email,\n      \"subject\": subject_text,\n      \"date\": formatted_date\n  }\n  frontmatter = \"---\\n\" + yaml.dump(metadata) + \"---\\n\"\n  ```\n\n### Configuration Management\n- Use explicit `backend.*` imports or relative package imports, not a generic `config` module or parent-directory discovery.\n- Resolve the active vault and credentials through existing backend services. Process variables precede local Gnosi configuration and an explicitly selected shared environment file. Never write shared credentials from this tool.\n\n---\n\n## 4. Verification\n\nDo not assume a universal `since_id`: Gmail message IDs and IMAP folder\u002FUID\nidentity have different persistence rules. Preserve each adapter's existing\ndeduplication, folders, read\u002Fstarred state, metadata and HTML companion behavior.\n\nUse fake provider responses and a disposable vault. Test repeated syncs,\nmalformed MIME\u002Fencoding, quotes and Unicode in YAML, empty mailboxes and failed\nconnections. Verify the resulting notes through the backend data engine and the\nmail UI. Actual account access is a separate user-authorized operation, never\npart of documentation generation or ordinary unit tests.\n\n---\n\n## 5. History and Learning (Learning Cycle)\n\n| Date | Error \u002F Learning | Root Cause | Solution \u002F Refinement |\n| --- | --- | --- | --- |\n| 2026-04-08 | Empty \u002F Ghost Tables | Missing `database_table_id` | Documented as a mandatory requirement in `SKILL.md`. |\n| 2026-04-08 | Invalid YAML | Failed manual escaping | Mandatory use of `yaml.dump`. |\n\n---\n*Maintenance: Provider support belongs in the backend adapters and integration\nmanager. Do not create a second mail pipeline or revive the removed script.*\n","# SKILL: Mail Sync\n\nThis skill is responsible for synchronizing emails (via IMAP or API) to the Gnosi Vault, converting them into Markdown notes with structured metadata.\n\n> ID: MAIL-SYNC-20260408\n> Entry point: `backend\u002Fdomains\u002Fmail\u002Froutes\u002Fmessages.py`\n> Status: ACTIVE\n\n---\n\n## 1. Current entry points\n\n`POST \u002Fapi\u002Fmail\u002Fsync` dispatches configured accounts through the integration\nmanager. IMAP accounts use `backend\u002Fservices\u002Fimap_mail_sync_service.py`; other\nsupported accounts use the Gmail service in\n`backend\u002Fservices\u002Fvault_mail_sync_service.py`. Blocking provider I\u002FO runs outside\nthe async event loop. Preserve the distinction between an empty sync and a\nfailed IMAP connection, including the existing failure response.\n\nThere is no standalone `sync_mail.py`. The old `imap_to_md.py` was retired after\nconsumer review and private historical preservation; it is not a current sync\nentry point. Do not execute it against real accounts or migrate its duplicate\nfiles as an incidental test. The source cleanup does not delete existing mail.\n\n## 2. Metadata Requirements (Crucial)\nFor a mail note to appear correctly in the Vault UI tables, it **MUST CONTAIN** the `database_table_id` field in the frontmatter.\n\n- **Table ID**: `mail` (check `vault_db_registry.json` if it changes).\n- **Consequence**: Without this ID, the note will be a \"ghost\" (it will exist on disk but not in the UI table).\n\n---\n\n## 3. File Generation (Technical Protocol)\n\n### Robust YAML Frontmatter\nEmails contain special characters (quotes, emojis, symbols) that invalidate YAML if generated manually with strings.\n\n- **GOLDEN RULE**: Always use the Python `yaml` library (`yaml.dump`) to generate the frontmatter.\n- **Implementation**:\n  ```python\n  import yaml\n  metadata = {\n      \"database_table_id\": \"mail\",\n      \"sender\": sender_email,\n      \"subject\": subject_text,\n      \"date\": formatted_date\n  }\n  frontmatter = \"---\\n\" + yaml.dump(metadata) + \"---\\n\"\n  ```\n\n### Configuration Management\n- Use explicit `backend.*` imports or relative package imports, not a generic `config` module or parent-directory discovery.\n- Resolve the active vault and credentials through existing backend services. Process variables precede local Gnosi configuration and an explicitly selected shared environment file. Never write shared credentials from this tool.\n\n---\n\n## 4. Verification\n\nDo not assume a universal `since_id`: Gmail message IDs and IMAP folder\u002FUID\nidentity have different persistence rules. Preserve each adapter's existing\ndeduplication, folders, read\u002Fstarred state, metadata and HTML companion behavior.\n\nUse fake provider responses and a disposable vault. Test repeated syncs,\nmalformed MIME\u002Fencoding, quotes and Unicode in YAML, empty mailboxes and failed\nconnections. Verify the resulting notes through the backend data engine and the\nmail UI. Actual account access is a separate user-authorized operation, never\npart of documentation generation or ordinary unit tests.\n\n---\n\n## 5. History and Learning (Learning Cycle)\n\n| Date | Error \u002F Learning | Root Cause | Solution \u002F Refinement |\n| --- | --- | --- | --- |\n| 2026-04-08 | Empty \u002F Ghost Tables | Missing `database_table_id` | Documented as a mandatory requirement in `SKILL.md`. |\n| 2026-04-08 | Invalid YAML | Failed manual escaping | Mandatory use of `yaml.dump`. |\n\n---\n*Maintenance: Provider support belongs in the backend adapters and integration\nmanager. Do not create a second mail pipeline or revive the removed script.*\n",{"name":5,"description":7},"main","ddf5fc580ae6656e98e3222889a9c49181664a45","pipeline\u002Fskills\u002Fmail_sync",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":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add ismigar\u002FGnosi --skill mail-sync",{"tool":57,"command":58},"bunx","bunx skills add ismigar\u002FGnosi --skill mail-sync",{"tool":60,"command":61},"pnpm","pnpm dlx skills add ismigar\u002FGnosi --skill mail-sync","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fismigar\u002FGnosi\u002Fblob\u002Fmain\u002Fpipeline\u002Fskills\u002Fmail_sync\u002FSKILL.md",true,[],[66,84,105,125,141,154],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":36},"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",[],[19,73,74,75,76,77,78,79,80,81,82,27,83],"Zotero","compatibility","zotero sync compatibility","preserve","path","manager","with","native","configuration","reference","table",{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":36},"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",[],[73,91,92,93,94,95,96,97,34,98,99,100,101,29,102,103,104],"schema","zotero schema","generate","python","typescript","constants","repository","mapping","type","runtime","maintenance","generated","refresh","downloads",{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":36},"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",[],[112,113,26,114,76,115,34,116,117,29,118,119,120,121,23,122,123,124],"vault core","core","integrity","changes","links","active","user","context","work","normalization","cleanup","documents","file",{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":36},"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",[],[132,133,134,101,135,34,136,137,117,138,139,29,83,140],"translate","translate row","fields","Existing","action","Adapters","language","provider","markdown",{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":36},"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",[],[148,132,149,101,29,140,26,150,138,151,152,153,135,34,136,117],"page","translate page","segmentation","body","title","directives",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":160,"publishedAt":36},"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",[],[161,162,163,164,165,34,166,79,167,168,169,29,102,170,171,93,172,173,132],"technical","technical documentation","documentation","gates","source","updates","guides","deterministic","never","model","engineering","pr","validate"]