[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7573Y1D87EQRGKAKA0JS658":3,"skill-same:01M7573Y1D87EQRGKAKA0JS658":64},{"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":44,"commitSha":45,"skillDirectory":46,"forksCount":14,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":63},"01M7573Y1D87EQRGKAKA0JS658","brain-ops",null,"Brain knowledge base operations. The core read\u002Fwrite cycle: brain-first lookup,\nread-enrich-write loop, source attribution, ambient enrichment, back-linking.\nRead this before any brain interaction.","Ninatuzi\u002Fgbrain","Ninatuzi","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F234898825?v=4","01M75736J1JJ7Y7ES4AF751XC7","Nina","01M75736K5D98W2SRJ696K7992",0,"MIT","https:\u002F\u002Fgithub.com\u002FNinatuzi\u002Fgbrain\u002Fblob\u002Fdocs\u002Fmerge-phantoms-design\u002Fskills\u002Fbrain-ops\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: brain-ops\nversion: 1.0.0\ndescription: |\n  Brain knowledge base operations. The core read\u002Fwrite cycle: brain-first lookup,\n  read-enrich-write loop, source attribution, ambient enrichment, back-linking.\n  Read this before any brain interaction.\ntriggers:\n  - any brain read\u002Fwrite\u002Flookup\u002Fcitation\ntools:\n  - search\n  - query\n  - get_page\n  - put_page\n  - add_link\n  - add_timeline_entry\n  - get_backlinks\n  - sync_brain\nmutating: true\nwrites_pages: true\nwrites_to:\n  - people\u002F\n  - companies\u002F\n  - deals\u002F\n  - concepts\u002F\n  - meetings\u002F\n---\n\n# Brain Operations — The Ambient Context Layer\n\nThe brain is not an archive. It is a live context membrane that every interaction\nflows through in both directions.\n\n> **Convention:** See `skills\u002Fconventions\u002Fbrain-first.md` for the 5-step lookup protocol.\n> **Convention:** See `skills\u002Fconventions\u002Fquality.md` for citation and back-link rules.\n\n## Contract\n\nThis skill guarantees:\n- Brain is checked BEFORE any external API call (brain-first lookup)\n- Every inbound signal triggers the READ → ENRICH → WRITE loop\n- Every outbound response checks brain for relevant context\n- Source attribution on every fact written (inline `[Source: ...]` citations)\n- User's direct statements are highest-authority data\n- Back-links maintained on every brain write (Iron Law)\n\n## Iron Law: Back-Linking (MANDATORY)\n\nEvery mention of a person or company with a brain page MUST create a back-link\nFROM that entity's page TO the page mentioning them. An unlinked mention is a\nbroken brain. See `skills\u002Fconventions\u002Fquality.md` for format.\n\n## Phases\n\n### Phase 1: Brain-First Lookup (MANDATORY)\n\nBefore using ANY external API to research a person, company, or topic:\n\n1. `gbrain search \"name\"` — keyword search for existing pages\n2. `gbrain query \"natural question about name\"` — hybrid search for context\n3. `gbrain get \u003Cslug>` — if you know the slug, read the full page\n4. Check backlinks: who references this entity?\n5. Check timeline: recent events involving this entity\n\nThe brain almost always has something. External APIs fill gaps, not start from scratch.\n\n### Phase 2: On Every Inbound Signal (READ → ENRICH → WRITE)\n\nEvery message, meeting, email, or conversation that references a person or company:\n\n1. **Detect entities** — people, companies, deals mentioned\n2. **Load brain pages** — read existing pages for context before responding\n3. **Identify new information** — what does this signal tell us that the page doesn't know?\n4. **Write it back** — update the brain page with new info + timeline entry + source citation\n5. **Create if missing** — if notable and no page exists, create via enrich skill\n\n**User's direct statements are the highest-value data source.** Write them to brain\npages immediately with attribution `[Source: User, YYYY-MM-DD]`.\n\n### Phase 2.5: Structured Graph Updates (automatic)\n\nEvery `put_page` call automatically extracts entity references and writes them\nto the graph (`links` table) with inferred relationship types. Stale links\n(refs no longer in the page text) are removed in the same call. This is\n\"auto-link\" reconciliation.\n\n- No manual `add_link` calls needed for ordinary page writes.\n- Inferred link types: `attended` (meeting -> person), `works_at`, `invested_in`,\n  `founded`, `advises`, `source` (frontmatter), `mentions` (default).\n- The `put_page` MCP response includes `auto_links: { created, removed, errors }`\n  so the agent can verify outcomes.\n- To disable: `gbrain config set auto_link false`. Default is on.\n- Timeline entries with specific dates still need explicit `gbrain timeline-add`\n  (or batch via `gbrain extract timeline --source db`).\n\n### Phase 3: On Every Outbound Response (READ → PULL → RESPOND)\n\nBefore answering any question about a person, company, or topic:\n\n1. **Check the brain** — read relevant pages\n2. **Pull context** — use compiled truth + recent timeline\n3. **Respond with context** — the brain makes every answer better\n\nDon't answer from general knowledge when a brain page exists.\n\n### Phase 4: Ambient Enrichment\n\nThis is not a special mode. This is the default. Everything the user says is an\ningest event.\n\n- Person mentioned → check brain, create\u002Fenrich if needed (spawn background)\n- Company mentioned → same\n- Link shared → ingest it (delegate to idea-ingest)\n- Data shared → delegate to appropriate skill\n\n**Rules:**\n- Never interrupt the conversation to do enrichment\n- Spawn sub-agents for anything that would slow down the response\n- Never announce \"I'm enriching the brain\" — just do it silently\n\n## Output Format\n\nNo separate output. Brain-ops is an always-on behavior layer, not a report generator.\nThe output is updated brain pages and enriched responses.\n\n## Cross-source citation format (v0.18.0+)\n\nWhen a brain has multiple sources (wiki, gstack, yc-media, etc.), every\ncitation MUST include the source id: `[source-id:slug]`. Example:\n\n> You told me about the retry budget approach — see\n> [wiki:topics\u002Fresilience] and [gstack:plans\u002Fretry-policy] for where\n> this came from.\n\nRules:\n- The key is `sources.id` (immutable), never `sources.name` (mutable display).\n- Single-source brains still write `[default:slug]` OR may omit the prefix\n  for backward compat.\n- Every page payload returned by `search`, `query`, `get_page`, `list_pages`\n  carries `source_id` — always use it when citing, never guess.\n\nIf a search result has `source_id: \"gstack\"` and `slug: \"plans\u002Ffoo\"`,\nthe citation is `[gstack:plans\u002Ffoo]`. That's the whole rule.\n\n## Anti-Patterns\n\n- Answering questions about people\u002Fcompanies without checking the brain first\n- Using external APIs before checking the brain\n- Writing facts without inline `[Source: ...]` citations\n- Blocking the response to do enrichment\n- Overwriting user's direct statements with lower-authority sources\n- Creating brain pages for non-notable entities\n\n## Tools Used\n\n- `search` — keyword search\n- `query` — hybrid vector+keyword search\n- `get_page` — read a brain page\n- `put_page` — create\u002Fupdate brain pages\n- `add_link` — cross-reference entities\n- `add_timeline_entry` — record events\n- `get_backlinks` — check who references an entity\n- `sync_brain` — sync changes to the index\n","# Brain Operations — The Ambient Context Layer\n\nThe brain is not an archive. It is a live context membrane that every interaction\nflows through in both directions.\n\n> **Convention:** See `skills\u002Fconventions\u002Fbrain-first.md` for the 5-step lookup protocol.\n> **Convention:** See `skills\u002Fconventions\u002Fquality.md` for citation and back-link rules.\n\n## Contract\n\nThis skill guarantees:\n- Brain is checked BEFORE any external API call (brain-first lookup)\n- Every inbound signal triggers the READ → ENRICH → WRITE loop\n- Every outbound response checks brain for relevant context\n- Source attribution on every fact written (inline `[Source: ...]` citations)\n- User's direct statements are highest-authority data\n- Back-links maintained on every brain write (Iron Law)\n\n## Iron Law: Back-Linking (MANDATORY)\n\nEvery mention of a person or company with a brain page MUST create a back-link\nFROM that entity's page TO the page mentioning them. An unlinked mention is a\nbroken brain. See `skills\u002Fconventions\u002Fquality.md` for format.\n\n## Phases\n\n### Phase 1: Brain-First Lookup (MANDATORY)\n\nBefore using ANY external API to research a person, company, or topic:\n\n1. `gbrain search \"name\"` — keyword search for existing pages\n2. `gbrain query \"natural question about name\"` — hybrid search for context\n3. `gbrain get \u003Cslug>` — if you know the slug, read the full page\n4. Check backlinks: who references this entity?\n5. Check timeline: recent events involving this entity\n\nThe brain almost always has something. External APIs fill gaps, not start from scratch.\n\n### Phase 2: On Every Inbound Signal (READ → ENRICH → WRITE)\n\nEvery message, meeting, email, or conversation that references a person or company:\n\n1. **Detect entities** — people, companies, deals mentioned\n2. **Load brain pages** — read existing pages for context before responding\n3. **Identify new information** — what does this signal tell us that the page doesn't know?\n4. **Write it back** — update the brain page with new info + timeline entry + source citation\n5. **Create if missing** — if notable and no page exists, create via enrich skill\n\n**User's direct statements are the highest-value data source.** Write them to brain\npages immediately with attribution `[Source: User, YYYY-MM-DD]`.\n\n### Phase 2.5: Structured Graph Updates (automatic)\n\nEvery `put_page` call automatically extracts entity references and writes them\nto the graph (`links` table) with inferred relationship types. Stale links\n(refs no longer in the page text) are removed in the same call. This is\n\"auto-link\" reconciliation.\n\n- No manual `add_link` calls needed for ordinary page writes.\n- Inferred link types: `attended` (meeting -> person), `works_at`, `invested_in`,\n  `founded`, `advises`, `source` (frontmatter), `mentions` (default).\n- The `put_page` MCP response includes `auto_links: { created, removed, errors }`\n  so the agent can verify outcomes.\n- To disable: `gbrain config set auto_link false`. Default is on.\n- Timeline entries with specific dates still need explicit `gbrain timeline-add`\n  (or batch via `gbrain extract timeline --source db`).\n\n### Phase 3: On Every Outbound Response (READ → PULL → RESPOND)\n\nBefore answering any question about a person, company, or topic:\n\n1. **Check the brain** — read relevant pages\n2. **Pull context** — use compiled truth + recent timeline\n3. **Respond with context** — the brain makes every answer better\n\nDon't answer from general knowledge when a brain page exists.\n\n### Phase 4: Ambient Enrichment\n\nThis is not a special mode. This is the default. Everything the user says is an\ningest event.\n\n- Person mentioned → check brain, create\u002Fenrich if needed (spawn background)\n- Company mentioned → same\n- Link shared → ingest it (delegate to idea-ingest)\n- Data shared → delegate to appropriate skill\n\n**Rules:**\n- Never interrupt the conversation to do enrichment\n- Spawn sub-agents for anything that would slow down the response\n- Never announce \"I'm enriching the brain\" — just do it silently\n\n## Output Format\n\nNo separate output. Brain-ops is an always-on behavior layer, not a report generator.\nThe output is updated brain pages and enriched responses.\n\n## Cross-source citation format (v0.18.0+)\n\nWhen a brain has multiple sources (wiki, gstack, yc-media, etc.), every\ncitation MUST include the source id: `[source-id:slug]`. Example:\n\n> You told me about the retry budget approach — see\n> [wiki:topics\u002Fresilience] and [gstack:plans\u002Fretry-policy] for where\n> this came from.\n\nRules:\n- The key is `sources.id` (immutable), never `sources.name` (mutable display).\n- Single-source brains still write `[default:slug]` OR may omit the prefix\n  for backward compat.\n- Every page payload returned by `search`, `query`, `get_page`, `list_pages`\n  carries `source_id` — always use it when citing, never guess.\n\nIf a search result has `source_id: \"gstack\"` and `slug: \"plans\u002Ffoo\"`,\nthe citation is `[gstack:plans\u002Ffoo]`. That's the whole rule.\n\n## Anti-Patterns\n\n- Answering questions about people\u002Fcompanies without checking the brain first\n- Using external APIs before checking the brain\n- Writing facts without inline `[Source: ...]` citations\n- Blocking the response to do enrichment\n- Overwriting user's direct statements with lower-authority sources\n- Creating brain pages for non-notable entities\n\n## Tools Used\n\n- `search` — keyword search\n- `query` — hybrid vector+keyword search\n- `get_page` — read a brain page\n- `put_page` — create\u002Fupdate brain pages\n- `add_link` — cross-reference entities\n- `add_timeline_entry` — record events\n- `get_backlinks` — check who references an entity\n- `sync_brain` — sync changes to the index\n",{"name":5,"tools":24,"version":33,"mutating":34,"triggers":35,"writes_to":37,"description":43,"writes_pages":34},[25,26,27,28,29,30,31,32],"search","query","get_page","put_page","add_link","add_timeline_entry","get_backlinks","sync_brain","1.0.0",true,[36],"any brain read\u002Fwrite\u002Flookup\u002Fcitation",[38,39,40,41,42],"people\u002F","companies\u002F","deals\u002F","concepts\u002F","meetings\u002F","Brain knowledge base operations. The core read\u002Fwrite cycle: brain-first lookup,\nread-enrich-write loop, source attribution, ambient enrichment, back-linking.\nRead this before any brain interaction.\n","docs\u002Fmerge-phantoms-design","a37e628443dd4ca65bc82f491ff974c91545f9b3","skills\u002Fbrain-ops","https:\u002F\u002Fgithub.com\u002FNinatuzi\u002Fgbrain","https:\u002F\u002Fgithub.com\u002FNinatuzi","l am Nina, a student in National University of Malaysia, “l want to learn on GitHub and\r\ncontribute my part to this community","2026-06-02 15:11:10",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":34},[53,56,59],{"tool":54,"command":55},"npx","npx skills add Ninatuzi\u002Fgbrain --skill brain-ops",{"tool":57,"command":58},"bunx","bunx skills add Ninatuzi\u002Fgbrain --skill brain-ops",{"tool":60,"command":61},"pnpm","pnpm dlx skills add Ninatuzi\u002Fgbrain --skill brain-ops","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNinatuzi\u002Fgbrain\u002Fblob\u002Fdocs\u002Fmerge-phantoms-design\u002Fskills\u002Fbrain-ops\u002FSKILL.md",[],[65,72,78,85,91,98],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M75788KPJYS39X1S5G040ADQ","signal-detector","Always-on ambient signal capture for the OpenClaw reference fixture.","https:\u002F\u002Fgithub.com\u002FNinatuzi\u002Fgbrain\u002Fblob\u002Fdocs\u002Fmerge-phantoms-design\u002Ftest\u002Ffixtures\u002Fopenclaw-reference-minimal\u002Fskills\u002Fsignal-detector\u002FSKILL.md",[],[],{"skillNo":73,"name":26,"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},"01M75787ADPHGYCVHSTQAV16S5","Look up brain pages in the OpenClaw reference fixture.","https:\u002F\u002Fgithub.com\u002FNinatuzi\u002Fgbrain\u002Fblob\u002Fdocs\u002Fmerge-phantoms-design\u002Ftest\u002Ffixtures\u002Fopenclaw-reference-minimal\u002Fskills\u002Fquery\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},"01M75785XJMKBGTBJBWZABZRVF","context-now","ALWAYS-ON time-sensitivity discipline for the OpenClaw reference fixture.","https:\u002F\u002Fgithub.com\u002FNinatuzi\u002Fgbrain\u002Fblob\u002Fdocs\u002Fmerge-phantoms-design\u002Ftest\u002Ffixtures\u002Fopenclaw-reference-minimal\u002Fskills\u002Fcontext-now\u002FSKILL.md",[],[],{"skillNo":86,"name":5,"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":19},"01M75784DGMEWJCVKGCY99PPPE","Core read\u002Fwrite cycle for the OpenClaw reference fixture.","https:\u002F\u002Fgithub.com\u002FNinatuzi\u002Fgbrain\u002Fblob\u002Fdocs\u002Fmerge-phantoms-design\u002Ftest\u002Ffixtures\u002Fopenclaw-reference-minimal\u002Fskills\u002Fbrain-ops\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M75780F68HTP3TF97F5ENDQ4","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\u002FNinatuzi\u002Fgbrain\u002Fblob\u002Fdocs\u002Fmerge-phantoms-design\u002Fskills\u002Fwebhook-transforms\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M7577XC8H31ZRYDVXMT4VJJ7","voice-note-ingest","Ingest a voice note with exact-phrasing preservation (never paraphrased). Routes content to originals\u002F, concepts\u002F, people\u002F, companies\u002F, ideas\u002F, personal\u002F, or voice-notes\u002F based on a decision tree. The user's exact words are the signal.","https:\u002F\u002Fgithub.com\u002FNinatuzi\u002Fgbrain\u002Fblob\u002Fdocs\u002Fmerge-phantoms-design\u002Fskills\u002Fvoice-note-ingest\u002FSKILL.md",[],[]]