[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77M74F9NWQQ5WZPQ6YYJQWG":3,"skill-same:01M77M74F9NWQQ5WZPQ6YYJQWG":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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":14,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":49,"ownerDescription":50,"updatedAt":51,"install":52,"resources":64},"01M77M74F9NWQQ5WZPQ6YYJQWG","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.","singhvedant\u002Ftbrain","singhvedant","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F71930695?v=4","01M77M5AXVZ7M5XWPANT3J9NS5","Vedant Singh","01M77M5AZ21DXDMR8ZPN3CPR07",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsinghvedant\u002Ftbrain\u002Fblob\u002Fmain\u002Fskills\u002Fbrain-ops\u002FSKILL.md",[],[],"2026-11-15 14:19:17",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","main","6fd71a8e8b329f5375cf01a74a9da2af1909f4e0","skills\u002Fbrain-ops","https:\u002F\u002Fgithub.com\u002Fsinghvedant\u002Ftbrain","https:\u002F\u002Fgithub.com\u002Fsinghvedant","singhvedant1701.github.io","Web\u002FApp developer\r\nCloud Computing\r\nAI and ML","2026-07-04 14:54:38",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":34},[54,57,60],{"tool":55,"command":56},"npx","npx skills add singhvedant\u002Ftbrain --skill brain-ops",{"tool":58,"command":59},"bunx","bunx skills add singhvedant\u002Ftbrain --skill brain-ops",{"tool":61,"command":62},"pnpm","pnpm dlx skills add singhvedant\u002Ftbrain --skill brain-ops","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsinghvedant\u002Ftbrain\u002Fblob\u002Fmain\u002Fskills\u002Fbrain-ops\u002FSKILL.md",[],[66,72,78,84,91,97],{"skillNo":67,"name":68,"nameZh":6,"description":6,"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},"01M77MH99TG5CXS6ZC5V519J27","query-helper","https:\u002F\u002Fgithub.com\u002Fsinghvedant\u002Ftbrain\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fskill-catalog\u002Fskills\u002Fquery-helper\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":6,"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},"01M77MH8A3A5PTQM0PQH6SCBA8","broken","https:\u002F\u002Fgithub.com\u002Fsinghvedant\u002Ftbrain\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fskill-catalog\u002Fskills\u002Fbroken\u002FSKILL.md",[],[],{"skillNo":79,"name":5,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M77MH6HHY2G5V0BXP8V316F8","Read, enrich, and write brain pages with source attribution.","https:\u002F\u002Fgithub.com\u002Fsinghvedant\u002Ftbrain\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fskill-catalog\u002Fskills\u002Fbrain-ops\u002FSKILL.md",[],[],{"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":19},"01M77MH54BXVPFXK48DKBKFNRF","signal-detector","Always-on ambient signal capture for the OpenClaw reference fixture.","https:\u002F\u002Fgithub.com\u002Fsinghvedant\u002Ftbrain\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fopenclaw-reference-minimal\u002Fskills\u002Fsignal-detector\u002FSKILL.md",[],[],{"skillNo":92,"name":26,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M77MH3MPW52RQDQGTDR38MZT","Look up brain pages in the OpenClaw reference fixture.","https:\u002F\u002Fgithub.com\u002Fsinghvedant\u002Ftbrain\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fopenclaw-reference-minimal\u002Fskills\u002Fquery\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M77MH17X2DRV1DD6HV8Z89BA","context-now","ALWAYS-ON time-sensitivity discipline for the OpenClaw reference fixture.","https:\u002F\u002Fgithub.com\u002Fsinghvedant\u002Ftbrain\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fopenclaw-reference-minimal\u002Fskills\u002Fcontext-now\u002FSKILL.md",[],[]]