[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6WZHXMZT058XVWRSHEP9WJT":3,"skill-same:01M6WZHXMZT058XVWRSHEP9WJT":63},{"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":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":42,"repositoryHtmlUrl":43,"repositoryHomepageUrl":44,"ownerHtmlUrl":45,"ownerBlogUrl":46,"ownerDescription":47,"updatedAt":48,"install":49,"resources":62},"01M6WZHXMZT058XVWRSHEP9WJT","add-test",null,"Create a new Verona compiler test case. Use when the user wants to add a test, create a test, or scaffold a test for the compiler.","microsoft\u002Fverona","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M6WZHTA01TB3YK5SZM938MTG",3742,"MIT","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fverona\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fadd-test\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32],"test","add test","add","scaffold","create","compiler","ffi","user","use","name","case","error","for","when","2026-11-10 10:12:30",false,"---\nname: add-test\ndescription: Create a new Verona compiler test case. Use when the user wants to add a test, create a test, or scaffold a test for the compiler.\nargument-hint: \u003Ctest-name> [error|ffi]\n---\n\n# Add a Verona Compiler Test\n\nCreate a new test case in `testsuite\u002Fv\u002F` for the Verona compiler.\n\n## Arguments\n\n- `$0` — the test name (required, snake_case)\n- `$1` — if set to `error`, creates a compile-error test (exit code 1, no run\u002F directory). If set to `ffi`, creates a test that uses FFI builtins.\n\n## Steps\n\n### 1. Create the source file\n\nCreate `testsuite\u002Fv\u002F$0\u002F$0.v` with appropriate Verona source code. For an\nexpected compile error, use\n`testsuite\u002Fv\u002Fcompile_only\u002F$0\u002F$0.v` instead.\n\n**Conventions:**\n- Tests must be self-contained — no external dependencies (no `use \"https:\u002F\u002F...\"`)\n- Use only `_builtin` types\n- Do NOT write `use \"_builtin\"` — it is always implicitly available\n- No semicolons after closing braces of control flow (`for`, `if`, `while`)\n- Semicolons are needed after statements and field definitions\n- Don't use explicit type annotations on literals when inference can determine the type from context (write `0` not `usize 0`)\n- Class definitions use bare names: `myclass[T] { ... }`\n- Fields need semicolons: `val: T;`\n- `new` uses `new { field = val }` (no class name after `new`)\n- Use `Type(args)` constructor sugar: `callback(f)` instead of `callback::create(f)`\n- Use `(obj.field)(args)` for apply on field access, `x.method` for zero-arg methods\n\n**For success tests (default):**\n- Use the bitmask exit code pattern: `var result = 0;` then `if cond { result = result + N; }` with powers of 2\n- Exit code 0 means all checks passed\n- The `main` function must return `i32`\n\n**For compile-error tests (`$1` = `error`):**\n- Write code that should fail to compile\n- The test validates that the compiler correctly rejects invalid code\n- Keep the test under `testsuite\u002Fv\u002Fcompile_only\u002F` so no run node is registered\n\n**For FFI tests (`$1` = `ffi`):**\n- Tests that use FFI builtins (`:::name(...)` syntax) or `_builtin\u002Fffi\u002F` wrappers (e.g., `ffi::add_external()`)\n- If the test relies on init functions running, it MUST include at least one reachable FFI call from the same lib — init functions are only reified when their lib's FFI symbols are called from reachable code\n- Declare FFI symbols in a `use` block with a `Lib` string\n- Call FFI wrappers as `ffi::func_name(args)` for functions in `_builtin\u002Fffi\u002F`\n\n### 2. Generate golden files\n\nRun from the `build` directory:\n\n```bash\ncd build\nninja install && ninja update-dump\n```\n\nThis auto-generates the golden file directory structure:\n- `testsuite\u002Fv\u002F$0\u002F$0\u002Fcompile\u002F` (or `testsuite\u002Fv\u002Fcompile_only\u002F$0\u002F$0\u002Fcompile\u002F`\n  for errors) — contains `exit_code.txt`, `stdout.txt`, `stderr.txt`, pass dump\n  files (`00_parse.trieste` through `13_typecheck.trieste`),\n  `*_final.trieste`, and `.vbc` file (success tests only)\n- `testsuite\u002Fv\u002F$0\u002F$0\u002Frun\u002F` — contains `exit_code.txt`, `stdout.txt`, `stderr.txt` (only for success tests that produce a `.vbc`)\n\n### 3. Verify golden file completeness\n\nCheck that the golden `compile\u002F` directory has the expected files:\n- All 14 pass dumps: `00_parse.trieste` through `13_typecheck.trieste`\n- `*_final.trieste`\n- `exit_code.txt` (value `0` for success, `1` for error, no trailing newline)\n- `stdout.txt` and `stderr.txt`\n- `*.vbc` file (success tests only)\n\nIf pass dumps are missing (e.g., only 0–5 present), it usually means a WF violation in a later pass. Investigate with `dist\u002Fvc\u002Fvc build ..\u002Ftestsuite\u002Fv\u002F$0 --dump_passes=dump_$0` to see which pass fails.\n\nFor error tests: no `run\u002F` directory, no `.vbc` file, `exit_code.txt` = `1`.\n\n### 4. Verify the test passes\n\n```bash\ncd build && ctest --output-on-failure -R \"^vbc\u002Fv\u002F$0\u002F$0\" -j$(nproc)\n```\n\nThis should show the test passing. If it fails, check the source code and re-run `ninja update-dump`.\nFor an expected compile error, use\n`\"^vbc\u002Fv\u002Fcompile_only\u002F$0\u002F$0\"` instead.\n\n### 5. Report\n\nState the test name, whether it's a success\u002Ferror\u002Fffi test, what it tests, and the expected exit code.\n","# Add a Verona Compiler Test\n\nCreate a new test case in `testsuite\u002Fv\u002F` for the Verona compiler.\n\n## Arguments\n\n- `$0` — the test name (required, snake_case)\n- `$1` — if set to `error`, creates a compile-error test (exit code 1, no run\u002F directory). If set to `ffi`, creates a test that uses FFI builtins.\n\n## Steps\n\n### 1. Create the source file\n\nCreate `testsuite\u002Fv\u002F$0\u002F$0.v` with appropriate Verona source code. For an\nexpected compile error, use\n`testsuite\u002Fv\u002Fcompile_only\u002F$0\u002F$0.v` instead.\n\n**Conventions:**\n- Tests must be self-contained — no external dependencies (no `use \"https:\u002F\u002F...\"`)\n- Use only `_builtin` types\n- Do NOT write `use \"_builtin\"` — it is always implicitly available\n- No semicolons after closing braces of control flow (`for`, `if`, `while`)\n- Semicolons are needed after statements and field definitions\n- Don't use explicit type annotations on literals when inference can determine the type from context (write `0` not `usize 0`)\n- Class definitions use bare names: `myclass[T] { ... }`\n- Fields need semicolons: `val: T;`\n- `new` uses `new { field = val }` (no class name after `new`)\n- Use `Type(args)` constructor sugar: `callback(f)` instead of `callback::create(f)`\n- Use `(obj.field)(args)` for apply on field access, `x.method` for zero-arg methods\n\n**For success tests (default):**\n- Use the bitmask exit code pattern: `var result = 0;` then `if cond { result = result + N; }` with powers of 2\n- Exit code 0 means all checks passed\n- The `main` function must return `i32`\n\n**For compile-error tests (`$1` = `error`):**\n- Write code that should fail to compile\n- The test validates that the compiler correctly rejects invalid code\n- Keep the test under `testsuite\u002Fv\u002Fcompile_only\u002F` so no run node is registered\n\n**For FFI tests (`$1` = `ffi`):**\n- Tests that use FFI builtins (`:::name(...)` syntax) or `_builtin\u002Fffi\u002F` wrappers (e.g., `ffi::add_external()`)\n- If the test relies on init functions running, it MUST include at least one reachable FFI call from the same lib — init functions are only reified when their lib's FFI symbols are called from reachable code\n- Declare FFI symbols in a `use` block with a `Lib` string\n- Call FFI wrappers as `ffi::func_name(args)` for functions in `_builtin\u002Fffi\u002F`\n\n### 2. Generate golden files\n\nRun from the `build` directory:\n\n```bash\ncd build\nninja install && ninja update-dump\n```\n\nThis auto-generates the golden file directory structure:\n- `testsuite\u002Fv\u002F$0\u002F$0\u002Fcompile\u002F` (or `testsuite\u002Fv\u002Fcompile_only\u002F$0\u002F$0\u002Fcompile\u002F`\n  for errors) — contains `exit_code.txt`, `stdout.txt`, `stderr.txt`, pass dump\n  files (`00_parse.trieste` through `13_typecheck.trieste`),\n  `*_final.trieste`, and `.vbc` file (success tests only)\n- `testsuite\u002Fv\u002F$0\u002F$0\u002Frun\u002F` — contains `exit_code.txt`, `stdout.txt`, `stderr.txt` (only for success tests that produce a `.vbc`)\n\n### 3. Verify golden file completeness\n\nCheck that the golden `compile\u002F` directory has the expected files:\n- All 14 pass dumps: `00_parse.trieste` through `13_typecheck.trieste`\n- `*_final.trieste`\n- `exit_code.txt` (value `0` for success, `1` for error, no trailing newline)\n- `stdout.txt` and `stderr.txt`\n- `*.vbc` file (success tests only)\n\nIf pass dumps are missing (e.g., only 0–5 present), it usually means a WF violation in a later pass. Investigate with `dist\u002Fvc\u002Fvc build ..\u002Ftestsuite\u002Fv\u002F$0 --dump_passes=dump_$0` to see which pass fails.\n\nFor error tests: no `run\u002F` directory, no `.vbc` file, `exit_code.txt` = `1`.\n\n### 4. Verify the test passes\n\n```bash\ncd build && ctest --output-on-failure -R \"^vbc\u002Fv\u002F$0\u002F$0\" -j$(nproc)\n```\n\nThis should show the test passing. If it fails, check the source code and re-run `ninja update-dump`.\nFor an expected compile error, use\n`\"^vbc\u002Fv\u002Fcompile_only\u002F$0\u002F$0\"` instead.\n\n### 5. Report\n\nState the test name, whether it's a success\u002Ferror\u002Fffi test, what it tests, and the expected exit code.\n",{"name":5,"description":7,"argument-hint":38},"\u003Ctest-name> [error|ffi]","main","e9256534317bd40707e7e78ba022b8bcd0eb6577",".agents\u002Fskills\u002Fadd-test",173,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fverona","https:\u002F\u002Fmicrosoft.github.io\u002Fverona\u002F","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-13 21:03:28",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add microsoft\u002Fverona --skill add-test",{"tool":55,"command":56},"bunx","bunx skills add microsoft\u002Fverona --skill add-test",{"tool":58,"command":59},"pnpm","pnpm dlx skills add microsoft\u002Fverona --skill add-test","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fverona\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fadd-test\u002FSKILL.md",true,[],[64,86,105,121,137,156],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":33},"01M6WZM7JFY7GMHE7YTCC4K0ZS","verona-type-inference","Verona compiler type inference model — bidirectional refinement, per-function inference, lambda\u002Fcontext propagation, algebraic and structural typing, generics, and debugging. Use when changing or debugging `vc\u002Fpasses\u002Finfer.cc` or investigating type inference failures.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fverona\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fverona-type-inference\u002FSKILL.md",[],[71,72,73,74,32,75,76,77,78,79,80,81,27,82,83,84,24,85],"verona type inference","type","inference","cc","vc","refinement","typing","infer","false","propagation","structural","context","model","lambda","debugging",{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":33},"01M6WZM48VF2FFX61WFYTD5XVJ","verona-conventions","Verona compiler coding conventions, C++ style, trieste patterns, and project structure. Applies when writing or reviewing Verona compiler code.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fverona\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fverona-conventions\u002FSKILL.md",[],[93,94,95,79,96,97,98,99,100,24,101,102,103,32,104],"verona conventions","conventions","writing","project","c++","structure","patterns","coding","code","project structure","style","coding conventions",{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":33},"01M6WZM0Z3CTQG1ZRV9V2DZX9W","verona-coding","Patterns, pitfalls, and idioms for writing Verona source code (.v files). Use when writing library code, _builtin types, or user programs.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fverona\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fverona-coding\u002FSKILL.md",[],[112,100,32,113,114,31,115,116,99,117,118,119,27,26,120,101,95],"verona coding","source code","source","pitfalls","types","builtin","files","idioms","library",{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":33},"01M6WZKWW9ZCQ1EXZYR4GZ00YF","vbci-memory","Verona interpreter (vbci) memory management model — regions, reference counting, write barriers, dragging, cowns, and finalization. Use when working on or debugging vbci runtime memory management code.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fverona\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fvbci-memory\u002FSKILL.md",[],[128,129,130,32,131,132,133,134,27,135,136,83,101,85],"vbci memory","memory","runtime","counting","interpreter","memory management","reference","management","write",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":33},"01M6WZKP04VZBWRZ2449FBRDNY","testsuite","Verona compiler test suite infrastructure — running tests, updating golden files, verifying pass completeness, checking error codes. Use when debugging test failures, regenerating golden files, or understanding the test framework.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fverona\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftestsuite\u002FSKILL.md",[],[139,27,32,144,145,146,30,147,148,149,118,150,151,24,152,153,85,154,155,19],"error codes","suite","codes","golden","completeness","tests","test suite","running","running tests","framework","infrastructure","test framework",{"skillNo":157,"name":158,"nameZh":6,"description":159,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":160,"categories":161,"keywords":162,"publishedAt":33},"01M6WZKGQY812K6W0R89Y7HD9T","review","Run a principle-based code review on the current branch. Use when the user asks for a review, or at mandatory review checkpoints (after planning, after implementation before PR).","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fverona\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Freview\u002FSKILL.md",[],[158,163,164,165,166,167,101,32,31,168,26,27,169,170,171],"planning","branch","code review","pr","run","at","checkpoints","implementation","base"]