Cursor rule
.cursor/rules/lux.mdcThis helps with general development of the Lux framework
Cursor rules
Quality
53/100
Scores the file, not the repository.Length
493 words
0 headings · 0 code blocksRepository
130
— · pushed 232 days agoLast changed
3 days ago
First indexed 3 days ago.123456 You are an expert in Elixir, Python, Javascript, Typescript, Phoenix, Distributed Systems, GenServer, PostgreSQL, LLMs, Agentic workflows and Open Source Development.78 In this project, we are building an open source library for general LLM based agentic workflows and collaboration between agents.910 Code Style and Structure11 - Write concise, idiomatic Elixir code with accurate examples.12 - Follow Phoenix conventions and best practices.13 - Use functional programming patterns and leverage immutability.14 - Prefer higher-order functions and recursion over imperative loops.15 - Use descriptive variable and function names (e.g., user_signed_in?, calculate_total).16 - Structure files according to Phoenix conventions (controllers, contexts, views, etc.).1718 Naming Conventions19 - Use snake_case for file names, function names, and variables.20 - Use PascalCase for module names.21 - Follow Phoenix naming conventions for contexts, schemas, and controllers.2223 Elixir and Phoenix Usage24 - Use Elixir's pattern matching and guards effectively.25 - Leverage Phoenix's built-in functions and macros.26 - Use Ecto effectively for database operations.2728 Syntax and Formatting29 - Follow the Elixir Style Guide (https://github.com/christopheradams/elixir_style_guide)30 - Use Elixir's pipe operator |> for function chaining.31 - Prefer single quotes for charlists and double quotes for strings.3233 Error Handling and Validation34 - Use Elixir's "let it crash" philosophy and supervisor trees.35 - Implement proper error logging and user-friendly messages.36 - Use Ecto changesets for data validation.37 - Handle errors gracefully in controllers and display appropriate flash messages.3839 UI and Styling40 - Use Phoenix LiveView for dynamic, real-time interactions.41 - Implement responsive design with Tailwind CSS.42 - Use Phoenix view helpers and templates to keep views DRY.4344 Performance Optimization45 - Use database indexing effectively.46 - Implement caching strategies (ETS, Redis).47 - Use Ecto's preload to avoid N+1 queries.48 - Optimize database queries using preload, joins, or select.4950 Key Conventions51 - Follow RESTful routing conventions.52 - Use contexts for organizing related functionality.53 - Implement GenServers for stateful processes and background jobs.54 - Use Tasks for concurrent, isolated jobs.5556 Testing57 - Write comprehensive tests using ExUnit.58 - Follow TDD practices.59 - Use ExMachina for test data generation.6061 Security62 - Implement proper authentication and authorization (e.g., Guardian, Pow).63 - Use strong parameters in controllers (params validation).64 - Protect against common web vulnerabilities (XSS, CSRF, SQL injection).6566 Follow the official Phoenix guides for best practices in routing, controllers, contexts, views, and other Phoenix components.6768 Documentation Access69 The `mix deps.h` task is available to read documentation for any dependency in the project. Do not assume functionality from function names or previous usage. When in doubt or when debugging, consider accessing the documentation first.70 - Use `mix deps.h Req` to read documentation for the `Req` module71 - Use `mix deps.h Req.Request` to read documentation for specific modules72 - Use `mix deps.h Req.Request.append_error_steps/2` to read documentation for specific functions. Remember to add the arity!73 - This will help you understand how to use any dependency in the project74 - If the documentation is not available or not satisfactory, you should directly read the source code of the dependency by browsing it inside the `\deps` folder.7576
Also in Spectral-Finance/lux
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| Spectral-Finance/lux.cursor/rules/general.mdc · 130 | Cursor rules | git | 48/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 3 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45 | Cursor rules | teststyletesting-strategysecurity+3 | 97/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/project-update-user-rules.mdc · 1.4k | Cursor rules | buildtestlint-formatstyle+7 | 96/100 | 3 days ago | |
| nerds-odd-e/doughnut.cursor/rules/cli.mdc · 49 | Cursor rules | setupbuildteststyle+4 | 96/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/gh-task-plan.mdc · 1.4k | Cursor rules | teststylearchtypes+2 | 96/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/project-update-rules.mdc · 1.4k | Cursor rules | buildtestlint-formatstyle+7 | 96/100 | 3 days ago |
