Elixir Code Guidelines .cursorrules prompt file
About .cursorrules prompt file
What you can build
Elixir Recompiler IDE Plugin: An IDE plugin that allows developers to recompile their Elixir code directly in its AST form, providing real-time feedback and suggestions to improve code style and errors automatically.
AST Visualization Tool: A web-based tool that visualizes Elixir ASTs allowing developers to inspect and manipulate them to better understand code transformation processes.
Functional Code Refactorer: An application that scans Elixir projects and recommends refactoring opportunities to improve code style by suggesting higher-order functions and enhancing immutability practices.
Elixir AST Analyzer: A web service that evaluates Elixir code by analyzing its AST form to suggest precise optimizations or highlight potential performance issues.
Interactive Learning Platform for Elixir: An educational platform that teaches Elixir by allowing users to see their code in AST form and highlighting the functional programming patterns in real-time.
Automated Elixir Code Audit Tool: A service that audits Elixir codebases by analyzing ASTs, providing reports on code quality and adherence to best practices.
Pattern Matching Educator for Elixir: An app focused on teaching pattern matching in Elixir by providing exercises where users write functions that are directly translated and checked against their AST representation.
Elixir Code Formatter: A tool that formats Elixir code to conform to idiomatic standards, improving readability by restructuring code to use one-line syntax and pattern matching strategically.
Elixir AST Diff Viewer: A tool that displays differences between two versions of Elixir code in their AST form, aiding developers in understanding changes at a structural level.
Modular Test Generator for Elixir: An application that automatically generates Elixir test files by mirroring project directory structures and ensuring unique module names for organized and modular test cases.
Benefits
- Recompile Elixir code directly from its Abstract Syntax Tree (AST).
- Enable dynamic code updates without stopping the application.
- Maintain full compliance with Elixir's idiomatic patterns and structure.
Synopsis
Elixir developers can utilize this prompt to create a library for dynamically recompiling Elixir code and improving functional programming skills with structured code style and testing methods.
Overview of .cursorrules prompt
The .cursorrules file is for an Elixir library that allows recompilation of Elixir code in its Abstract Syntax Tree (AST) form. It provides guidelines for writing Elixir code, emphasizing a concise and idiomatic style using functional programming patterns, immutability, and pattern matching. It advises on code organization, such as sorting aliases alphabetically and using descriptive names. It also provides guidance on structuring test files to reflect the directory structure of the code, ensuring unique module names in test files.