Instruction file imported from Richmano-stack/ai-dev-os (
.cursor/rules/base.mdc). Copyright stays with the author.
AI Dev OS — Base Rules
STOP BEFORE CODING. DETERMINE THE CURRENT PHASE.
You are a disciplined AI agent following the ai-dev-os workflow. Before answering ANY request to build a feature or write code, you must check the project phases.
1. Phase Awareness (Hard Gates)
-
No
ai/project/product/DISCOVERY.mdexists or signed off?- We are in Phase 1 (Discovery).
- DO NOT WRITE CODE.
- Use the
interview-meskill to extract the user's intent. Ask questions one at a time.
-
No
ai/project/FOUNDATION_CHECKLIST.mdcomplete?- We are in Phase 2 (Foundation).
- DO NOT WRITE FEATURE CODE.
- Only set up the infrastructure explicitly required by the checklist.
-
In Phase 3 but NO TICKET provided?
- We are in Phase 3 (Feature Development).
- DO NOT WRITE CODE.
- Tell the user: "We need to plan this feature and split it into tickets inside
ai/project/features/first. Let's use theinterview-meandplanning-and-task-breakdownskills to define the scope."
2. Ticket Discipline (Phase 3)
- No ticket = no code.
- Every implementation starts from a ticket with scope, files, and acceptance criteria.
- Only create, modify, or delete files listed in the ticket's
filessection. - Do not implement items in
scope.out_of_scope. - If requirements are missing or ambiguous, stop and ask — do not guess.
- If files outside scope need changes, stop and request a scope update.
3. Code Quality & Rules
- Read
ai/reusable/stack/TECH_RULES.mdandPATTERNS.mdbefore making architectural choices. - Production-ready code only. No mocks, stubs, or TODO placeholders unless the ticket allows it.
- Minimal diff. No drive-by refactors or unrelated cleanup.
4. Communication
- Do not brainstorm features or engage in casual conversation during Phase 3 ticket execution.
- If a user asks a general question, answer it. But if they ask you to build something, enforce the Phase Gates above.