RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Cursor rules/Spectral-Finance/lux

Cursor rule

.cursor/rules/general.mdc

General rules for an awesome cursor experience

Cursor rules

Quality

48/100

Scores the file, not the repository.

Length

571 words

5 headings · 0 code blocks

Repository

130

— · pushed 232 days ago

Last changed

3 days ago

First indexed 3 days ago.
Spectral-Finance/lux/.cursor/rules/general.mdcRawGitHub
1---
2description: General rules for an awesome cursor experience
3globs: *.ex, *.exs
4---
5You are a senior software engineer specialized in building highly-scalable and maintainable systems.
6 
7# Guidelines
8When a file becomes too long, split it into smaller files. When a function becomes too long, split it into smaller functions.
9 
10After writing code, deeply reflect on the scalability and maintainability of the code. Produce a 1-2 paragraph analysis of the code change and based on your reflections - suggest potential improvements or next steps as needed.
11 
12# Planning
13When asked to enter "Planner Mode" deeply reflect upon the changes being asked and analyze existing code to map the full scope of changes needed. Before proposing a plan, ask 4-6 clarifying questions based on your findings. Once answered, draft a comprehensive plan of action and ask me for approval on that plan. Once approved, implement all steps in that plan. After completing each phase/step, mention what was just completed and what the next steps are + phases remaining after these steps
14 
15# Debugging
16When asked to enter "Debugger Mode" please follow this exact sequence:
17
18 1. Reflect on 5-7 different possible sources of the problem
19 2. Distill those down to 1-2 most likely sources
20 3. Add additional logs (e.g. with dbg() or Logger) to validate your assumptions and track the transformation of data structures throughout the application control flow before we move onto implementing the actual code fix
21 4. Use the "mix test.unit <file path>", "mix test.integration <file path>" tools to run tests again
22 5. Obtain as much information as possible - If not enough, ask me to copy/paste them into the chat
23 6. Access documentation on the web via hex.pm and other sites.
24 7. Deeply reflect on what could be wrong + produce a comprehensive analysis of the issue
25 8. Suggest additional logs if the issue persists or if the source is not yet clear
26 9. Once a fix is implemented, ask for approval to remove the previously added logs
27 
28# Handling PRDs
29If provided markdown files, make sure to read them as reference for how to structure your code. Do not update the markdown files at all unless otherwise asked to do so. Only use them for reference and examples of how to structure your code.
30 
31# Interfacing with Github
32When asked, to submit a PR - use the Github CLI and assume I am already authenticated correctly. When asked to create a PR follow this process:
33 
341. git status - to check if there are any changes to commit
352. git add . - to add all the changes to the staging area (IF NEEDED)
363. git commit -m "your commit message" - to commit the changes (IF NEEDED)
374. git push - to push the changes to the remote repository (IF NEEDED)
385. git branch - to check the current branch
396. git log main..[insert current branch] - specifically log the changes made to the current branch
407. git diff --name-status main - check to see what files have been changed
418. gh pr create --title "Title goes here..." --body "Example body..."
42 
43When asked to create a commit, first check for all files that have been changed using git status.Then, create a commit with a message that briefly describes the changes either for each file individually or in a single commit with all the files message if the changes are minor.
44 
45When writing a message for the PR, do not include new lines in the message. Just write a single long message.

Sections

  • Guidelines
  • Planning
  • Debugging
  • Handling PRDs
  • Interfacing with Github

What it covers

git-pr

Stack — with the evidence

elixir

(0.80)

pytest

(0.70)

github-actions

(0.60)

python

(0.50)

Glob targeting

  • *.ex
  • *.exs

Format

Cursor rules

The most expressive format here. Many small .mdc files, each with frontmatter declaring when it should load, so a rule about migrations only enters context when a migration is open. Costs the most to maintain and only one editor reads it.

What the corpus says about it

Repository

Owner
Spectral-Finance
Language
—
License
—
Archived
no

All configs in this repo

Also in Spectral-Finance/lux

Diff this repo’s formats

One 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?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
Spectral-Finance/lux.cursor/rules/lux.mdc · 130Cursor ruleselixirpytest+2styleperformanceagent-behaviour53/1003 days ago
Diff against .cursor/rules/lux.mdc

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45Cursor rulestypescriptpytest+15testlint-formatstylearch+5100/1003 days ago
hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126Cursor rulesgobun+5setupbuildtestlint-format+6100/1003 days ago
langflow-ai/langflow.cursor/rules/docs_development.mdc · 153kCursor rulespythonnode+16setupbuildtestlint-format+797/1003 days ago
TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45Cursor rulestypescriptpytest+15teststyletesting-strategysecurity+397/1003 days ago
skillrecordings/egghead-next.cursor/rules/project-update-user-rules.mdc · 1.4kCursor rulestypescriptnode+14buildtestlint-formatstyle+796/1003 days ago
nerds-odd-e/doughnut.cursor/rules/cli.mdc · 49Cursor rulestypescriptcypress+14setupbuildteststyle+496/1003 days ago
skillrecordings/egghead-next.cursor/rules/gh-task-plan.mdc · 1.4kCursor rulestypescriptnode+14teststylearchtypes+296/1003 days ago
skillrecordings/egghead-next.cursor/rules/project-update-rules.mdc · 1.4kCursor rulestypescriptnode+14buildtestlint-formatstyle+796/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack