Cursor rule
.cursor/rules/genesis-colonies.mdcGenesis Colonies ticket workflow — GC-000 architecture enforcement
Cursor rules
Quality
59/100
Scores the file, not the repository.Length
502 words
8 headings · 0 code blocksRepository
2
— · pushed 0 days agoLast changed
3 days ago
First indexed 3 days ago.123456# Genesis Colonies — Agent Rules78> Genesis Colonies bevorzugt **Konsistenz über Komfort** — erweitere kanonische Systeme, führe keine Parallel-Systeme ein.910## Before any task11121. Read `docs/WORKFLOW.md` and **`docs/CORE_ARCHITECTURE.md`** (GC-000, Regeln 15–17, **19**).132. Follow **`.cursor/rules/no-dead-code-no-bloat.mdc`** — extend Owner, remove replaced code in the same ticket.143. Read the relevant master doc(s) for the ticket domain.154. Work only the ticket scope (max 3–5 files). No full-project analysis.165. Respect architecture: PJAX shell, planet scope (`get_context_planet`), single queue engine, canonical systems.1718## Master docs (single source of truth)1920- `docs/CORE_ARCHITECTURE.md` — **mandatory** GC-000 rules21- `docs/AJAX_PJAX_CONTRACT.md` — PJAX, `applyActionState`, no reload22- `docs/QUEUE_STATE_RULES.md` — finish before mutate, reschedule after cancel23- `docs/ARCHITECTURE.md` — overview24- `docs/PLANET_SCOPE.md` — active planet25- `docs/PLANET_EVOLUTION.md`, `docs/ECONOMY_SYSTEM.md`, `docs/BUILDINGS_SYSTEM.md`, `docs/RESEARCH_SYSTEM.md`26- `docs/FLEET_SYSTEM.md`, `docs/GALAXY_SYSTEM.md`, `docs/EFFECTS.md`, `docs/STATE_AJAX.md`, `docs/ROADMAP.md`2728## Forbidden (GC-000)2930- "Analyze the entire project" / scan all files without ticket scope31- `location.reload()` / `location.href =` for in-game navigation (use `GC.navigateTo`, `GC.reloadCurrentPage`)32- Frontend math for game mechanics (resources, queues, flight time, combat)33- Module-owned game-state polling (only `/api/game-state`)34- Session-based planet scope; homeworld hardcoding in features35- **Parallel systems** (Regel 15): `shipyard`+`orbital_shipyard`, `fleet_state`+`fleet_movements`, `planet_session`+`active_planet_id`, `combat_v1`+`combat_v2` — only migration+alias, never two live systems36- **Duplicate math** (Regel 16): no frontend production/fleet/combat/queue formulas — use `EffectResolver`, `fleet_calc`, `queue_engine`37- **Wrong owner** (Regel 17): new logic must land in the Owner module from CORE_ARCHITECTURE §17, not a new parallel file38- **Dead code / bloat** (Regel 19): no new helper beside old logic — migrate call-sites, delete unused code, `grep` old symbols before done39- Queue mutations without `finish_due_work_once` first40- POST actions without `{ ok, state }` + `applyActionState()` on client41- Unrequested refactors outside the ticket42- Implementing an Epic directly — split into GC-XXX tickets4344## Required patterns4546- Server authority; UI displays server data only47- Actions: `GC.fetchGameAction` → `applyActionState(res, reason)`48- PJAX: `GC.cleanupPage()` / `GC.registerCleanup()` on module init49- Planet-bound logic: `get_context_planet()`50- New queue types: follow `docs/QUEUE_STATE_RULES.md` (incl. reschedule after cancel)51- Replacing a system: migration → alias/adapter → remove old; document owner in `CORE_ARCHITECTURE.md` §17 if new domain5253## After completing a ticket5455Output only:5657- Root Cause58- Changed Files59- Tests60- Ergebnis61- Regel 19: replaced/removed logic, updated call-sites, dead-code search6263Update master docs if architecture changed.6465## Code conventions6667- Logic in `game/`, thin routes in `app.py`68- Schema changes → new `migrations/NNN_*.sql`69- Idempotent APIs: `request_id` / `X-Request-Id`70- Frontend: extend `GC` namespace in `static/main.js`; cleanup on PJAX71- **Locales:** neue i18n-Keys immer in **allen** Dateien unter `locales/` nachziehen: `de`, `en`, `es`, `fr`, `pl`, `pt`, `ru`, `tr` — nicht nur de/en7273## UI overlays (dropdowns, menus, popovers)7475Bei jeder neuen UI-Komponente mit Dropdown, Tooltip, Modal, Popover oder Menü prüfen:7677- `overflow` auf Panel-/Card-Ancestors (`.gc-panel`, `.admin-section`, scroll containers)78- `z-index` via Tokens (`--gc-z-dropdown`, `--gc-z-popover`, …)79- Mobile Viewport-Höhe / Flip above trigger80- PJAX: `GC.initHudSelects()` nach Render, `GC.cleanupPage()` schließt offene Layer81- HUD-Selects nutzen `data-gc-hud-select` + portaled `.gc-popover-layer` — keine nativen `<select>` in overflow:hidden Panels ohne dieses Pattern82
Also in Gurgenbaba/genesis-colonies
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 |
|---|---|---|---|---|---|
| Gurgenbaba/genesis-colonies.cursor/rules/battle-lab-visual.mdc · 2 | Cursor rules | stylesecurityuido-not | 63/100 | 3 days ago | |
| Gurgenbaba/genesis-colonies.cursor/rules/genesis-colonies-ui-design.mdc · 2 | Cursor rules | buildstylearchui+1 | 67/100 | 3 days ago | |
| Gurgenbaba/genesis-colonies.cursor/rules/no-dead-code-no-bloat.mdc · 2 | Cursor rules | no sections | 44/100 | 3 days ago | |
| Gurgenbaba/genesis-colonies.cursor/rules/test-maintenance.mdc · 2 | Cursor rules | teststyletesting-strategydo-not | 67/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 | |
| markstev/mark-starter.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+6 | 99/100 | 3 days ago | |
| dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0 | 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 | |
| skillrecordings/egghead-next.cursor/rules/project-update-user-rules.mdc · 1.4k | Cursor rules | buildtestlint-formatstyle+7 | 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 |
