[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72SXF7GXPEFV5V3F66HXS4F":3,"skill-same:01M72SXF7GXPEFV5V3F66HXS4F":74},{"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":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":6,"ownerHtmlUrl":51,"ownerBlogUrl":6,"ownerDescription":52,"updatedAt":53,"install":54,"resources":67},"01M72SXF7GXPEFV5V3F66HXS4F","query",null,"Answer questions using the brain's knowledge with 3-layer search, synthesis,\nand citation propagation. Use when the user asks a question, wants a lookup,\nor needs information from the brain.","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\u002Fquery\u002FSKILL.md",[],[],"2026-11-10 22:39:42",false,"---\nname: query\nversion: 1.0.0\ndescription: |\n  Answer questions using the brain's knowledge with 3-layer search, synthesis,\n  and citation propagation. Use when the user asks a question, wants a lookup,\n  or needs information from the brain.\ntriggers:\n  - \"what do we know about\"\n  - \"tell me about\"\n  - \"who is\"\n  - \"what happened\"\n  - \"search for\"\n  - \"look up\"\n  - \"background on\"\n  - \"notes on\"\n  - \"who knows who\"\n  - \"relationship between\"\n  - \"connections\"\n  - \"graph query\"\ntools:\n  - search\n  - query\n  - get_page\n  - list_pages\n  - get_backlinks\n  - traverse_graph\n  - get_timeline\nmutating: false\n---\n\n# Query Skill\n\nAnswer questions using the brain's knowledge with 3-layer search and synthesis.\n\n## Contract\n\nThis skill guarantees:\n- Every answer is grounded in brain content (no hallucination)\n- Every claim has a citation tracing back to a specific page slug\n- Gaps are flagged explicitly (\"the brain doesn't have information on X\")\n- Source precedence is respected (user statements > compiled truth > timeline > external)\n- Conflicting sources are noted with both citations\n\n## Phases\n\n1. **Decompose the question** into search strategies:\n   - Keyword search for specific names, dates, terms\n   - Semantic query for conceptual questions\n   - Structured queries (list by type, backlinks) for relational questions\n2. **Execute searches:**\n   - Keyword search gbrain for FTS matches (search)\n   - Hybrid search gbrain for semantic+keyword with expansion (query)\n   - List pages in gbrain by type or check backlinks for structural queries\n3. **Read top results.** Read the top 3-5 pages from gbrain to get full context.\n4. **Synthesize answer** with citations. Every claim traces back to a specific page slug.\n5. **Flag gaps.** If the brain doesn't have info, say \"the brain doesn't have information on X\" rather than hallucinating.\n\n## Anti-Patterns\n\n- Answering from general knowledge when the brain has relevant content\n- Hallucinating facts not in the brain\n- Silently picking one source when sources conflict\n- Loading full pages when search chunks are sufficient\n- Ignoring source precedence (user statements are highest authority)\n\n## Output Format\n\nAnswers should include:\n- Direct response to the question\n- Citations: \"According to [Source: people\u002Fjane-doe, compiled truth]...\"\n- Gap flags: \"The brain doesn't have information on X\"\n- Conflict notes when sources disagree\n\n## Quality Rules\n\n- Never hallucinate. Only answer from brain content.\n- Cite sources: \"According to concepts\u002Fdo-things-that-dont-scale...\"\n- Flag stale results: if a search result shows [STALE], note that the info may be outdated\n- For \"who\" questions, use backlinks and typed links to find connections\n- For \"what happened\" questions, use timeline entries\n- For \"what do we know\" questions, read compiled_truth directly\n\n## Token-Budget Awareness\n\nSearch returns **chunks**, not full pages. Read the excerpts first before deciding\nwhether to load a full page.\n\n- `gbrain search` \u002F `gbrain query` return ranked chunks with context snippets.\n  These are often enough to answer the question directly.\n- Only use `gbrain get \u003Cslug>` to load the full page when a chunk confirms the\n  page is relevant and you need more context (e.g., compiled truth, timeline).\n- **\"Tell me about X\"** -- get the full page (the user wants the complete picture).\n- **\"Did anyone mention Y?\"** -- search results are enough (the user wants a yes\u002Fno with evidence).\n\n### Source precedence\n\nWhen multiple sources provide conflicting information, follow this precedence:\n\n1. **User's direct statements** (highest authority -- what the user told you directly)\n2. **Compiled truth** (the brain's synthesized, cited understanding)\n3. **Timeline entries** (raw evidence, reverse-chronological)\n4. **External sources** (web search, API enrichment -- lowest authority)\n\nWhen sources conflict, note the contradiction with both citations. Don't silently\npick one.\n\n## Citation in Answers\n\nWhen referencing brain pages in your answer, propagate inline citations:\n- Cite the page: \"According to [Source: people\u002Fjane-doe, compiled truth]...\"\n- When brain pages have inline `[Source: ...]` citations, propagate them so\n  the user can trace facts to their origin\n- When you synthesize across multiple pages, cite all sources\n\n## Graph Traversal (v0.10.1+)\n\nFor relationship questions (\"who knows who at X?\", \"connections between A and B\",\n\"who works at Acme?\", \"who attended the standup?\"), use the graph layer instead\nof full-text search:\n\n- `gbrain graph-query \u003Cslug> --type \u003Clink_type> --depth N --direction in|out|both`\n- Available link types: `attended`, `works_at`, `invested_in`, `founded`, `advises`, `mentions`, `source`\n- `--direction in` answers \"who points to X?\" (e.g., who works at company X)\n- `--direction out` answers \"what does X point to?\" (default)\n- `--depth N` controls multi-hop traversal (default 5)\n\nExamples:\n- \"Who works at Acme?\" → `gbrain graph-query companies\u002Facme --type works_at --direction in`\n- \"Who attended Demo Day W26?\" → `gbrain graph-query meetings\u002Fdemo-day-w26 --type attended --direction out`\n- \"What companies has Emily advised?\" → `gbrain graph-query people\u002Femily --type advises --direction out`\n- \"Who has Alice met (via meetings)?\" → `gbrain graph-query people\u002Falice --type attended --depth 2`\n\nCombine with `gbrain query` for queries that need BOTH semantic similarity AND\ngraph structure. Search results are ranked with a small backlink boost so well-\nconnected entities surface higher.\n\n## Search Quality Awareness\n\nIf search results seem off (wrong results, missing known pages, irrelevant hits):\n- Run `gbrain doctor --json` to check index health\n- Check embedding coverage -- partial embeddings degrade hybrid search\n- Compare keyword search (`gbrain search`) vs hybrid search (`gbrain query`)\n  for the same query to isolate whether the issue is embedding-related\n- Report search quality issues in the maintain workflow (see maintain skill)\n\n## Tools Used\n\n- Keyword search gbrain (search)\n- Hybrid search gbrain (query)\n- Read a page from gbrain (get_page)\n- List pages in gbrain with filters (list_pages)\n- Check backlinks in gbrain (get_backlinks)\n- Traverse the link graph in gbrain (traverse_graph)\n- View timeline entries in gbrain (get_timeline)\n","# Query Skill\n\nAnswer questions using the brain's knowledge with 3-layer search and synthesis.\n\n## Contract\n\nThis skill guarantees:\n- Every answer is grounded in brain content (no hallucination)\n- Every claim has a citation tracing back to a specific page slug\n- Gaps are flagged explicitly (\"the brain doesn't have information on X\")\n- Source precedence is respected (user statements > compiled truth > timeline > external)\n- Conflicting sources are noted with both citations\n\n## Phases\n\n1. **Decompose the question** into search strategies:\n   - Keyword search for specific names, dates, terms\n   - Semantic query for conceptual questions\n   - Structured queries (list by type, backlinks) for relational questions\n2. **Execute searches:**\n   - Keyword search gbrain for FTS matches (search)\n   - Hybrid search gbrain for semantic+keyword with expansion (query)\n   - List pages in gbrain by type or check backlinks for structural queries\n3. **Read top results.** Read the top 3-5 pages from gbrain to get full context.\n4. **Synthesize answer** with citations. Every claim traces back to a specific page slug.\n5. **Flag gaps.** If the brain doesn't have info, say \"the brain doesn't have information on X\" rather than hallucinating.\n\n## Anti-Patterns\n\n- Answering from general knowledge when the brain has relevant content\n- Hallucinating facts not in the brain\n- Silently picking one source when sources conflict\n- Loading full pages when search chunks are sufficient\n- Ignoring source precedence (user statements are highest authority)\n\n## Output Format\n\nAnswers should include:\n- Direct response to the question\n- Citations: \"According to [Source: people\u002Fjane-doe, compiled truth]...\"\n- Gap flags: \"The brain doesn't have information on X\"\n- Conflict notes when sources disagree\n\n## Quality Rules\n\n- Never hallucinate. Only answer from brain content.\n- Cite sources: \"According to concepts\u002Fdo-things-that-dont-scale...\"\n- Flag stale results: if a search result shows [STALE], note that the info may be outdated\n- For \"who\" questions, use backlinks and typed links to find connections\n- For \"what happened\" questions, use timeline entries\n- For \"what do we know\" questions, read compiled_truth directly\n\n## Token-Budget Awareness\n\nSearch returns **chunks**, not full pages. Read the excerpts first before deciding\nwhether to load a full page.\n\n- `gbrain search` \u002F `gbrain query` return ranked chunks with context snippets.\n  These are often enough to answer the question directly.\n- Only use `gbrain get \u003Cslug>` to load the full page when a chunk confirms the\n  page is relevant and you need more context (e.g., compiled truth, timeline).\n- **\"Tell me about X\"** -- get the full page (the user wants the complete picture).\n- **\"Did anyone mention Y?\"** -- search results are enough (the user wants a yes\u002Fno with evidence).\n\n### Source precedence\n\nWhen multiple sources provide conflicting information, follow this precedence:\n\n1. **User's direct statements** (highest authority -- what the user told you directly)\n2. **Compiled truth** (the brain's synthesized, cited understanding)\n3. **Timeline entries** (raw evidence, reverse-chronological)\n4. **External sources** (web search, API enrichment -- lowest authority)\n\nWhen sources conflict, note the contradiction with both citations. Don't silently\npick one.\n\n## Citation in Answers\n\nWhen referencing brain pages in your answer, propagate inline citations:\n- Cite the page: \"According to [Source: people\u002Fjane-doe, compiled truth]...\"\n- When brain pages have inline `[Source: ...]` citations, propagate them so\n  the user can trace facts to their origin\n- When you synthesize across multiple pages, cite all sources\n\n## Graph Traversal (v0.10.1+)\n\nFor relationship questions (\"who knows who at X?\", \"connections between A and B\",\n\"who works at Acme?\", \"who attended the standup?\"), use the graph layer instead\nof full-text search:\n\n- `gbrain graph-query \u003Cslug> --type \u003Clink_type> --depth N --direction in|out|both`\n- Available link types: `attended`, `works_at`, `invested_in`, `founded`, `advises`, `mentions`, `source`\n- `--direction in` answers \"who points to X?\" (e.g., who works at company X)\n- `--direction out` answers \"what does X point to?\" (default)\n- `--depth N` controls multi-hop traversal (default 5)\n\nExamples:\n- \"Who works at Acme?\" → `gbrain graph-query companies\u002Facme --type works_at --direction in`\n- \"Who attended Demo Day W26?\" → `gbrain graph-query meetings\u002Fdemo-day-w26 --type attended --direction out`\n- \"What companies has Emily advised?\" → `gbrain graph-query people\u002Femily --type advises --direction out`\n- \"Who has Alice met (via meetings)?\" → `gbrain graph-query people\u002Falice --type attended --depth 2`\n\nCombine with `gbrain query` for queries that need BOTH semantic similarity AND\ngraph structure. Search results are ranked with a small backlink boost so well-\nconnected entities surface higher.\n\n## Search Quality Awareness\n\nIf search results seem off (wrong results, missing known pages, irrelevant hits):\n- Run `gbrain doctor --json` to check index health\n- Check embedding coverage -- partial embeddings degrade hybrid search\n- Compare keyword search (`gbrain search`) vs hybrid search (`gbrain query`)\n  for the same query to isolate whether the issue is embedding-related\n- Report search quality issues in the maintain workflow (see maintain skill)\n\n## Tools Used\n\n- Keyword search gbrain (search)\n- Hybrid search gbrain (query)\n- Read a page from gbrain (get_page)\n- List pages in gbrain with filters (list_pages)\n- Check backlinks in gbrain (get_backlinks)\n- Traverse the link graph in gbrain (traverse_graph)\n- View timeline entries in gbrain (get_timeline)\n",{"name":5,"tools":24,"version":31,"mutating":20,"triggers":32,"description":45},[25,5,26,27,28,29,30],"search","get_page","list_pages","get_backlinks","traverse_graph","get_timeline","1.0.0",[33,34,35,36,37,38,39,40,41,42,43,44],"what do we know about","tell me about","who is","what happened","search for","look up","background on","notes on","who knows who","relationship between","connections","graph query","Answer questions using the brain's knowledge with 3-layer search, synthesis,\nand citation propagation. Use when the user asks a question, wants a lookup,\nor needs information from the brain.\n","feat\u002Fbrain-first-convention","f3dace916c3845569f26904591b95baf00237bf8","skills\u002Fquery",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":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add ltdrew\u002FAgent-brain-2 --skill query",{"tool":60,"command":61},"bunx","bunx skills add ltdrew\u002FAgent-brain-2 --skill query",{"tool":63,"command":64},"pnpm","pnpm dlx skills add ltdrew\u002FAgent-brain-2 --skill query","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fltdrew\u002FAgent-brain-2\u002Fblob\u002Ffeat\u002Fbrain-first-convention\u002Fskills\u002Fquery\u002FSKILL.md",true,[68],{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"routing-eval.jsonl","OTHER","其他",535,"https:\u002F\u002Fgithub.com\u002Fltdrew\u002FAgent-brain-2\u002Fblob\u002Ffeat\u002Fbrain-first-convention\u002Fskills\u002Fquery\u002Frouting-eval.jsonl",[75,82,88,95,102,109],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"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":83,"name":5,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M72SYPHM4TDK6ZRV4NWAGC3D","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":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"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":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"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":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"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":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"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",[],[]]