[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AWDWZAD6RQ547RT96RHA5B":3,"skill-same:01M7AWDWZAD6RQ547RT96RHA5B":63},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7AWDWZAD6RQ547RT96RHA5B","nim-ownership-hooks",null,"Implement and review Nim ARC\u002FORC ownership hooks for types that manually manage resources, including move-only, deep-copy, refcounted, and copy-on-write patterns. Use when a Nim type owns pointers, buffers, file descriptors, or custom heap memory and you need correct `=destroy`, `=copy`, `=dup`, `=sink`, or move semantics.","Vyrnexis\u002Fnim-agent-template","Vyrnexis","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F315210836?v=4","01M7AWARQX2P2CQ25GD7S71DHH","01M7AWARRJ3WF9DRPNJ6S1W9CG",5,"MIT","https:\u002F\u002Fgithub.com\u002FVyrnexis\u002Fnim-agent-template\u002Fblob\u002Fmain\u002Fskills\u002Fnim-ownership-hooks\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: nim-ownership-hooks\ndescription: Implement and review Nim ARC\u002FORC ownership hooks for types that manually manage resources, including move-only, deep-copy, refcounted, and copy-on-write patterns. Use when a Nim type owns pointers, buffers, file descriptors, or custom heap memory and you need correct `=destroy`, `=copy`, `=dup`, `=sink`, or move semantics.\n---\n\n# Nim Ownership Hooks\n\nStart by classifying the type's ownership model. Then implement exactly the hook set that model requires — no more, no less. Do not force one ownership model onto another: a shared handle should not become move-only just because it has a destructor, and a deep-owning container should not pretend copies are cheap shares.\n\n## Rules\n\n### When to write hooks\n\nDo not write hooks unless the type owns a resource the compiler cannot release on its own.\n\nThe compiler auto-manages destruction for primitives, `string`, `seq[T]`, `ref T`, `array`, tuples, closures, and objects whose fields are all auto-managed. Hooks lift through nesting: if a field's type already has custom hooks, the enclosing type gets correct compiler-generated hooks for free.\n\nCustom hooks are needed only for non-managed resources: raw pointers (`ptr T`) to manually allocated memory, OS file descriptors, socket handles, `distinct` types whose base has no hooks, or similar. `distinct` types whose base already has hooks lift them automatically.\n\n### Hook-by-hook rules\n\n**`=destroy`**\n- Check the moved-from sentinel (`nil` or default handle) before touching fields. Release only resources the type still owns.\n- When the type owns raw storage containing elements with their own hooks, destroy each element before freeing the raw storage pointer.\n- `=destroy` is implicitly `.raises: []`. Keep destructor behavior non-raising.\n- Use the signature `=destroy(x: T)`, not `var T`. Both compile, but `T` prevents accidental field mutation.\n\n**`=wasMoved`**\n- Reset every field that `=destroy` checks, so that `=destroy` becomes a no-op on the same variable. For pointer fields, set to `nil`.\n- The compiler eliminates a `=destroy` call that follows `=wasMoved` on the same variable.\n\n**`=sink`**\n- Do not write a custom `=sink` by default. The compiler synthesizes one from `=destroy` plus a raw move, and that is usually sufficient.\n- When a custom `=sink` is required: call `=destroy(dest)`, then `=wasMoved(dest)`, then transfer source fields. No self-assignment check — the compiler eliminates `x = x` before reaching your hook.\n- Do not use `copyMem` or whole-object raw moves — they bypass child hook semantics.\n\n**`=copy`**\n- Deep-copy types: protect against self-assignment (`if dest.data == src.data: return`). Without it, `x = x` destroys the source before copying.\n- After the guard: `=destroy(dest)`, `=wasMoved(dest)`, then rebuild from source. Check that source data is non-nil before allocating.\n- For move-only types, use `{.error.}` (bare pragma, no custom message — the compiler ignores custom error strings).\n- For refcounted types: `=copy` does destroy-then-share. No pointer self-assignment guard needed — the counter increment balances the destroy.\n\n**`=dup`**\n- Move-only types: add `=dup {.error.}`.\n- Deep-owning raw-storage containers: mark `=dup` with `{.nodestroy.}`.\n  The copied elements are written into raw memory that does not hold valid old\n  values yet. `{.nodestroy.}` prevents implicit hook calls on those destination\n  slots. Use child `=dup` for elements with hooks.\n- Refcounted types: increment the counter and share the pointer. No\n  `{.nodestroy.}` needed unless the hook writes into raw uninitialized storage.\n\n**`=trace`**\n- Only when all three conditions hold: the type manually owns storage, stored values can participate in ORC cycles, and ORC needs to traverse them.\n- Forward-declare `=destroy` and `=trace` alongside each other to prevent the mutual-use generation conflict.\n\n**`lent T`**\n- Use `lent T` for immutable accessors that should borrow from a container instead of copying.\n\n### Declaration order\n\nDeclare all custom hooks before any proc, converter, iterator, closure, or generic instantiation that mentions the type. The compiler eagerly generates implicit hooks and will error if a custom hook appears afterward.\n\nSafe order: type definition, then `=destroy`, `=wasMoved`, `=copy`, then `=dup`.\n\nOnly templates may safely appear between the type definition and the hooks. If a hook body needs a shared helper, write it as a template directly before the hooks.\n\n`importc` procs are opaque and do not trigger implicit hook generation — they may appear before hooks.\n\n### Move semantics\n\n- `sink` parameters are affine, not linear: the callee may consume the value once, or not at all.\n- When the compiler cannot prove a sink argument is last use, it inserts `=copy` or `=dup` before\n  passing. See `nim-api-design` for the caller-facing rules on when `move()` is required.\n- `move(x)` leaves the source alive and moved-from; the source's `=destroy` still runs.\n- `ensureMove(x)` makes the source dead: later use is a compile error, and the source's\n  `=destroy` is skipped. Use it for return positions and must-fail-instead-of-copy cases, not\n  routine sink arguments.\n- `=wasMoved(x)` followed by `=destroy(x)` cancel: the destroy is eliminated.\n\n### Edge cases\n\n- **Zero-length allocations**: Guard against `alloc(0)` in constructors and `=copy`. Only allocate when length is positive. `alloc(0)` may return nil or an invalid pointer.\n- **Thread-aware allocation**: When a refcounted payload may cross thread boundaries, switch between `allocShared`\u002F`deallocShared` and `alloc`\u002F`dealloc` using `when compileOption(\"threads\")`.\n\n## Workflow\n\n### Step 1: Classify the ownership model\n\nMatch the type to exactly one model. Use the hook set that model requires.\n\n| Model | Hooks needed |\n|-------|-------------|\n| Plain \u002F auto-managed | None |\n| Borrowing \u002F view | None. Use `lent T` for accessors. |\n| Move-only owner | `=destroy`, `=wasMoved`, `=copy` as `{.error.}`, `=dup` as `{.error.}` |\n| Deep-owning container | `=destroy`, `=wasMoved`, `=copy`, `=dup` |\n| Shared \u002F refcounted | `=destroy`, `=wasMoved`, `=dup`, `=copy` |\n\n### Step 2: Implement the minimal hook set\n\nFollow the hook-by-hook rules in section 2. See `references\u002F` for complete examples of each model.\n\n### Step 3: Verify with `--expandArc`\n\n```\nnim c --expandArc:nameOfFunction yourfile.nim\n```\n\nConfirm the compiler inserts the hooks you expect. Check that synthesized hooks match intent.\n\n### Step 4: Run stress tests\n\nTest these scenarios for every custom-hook type:\n\n- Move into another variable\n- Overwrite existing owned data\n- Copy independence (mutating copy does not affect original)\n- Dup independence\n- Destroy-after-move (destroy is a no-op)\n- Self-copy (`x = x` does not crash)\n- Sink from temporaries\n- Zero-length initialization (if the type has constructors)\n\n## Common Mistakes\n\n| Mistake | Why it is wrong |\n|---------|-----------------|\n| `=destroy` with `var T` | Both compile, but `T` prevents accidental field mutation inside the destructor. |\n| Setting fields to nil inside `=destroy` | Use `=wasMoved` for field reset. The compiler eliminates the subsequent destroy. |\n| Missing self-assignment guard in deep-copy `=copy` | Destroys source data before reading it. |\n| Self-assignment check in `=sink` | Compiler already eliminates simple `x = x`. The check is dead code. |\n| Missing `{.nodestroy.}` on raw-storage `=dup` | The compiler can run hooks on destination slots that do not hold valid values yet. |\n| Custom `=sink` when synthesized is fine | Adds unnecessary complexity with no benefit. |\n| `copyMem` in `=sink` or `=dup` | Bypasses child hook semantics and breaks the ownership chain for elements that have their own hooks. |\n| Missing zero-length guard | `alloc(0)` may return nil; subsequent indexing crashes. |\n| Using `move` when `ensureMove` would compile | Later reads of the source still compile and silently return its default value. |\n| `alloc` in multi-threaded code | Must use `allocShared`\u002F`deallocShared` instead. |\n| Custom error string in `{.error: \"msg\"}` on `=copy` | The compiler ignores custom error messages. Use bare `{.error.}`. |\n| Skipping `=dup` on a move-only type | Add `=dup {.error.}`. Without it the compiler synthesizes one that produces nil instead of erroring. |\n\n## References\n\n- `references\u002Fmove_only_owner.md` — Hooks for exclusive ownership with copying forbidden.\n- `references\u002Fdeep_owning_container.md` — Destroy, copy, and duplicate hooks for raw storage with\n  independent copies.\n- `references\u002Fshared_refcounted.md` — Separate-counter and generic `SharedPtr` patterns for shared\n  ownership.\n","# Nim Ownership Hooks\n\nStart by classifying the type's ownership model. Then implement exactly the hook set that model requires — no more, no less. Do not force one ownership model onto another: a shared handle should not become move-only just because it has a destructor, and a deep-owning container should not pretend copies are cheap shares.\n\n## Rules\n\n### When to write hooks\n\nDo not write hooks unless the type owns a resource the compiler cannot release on its own.\n\nThe compiler auto-manages destruction for primitives, `string`, `seq[T]`, `ref T`, `array`, tuples, closures, and objects whose fields are all auto-managed. Hooks lift through nesting: if a field's type already has custom hooks, the enclosing type gets correct compiler-generated hooks for free.\n\nCustom hooks are needed only for non-managed resources: raw pointers (`ptr T`) to manually allocated memory, OS file descriptors, socket handles, `distinct` types whose base has no hooks, or similar. `distinct` types whose base already has hooks lift them automatically.\n\n### Hook-by-hook rules\n\n**`=destroy`**\n- Check the moved-from sentinel (`nil` or default handle) before touching fields. Release only resources the type still owns.\n- When the type owns raw storage containing elements with their own hooks, destroy each element before freeing the raw storage pointer.\n- `=destroy` is implicitly `.raises: []`. Keep destructor behavior non-raising.\n- Use the signature `=destroy(x: T)`, not `var T`. Both compile, but `T` prevents accidental field mutation.\n\n**`=wasMoved`**\n- Reset every field that `=destroy` checks, so that `=destroy` becomes a no-op on the same variable. For pointer fields, set to `nil`.\n- The compiler eliminates a `=destroy` call that follows `=wasMoved` on the same variable.\n\n**`=sink`**\n- Do not write a custom `=sink` by default. The compiler synthesizes one from `=destroy` plus a raw move, and that is usually sufficient.\n- When a custom `=sink` is required: call `=destroy(dest)`, then `=wasMoved(dest)`, then transfer source fields. No self-assignment check — the compiler eliminates `x = x` before reaching your hook.\n- Do not use `copyMem` or whole-object raw moves — they bypass child hook semantics.\n\n**`=copy`**\n- Deep-copy types: protect against self-assignment (`if dest.data == src.data: return`). Without it, `x = x` destroys the source before copying.\n- After the guard: `=destroy(dest)`, `=wasMoved(dest)`, then rebuild from source. Check that source data is non-nil before allocating.\n- For move-only types, use `{.error.}` (bare pragma, no custom message — the compiler ignores custom error strings).\n- For refcounted types: `=copy` does destroy-then-share. No pointer self-assignment guard needed — the counter increment balances the destroy.\n\n**`=dup`**\n- Move-only types: add `=dup {.error.}`.\n- Deep-owning raw-storage containers: mark `=dup` with `{.nodestroy.}`.\n  The copied elements are written into raw memory that does not hold valid old\n  values yet. `{.nodestroy.}` prevents implicit hook calls on those destination\n  slots. Use child `=dup` for elements with hooks.\n- Refcounted types: increment the counter and share the pointer. No\n  `{.nodestroy.}` needed unless the hook writes into raw uninitialized storage.\n\n**`=trace`**\n- Only when all three conditions hold: the type manually owns storage, stored values can participate in ORC cycles, and ORC needs to traverse them.\n- Forward-declare `=destroy` and `=trace` alongside each other to prevent the mutual-use generation conflict.\n\n**`lent T`**\n- Use `lent T` for immutable accessors that should borrow from a container instead of copying.\n\n### Declaration order\n\nDeclare all custom hooks before any proc, converter, iterator, closure, or generic instantiation that mentions the type. The compiler eagerly generates implicit hooks and will error if a custom hook appears afterward.\n\nSafe order: type definition, then `=destroy`, `=wasMoved`, `=copy`, then `=dup`.\n\nOnly templates may safely appear between the type definition and the hooks. If a hook body needs a shared helper, write it as a template directly before the hooks.\n\n`importc` procs are opaque and do not trigger implicit hook generation — they may appear before hooks.\n\n### Move semantics\n\n- `sink` parameters are affine, not linear: the callee may consume the value once, or not at all.\n- When the compiler cannot prove a sink argument is last use, it inserts `=copy` or `=dup` before\n  passing. See `nim-api-design` for the caller-facing rules on when `move()` is required.\n- `move(x)` leaves the source alive and moved-from; the source's `=destroy` still runs.\n- `ensureMove(x)` makes the source dead: later use is a compile error, and the source's\n  `=destroy` is skipped. Use it for return positions and must-fail-instead-of-copy cases, not\n  routine sink arguments.\n- `=wasMoved(x)` followed by `=destroy(x)` cancel: the destroy is eliminated.\n\n### Edge cases\n\n- **Zero-length allocations**: Guard against `alloc(0)` in constructors and `=copy`. Only allocate when length is positive. `alloc(0)` may return nil or an invalid pointer.\n- **Thread-aware allocation**: When a refcounted payload may cross thread boundaries, switch between `allocShared`\u002F`deallocShared` and `alloc`\u002F`dealloc` using `when compileOption(\"threads\")`.\n\n## Workflow\n\n### Step 1: Classify the ownership model\n\nMatch the type to exactly one model. Use the hook set that model requires.\n\n| Model | Hooks needed |\n|-------|-------------|\n| Plain \u002F auto-managed | None |\n| Borrowing \u002F view | None. Use `lent T` for accessors. |\n| Move-only owner | `=destroy`, `=wasMoved`, `=copy` as `{.error.}`, `=dup` as `{.error.}` |\n| Deep-owning container | `=destroy`, `=wasMoved`, `=copy`, `=dup` |\n| Shared \u002F refcounted | `=destroy`, `=wasMoved`, `=dup`, `=copy` |\n\n### Step 2: Implement the minimal hook set\n\nFollow the hook-by-hook rules in section 2. See `references\u002F` for complete examples of each model.\n\n### Step 3: Verify with `--expandArc`\n\n```\nnim c --expandArc:nameOfFunction yourfile.nim\n```\n\nConfirm the compiler inserts the hooks you expect. Check that synthesized hooks match intent.\n\n### Step 4: Run stress tests\n\nTest these scenarios for every custom-hook type:\n\n- Move into another variable\n- Overwrite existing owned data\n- Copy independence (mutating copy does not affect original)\n- Dup independence\n- Destroy-after-move (destroy is a no-op)\n- Self-copy (`x = x` does not crash)\n- Sink from temporaries\n- Zero-length initialization (if the type has constructors)\n\n## Common Mistakes\n\n| Mistake | Why it is wrong |\n|---------|-----------------|\n| `=destroy` with `var T` | Both compile, but `T` prevents accidental field mutation inside the destructor. |\n| Setting fields to nil inside `=destroy` | Use `=wasMoved` for field reset. The compiler eliminates the subsequent destroy. |\n| Missing self-assignment guard in deep-copy `=copy` | Destroys source data before reading it. |\n| Self-assignment check in `=sink` | Compiler already eliminates simple `x = x`. The check is dead code. |\n| Missing `{.nodestroy.}` on raw-storage `=dup` | The compiler can run hooks on destination slots that do not hold valid values yet. |\n| Custom `=sink` when synthesized is fine | Adds unnecessary complexity with no benefit. |\n| `copyMem` in `=sink` or `=dup` | Bypasses child hook semantics and breaks the ownership chain for elements that have their own hooks. |\n| Missing zero-length guard | `alloc(0)` may return nil; subsequent indexing crashes. |\n| Using `move` when `ensureMove` would compile | Later reads of the source still compile and silently return its default value. |\n| `alloc` in multi-threaded code | Must use `allocShared`\u002F`deallocShared` instead. |\n| Custom error string in `{.error: \"msg\"}` on `=copy` | The compiler ignores custom error messages. Use bare `{.error.}`. |\n| Skipping `=dup` on a move-only type | Add `=dup {.error.}`. Without it the compiler synthesizes one that produces nil instead of erroring. |\n\n## References\n\n- `references\u002Fmove_only_owner.md` — Hooks for exclusive ownership with copying forbidden.\n- `references\u002Fdeep_owning_container.md` — Destroy, copy, and duplicate hooks for raw storage with\n  independent copies.\n- `references\u002Fshared_refcounted.md` — Separate-counter and generic `SharedPtr` patterns for shared\n  ownership.\n",{"name":5,"description":7},"main","060e1c453fdad0410a2b385f59275494911d9a4b","skills\u002Fnim-ownership-hooks",2,"https:\u002F\u002Fgithub.com\u002FVyrnexis\u002Fnim-agent-template","https:\u002F\u002Fgithub.com\u002FVyrnexis","https:\u002F\u002Fvyrnexis.github.io","2026-10-27 00:06:43",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add Vyrnexis\u002Fnim-agent-template --skill nim-ownership-hooks",{"tool":37,"command":38},"bunx","bunx skills add Vyrnexis\u002Fnim-agent-template --skill nim-ownership-hooks",{"tool":40,"command":41},"pnpm","pnpm dlx skills add Vyrnexis\u002Fnim-agent-template --skill nim-ownership-hooks","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FVyrnexis\u002Fnim-agent-template\u002Fblob\u002Fmain\u002Fskills\u002Fnim-ownership-hooks\u002FSKILL.md",true,[45,51,55,59],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"references\u002Fcustom_sink.md","REFERENCE","参考文档",531,"https:\u002F\u002Fgithub.com\u002FVyrnexis\u002Fnim-agent-template\u002Fblob\u002Fmain\u002Fskills\u002Fnim-ownership-hooks\u002Freferences\u002Fcustom_sink.md",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fdeep_owning_container.md",1470,"https:\u002F\u002Fgithub.com\u002FVyrnexis\u002Fnim-agent-template\u002Fblob\u002Fmain\u002Fskills\u002Fnim-ownership-hooks\u002Freferences\u002Fdeep_owning_container.md",{"path":56,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fmove_only_owner.md",726,"https:\u002F\u002Fgithub.com\u002FVyrnexis\u002Fnim-agent-template\u002Fblob\u002Fmain\u002Fskills\u002Fnim-ownership-hooks\u002Freferences\u002Fmove_only_owner.md",{"path":60,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Fshared_refcounted.md",3037,"https:\u002F\u002Fgithub.com\u002FVyrnexis\u002Fnim-agent-template\u002Fblob\u002Fmain\u002Fskills\u002Fnim-ownership-hooks\u002Freferences\u002Fshared_refcounted.md",[64,71,78,85,92,99],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M7AWEDMYZVEFGPQYGCVC4NQN","run-tests","Runs the project unit tests and validation suites.","https:\u002F\u002Fgithub.com\u002FVyrnexis\u002Fnim-agent-template\u002Fblob\u002Fmain\u002Fskills\u002Frun-tests\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M7AWE9HNJ36TDH5NPDVCEAHC","nimonyplugins","Build and debug Nimony compile-time plugins for code generation and DSL rewrites. Use when replacing Nim macros with Nimony plugins, writing or reviewing template, for-loop, module, type, or import plugins, or diagnosing NIF traversal and generated output.","https:\u002F\u002Fgithub.com\u002FVyrnexis\u002Fnim-agent-template\u002Fblob\u002Fmain\u002Fskills\u002Fnimonyplugins\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M7AWE4F7EJ1H837ETBHESE2T","nim-testing","Write and run deterministic Nim tests, including isolated test files, expected-exception checks, multi-configuration builds, and sanitizer integration. Use when setting up a Nim test suite, testing failure behavior, running tests across debug\u002Frelease\u002Fdanger modes, or adding AddressSanitizer support.","https:\u002F\u002Fgithub.com\u002FVyrnexis\u002Fnim-agent-template\u002Fblob\u002Fmain\u002Fskills\u002Fnim-testing\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M7AWE0S8C3Y39VGR54R23FZD","nim-style-guide","Write clear, consistent Nim code in a simple stdlib-aligned style, covering imports, naming, proc vs func vs template choices, local variables, constructors, formatting, and control flow. Use when writing new Nim code or reviewing a Nim module for readability, consistency, and low-noise style decisions.","https:\u002F\u002Fgithub.com\u002FVyrnexis\u002Fnim-agent-template\u002Fblob\u002Fmain\u002Fskills\u002Fnim-style-guide\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":18},"01M7AWDQ5JGN9XNNJ9FKJQ14GP","nim-mcp-tools","Use for Nim symbol navigation, diagnostics, and type resolution. MANDATORY: Use specialized MCP tools (nimFindSymbols, nimFindReferences, nimListSymbols, nimCheckFile, nimCheckProject, nimFindTypeDefinition) first; fall back to grep only on error or user confirmation.","https:\u002F\u002Fgithub.com\u002FVyrnexis\u002Fnim-agent-template\u002Fblob\u002Fmain\u002Fskills\u002Fnim-mcp-tools\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":18},"01M7AWDHB9BNJAHWET4EZCAJ4K","nim-fuzzing","Set up and run libFuzzer-based fuzz targets for Nim code, including harness wiring, compilation flags, corpus management, structure-aware mutators, and crash triage. Use when adding fuzzing to a Nim project, building a fuzz harness for a parser\u002Fprotocol\u002Fformat handler, or reproducing and minimizing a fuzzer-found crash.","https:\u002F\u002Fgithub.com\u002FVyrnexis\u002Fnim-agent-template\u002Fblob\u002Fmain\u002Fskills\u002Fnim-fuzzing\u002FSKILL.md",[],[]]