[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71GRKZYF3GVFF8CTBN6KDNE":3,"skill-same:01M71GRKZYF3GVFF8CTBN6KDNE":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":62,"commitSha":63,"skillDirectory":64,"forksCount":14,"repositoryHtmlUrl":65,"repositoryHomepageUrl":6,"ownerHtmlUrl":66,"ownerBlogUrl":6,"ownerDescription":67,"updatedAt":68,"install":69,"resources":81},"01M71GRKZYF3GVFF8CTBN6KDNE","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.","weareturnone\u002Fgbrain","weareturnone","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F106660686?v=4","01M71GRFW4YZ9DFYK6J17YXQNB","Roelof Stoelwinder ","01M71GRFWVQF5ASVB08TP5VKWG",0,"MIT","https:\u002F\u002Fgithub.com\u002Fweareturnone\u002Fgbrain\u002Fblob\u002Fmaster\u002Fskills\u002Fbrain-ops\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"brain ops","ops","brain","knowledge base","linking","source","concepts","enrich","people","interaction","get","sync","query","cycle","back","write","read","loop","knowledge","search","2026-11-10 10:12:30",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":44,"version":51,"mutating":52,"triggers":53,"writes_to":55,"description":61,"writes_pages":52},[38,31,45,46,47,48,49,50],"get_page","put_page","add_link","add_timeline_entry","get_backlinks","sync_brain","1.0.0",true,[54],"any brain read\u002Fwrite\u002Flookup\u002Fcitation",[56,57,58,59,60],"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","master","1fd9e273fe234ffb8d2a7705955f087f861a5c3d","skills\u002Fbrain-ops","https:\u002F\u002Fgithub.com\u002Fweareturnone\u002Fgbrain","https:\u002F\u002Fgithub.com\u002Fweareturnone","I have a passion for operations, systems and doing good for the world.","2026-07-08 23:38:19",{"source":8,"skillName":5,"commands":70,"prompt":80,"zipAvailable":52},[71,74,77],{"tool":72,"command":73},"npx","npx skills add weareturnone\u002Fgbrain --skill brain-ops",{"tool":75,"command":76},"bunx","bunx skills add weareturnone\u002Fgbrain --skill brain-ops",{"tool":78,"command":79},"pnpm","pnpm dlx skills add weareturnone\u002Fgbrain --skill brain-ops","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fweareturnone\u002Fgbrain\u002Fblob\u002Fmaster\u002Fskills\u002Fbrain-ops\u002FSKILL.md",[],[83,100,112,127,136,158],{"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},"01M71GTZ2PH49PD2R6RR7MHJZP","signal-detector","Always-on ambient signal capture for the OpenClaw reference fixture.","https:\u002F\u002Fgithub.com\u002Fweareturnone\u002Fgbrain\u002Fblob\u002Fmaster\u002Ftest\u002Ffixtures\u002Fopenclaw-reference-minimal\u002Fskills\u002Fsignal-detector\u002FSKILL.md",[],[90,91,92,93,94,95,96,97,98,99],"signal","signal detector","detector","for","openclaw","capture","reference","message","fixture","ambient",{"skillNo":101,"name":31,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":39},"01M71GTY1250DC73PGRWDE82KW","Look up brain pages in the OpenClaw reference fixture.","https:\u002F\u002Fgithub.com\u002Fweareturnone\u002Fgbrain\u002Fblob\u002Fmaster\u002Ftest\u002Ffixtures\u002Fopenclaw-reference-minimal\u002Fskills\u002Fquery\u002FSKILL.md",[],[31,106,96,107,94,108,109,110,21,38,111,93,98],"do","lookup","look","pages","up","about",{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":39},"01M71GTX0T1T9224P29SD7CSG7","context-now","ALWAYS-ON time-sensitivity discipline for the OpenClaw reference fixture.","https:\u002F\u002Fgithub.com\u002Fweareturnone\u002Fgbrain\u002Fblob\u002Fmaster\u002Ftest\u002Ffixtures\u002Fopenclaw-reference-minimal\u002Fskills\u002Fcontext-now\u002FSKILL.md",[],[119,120,121,122,123,94,93,124,96,98,125,126],"context","context now","now","time","how","discipline","sensitivity","long",{"skillNo":128,"name":5,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":39},"01M71GTVZJTSWXBM4ZRF4A7QVA","Core read\u002Fwrite cycle for the OpenClaw reference fixture.","https:\u002F\u002Fgithub.com\u002Fweareturnone\u002Fgbrain\u002Fblob\u002Fmaster\u002Ftest\u002Ffixtures\u002Fopenclaw-reference-minimal\u002Fskills\u002Fbrain-ops\u002FSKILL.md",[],[19,21,20,133,107,94,27,96,134,93,35,32,135,98,34],"Citation","true","core",{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":39},"01M71GTT4F64V9RMNZ0WRTKWNG","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\u002Fweareturnone\u002Fgbrain\u002Fblob\u002Fmaster\u002Fskills\u002Fwebhook-transforms\u002FSKILL.md",[],[143,144,145,146,147,110,148,149,150,151,134,152,38,153,154,155,93,156,157,29],"webhook","transforms","webhook transforms","SET","register","meetings","signals","URL","define","social","event","pipeline","page","sms","generic",{"skillNo":159,"name":160,"nameZh":6,"description":161,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":162,"categories":163,"keywords":164,"publishedAt":39},"01M71GTRDKSM500PRZEXFNQHF9","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\u002Fweareturnone\u002Fgbrain\u002Fblob\u002Fmaster\u002Fskills\u002Ftesting\u002FSKILL.md",[],[160,165,166,167,168,169,170,171,172,173,174,175,176,177,109,178,38,179,180,93],"test skills","validation","run","health check","test","with","health","check","env","skill validation","false","contract","tests","skill health","system","validate skills"]