What problem does it solve?
This Skill addresses the challenge of generating correct Flix code, especially for developers unfamiliar with its unique constraints and idioms, by providing context-aware guidance and anti-hallucination rules.
Core Features & Use Cases
- Flix Design Principles: Loads and enforces Flix's 41 core design principles to prevent common errors.
- Stdlib-First Discipline: Guides users to leverage the Flix standard library (
api.flix.dev) before resorting to Java interop.
- Translation References: Provides patterns for translating code from TypeScript, Python, and Rust to Flix.
- Use Case: When asked to "write a Flix function to parse JSON", this Skill loads relevant documentation on effect systems, stdlib modules for string manipulation, and potential Java interop patterns if no direct Flix equivalent exists, ensuring the generated code adheres to Flix's purity and effect tracking rules.
Quick Start
Use the flix skill to write a Flix function that calculates the factorial of a number.