macro
This skill guides the design and implementation of Rust macros for the Topcoat project, covering consistent argument syntax, lossless AST nodes, syn-based parsing, and thin proc-macro entry points.
What it does
Always use this skill before writing a macro for Topcoat or changing a macro's syntax, including `macro_rules!` macros
Quality judgment
The document provides comprehensive coverage of macro syntax, parsing strategies, AST design, and entry points. It clearly distinguishes between attribute and function-like macros, explains the `ParseOption` pattern, and gives concrete code examples. The organization flows logically from syntax to parsing to implementation details. The only minor deduction is that some parsing guidance could be more explicit about edge cases, but overall it is thorough and well-structured.