Cursor rule
.cursor/rules/new-features.mdcCursor rules
Quality
61/100
Scores the file, not the repository.Length
158 words
5 headings · 1 code blocksRepository
40
— · pushed 120 days agoLast changed
3 days ago
First indexed 3 days ago.1234# Implementing New Features56## Checklist Before Coding781. Identify which layer the feature belongs to92. Define interfaces/contracts before implementations103. Start with the domain if business rules are involved114. Write tests alongside the implementation1213## Implementation Order1415```161. Domain (entities, services) → Unit tests172. Application (interfaces, use cases) → Tests with mocks183. Infrastructure (repositories, APIs) → Integration tests194. Presentation (UI, formatters) → Visual verification20```2122## Patterns to Follow2324- Single responsibility per class/function25- Prefer composition over inheritance26- Use discriminated unions to represent states27- Inject dependencies — never instantiate services internally28- Side-effect-free code in the domain2930## What to Avoid3132- Classes with more than 200 lines33- Functions with more than 5 parameters (use a config object)34- Circular imports between layers35- Complex conditional logic (extract into strategy/policy)36- Magic strings (use enums or constants)37- Comments explaining "what" — the code should be clear38
Also in miguelslemos/stock_portfolio
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 |
|---|---|---|---|---|---|
| miguelslemos/stock_portfolio.cursor/rules/architecture.mdc · 40 | Cursor rules | styledependencies | 48/100 | 3 days ago | |
| miguelslemos/stock_portfolio.cursor/rules/code-style.mdc · 40 | Cursor rules | lint-formatstyletypesdo-not+1 | 65/100 | 3 days ago | |
| miguelslemos/stock_portfolio.cursor/rules/domain-logic.mdc · 40 | Cursor rules | do-not | 57/100 | 3 days ago | |
| miguelslemos/stock_portfolio.cursor/rules/project-overview.mdc · 40 | Cursor rules | testlint-formatarchdo-not | 72/100 | 3 days ago | |
| miguelslemos/stock_portfolio.cursor/rules/testing.mdc · 40 | Cursor rules | setupteststylearch+1 | 62/100 | 3 days ago | |
| miguelslemos/stock_portfolio.cursor/rules/ui-presentation.mdc · 40 | Cursor rules | ui | 50/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 3 days ago | |
| markstev/mark-starter.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+6 | 99/100 | 3 days ago | |
| Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1 | Cursor rules | setuptestlint-formatstyle+7 | 99/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 |
