What problem does it solve?
This Skill guides developers in implementing a new language parser for Codanna using the six-file architecture (mod.rs, definition.rs, parser.rs, behavior.rs, resolution.rs, audit.rs). It provides a repeatable blueprint for registry integration, language-specific resolution contexts, and consistent symbol extraction across languages, reducing boilerplate and enabling rapid onboarding of new languages.
Core Features & Use Cases
- Scaffold: generates a consistent six-file structure and module exports for a new language.
- Registry Integration: wires the language into the central registry so it can be discovered and configured.
- Language-Specific Resolution: defines a custom ResolutionScope to model language scoping and imports.
- Reuse & Extensibility: leverages common patterns to minimize boilerplate when adding new languages.
- Use Case: Add a new language with a tree-sitter grammar, implement symbol extraction, and register it for indexing and query.
Quick Start
Create a new directory under src/parsing for your language and implement the six files according to this guide, then run cargo test to verify registration and parsing.