Cursor rule
.cursor/rules/general.mdcGeneral rules for an awesome cursor experience
Cursor rules
Quality
48/100
Scores the file, not the repository.Length
571 words
5 headings · 0 code blocksRepository
130
— · pushed 232 days agoLast changed
3 days ago
First indexed 3 days ago.12345You are a senior software engineer specialized in building highly-scalable and maintainable systems.67# Guidelines8When a file becomes too long, split it into smaller files. When a function becomes too long, split it into smaller functions.910After 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.1112# Planning13When 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 steps1415# Debugging16When asked to enter "Debugger Mode" please follow this exact sequence:1718 1. Reflect on 5-7 different possible sources of the problem19 2. Distill those down to 1-2 most likely sources20 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 fix21 4. Use the "mix test.unit <file path>", "mix test.integration <file path>" tools to run tests again22 5. Obtain as much information as possible - If not enough, ask me to copy/paste them into the chat23 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 issue25 8. Suggest additional logs if the issue persists or if the source is not yet clear26 9. Once a fix is implemented, ask for approval to remove the previously added logs2728# Handling PRDs29If 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.3031# Interfacing with Github32When 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:33341. git status - to check if there are any changes to commit352. 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 branch396. git log main..[insert current branch] - specifically log the changes made to the current branch407. git diff --name-status main - check to see what files have been changed418. gh pr create --title "Title goes here..." --body "Example body..."4243When 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.4445When writing a message for the PR, do not include new lines in the message. Just write a single long message.
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/lux.mdc · 130 | Cursor rules | styleperformanceagent-behaviour | 53/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 |
