[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69A8G12XGKCMFFRA82Y731X":3,"skill-same:01M69A8G12XGKCMFFRA82Y731X":85},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":56,"commitSha":57,"skillDirectory":58,"forksCount":59,"repositoryHtmlUrl":60,"repositoryHomepageUrl":17,"ownerHtmlUrl":61,"ownerBlogUrl":62,"ownerDescription":63,"updatedAt":64,"install":65,"resources":78},"01M69A8G12XGKCMFFRA82Y731X","graph-debug","知识图谱检查与调试","How to inspect and render the shared knowledge GRAPH (size, health,\nMermaid, orphans, duplicates) and see what graph search a session ran.\nRead this before answering about the graph. Applies only when the\ngraph tools are present.","如何检查和渲染共享知识图谱(GRAPH)(规模、健康状况、Mermaid 图、孤立节点、重复项),并查看某次会话执行了哪些图谱搜索。在回答有关图谱的问题前请先阅读本文。仅在存在图谱工具时适用。","microsoft\u002FPilotSwarm","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69A6RNK492A5JSNBTXANKX5",16,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPilotSwarm\u002Fblob\u002Fmain\u002Fpackages\u002Fsdk\u002Fplugins\u002Fmgmt\u002Fskills\u002Fgraph-debug\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRFRAYBCBW9WKDY9TCSHY3","知识管理与沉淀","SCENARIO","使用场景",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师","PROFESSION","适用职业",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"graph debug","debug","graph","when","inspect","size","about","render","how to","shared","duplicates","only","session","read","knowledge","how","health","knowledge graph","search","mermaid","2026-11-10 10:12:30",false,"---\nname: graph-debug\ndescription: |\n  How to inspect and render the shared knowledge GRAPH (size, health,\n  Mermaid, orphans, duplicates) and see what graph search a session ran.\n  Read this before answering about the graph. Applies only when the\n  graph tools are present.\n---\n\n# Graph Debug\n\nA shared **knowledge graph** of entities (`GraphNode`) and relationships\n(edges) sits alongside the facts store. It is **separate** from the facts\nKV\u002Fsearch store: facts are evidence; the graph is the distilled entity\u002Fedge\nmodel a harvester extracts from that evidence. This skill is how you inspect\nand explain it.\n\nThe graph is **optional**. If you do not have `graph_search_nodes` \u002F\n`graph_neighbourhood` \u002F `graph_stats` in your tool set, this deployment runs\nwithout a graph and nothing here applies — say so plainly instead of guessing.\n\n## Tools you have (by role)\n\n| Tool | facts-manager | agent-manager | Purpose |\n|------|:---:|:---:|---------|\n| `graph_search_nodes` | ✓ | ✓ | Find entities by name \u002F kind \u002F seed scope-keys |\n| `graph_search_edges` | ✓ | ✓ | Find relationships by predicate \u002F endpoints |\n| `graph_neighbourhood` | ✓ | ✓ | Bounded subgraph around one node (1–5 hops) |\n| `graph_list_namespaces` | ✓ | ✓ | Discover registered graph corpora from compact frontmatter |\n| `graph_get_namespace` | ✓ | ✓ | Read full descriptor for one namespace\u002Fcorpus |\n| `graph_stats` | ✓ | ✓ | Node + edge counts and crawl backlog (read-only) |\n| `read_session_retrieval_usage` | ✓ | ✓ | Count-only fact\u002Fskill\u002Fgraph retrieval usage for a session |\n| `read_session_tree_retrieval_usage` | ✓ | ✓ | Count-only retrieval usage rolled up across a spawn tree |\n| `read_session_graph_node_usage` | ✓ | ✓ | Exact graph node keys searched or loaded by a session |\n| `read_session_graph_edge_search_usage` | ✓ | ✓ | Edge-search shapes grouped by predicate key and endpoints |\n| `read_session_graph_searches` | — | ✓ | Forensics: what graph searches a session ran |\n\nThe `read_session_*_retrieval_usage` tools are lineage-gated for non-tuner\nsessions: facts-manager can inspect itself and descendant sessions, while\nagent-manager can inspect any session. Neither role mutates the graph through this skill. The facts-manager *holds*\nthe graph write\u002Fdelete tools (dormant), plus namespace registry mutation tools\nfor explicit operator actions, but graph **building** is a harvester job — do\nnot crawl, upsert, archive, or delete here unless an operator explicitly asks.\n\n## Namespace discovery\n\nIf `graph_list_namespaces` is available, use it before graph traversal when the\nquestion may be corpus\u002Fdomain-specific. The compact frontmatter tells you what a\nnamespace contains and when it is relevant. Call `graph_get_namespace` only for a\nnamespace that looks relevant and needs details such as source or schema shape.\n\nThe reserved `default` namespace is the unscoped graph partition. Other\nnamespaces are corpus\u002Fdomain keys such as `corpus\u002Facme`; graph namespace filters\nmatch that namespace and descendants such as `corpus\u002Facme\u002Fservices`. Use the\nsame namespace across graph tools and facts tools when you pivot between source\nfacts and graph structure.\n\n## Reporting on the graph (facts-manager)\n\nWhen asked \"how big is the graph\", \"is the graph healthy\", or \"what's in the\ngraph\":\n\n1. Start with `graph_stats` — it returns node count, edge count, and how many\n   facts remain **uncrawled** (the harvest backlog). A large uncrawled backlog\n   with few nodes means harvesting is behind, not that the graph is broken.\n2. If namespaces are present, list them first and choose the relevant corpus\n   rather than sampling the whole graph blindly.\n3. Sample structure with `graph_search_nodes` (e.g. by `kind`) and expand a\n   few with `graph_neighbourhood` to characterise connectivity.\n4. Do **not** fan out a neighbourhood call per node to \"count\" the graph —\n   `graph_stats` already has the counts. Fanning out is a self-inflicted DoS.\n\n### Rendering the graph as Markdown \u002F Mermaid\n\nTo render a region as a diagram an operator can read, pull a bounded\nneighbourhood and emit a Mermaid `graph` block. Keep it **bounded** (one seed,\ndepth ≤ 2, or a single `kind`) — never try to render the whole graph at once.\n\n```mermaid\ngraph LR\n  n_alvaro[\"Álvaro Herrera (person)\"]\n  n_pg[\"PostgreSQL (project)\"]\n  n_alvaro -->|contributes_to| n_pg\n```\n\nLabel nodes with `name (kind)` and edges with the predicate. If the region is\nlarge, render the top entities by degree and say you truncated.\n\n## Graph-search forensics (agent-manager)\n\nWhen investigating \"why did session X not find what it expected in the graph\",\nor \"what did this agent actually search for\":\n\n1. Start with `read_session_retrieval_usage({ session_id })`. It returns\n   count-only aggregates for `facts_search`, `facts_similar`, `search_skills`,\n   `graph_search_nodes`, `graph_search_edges`, and `graph_neighbourhood`, grouped\n   by namespace with result counts and durations. It does **not** store returned\n   facts, nodes, or edges.\n2. If the question is about a specific graph anchor, call\n   `read_session_graph_node_usage({ session_id, node_key_like?, kind? })` to see\n   exact node keys that were searched as seeds (`kind=\"searched\"`) or loaded as\n   neighbourhood anchors (`kind=\"loaded\"`).\n3. If the question is about relationships, call\n   `read_session_graph_edge_search_usage({ session_id })` and inspect the\n   `predicateKey`, `fromKey`, `toKey`, namespace, call count, and result count.\n4. Use `read_session_graph_searches({ session_id })` only when you need the raw\n   timeline. Each row is a durable `graph.searched` event with `operation`\n   (`graph_search_nodes`, `graph_search_edges`, or `graph_neighbourhood`),\n   namespace, bounded query preview, and result counts.\n5. Compare the query to what you'd expect. A zero-result `graph_search_nodes`\n   with an over-specific `nameLike` is a prompt problem, not a graph problem.\n6. Cross-check visibility: graph reads honour the same lineage\u002FACL as\n   `read_facts`. A session only sees nodes its **accessible facts** evidence.\n   If a session got zero results but the entity exists, confirm whether that\n   session's lineage actually has evidence linking to it before blaming the\n   graph.\n7. For semantic investigations (\"find sessions similar to this failure\"), use\n   `facts_search` (semantic \u002F hybrid) and `facts_similar` — then pivot into the\n   graph with `graph_search_nodes({ seeds: [\u003CscopeKey>] })`.\n\n## Common pitfalls\n\n- **Confusing \"no graph\" with \"empty graph\".** No graph tools ⇒ no graph\n  configured. Tools present but `graph_stats` reports zero nodes ⇒ a real but\n  empty\u002Fun-harvested graph. These are different findings — report which.\n- **Treating the graph as authoritative over facts.** Facts are the evidence\n  of record; the graph is a derived view. A graph node with no accessible\n  evidencing fact is invisible to a reader by design, not a bug.\n- **Rendering unbounded.** Always bound the region you visualise.\n","# Graph Debug\n\nA shared **knowledge graph** of entities (`GraphNode`) and relationships\n(edges) sits alongside the facts store. It is **separate** from the facts\nKV\u002Fsearch store: facts are evidence; the graph is the distilled entity\u002Fedge\nmodel a harvester extracts from that evidence. This skill is how you inspect\nand explain it.\n\nThe graph is **optional**. If you do not have `graph_search_nodes` \u002F\n`graph_neighbourhood` \u002F `graph_stats` in your tool set, this deployment runs\nwithout a graph and nothing here applies — say so plainly instead of guessing.\n\n## Tools you have (by role)\n\n| Tool | facts-manager | agent-manager | Purpose |\n|------|:---:|:---:|---------|\n| `graph_search_nodes` | ✓ | ✓ | Find entities by name \u002F kind \u002F seed scope-keys |\n| `graph_search_edges` | ✓ | ✓ | Find relationships by predicate \u002F endpoints |\n| `graph_neighbourhood` | ✓ | ✓ | Bounded subgraph around one node (1–5 hops) |\n| `graph_list_namespaces` | ✓ | ✓ | Discover registered graph corpora from compact frontmatter |\n| `graph_get_namespace` | ✓ | ✓ | Read full descriptor for one namespace\u002Fcorpus |\n| `graph_stats` | ✓ | ✓ | Node + edge counts and crawl backlog (read-only) |\n| `read_session_retrieval_usage` | ✓ | ✓ | Count-only fact\u002Fskill\u002Fgraph retrieval usage for a session |\n| `read_session_tree_retrieval_usage` | ✓ | ✓ | Count-only retrieval usage rolled up across a spawn tree |\n| `read_session_graph_node_usage` | ✓ | ✓ | Exact graph node keys searched or loaded by a session |\n| `read_session_graph_edge_search_usage` | ✓ | ✓ | Edge-search shapes grouped by predicate key and endpoints |\n| `read_session_graph_searches` | — | ✓ | Forensics: what graph searches a session ran |\n\nThe `read_session_*_retrieval_usage` tools are lineage-gated for non-tuner\nsessions: facts-manager can inspect itself and descendant sessions, while\nagent-manager can inspect any session. Neither role mutates the graph through this skill. The facts-manager *holds*\nthe graph write\u002Fdelete tools (dormant), plus namespace registry mutation tools\nfor explicit operator actions, but graph **building** is a harvester job — do\nnot crawl, upsert, archive, or delete here unless an operator explicitly asks.\n\n## Namespace discovery\n\nIf `graph_list_namespaces` is available, use it before graph traversal when the\nquestion may be corpus\u002Fdomain-specific. The compact frontmatter tells you what a\nnamespace contains and when it is relevant. Call `graph_get_namespace` only for a\nnamespace that looks relevant and needs details such as source or schema shape.\n\nThe reserved `default` namespace is the unscoped graph partition. Other\nnamespaces are corpus\u002Fdomain keys such as `corpus\u002Facme`; graph namespace filters\nmatch that namespace and descendants such as `corpus\u002Facme\u002Fservices`. Use the\nsame namespace across graph tools and facts tools when you pivot between source\nfacts and graph structure.\n\n## Reporting on the graph (facts-manager)\n\nWhen asked \"how big is the graph\", \"is the graph healthy\", or \"what's in the\ngraph\":\n\n1. Start with `graph_stats` — it returns node count, edge count, and how many\n   facts remain **uncrawled** (the harvest backlog). A large uncrawled backlog\n   with few nodes means harvesting is behind, not that the graph is broken.\n2. If namespaces are present, list them first and choose the relevant corpus\n   rather than sampling the whole graph blindly.\n3. Sample structure with `graph_search_nodes` (e.g. by `kind`) and expand a\n   few with `graph_neighbourhood` to characterise connectivity.\n4. Do **not** fan out a neighbourhood call per node to \"count\" the graph —\n   `graph_stats` already has the counts. Fanning out is a self-inflicted DoS.\n\n### Rendering the graph as Markdown \u002F Mermaid\n\nTo render a region as a diagram an operator can read, pull a bounded\nneighbourhood and emit a Mermaid `graph` block. Keep it **bounded** (one seed,\ndepth ≤ 2, or a single `kind`) — never try to render the whole graph at once.\n\n```mermaid\ngraph LR\n  n_alvaro[\"Álvaro Herrera (person)\"]\n  n_pg[\"PostgreSQL (project)\"]\n  n_alvaro -->|contributes_to| n_pg\n```\n\nLabel nodes with `name (kind)` and edges with the predicate. If the region is\nlarge, render the top entities by degree and say you truncated.\n\n## Graph-search forensics (agent-manager)\n\nWhen investigating \"why did session X not find what it expected in the graph\",\nor \"what did this agent actually search for\":\n\n1. Start with `read_session_retrieval_usage({ session_id })`. It returns\n   count-only aggregates for `facts_search`, `facts_similar`, `search_skills`,\n   `graph_search_nodes`, `graph_search_edges`, and `graph_neighbourhood`, grouped\n   by namespace with result counts and durations. It does **not** store returned\n   facts, nodes, or edges.\n2. If the question is about a specific graph anchor, call\n   `read_session_graph_node_usage({ session_id, node_key_like?, kind? })` to see\n   exact node keys that were searched as seeds (`kind=\"searched\"`) or loaded as\n   neighbourhood anchors (`kind=\"loaded\"`).\n3. If the question is about relationships, call\n   `read_session_graph_edge_search_usage({ session_id })` and inspect the\n   `predicateKey`, `fromKey`, `toKey`, namespace, call count, and result count.\n4. Use `read_session_graph_searches({ session_id })` only when you need the raw\n   timeline. Each row is a durable `graph.searched` event with `operation`\n   (`graph_search_nodes`, `graph_search_edges`, or `graph_neighbourhood`),\n   namespace, bounded query preview, and result counts.\n5. Compare the query to what you'd expect. A zero-result `graph_search_nodes`\n   with an over-specific `nameLike` is a prompt problem, not a graph problem.\n6. Cross-check visibility: graph reads honour the same lineage\u002FACL as\n   `read_facts`. A session only sees nodes its **accessible facts** evidence.\n   If a session got zero results but the entity exists, confirm whether that\n   session's lineage actually has evidence linking to it before blaming the\n   graph.\n7. For semantic investigations (\"find sessions similar to this failure\"), use\n   `facts_search` (semantic \u002F hybrid) and `facts_similar` — then pivot into the\n   graph with `graph_search_nodes({ seeds: [\u003CscopeKey>] })`.\n\n## Common pitfalls\n\n- **Confusing \"no graph\" with \"empty graph\".** No graph tools ⇒ no graph\n  configured. Tools present but `graph_stats` reports zero nodes ⇒ a real but\n  empty\u002Fun-harvested graph. These are different findings — report which.\n- **Treating the graph as authoritative over facts.** Facts are the evidence\n  of record; the graph is a derived view. A graph node with no accessible\n  evidencing fact is invisible to a reader by design, not a bug.\n- **Rendering unbounded.** Always bound the region you visualise.\n",{"name":5,"description":7},"main","cecafe1ca7a9f2778a6166abdd12f6165d99f777","packages\u002Fsdk\u002Fplugins\u002Fmgmt\u002Fskills\u002Fgraph-debug",10,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPilotSwarm","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-15 00:36:04",{"source":9,"skillName":5,"commands":66,"prompt":76,"zipAvailable":77},[67,70,73],{"tool":68,"command":69},"npx","npx skills add microsoft\u002FPilotSwarm --skill graph-debug",{"tool":71,"command":72},"bunx","bunx skills add microsoft\u002FPilotSwarm --skill graph-debug",{"tool":74,"command":75},"pnpm","pnpm dlx skills add microsoft\u002FPilotSwarm --skill graph-debug","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPilotSwarm\u002Fblob\u002Fmain\u002Fpackages\u002Fsdk\u002Fplugins\u002Fmgmt\u002Fskills\u002Fgraph-debug\u002FSKILL.md",true,[79],{"path":80,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":83,"sourceHtmlUrl":84},"audit-deps.mjs","SCRIPT","脚本",14528,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fplaywright\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fplaywright-audit-deps\u002Faudit-deps.mjs",[86,94,101,108,115,122],{"skillNo":87,"name":88,"nameZh":17,"description":89,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":93},"01M760N7TCZBTY635MYZQ8YAB0","workflow-testing","Load before you test a Workflow with mocked effects — the test, test_respond and test_advance operations, fixtures, interception ids, valid answers, the virtual clock, test evidence and what a test run does not prove.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPilotSwarm\u002Fblob\u002Fmain\u002Fpackages\u002Fsdk\u002Fplugins\u002Fworkflow\u002Ftest-mode-skills\u002Fworkflow-testing\u002FSKILL.md",[],[],"2026-11-12 13:55:43",{"skillNo":95,"name":96,"nameZh":17,"description":97,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":93},"01M760N4RKD6BMYPGHD490SNN2","workflow-tools","Every argument of the Workflow tools, testing a revision, package definitions and the refusals you can fix. Load when a Workflow tool's short description is not enough.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPilotSwarm\u002Fblob\u002Fmain\u002Fpackages\u002Fsdk\u002Fplugins\u002Fworkflow\u002Fskills\u002Fworkflow-tools\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":17,"description":104,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":93},"01M760N1P2VTGVE6C4N5WF3FVR","workflow-reference","Field reference for Workflow YAML (root keys, every state type, bindings, outputs, runtime error codes), what the engine guarantees, and a review fan-out example. For design, call load_skill with name workflow-authoring.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPilotSwarm\u002Fblob\u002Fmain\u002Fpackages\u002Fsdk\u002Fplugins\u002Fworkflow\u002Fskills\u002Fworkflow-reference\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":17,"description":111,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":93},"01M760MZ5CFSAX4FYMEXZJBGM2","workflow-patterns","Load when one Workflow must run different nodes in its branches at the same time (a different prompt or model for each branch), or loops back to a state (a polling loop). Named branches, the router pattern, examples that compile.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPilotSwarm\u002Fblob\u002Fmain\u002Fpackages\u002Fsdk\u002Fplugins\u002Fworkflow\u002Fskills\u002Fworkflow-patterns\u002FSKILL.md",[],[],{"skillNo":116,"name":117,"nameZh":17,"description":118,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":93},"01M760MWKBDJFEECRFAF3BAVQ2","workflow-authoring","Load before you create, edit, publish or run a Workflow (pilotswarm.dev\u002Fv1) — choosing states, bounded graphs, bindings, typed contracts, agent and parallel states, the lifecycle and failure diagnosis.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPilotSwarm\u002Fblob\u002Fmain\u002Fpackages\u002Fsdk\u002Fplugins\u002Fworkflow\u002Fskills\u002Fworkflow-authoring\u002FSKILL.md",[],[],{"skillNo":123,"name":124,"nameZh":17,"description":125,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":93},"01M760MN4Y9199ARAY85DWD08X","tla-formal-validation","Required for any change to the core orchestrations (the durable session orchestration, session hydration and dehydration, and the Workflow controller and store). Teaches how to model the change in TLA+, update the existing models, run TLC with the repo runner, read the results, turn a counterexample into a fix and a regression test, and record the binding to the code.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPilotSwarm\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftla-formal-validation\u002FSKILL.md",[],[]]