[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72SX32N9STBRAMRK0610DDS":3,"skill-same:01M72SX32N9STBRAMRK0610DDS":56},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":38,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":6,"ownerDescription":41,"updatedAt":42,"install":43,"resources":55},"01M72SX32N9STBRAMRK0610DDS","migrate",null,"Universal migration from Obsidian, Notion, Logseq, markdown, CSV, JSON, Roam","ltdrew\u002FAgent-brain-2","ltdrew","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F173687628?v=4","01M72SVABERGYY99JQPNV3FTTN","Logan Drew","01M72SVABZHAN29CHRV66Y48B8",1,"MIT","https:\u002F\u002Fgithub.com\u002Fltdrew\u002FAgent-brain-2\u002Fblob\u002Ffeat\u002Fbrain-first-convention\u002Fskills\u002Fmigrate\u002FSKILL.md",[],[],"2026-11-10 22:39:42",false,"---\nname: migrate\ndescription: Universal migration from Obsidian, Notion, Logseq, markdown, CSV, JSON, Roam\ntriggers:\n  - \"migrate from\"\n  - \"import from obsidian\"\n  - \"import from notion\"\ntools:\n  - put_page\n  - search\n  - add_link\n  - add_tag\n  - sync_brain\nmutating: true\n---\n\n# Migrate Skill\n\nUniversal migration from any wiki, note tool, or brain system into GBrain.\n\n## Contract\n\n- Source data is never modified or deleted; migration is additive only.\n- Every migrated page is verified round-trip: written to gbrain, read back, spot-checked.\n- Cross-references from the source system (wikilinks, block refs, tags) are converted to gbrain equivalents.\n- Migration is tested on a sample (5-10 files) before bulk execution.\n- Post-migration health check confirms page count, link integrity, and embedding coverage.\n\n## Supported Sources\n\n| Source | Format | Strategy |\n|--------|--------|----------|\n| Obsidian | Markdown + `[[wikilinks]]` | Direct import, convert wikilinks to gbrain links |\n| Notion | Exported markdown or CSV | Parse Notion's export structure |\n| Logseq | Markdown with `((block refs))` | Convert block refs to page links |\n| Plain markdown | Any .md directory | Import directory into gbrain directly |\n| CSV | Tabular data | Map columns to frontmatter fields |\n| JSON | Structured data | Map keys to page fields |\n| Roam | JSON export | Convert block structure to pages |\n\n## Phases\n\n1. **Assess the source.** What format? How many files? What structure?\n2. **Plan the mapping.** How do source fields map to gbrain fields (type, title, tags, compiled_truth, timeline)?\n3. **Test with a sample.** Import 5-10 files, verify by reading them back from gbrain and exporting.\n4. **Bulk import.** Import the full directory into gbrain.\n5. **Verify.** Check gbrain health and statistics, spot-check pages.\n6. **Build links.** Extract cross-references from content and create typed links in gbrain.\n\n## Obsidian Migration\n\n1. Import the vault directory into gbrain (Obsidian vaults are markdown directories)\n2. Wire the graph with native wikilink support (v0.12.1+):\n\n   ```bash\n   gbrain extract links --source db --dry-run | head -20    # preview\n   gbrain extract links --source db                         # commit\n   ```\n\n   `extract links` natively parses `[[relative\u002Fpath]]` and `[[relative\u002Fpath|Display Text]]`\n   alongside standard `[text](page.md)` markdown syntax. Ancestor-search resolution handles\n   wiki KBs where authors omit one or more leading `..\u002F` prefixes. The `.md` suffix is\n   inferred automatically for wikilinks.\n\nObsidian-specific:\n- Tags (`#tag`) become gbrain tags\n- Frontmatter properties map to gbrain frontmatter\n- Attachments (images, PDFs) are noted but handled separately via file storage\n\n## Notion Migration\n\n1. Export from Notion: Settings > Export > Markdown & CSV\n2. Notion exports nested directories with UUIDs in filenames\n3. Strip UUIDs from filenames for clean slugs\n4. Map Notion's database properties to frontmatter\n5. Import the cleaned directory into gbrain\n\n## CSV Migration\n\nFor tabular data (e.g., CRM exports, contact lists):\n1. For each row in the CSV, create a page with column values as frontmatter\n2. Use a designated column as the slug (e.g., name)\n3. Use another column as compiled_truth (e.g., notes)\n4. Store each page in gbrain\n\n## Verification\n\nAfter any migration:\n1. Check gbrain statistics to verify page count matches source\n2. Check gbrain health for orphans and missing embeddings\n3. Export pages from gbrain for round-trip verification\n4. Spot-check 5-10 pages by reading them from gbrain\n5. Test search: search gbrain for \"someone you know is in the data\"\n\n## Anti-Patterns\n\n- **Bulk import without sample test.** Never import the full dataset before verifying with 5-10 files. The cost of cleaning up hundreds of bad pages is enormous.\n- **Destroying source data.** Migration is additive. Never modify, move, or delete the source files.\n- **Ignoring cross-references.** Wikilinks, block refs, and tags from the source system must be converted to gbrain equivalents. Dropping them loses the knowledge graph.\n- **Skipping verification.** A migration without post-import health check, page count comparison, and spot-check reads is incomplete.\n\n## Output Format\n\n```\nMIGRATION REPORT -- [source] -> GBrain\n=======================================\n\nSource: [format] ([file count] files, [size])\nMapping: [field mapping summary]\n\nSample Test (N files):\n- Imported: N\u002FN\n- Round-trip verified: N\u002FN\n- Cross-refs converted: N\n\nBulk Import:\n- Total imported: N\n- Skipped (duplicates\u002Ferrors): N\n- Links created: N\n- Tags migrated: N\n\nVerification:\n- Page count match: [yes\u002Fno]\n- Health check: [pass\u002Ffail]\n- Search test: [query] -> [result count] hits\n```\n\n## Tools Used\n\n- Store\u002Fupdate pages in gbrain (put_page)\n- Read pages from gbrain (get_page)\n- Link entities in gbrain (add_link)\n- Tag pages in gbrain (add_tag)\n- Get gbrain statistics (get_stats)\n- Check gbrain health (get_health)\n- Search gbrain (query)\n","# Migrate Skill\n\nUniversal migration from any wiki, note tool, or brain system into GBrain.\n\n## Contract\n\n- Source data is never modified or deleted; migration is additive only.\n- Every migrated page is verified round-trip: written to gbrain, read back, spot-checked.\n- Cross-references from the source system (wikilinks, block refs, tags) are converted to gbrain equivalents.\n- Migration is tested on a sample (5-10 files) before bulk execution.\n- Post-migration health check confirms page count, link integrity, and embedding coverage.\n\n## Supported Sources\n\n| Source | Format | Strategy |\n|--------|--------|----------|\n| Obsidian | Markdown + `[[wikilinks]]` | Direct import, convert wikilinks to gbrain links |\n| Notion | Exported markdown or CSV | Parse Notion's export structure |\n| Logseq | Markdown with `((block refs))` | Convert block refs to page links |\n| Plain markdown | Any .md directory | Import directory into gbrain directly |\n| CSV | Tabular data | Map columns to frontmatter fields |\n| JSON | Structured data | Map keys to page fields |\n| Roam | JSON export | Convert block structure to pages |\n\n## Phases\n\n1. **Assess the source.** What format? How many files? What structure?\n2. **Plan the mapping.** How do source fields map to gbrain fields (type, title, tags, compiled_truth, timeline)?\n3. **Test with a sample.** Import 5-10 files, verify by reading them back from gbrain and exporting.\n4. **Bulk import.** Import the full directory into gbrain.\n5. **Verify.** Check gbrain health and statistics, spot-check pages.\n6. **Build links.** Extract cross-references from content and create typed links in gbrain.\n\n## Obsidian Migration\n\n1. Import the vault directory into gbrain (Obsidian vaults are markdown directories)\n2. Wire the graph with native wikilink support (v0.12.1+):\n\n   ```bash\n   gbrain extract links --source db --dry-run | head -20    # preview\n   gbrain extract links --source db                         # commit\n   ```\n\n   `extract links` natively parses `[[relative\u002Fpath]]` and `[[relative\u002Fpath|Display Text]]`\n   alongside standard `[text](page.md)` markdown syntax. Ancestor-search resolution handles\n   wiki KBs where authors omit one or more leading `..\u002F` prefixes. The `.md` suffix is\n   inferred automatically for wikilinks.\n\nObsidian-specific:\n- Tags (`#tag`) become gbrain tags\n- Frontmatter properties map to gbrain frontmatter\n- Attachments (images, PDFs) are noted but handled separately via file storage\n\n## Notion Migration\n\n1. Export from Notion: Settings > Export > Markdown & CSV\n2. Notion exports nested directories with UUIDs in filenames\n3. Strip UUIDs from filenames for clean slugs\n4. Map Notion's database properties to frontmatter\n5. Import the cleaned directory into gbrain\n\n## CSV Migration\n\nFor tabular data (e.g., CRM exports, contact lists):\n1. For each row in the CSV, create a page with column values as frontmatter\n2. Use a designated column as the slug (e.g., name)\n3. Use another column as compiled_truth (e.g., notes)\n4. Store each page in gbrain\n\n## Verification\n\nAfter any migration:\n1. Check gbrain statistics to verify page count matches source\n2. Check gbrain health for orphans and missing embeddings\n3. Export pages from gbrain for round-trip verification\n4. Spot-check 5-10 pages by reading them from gbrain\n5. Test search: search gbrain for \"someone you know is in the data\"\n\n## Anti-Patterns\n\n- **Bulk import without sample test.** Never import the full dataset before verifying with 5-10 files. The cost of cleaning up hundreds of bad pages is enormous.\n- **Destroying source data.** Migration is additive. Never modify, move, or delete the source files.\n- **Ignoring cross-references.** Wikilinks, block refs, and tags from the source system must be converted to gbrain equivalents. Dropping them loses the knowledge graph.\n- **Skipping verification.** A migration without post-import health check, page count comparison, and spot-check reads is incomplete.\n\n## Output Format\n\n```\nMIGRATION REPORT -- [source] -> GBrain\n=======================================\n\nSource: [format] ([file count] files, [size])\nMapping: [field mapping summary]\n\nSample Test (N files):\n- Imported: N\u002FN\n- Round-trip verified: N\u002FN\n- Cross-refs converted: N\n\nBulk Import:\n- Total imported: N\n- Skipped (duplicates\u002Ferrors): N\n- Links created: N\n- Tags migrated: N\n\nVerification:\n- Page count match: [yes\u002Fno]\n- Health check: [pass\u002Ffail]\n- Search test: [query] -> [result count] hits\n```\n\n## Tools Used\n\n- Store\u002Fupdate pages in gbrain (put_page)\n- Read pages from gbrain (get_page)\n- Link entities in gbrain (add_link)\n- Tag pages in gbrain (add_tag)\n- Get gbrain statistics (get_stats)\n- Check gbrain health (get_health)\n- Search gbrain (query)\n",{"name":5,"tools":24,"mutating":30,"triggers":31,"description":7},[25,26,27,28,29],"put_page","search","add_link","add_tag","sync_brain",true,[32,33,34],"migrate from","import from obsidian","import from notion","feat\u002Fbrain-first-convention","f3dace916c3845569f26904591b95baf00237bf8","skills\u002Fmigrate",0,"https:\u002F\u002Fgithub.com\u002Fltdrew\u002FAgent-brain-2","https:\u002F\u002Fgithub.com\u002Fltdrew","Account 2","2026-05-13 07:52:42",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":30},[45,48,51],{"tool":46,"command":47},"npx","npx skills add ltdrew\u002FAgent-brain-2 --skill migrate",{"tool":49,"command":50},"bunx","bunx skills add ltdrew\u002FAgent-brain-2 --skill migrate",{"tool":52,"command":53},"pnpm","pnpm dlx skills add ltdrew\u002FAgent-brain-2 --skill migrate","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fltdrew\u002FAgent-brain-2\u002Fblob\u002Ffeat\u002Fbrain-first-convention\u002Fskills\u002Fmigrate\u002FSKILL.md",[],[57,64,71,78,85,92],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M72SYQK7HQ98AEY8Z8DBT3C0","signal-detector","Always-on ambient signal capture for the OpenClaw reference fixture.","https:\u002F\u002Fgithub.com\u002Fltdrew\u002FAgent-brain-2\u002Fblob\u002Ffeat\u002Fbrain-first-convention\u002Ftest\u002Ffixtures\u002Fopenclaw-reference-minimal\u002Fskills\u002Fsignal-detector\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M72SYPHM4TDK6ZRV4NWAGC3D","query","Look up brain pages in the OpenClaw reference fixture.","https:\u002F\u002Fgithub.com\u002Fltdrew\u002FAgent-brain-2\u002Fblob\u002Ffeat\u002Fbrain-first-convention\u002Ftest\u002Ffixtures\u002Fopenclaw-reference-minimal\u002Fskills\u002Fquery\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M72SYN2J4BGSFS613D80AJQX","context-now","ALWAYS-ON time-sensitivity discipline for the OpenClaw reference fixture.","https:\u002F\u002Fgithub.com\u002Fltdrew\u002FAgent-brain-2\u002Fblob\u002Ffeat\u002Fbrain-first-convention\u002Ftest\u002Ffixtures\u002Fopenclaw-reference-minimal\u002Fskills\u002Fcontext-now\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M72SYKY67RCNH8VH9R2N0ZZV","brain-ops","Core read\u002Fwrite cycle for the OpenClaw reference fixture.","https:\u002F\u002Fgithub.com\u002Fltdrew\u002FAgent-brain-2\u002Fblob\u002Ffeat\u002Fbrain-first-convention\u002Ftest\u002Ffixtures\u002Fopenclaw-reference-minimal\u002Fskills\u002Fbrain-ops\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M72SYHEMGTDRWSERJWZR0XE2","webhook-transforms","Generic framework for converting external events (SMS, meetings, social mentions)\ninto brain-ingestible signals. Define a transform function, register a webhook URL,\nand incoming events get processed through the brain pipeline.","https:\u002F\u002Fgithub.com\u002Fltdrew\u002FAgent-brain-2\u002Fblob\u002Ffeat\u002Fbrain-first-convention\u002Fskills\u002Fwebhook-transforms\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M72SYEE2B8F47TN01CAGQ4JG","testing","Skill validation framework. Validates every skill has SKILL.md with frontmatter,\nevery reference exists, every env var is declared. The testing contract for the\nskill system itself.","https:\u002F\u002Fgithub.com\u002Fltdrew\u002FAgent-brain-2\u002Fblob\u002Ffeat\u002Fbrain-first-convention\u002Fskills\u002Ftesting\u002FSKILL.md",[],[]]