Cursor rule
.cursor/rules/contributing.mdcCursor rules
Quality
56/100
Scores the file, not the repository.Length
314 words
5 headings · 0 code blocksRepository
4.0k
— · pushed 2 days agoLast changed
3 days ago
First indexed 3 days ago.12345## Contribution & Refactor Guidelines67- **Prime rule**: Code is a liability, functionality is the asset. Any change must pay for its own complexity.89### 1. Before Large Changes (Refactors, New Infra, New Domains)1011- Ask yourself, and write down in the PR description if possible:12 - **Where is the bottleneck?** Latency, throughput, DX, or maintainability? Be concrete.13 - **What is the simplest change that fixes it?** Prefer removal/cleanup over new systems.14 - **What is the data flow?** Sketch: entrypoint → adapters → core → DB/Telegram → back.15 - **What happens on failure?**16 - If step B fails, does step A need a rollback or can we tolerate partial state?17 - Is this best modeled as a saga / compensating action, or is “at-least-once” good enough?1819### 2. Backend Mindset2021- Avoid hidden in-memory state that couples requests:22 - Session-local state lives in `CoreContext` or explicit stores, never in random globals.23 - Cross-request state must go into the database or a well-defined cache layer.24- For multi-step workflows:25 - Make each step observable (events + logs) and ideally resumable.26 - Design states explicitly (`pending`, `running`, `failed`, `completed`) rather than boolean flags.2728### 3. TypeScript Style2930- Strict TS is non-negotiable:31 - Avoid `any` unless wrapping truly dynamic data, and confine it at the edge.32 - Prefer small, composable types over giant “god” interfaces.33- Functional style:34 - Prefer pure functions and small modules over classes unless there is a clear lifecycle to model.35 - Keep side effects at the boundary (adapters, services) and core logic pure where possible.3637### 4. PR Hygiene3839- Keep PRs focused:40 - One domain behavior or refactor per PR.41 - Mechanical renames and large formatting should be isolated from behavioral changes.42- Tests:43 - Add or update tests alongside behavior changes, especially for core and DB logic.44 - Do not rely solely on manual E2E verification for critical paths.4546
Also in groupultra/telegram-search
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 |
|---|---|---|---|---|---|
| groupultra/telegram-search.cursor/rules/testing.mdc · 4.0k | Cursor rules | teststyletesting-strategydatabase | 55/100 | 3 days ago | |
| groupultra/telegram-search.cursor/rules/architecture.mdc · 4.0k | Cursor rules | buildtestlint-formatarch+4 | 89/100 | 3 days ago | |
| groupultra/telegram-search.cursor/rules/backend-server.mdc · 4.0k | Cursor rules | setupsecuritymonorepo | 52/100 | 3 days ago | |
| groupultra/telegram-search.cursor/rules/client.mdc · 4.0k | Cursor rules | stylearchtypesdependencies+1 | 60/100 | 3 days ago | |
| groupultra/telegram-search.cursor/rules/core.mdc · 4.0k | Cursor rules | stylearchdependenciesdatabase+1 | 60/100 | 3 days ago | |
| groupultra/telegram-search.cursor/rules/db.mdc · 4.0k | Cursor rules | styletypesdatabaseperformance | 59/100 | 3 days ago | |
| groupultra/telegram-search.cursor/rules/events.mdc · 4.0k | Cursor rules | style | 60/100 | 3 days ago | |
| groupultra/telegram-search.cursor/rules/frontend-web.mdc · 4.0k | Cursor rules | stylesecurityuimonorepo | 56/100 | 3 days ago | |
| groupultra/telegram-search.cursor/rules/pglite-inspector.mdc · 4.0k | Cursor rules | securityapi | 47/100 | 3 days ago | |
| groupultra/telegram-search.cursor/rules/tooling.mdc · 4.0k | Cursor rules | buildlint-formatstyledeployment+1 | 67/100 | 3 days ago | |
| groupultra/telegram-search.github/copilot-instructions.md · 4.0k | Copilot instructions | teststyleagent-behaviour | 76/100 | 3 days ago | |
| groupultra/telegram-searchAGENTS.md · 4.0k | AGENTS.md | setupbuildtestlint-format+10 | 83/100 | 3 days ago |
Diff against .cursor/rules/testing.mdc Diff against .cursor/rules/architecture.mdc Diff against .cursor/rules/backend-server.mdc Diff against .cursor/rules/client.mdc Diff against .cursor/rules/core.mdc Diff against .cursor/rules/db.mdc Diff against .cursor/rules/events.mdc Diff against .cursor/rules/frontend-web.mdc Diff against .cursor/rules/pglite-inspector.mdc Diff against .cursor/rules/tooling.mdc Diff against .github/copilot-instructions.md Diff against AGENTS.md
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 |
