What problem does it solve?
This Skill helps you write and review Nimony plugins that correctly build and traverse plugin trees using the real nimonyplugins.nim API, avoiding subtle mistakes around Tree vs Node, traversal, and validation.
Core Features & Use Cases
- Accurate API usage: Guides you to use the installed
nimonyplugins.nim directly so your plugin matches the exact node kinds, constructors, traversal primitives, and rendering helpers.
- Safe traversal & mutation patterns: Explains how to traverse with
Node safely (inc vs skip), when to clone for lookahead, and when to consume vs preserve subtrees (takeTree vs addSubtree).
- Correct construction & validation: Provides canonical writing patterns using
withTree, createTree, snapshot, balanced emission order, and errorTree for invalid cases.
- Use cases: Refactoring or reviewing existing Nim-based Nimony plugins, implementing new transformations that rewrite parts of an input tree, and producing reliable plugin outputs suitable for downstream tooling.
Quick Start
Use this skill while editing a Nimony plugin to look up the exact installed nimonyplugins.nim, then rewrite your traversal and emission logic to follow the canonical Tree/Node read/write and takeTree/addSubtree patterns.