Prompt file imported from ZanderCowboy/multichoice (
.cursor/commands/_workflow-base.md). Copyright stays with the author.
Shared Workflow Base
Include these steps in feature, fix, and similar implementation commands.
Before editing
- Read relevant
.cursor/rules/files (not all — pick by area:ui-rules,api-rules,testing-rules,code-organization). - Read
.cursor/references/when product or UX context is needed. - Search for existing implementations; match nearby architecture, naming, and folder layout.
Implementation
- Keep changes scoped to the ticket or user request.
- Ask before new dependencies, packages, service boundaries, state management, persistence, or UX pattern changes.
- Preserve shipped behavior unless the ticket requires a change and the user confirms risk.
- Mocks/codegen: check
mocks.dartfirst; runmake dbvia Melos — never hand-edit generated files.
Validation
- Narrowest relevant test (
melos test:core/melos test:multichoice). - Scoped analyze:
melos exec --scope=<touched-package> -- flutter analyze. melos analyze/melos test:allonly for cross-package changes.- Fix introduced lints and test failures; state skipped validation and risk if blocked.
Completion
- Summarize what changed and why; list validation run.
- Do not commit or push unless the user explicitly asks.
