[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69BN7D4BD65ADJY98YDHE0V":3,"skill-same:01M69BN7D4BD65ADJY98YDHE0V":62},{"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":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":42,"repositoryHtmlUrl":43,"repositoryHomepageUrl":17,"ownerHtmlUrl":44,"ownerBlogUrl":45,"ownerDescription":46,"updatedAt":47,"install":48,"resources":61},"01M69BN7D4BD65ADJY98YDHE0V","verify-bpf","eBPF 程序构建验证","Build and verify eBPF programs for the ebpf-for-windows project. Use this skill when asked to compile a .c BPF source to .o, verify a .o ELF file with bpf2c, or diagnose verification failures. Covers the full clang→bpf2c pipeline.","为 ebpf-for-windows 项目构建并验证 eBPF 程序。当用户要求将 .c BPF 源码编译为 .o、使用 bpf2c 验证 .o ELF 文件或诊断验证失败时使用此技能。涵盖完整的 clang→bpf2c 流水线。","microsoft\u002Febpf-for-windows","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69BMT4VCWMXBB495CRX6P3V",3590,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Febpf-for-windows\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fverify-bpf\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BS1P6715AXNH65AAKPM4HF","内核与系统调用开发","SCENARIO","使用场景",[31,32,33],"verify bpf","windows","diagnose","2026-11-10 10:12:30",false,"---\nname: verify-bpf\ndescription: >\n  Build and verify eBPF programs for the ebpf-for-windows project.\n  Use this skill when asked to compile a .c BPF source to .o, verify a .o ELF file\n  with bpf2c, or diagnose verification failures. Covers the full clang→bpf2c pipeline.\n---\n\n# Build & Verify eBPF Programs (ebpf-for-windows)\n\nCompile eBPF C source to ELF bytecode with clang, then verify (and optionally generate\nnative code) with bpf2c. On verification failure, diagnose using the PREVAIL reference.\n\n## When to Use\n\n- User asks to compile\u002Fbuild a `.c` eBPF program to `.o`\n- User asks to verify a `.o` ELF file or check if it passes the verifier\n- User asks to debug or fix a verification failure from bpf2c output\n- User mentions bpf2c, clang+bpf, or PREVAIL verification in the ebpf-for-windows context\n\n## Prerequisites\n\n- **clang.exe** — find the first existing path (highest priority first):\n  `packages\\llvm.tools\\clang.exe`, `\"$env:ProgramFiles\\LLVM\\bin\\clang.exe\"`,\n  `\"$(& \"${env:ProgramFiles(x86)}\\Microsoft Visual Studio\\Installer\\vswhere.exe\" -latest -property installationPath)\\VC\\Tools\\Llvm\\bin\\clang.exe\"`\n- **bpf2c.exe** — if `x64\\Debug\\bpf2c.exe` is missing, build it:\n  `msbuild ebpf-for-windows.sln \u002Fm \u002Fp:Configuration=Debug \u002Fp:Platform=x64 \u002Ft:tools\\bpf2c`\n\n## Quick Reference\n\n### 1. Compile: C → ELF (.o)\n\nRun from the **solution root directory** (use the clang path found above):\n\n```powershell\n# Standard sample programs\n& '\u003Cclang-path>' -g -target bpf -O2 -Werror `\n  -Iinclude -Iexternal\\bpftool `\n  -Itests\\xdp -Itests\\socket `\n  -Itests\\sample\\ext\\inc -Itests\\include `\n  -c \u003CSOURCE>.c -o \u003COUTPUT>.o\n```\n\nFor **undocked** programs (`tests\\sample\\undocked\\*.c`), also add:\n- `-Itests\\sample`\n- `-Iundocked\\tests\\sample\\ext\\inc`\n\n### 2. Verify: ELF (.o) → native C (via bpf2c)\n\n```powershell\n.\\x64\\Debug\\bpf2c.exe --bpf \u003CFILE>.o --sys \u003COUTPUT_DIR>\\\u003Cname>_driver.c\n```\n\nAdd **`--verbose`** to get detailed verifier output (pre\u002Fpost invariants at each instruction)\non failure.\n\n### bpf2c Options\n\n| Flag | Purpose |\n|------|---------|\n| `--bpf \u003Cfile>` | Input ELF file containing BPF bytecode |\n| `--sys \u003Cfile>` | Generate Windows kernel driver C wrapper |\n| `--dll \u003Cfile>` | Generate Windows DLL C wrapper |\n| `--raw \u003Cfile>` | Generate C code without platform wrapper |\n| `--verbose` | Show detailed verifier failure info (invariants) |\n| `--type \u003Cstr>` | Override eBPF program type string |\n| `--hash \u003Calg>` | Algorithm used to hash ELF file |\n\n## Workflow\n\n### Step 1: Identify the Source\n\nDetermine the `.c` source file and where the `.o` should go. Common patterns:\n\n| Source Location | Include Flags |\n|----------------|---------------|\n| `tests\\sample\\*.c` | `-Iinclude -Iexternal\\bpftool -Itests\\xdp -Itests\\socket -Itests\\sample\\ext\\inc -Itests\\include` |\n| `tests\\sample\\undocked\\*.c` | Same as above, plus `-Itests\\sample -Iundocked\\tests\\sample\\ext\\inc` |\n| User-provided file | Start with the standard sample flags; add more `-I` paths as needed |\n\n### Step 2: Compile with Clang\n\nRun clang. If it fails, fix compiler errors in the C source (standard C\u002Fclang diagnostics).\n\n### Step 3: Verify with bpf2c\n\nRun bpf2c with `--sys` (or `--dll`\u002F`--raw`). Two outcomes:\n\n- **Success** → bpf2c generates the output C file. Verification passed.\n- **Failure** → bpf2c prints verifier errors. Proceed to diagnosis.\n\n### Step 4: Diagnose Failures\n\nOn verification failure:\n\n1. **Re-run with `--verbose`** if not already used, to get full invariant output.\n2. **Read `external\u002Febpf-verifier\u002Fdocs\u002Fllm-context.md`** — the authoritative PREVAIL diagnostic reference.\n3. Follow the diagnosis protocol in that document (identify error → check pre-invariant →\n   trace root cause → recommend fix).\n\n## Example: Full Pipeline\n\n```powershell\n# Compile (undocked program — needs full include paths)\n& '\u003Cclang-path>' -g -target bpf -O2 -Werror `\n  -Iinclude -Iexternal\\bpftool `\n  -Itests\\xdp -Itests\\socket -Itests\\sample\\ext\\inc -Itests\\include `\n  -Itests\\sample -Iundocked\\tests\\sample\\ext\\inc `\n  -c tests\\sample\\undocked\\perf_event_burst.c `\n  -o x64\\Debug\\perf_event_burst.o\n\n# Verify + generate driver\n.\\x64\\Debug\\bpf2c.exe --bpf x64\\Debug\\perf_event_burst.o `\n  --sys .\\x64\\Debug\\perf_event_burst_km\\perf_event_burst_driver.c\n\n# If verification fails, re-run with --verbose for diagnosis\n.\\x64\\Debug\\bpf2c.exe --bpf x64\\Debug\\perf_event_burst.o `\n  --sys .\\x64\\Debug\\perf_event_burst_km\\perf_event_burst_driver.c `\n  --verbose\n```\n","# Build & Verify eBPF Programs (ebpf-for-windows)\n\nCompile eBPF C source to ELF bytecode with clang, then verify (and optionally generate\nnative code) with bpf2c. On verification failure, diagnose using the PREVAIL reference.\n\n## When to Use\n\n- User asks to compile\u002Fbuild a `.c` eBPF program to `.o`\n- User asks to verify a `.o` ELF file or check if it passes the verifier\n- User asks to debug or fix a verification failure from bpf2c output\n- User mentions bpf2c, clang+bpf, or PREVAIL verification in the ebpf-for-windows context\n\n## Prerequisites\n\n- **clang.exe** — find the first existing path (highest priority first):\n  `packages\\llvm.tools\\clang.exe`, `\"$env:ProgramFiles\\LLVM\\bin\\clang.exe\"`,\n  `\"$(& \"${env:ProgramFiles(x86)}\\Microsoft Visual Studio\\Installer\\vswhere.exe\" -latest -property installationPath)\\VC\\Tools\\Llvm\\bin\\clang.exe\"`\n- **bpf2c.exe** — if `x64\\Debug\\bpf2c.exe` is missing, build it:\n  `msbuild ebpf-for-windows.sln \u002Fm \u002Fp:Configuration=Debug \u002Fp:Platform=x64 \u002Ft:tools\\bpf2c`\n\n## Quick Reference\n\n### 1. Compile: C → ELF (.o)\n\nRun from the **solution root directory** (use the clang path found above):\n\n```powershell\n# Standard sample programs\n& '\u003Cclang-path>' -g -target bpf -O2 -Werror `\n  -Iinclude -Iexternal\\bpftool `\n  -Itests\\xdp -Itests\\socket `\n  -Itests\\sample\\ext\\inc -Itests\\include `\n  -c \u003CSOURCE>.c -o \u003COUTPUT>.o\n```\n\nFor **undocked** programs (`tests\\sample\\undocked\\*.c`), also add:\n- `-Itests\\sample`\n- `-Iundocked\\tests\\sample\\ext\\inc`\n\n### 2. Verify: ELF (.o) → native C (via bpf2c)\n\n```powershell\n.\\x64\\Debug\\bpf2c.exe --bpf \u003CFILE>.o --sys \u003COUTPUT_DIR>\\\u003Cname>_driver.c\n```\n\nAdd **`--verbose`** to get detailed verifier output (pre\u002Fpost invariants at each instruction)\non failure.\n\n### bpf2c Options\n\n| Flag | Purpose |\n|------|---------|\n| `--bpf \u003Cfile>` | Input ELF file containing BPF bytecode |\n| `--sys \u003Cfile>` | Generate Windows kernel driver C wrapper |\n| `--dll \u003Cfile>` | Generate Windows DLL C wrapper |\n| `--raw \u003Cfile>` | Generate C code without platform wrapper |\n| `--verbose` | Show detailed verifier failure info (invariants) |\n| `--type \u003Cstr>` | Override eBPF program type string |\n| `--hash \u003Calg>` | Algorithm used to hash ELF file |\n\n## Workflow\n\n### Step 1: Identify the Source\n\nDetermine the `.c` source file and where the `.o` should go. Common patterns:\n\n| Source Location | Include Flags |\n|----------------|---------------|\n| `tests\\sample\\*.c` | `-Iinclude -Iexternal\\bpftool -Itests\\xdp -Itests\\socket -Itests\\sample\\ext\\inc -Itests\\include` |\n| `tests\\sample\\undocked\\*.c` | Same as above, plus `-Itests\\sample -Iundocked\\tests\\sample\\ext\\inc` |\n| User-provided file | Start with the standard sample flags; add more `-I` paths as needed |\n\n### Step 2: Compile with Clang\n\nRun clang. If it fails, fix compiler errors in the C source (standard C\u002Fclang diagnostics).\n\n### Step 3: Verify with bpf2c\n\nRun bpf2c with `--sys` (or `--dll`\u002F`--raw`). Two outcomes:\n\n- **Success** → bpf2c generates the output C file. Verification passed.\n- **Failure** → bpf2c prints verifier errors. Proceed to diagnosis.\n\n### Step 4: Diagnose Failures\n\nOn verification failure:\n\n1. **Re-run with `--verbose`** if not already used, to get full invariant output.\n2. **Read `external\u002Febpf-verifier\u002Fdocs\u002Fllm-context.md`** — the authoritative PREVAIL diagnostic reference.\n3. Follow the diagnosis protocol in that document (identify error → check pre-invariant →\n   trace root cause → recommend fix).\n\n## Example: Full Pipeline\n\n```powershell\n# Compile (undocked program — needs full include paths)\n& '\u003Cclang-path>' -g -target bpf -O2 -Werror `\n  -Iinclude -Iexternal\\bpftool `\n  -Itests\\xdp -Itests\\socket -Itests\\sample\\ext\\inc -Itests\\include `\n  -Itests\\sample -Iundocked\\tests\\sample\\ext\\inc `\n  -c tests\\sample\\undocked\\perf_event_burst.c `\n  -o x64\\Debug\\perf_event_burst.o\n\n# Verify + generate driver\n.\\x64\\Debug\\bpf2c.exe --bpf x64\\Debug\\perf_event_burst.o `\n  --sys .\\x64\\Debug\\perf_event_burst_km\\perf_event_burst_driver.c\n\n# If verification fails, re-run with --verbose for diagnosis\n.\\x64\\Debug\\bpf2c.exe --bpf x64\\Debug\\perf_event_burst.o `\n  --sys .\\x64\\Debug\\perf_event_burst_km\\perf_event_burst_driver.c `\n  --verbose\n```\n",{"name":5,"description":7},"main","6b926d6a1817d53447fe7ebad4553d229a65db15",".github\u002Fskills\u002Fverify-bpf",311,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Febpf-for-windows","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 14:51:11",{"source":9,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add microsoft\u002Febpf-for-windows --skill verify-bpf",{"tool":54,"command":55},"bunx","bunx skills add microsoft\u002Febpf-for-windows --skill verify-bpf",{"tool":57,"command":58},"pnpm","pnpm dlx skills add microsoft\u002Febpf-for-windows --skill verify-bpf","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Febpf-for-windows\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fverify-bpf\u002FSKILL.md",true,[],[63,78,98,112,130,144],{"skillNo":64,"name":65,"nameZh":66,"description":67,"descriptionZh":68,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":69,"categories":70,"keywords":75,"publishedAt":34},"01M69BN8YQKAE51YKPGM1P5D8Y","verify-prevail","PREVAIL 验证失败诊断","Diagnose eBPF program verification failures from the PREVAIL verifier. Use this skill for linux-compatible eBPF programs verified in the standalone PREVAIL repo (external\u002Febpf-verifier). For programs using Windows-specific features (bpf2c pipeline, Windows helpers, ebpf-for-windows headers), use the 'verify-bpf' skill instead.","诊断 PREVAIL 验证器报告的 eBPF 程序验证失败。此技能适用于在独立 PREVAIL 仓库（external\u002Febpf-verifier）中验证的 Linux 兼容 eBPF 程序。对于使用 Windows 特定功能的程序（bpf2c 流水线、Windows helpers、ebpf-for-windows 头文件），请改用 'verify-bpf' 技能。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Febpf-for-windows\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fverify-prevail\u002FSKILL.md",[71,72],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":73,"categoryName":74,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRSRYQ3M8N5063NNQPF2B1","调试与故障排查",[76,33,32,77],"verify prevail","linux",{"skillNo":79,"name":80,"nameZh":81,"description":82,"descriptionZh":83,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":84,"categories":85,"keywords":90,"publishedAt":34},"01M69BN58F1ZWDSCW6S82KV161","pr-triage-report","PR 分诊报告生成","Generate a Markdown triage report for open, non-draft pull requests in microsoft\u002Febpf-for-windows, including CI, freshness, sign-offs, and next-owner routing.","为 microsoft\u002Febpf-for-windows 中开放的、非草稿状态的拉取请求（PR）生成 Markdown 分诊报告，包括 CI 状态、新鲜度、签署认可（sign-offs）以及下一负责人路由。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Febpf-for-windows\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fpr-triage-report\u002FSKILL.md",[86,87],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":88,"categoryName":89,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BR5V701HCN066VEP7H4812","代码仓库协作管理",[91,92,93,94,95,96,97,32,10],"pr triage report","report","pr","triage","pull requests","routing","generate",{"skillNo":99,"name":100,"nameZh":101,"description":102,"descriptionZh":103,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":104,"categories":105,"keywords":108,"publishedAt":34},"01M69BN3FC5S02AX8H7TP0HRJB","debug-crash-dump","崩溃转储文件调试分析","Download and analyze crash dumps from CI failures using CDB\u002FWinDbg. Use this skill when asked to debug crashes, analyze dump files, set up WinDbg\u002FCDB, investigate fault injection failures, or start mcp-windbg.","使用 CDB\u002FWinDbg 下载并分析 CI 失败产生的故障转储文件（crash dump）。当用户要求调试崩溃、分析转储文件、配置 WinDbg\u002FCDB、调查故障注入失败或启动 mcp-windbg 时使用此技能。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Febpf-for-windows\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fdebug-crash-dump\u002FSKILL.md",[106,107],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":73,"categoryName":74,"taxonomyType":28,"taxonomyTypeDesc":29},[109,110,111],"debug","debug crash dump","MCP",{"skillNo":113,"name":114,"nameZh":115,"description":116,"descriptionZh":117,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":118,"categories":119,"keywords":124,"publishedAt":34},"01M69BN1TSPVSGK8P5ARTGPJF8","build-prevail","PREVAIL 验证器构建测试","Build and test the PREVAIL verifier (external\u002Febpf-verifier) standalone. Use this skill when asked to build, test, or iterate on the PREVAIL verifier, run YAML verification tests, or work with the verifier's cmake build system.","独立构建并测试 PREVAIL 验证器（external\u002Febpf-verifier）。当需要构建、测试或迭代 PREVAIL 验证器，运行 YAML 验证测试，或使用该验证器的 cmake 构建系统时使用此技能。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Febpf-for-windows\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fbuild-prevail\u002FSKILL.md",[120,121],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":122,"categoryName":123,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理",[125,126,127,128,129],"build prevail","build and test","run","cmake","test",{"skillNo":131,"name":132,"nameZh":133,"description":134,"descriptionZh":135,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":136,"categories":137,"keywords":140,"publishedAt":34},"01M69BN01QNNCXEDRYYWD6YF65","build-ebpf","eBPF for Windows 项目构建","Build the eBPF for Windows repository — entire solution or specific components. Use this skill when asked to build, compile, rebuild, restore, or clean the project or any of its components (drivers, libraries, tools, tests, etc.).","构建 eBPF for Windows 仓库——整个解决方案或特定组件。当需要构建、编译、重新构建、还原或清理项目及其任何组件（驱动、库、工具、测试等）时使用此技能。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Febpf-for-windows\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fbuild-ebpf\u002FSKILL.md",[138,139],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":122,"categoryName":123,"taxonomyType":28,"taxonomyTypeDesc":29},[141,142,32,143],"build ebpf","components","libraries",{"skillNo":145,"name":146,"nameZh":147,"description":148,"descriptionZh":149,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":150,"categories":151,"keywords":154,"publishedAt":34},"01M69BMY86HY0592TPA6B5VCAZ","adversarial-branch-review","ebPF C++ 分支变更对抗审查","Perform a deep adversarial review of C\u002FC++ changes between an active branch and a baseline branch in ebpf-for-windows. Produce both a detailed review report and a point-by-point fix list.","对 ebpf-for-windows 中活动分支与基线分支之间的 C\u002FC++ 变更执行深度对抗性审查，产出详细的审查报告和逐条修复清单。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Febpf-for-windows\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fadversarial-branch-review\u002FSKILL.md",[152,153],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":88,"categoryName":89,"taxonomyType":28,"taxonomyTypeDesc":29},[155,156,32,157,92],"review","adversarial branch review","adversarial review"]