[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B1ZFD4G462R79S6GYFXZBM":3,"skill-same:01M7B1ZFD4G462R79S6GYFXZBM":46},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7B1ZFD4G462R79S6GYFXZBM","zig-testing",null,"Zig 测试与调试技能。涉及 std.testing 的断言、测试组织、内存泄漏检测、以及 std.debug 的日志、堆栈回溯。在需要编写测试、调试代码、诊断问题时调用。","Yabuku-xD\u002Fomfx","Yabuku-xD","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F78594762?v=4","01M7B1X88FX04Z53K2S2P3N2Z9","Shyamalan Kannan","01M7B1X89G34W3D025T1F4KNKF",0,"MIT","https:\u002F\u002Fgithub.com\u002FYabuku-xD\u002Fomfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzig-testing\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: zig-testing\ndescription: Zig 测试与调试技能。涉及 std.testing 的断言、测试组织、内存泄漏检测、以及 std.debug 的日志、堆栈回溯。在需要编写测试、调试代码、诊断问题时调用。\n---\n\n# Zig 测试与调试\n\n> 基于 std.testing 和 std.debug 的质量保障工具（Zig 0.16.0）。\n\n## Capability Boundaries\n\n### ✅ 强项\n1. 单元测试编写与断言\n2. 测试组织（test 声明、doctest、测试过滤器）\n3. 内存泄漏检测\n4. 日志输出（std.log）\n5. 调试工具（panic、断言、堆栈回溯、hex dump）\n\n### ⚠️ 前置要求\n1. 确认 Zig 版本（`zig version`）\n\n### ❌ 不适用范围\n1. 构建系统测试配置 → 使用 `zig-build-system` 技能\n2. 集成测试框架 → 使用 `zig-0.16` 技能\n3. 性能基准测试 → 暂不涉及（Zig 尚未内置 benchmark）\n\n## 何时使用\n\n- \"帮我写单元测试\"\n- \"调试这个函数的输出\"\n- \"检查内存泄漏\"\n\n## Data Privacy\n\n本技能不收集、存储或传输任何用户数据。\n\n## Workflow — 测试\n\n步骤 1. **声明测试** — `test \"name\" { ... }`\n步骤 2. **使用断言** — `expect`, `expectEqual`, `expectEqualStrings`\n步骤 3. **运行测试** — `zig test src\u002Fmain.zig` 或 `zig build test`\n步骤 4. **检查结果** — 通过\u002F失败\u002F泄漏\n\n## 断言速查\n\n| 断言 | 用途 |\n|------|------|\n| `expect(bool)` | 条件为真 |\n| `expectEqual(expected, actual)` | 浅相等（peer type） |\n| `expectEqualDeep(expected, actual)` | 深相等（递归比较） |\n| `expectEqualStrings(expected, actual)` | 字符串相等（带 diff） |\n| `expectEqualSlices(T, expected, actual)` | 切片相等 |\n| `expectError(error, result)` | 返回特定错误 |\n| `expectApproxEqAbs(expected, actual, eps)` | 浮点近似（绝对误差） |\n| `expectApproxEqRel(expected, actual, eps)` | 浮点近似（相对误差） |\n| `expectFmt(expected, template, args)` | 格式化输出匹配 |\n| `expectStringStartsWith(actual, prefix)` | 字符串前缀 |\n| `expectStringEndsWith(actual, suffix)` | 字符串后缀 |\n\n## 基本断言\n\n```zig\ntest \"basic assertions\" {\n    try std.testing.expect(true);\n\n    try std.testing.expectEqual(@as(u32, 42), @as(u32, 42));\n\n    try std.testing.expectEqualStrings(\"hello\", \"hello\");\n\n    try std.testing.expectEqualSlices(u8, &[_]u8{ 1, 2 }, &[_]u8{ 1, 2 });\n\n    try std.testing.expectEqualDeep(\n        struct{ x: i32, y: i32 }{ .x = 1, .y = 2 },\n        struct{ x: i32, y: i32 }{ .x = 1, .y = 2 },\n    );\n}\n```\n\n### 浮点比较\n```zig\ntest \"float comparison\" {\n    try std.testing.expectApproxEqAbs(@as(f32, 1.0), 1.0001, 0.001);\n    try std.testing.expectApproxEqRel(@as(f64, 100.0), 99.5, 0.01);\n}\n```\n\n### 错误检查\n```zig\ntest \"error handling\" {\n    const result: anyerror!i32 = error.SomeError;\n    try std.testing.expectError(error.SomeError, result);\n}\n```\n\n## 测试组织\n\n### 内联测试\n```zig\nconst std = @import(\"std\");\nconst expect = std.testing.expect;\n\ntest \"inline test\" {\n    try expect(1 + 1 == 2);\n}\n```\n\n### doctest（文档中的测试）\n```zig\n\u002F\u002F\u002F Adds two numbers.\n\u002F\u002F\u002F\n\u002F\u002F\u002F ```\n\u002F\u002F\u002F const result = add(2, 3);\n\u002F\u002F\u002F try std.testing.expectEqual(@as(i32, 5), result);\n\u002F\u002F\u002F ```\nfn add(a: i32, b: i32) i32 {\n    return a + b;\n}\n```\n\n### 测试过滤器\n```bash\n# 运行名称包含 \"http\" 的测试\nzig test src\u002Fmain.zig --test-filter \"http\"\n\n# 在 build.zig 中过滤\nconst tests = b.addTest(.{\n    .root_module = mod,\n    .filters = &.{\"specific_test\"},\n});\n```\n\n### 测试模块\n```zig\n\u002F\u002F 在文件末尾使用 test 块\ntest \"module tests\" {\n    \u002F\u002F 引用当前模块\n    _ = @import(\"main.zig\");\n    \u002F\u002F 或者单独引用测试文件\n    _ = @import(\"tests\u002Ftests.zig\");\n}\n```\n\n## 内存泄漏检测\n\n### 使用 DebugAllocator\n```zig\ntest \"memory leak detection\" {\n    var gpa: std.heap.DebugAllocator(.{}) = .init;\n    defer {\n        const leaked = gpa.deinit();\n        \u002F\u002F leaked 为 true 表示有泄漏\n        if (leaked) @panic(\"Memory leak detected!\");\n    }\n    const allocator = gpa.allocator();\n\n    const buf = try allocator.alloc(u8, 100);\n    \u002F\u002F ⚠️ 忘记 allocator.free(buf) 会导致泄漏\n    \u002F\u002F defer allocator.free(buf);\n}\n```\n\n### 使用 testing.allocator\n```zig\ntest \"use testing allocator\" {\n    const allocator = std.testing.allocator;\n    \u002F\u002F testing.allocator 会自动检测泄漏\n    const buf = try allocator.alloc(u8, 10);\n    defer allocator.free(buf); \u002F\u002F 不 free 会报告泄漏\n}\n```\n\n### 检测日志\n```\n# 测试失败时输出泄漏信息\nzig test src\u002Fmain.zig\n# Memory leak detected: 1 allocations remaining (100 bytes)\n```\n\n## 日志与调试\n\n### 等级化日志\n```zig\nstd.log.debug(\"debug message: {}\", .{value});    \u002F\u002F 编译时可用\nstd.log.info(\"info: {}\", .{value});              \u002F\u002F 默认显示\nstd.log.warn(\"warning: {}\", .{value});           \u002F\u002F 重要警告\nstd.log.err(\"error: {}\", .{value});              \u002F\u002F 错误\n```\n\n### 自定义日志作用域\n```zig\nconst log = std.log.scoped(.http_client);\nlog.info(\"request to {s}\", .{url});\n\u002F\u002F 输出: [http_client] request to https:\u002F\u002Fexample.com\n```\n\n### 运行时日志级别\n```bash\n# 设置日志级别（默认 .info）\nzig build -Dlog-level=debug\n# 或按作用域过滤\nzig build -Dlog-scope-override=http_client=debug\n```\n\n### panic 和断言\n```zig\n\u002F\u002F 调试断言（仅在安全模式下检查）\nstd.debug.assert(x > 0);\n\n\u002F\u002F 不可达（标记不可能执行的代码路径）\nunreachable;\n\n\u002F\u002F 主动 panic\n@panic(\"something went wrong\");\n```\n\n### 堆栈回溯\n```zig\n\u002F\u002F 在 panic 或断言失败时自动打印堆栈\n\u002F\u002F 手动打印：\nstd.debug.dumpCurrentStackTrace(null);\n```\n\n### Hex Dump\n```zig\nconst bytes = [_]u8{ 0x48, 0x65, 0x6C, 0x6C, 0x6F };\nstd.debug.hexDump(\"data\", &bytes);\n\u002F\u002F 输出:\n\u002F\u002F data:\n\u002F\u002F 00000000: 48 65 6C 6C 6F                                Hello\n```\n\n## 测试配置（build.zig）\n\n### 标准测试步骤\n```zig\nconst tests = b.addTest(.{\n    .root_module = b.createModule(.{\n        .root_source_file = b.path(\"src\u002Fmain.zig\"),\n        .target = target,\n        .optimize = optimize,\n    }),\n});\n\nconst run_tests = b.addRunArtifact(tests);\nconst test_step = b.step(\"test\", \"运行单元测试\");\ntest_step.dependOn(&run_tests.step);\n```\n\n### 多模块测试聚合\n```zig\nconst test_step = b.step(\"test\", \"运行所有测试\");\nfor ([_]*std.Build.Module{ mod_a, mod_b, mod_c }) |mod| {\n    const t = b.addTest(.{ .root_module = mod });\n    test_step.dependOn(&b.addRunArtifact(t).step);\n}\n```\n\n## Gotchas\n\n1. **`expectEqual` 使用 peer type** — 两参数必须显式类型一致，推荐 `expectEqual(@as(u32, 42), value)`\n2. **`testing.allocator` 只用于测试** — 它自动检测泄漏，但性能较差，生产环境用 `DebugAllocator`\n3. **test 声明不能嵌套** — `test \"...\" { test \"...\" {} }` 不合法\n4. **doctest 只验证不输出** — 文档中的代码块默认被测试，但如果 panic 不会显示详细信息\n5. **`std.log.debug` 默认不显示** — 需要在构建时启用 `-Dlog-level=debug`\n\n## FAQ\n\n**Q：如何只运行特定的测试？**\nA：命令行 `zig test src\u002Fmain.zig --test-filter \"http\"`，或通过 build.zig 的 `filters` 选项。\n\n**Q：测试依赖的初始化代码怎么写？**\nA：在 `test` 块内部初始化，或创建一个全局的测试辅助函数 `fn testUtil() !void`。\n\n**Q：Zig 有基准测试吗？**\nA：Zig 标准库尚未内置 benchmark 工具。可以在测试中手动计时：`const start = std.time.Timer.start()?`。\n","# Zig 测试与调试\n\n> 基于 std.testing 和 std.debug 的质量保障工具（Zig 0.16.0）。\n\n## Capability Boundaries\n\n### ✅ 强项\n1. 单元测试编写与断言\n2. 测试组织（test 声明、doctest、测试过滤器）\n3. 内存泄漏检测\n4. 日志输出（std.log）\n5. 调试工具（panic、断言、堆栈回溯、hex dump）\n\n### ⚠️ 前置要求\n1. 确认 Zig 版本（`zig version`）\n\n### ❌ 不适用范围\n1. 构建系统测试配置 → 使用 `zig-build-system` 技能\n2. 集成测试框架 → 使用 `zig-0.16` 技能\n3. 性能基准测试 → 暂不涉及（Zig 尚未内置 benchmark）\n\n## 何时使用\n\n- \"帮我写单元测试\"\n- \"调试这个函数的输出\"\n- \"检查内存泄漏\"\n\n## Data Privacy\n\n本技能不收集、存储或传输任何用户数据。\n\n## Workflow — 测试\n\n步骤 1. **声明测试** — `test \"name\" { ... }`\n步骤 2. **使用断言** — `expect`, `expectEqual`, `expectEqualStrings`\n步骤 3. **运行测试** — `zig test src\u002Fmain.zig` 或 `zig build test`\n步骤 4. **检查结果** — 通过\u002F失败\u002F泄漏\n\n## 断言速查\n\n| 断言 | 用途 |\n|------|------|\n| `expect(bool)` | 条件为真 |\n| `expectEqual(expected, actual)` | 浅相等（peer type） |\n| `expectEqualDeep(expected, actual)` | 深相等（递归比较） |\n| `expectEqualStrings(expected, actual)` | 字符串相等（带 diff） |\n| `expectEqualSlices(T, expected, actual)` | 切片相等 |\n| `expectError(error, result)` | 返回特定错误 |\n| `expectApproxEqAbs(expected, actual, eps)` | 浮点近似（绝对误差） |\n| `expectApproxEqRel(expected, actual, eps)` | 浮点近似（相对误差） |\n| `expectFmt(expected, template, args)` | 格式化输出匹配 |\n| `expectStringStartsWith(actual, prefix)` | 字符串前缀 |\n| `expectStringEndsWith(actual, suffix)` | 字符串后缀 |\n\n## 基本断言\n\n```zig\ntest \"basic assertions\" {\n    try std.testing.expect(true);\n\n    try std.testing.expectEqual(@as(u32, 42), @as(u32, 42));\n\n    try std.testing.expectEqualStrings(\"hello\", \"hello\");\n\n    try std.testing.expectEqualSlices(u8, &[_]u8{ 1, 2 }, &[_]u8{ 1, 2 });\n\n    try std.testing.expectEqualDeep(\n        struct{ x: i32, y: i32 }{ .x = 1, .y = 2 },\n        struct{ x: i32, y: i32 }{ .x = 1, .y = 2 },\n    );\n}\n```\n\n### 浮点比较\n```zig\ntest \"float comparison\" {\n    try std.testing.expectApproxEqAbs(@as(f32, 1.0), 1.0001, 0.001);\n    try std.testing.expectApproxEqRel(@as(f64, 100.0), 99.5, 0.01);\n}\n```\n\n### 错误检查\n```zig\ntest \"error handling\" {\n    const result: anyerror!i32 = error.SomeError;\n    try std.testing.expectError(error.SomeError, result);\n}\n```\n\n## 测试组织\n\n### 内联测试\n```zig\nconst std = @import(\"std\");\nconst expect = std.testing.expect;\n\ntest \"inline test\" {\n    try expect(1 + 1 == 2);\n}\n```\n\n### doctest（文档中的测试）\n```zig\n\u002F\u002F\u002F Adds two numbers.\n\u002F\u002F\u002F\n\u002F\u002F\u002F ```\n\u002F\u002F\u002F const result = add(2, 3);\n\u002F\u002F\u002F try std.testing.expectEqual(@as(i32, 5), result);\n\u002F\u002F\u002F ```\nfn add(a: i32, b: i32) i32 {\n    return a + b;\n}\n```\n\n### 测试过滤器\n```bash\n# 运行名称包含 \"http\" 的测试\nzig test src\u002Fmain.zig --test-filter \"http\"\n\n# 在 build.zig 中过滤\nconst tests = b.addTest(.{\n    .root_module = mod,\n    .filters = &.{\"specific_test\"},\n});\n```\n\n### 测试模块\n```zig\n\u002F\u002F 在文件末尾使用 test 块\ntest \"module tests\" {\n    \u002F\u002F 引用当前模块\n    _ = @import(\"main.zig\");\n    \u002F\u002F 或者单独引用测试文件\n    _ = @import(\"tests\u002Ftests.zig\");\n}\n```\n\n## 内存泄漏检测\n\n### 使用 DebugAllocator\n```zig\ntest \"memory leak detection\" {\n    var gpa: std.heap.DebugAllocator(.{}) = .init;\n    defer {\n        const leaked = gpa.deinit();\n        \u002F\u002F leaked 为 true 表示有泄漏\n        if (leaked) @panic(\"Memory leak detected!\");\n    }\n    const allocator = gpa.allocator();\n\n    const buf = try allocator.alloc(u8, 100);\n    \u002F\u002F ⚠️ 忘记 allocator.free(buf) 会导致泄漏\n    \u002F\u002F defer allocator.free(buf);\n}\n```\n\n### 使用 testing.allocator\n```zig\ntest \"use testing allocator\" {\n    const allocator = std.testing.allocator;\n    \u002F\u002F testing.allocator 会自动检测泄漏\n    const buf = try allocator.alloc(u8, 10);\n    defer allocator.free(buf); \u002F\u002F 不 free 会报告泄漏\n}\n```\n\n### 检测日志\n```\n# 测试失败时输出泄漏信息\nzig test src\u002Fmain.zig\n# Memory leak detected: 1 allocations remaining (100 bytes)\n```\n\n## 日志与调试\n\n### 等级化日志\n```zig\nstd.log.debug(\"debug message: {}\", .{value});    \u002F\u002F 编译时可用\nstd.log.info(\"info: {}\", .{value});              \u002F\u002F 默认显示\nstd.log.warn(\"warning: {}\", .{value});           \u002F\u002F 重要警告\nstd.log.err(\"error: {}\", .{value});              \u002F\u002F 错误\n```\n\n### 自定义日志作用域\n```zig\nconst log = std.log.scoped(.http_client);\nlog.info(\"request to {s}\", .{url});\n\u002F\u002F 输出: [http_client] request to https:\u002F\u002Fexample.com\n```\n\n### 运行时日志级别\n```bash\n# 设置日志级别（默认 .info）\nzig build -Dlog-level=debug\n# 或按作用域过滤\nzig build -Dlog-scope-override=http_client=debug\n```\n\n### panic 和断言\n```zig\n\u002F\u002F 调试断言（仅在安全模式下检查）\nstd.debug.assert(x > 0);\n\n\u002F\u002F 不可达（标记不可能执行的代码路径）\nunreachable;\n\n\u002F\u002F 主动 panic\n@panic(\"something went wrong\");\n```\n\n### 堆栈回溯\n```zig\n\u002F\u002F 在 panic 或断言失败时自动打印堆栈\n\u002F\u002F 手动打印：\nstd.debug.dumpCurrentStackTrace(null);\n```\n\n### Hex Dump\n```zig\nconst bytes = [_]u8{ 0x48, 0x65, 0x6C, 0x6C, 0x6F };\nstd.debug.hexDump(\"data\", &bytes);\n\u002F\u002F 输出:\n\u002F\u002F data:\n\u002F\u002F 00000000: 48 65 6C 6C 6F                                Hello\n```\n\n## 测试配置（build.zig）\n\n### 标准测试步骤\n```zig\nconst tests = b.addTest(.{\n    .root_module = b.createModule(.{\n        .root_source_file = b.path(\"src\u002Fmain.zig\"),\n        .target = target,\n        .optimize = optimize,\n    }),\n});\n\nconst run_tests = b.addRunArtifact(tests);\nconst test_step = b.step(\"test\", \"运行单元测试\");\ntest_step.dependOn(&run_tests.step);\n```\n\n### 多模块测试聚合\n```zig\nconst test_step = b.step(\"test\", \"运行所有测试\");\nfor ([_]*std.Build.Module{ mod_a, mod_b, mod_c }) |mod| {\n    const t = b.addTest(.{ .root_module = mod });\n    test_step.dependOn(&b.addRunArtifact(t).step);\n}\n```\n\n## Gotchas\n\n1. **`expectEqual` 使用 peer type** — 两参数必须显式类型一致，推荐 `expectEqual(@as(u32, 42), value)`\n2. **`testing.allocator` 只用于测试** — 它自动检测泄漏，但性能较差，生产环境用 `DebugAllocator`\n3. **test 声明不能嵌套** — `test \"...\" { test \"...\" {} }` 不合法\n4. **doctest 只验证不输出** — 文档中的代码块默认被测试，但如果 panic 不会显示详细信息\n5. **`std.log.debug` 默认不显示** — 需要在构建时启用 `-Dlog-level=debug`\n\n## FAQ\n\n**Q：如何只运行特定的测试？**\nA：命令行 `zig test src\u002Fmain.zig --test-filter \"http\"`，或通过 build.zig 的 `filters` 选项。\n\n**Q：测试依赖的初始化代码怎么写？**\nA：在 `test` 块内部初始化，或创建一个全局的测试辅助函数 `fn testUtil() !void`。\n\n**Q：Zig 有基准测试吗？**\nA：Zig 标准库尚未内置 benchmark 工具。可以在测试中手动计时：`const start = std.time.Timer.start()?`。\n",{"name":5,"description":7},"main","ebe6483a57ceac5b9da32b4a23fa4ba2fa7ac170",".agents\u002Fskills\u002Fzig-testing","https:\u002F\u002Fgithub.com\u002FYabuku-xD\u002Fomfx","https:\u002F\u002Fgithub.com\u002FYabuku-xD","shyamalankannan.com","😳 Indie-head with a versatile knowledge in development and modeling.","2026-11-13 04:46:29",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add Yabuku-xD\u002Fomfx --skill zig-testing",{"tool":38,"command":39},"bunx","bunx skills add Yabuku-xD\u002Fomfx --skill zig-testing",{"tool":41,"command":42},"pnpm","pnpm dlx skills add Yabuku-xD\u002Fomfx --skill zig-testing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FYabuku-xD\u002Fomfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzig-testing\u002FSKILL.md",true,[],[47,54,61,67,74,81],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7B1ZQXR4F45F34W3A9DH795","hello-omfx","Example skill. Use when testing omfx skill discovery.","https:\u002F\u002Fgithub.com\u002FYabuku-xD\u002Fomfx\u002Fblob\u002Fmain\u002Fskills\u002Fhello-omfx\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7B1ZJ19F0WDTZKD05EMGS5V","zig-tiger-style","TigerStyle Zig coding guidelines — distilled from TigerBeetle's production codebase. Use this skill whenever the user is writing, reviewing, or refactoring Zig code, asking about Zig idioms, best practices, assertions, memory layout, naming conventions, or code style. Also trigger when the user asks how to structure Zig structs, handle errors, write safe loops, or design Zig APIs. Even if the user just says \"write me some Zig\" or pastes Zig code for review, consult this skill first.","https:\u002F\u002Fgithub.com\u002FYabuku-xD\u002Fomfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzig-tiger-style\u002FSKILL.md",[],[],{"skillNo":62,"name":5,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7B1Z9K5AWQ89KBWSVK7Q9KM","Zig testing skill for writing and running tests. Use when using zig build test, writing comptime tests, using test filters, working with test allocators to detect leaks, or using Zig's built-in fuzz testing (0.14+). Activates on queries about Zig tests, zig test, zig build test, comptime testing, test allocators, Zig fuzz testing, or detecting memory leaks in Zig tests.","https:\u002F\u002Fgithub.com\u002FYabuku-xD\u002Fomfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzig-testing-lowlevel\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7B1Z52KAWNN9PPKMX9FP06N","zig-project-structure","Zig 项目结构全生命周期管理。创建项目骨架（exe\u002Flib\u002F多模块\u002F带依赖）或检查已有项目的目录结构、文件命名、构建配置合规性，输出结构化报告。","https:\u002F\u002Fgithub.com\u002FYabuku-xD\u002Fomfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzig-project-structure\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7B1YXXZMP87C8DDYPM213N8","zig-memory-patterns","This skill should be used when the user asks questions like \"how do allocators work in Zig\", \"explain Zig memory management\", \"when to use arena allocator\", \"how does Zig compare to Rust ownership\", \"how to manage memory in Zig\", or asks about memory allocation patterns for programmers coming from C, C++, Rust, or garbage-collected languages.","https:\u002F\u002Fgithub.com\u002FYabuku-xD\u002Fomfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzig-memory-patterns\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"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},"01M7B1YRSGWCSPRHHED1DW762A","zig-memory-management","Memory management in Zig including allocators, pointers, slices, alignment, and ownership patterns. Use when allocating memory, working with pointers\u002Fslices, or choosing the right allocator.","https:\u002F\u002Fgithub.com\u002FYabuku-xD\u002Fomfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzig-memory-management\u002FSKILL.md",[],[]]