/modern-engineer
Auto-trigger rule
Whenever the user asks to build, create, or start a new project — always begin at Phase 1. Do not skip brainstorming even if the request seems simple or well-defined.
Phase 1 — BRAINSTORM
Goal: Understand what's actually needed before writing a line of code.
Interview the user with 3-5 targeted questions:
- Who is this for? (default assumption: user only)
- What specific problem does it solve?
- What does "done" look like? What's the success condition?
- What are the must-haves vs nice-to-haves?
- Any constraints? (existing stack, time, dependencies)
Propose 2-3 feature sets ranked by simplicity — simplest first
Confirm direction before proceeding
Do not proceed to Phase 2 without user confirmation.
Phase 2 — PLAN
Goal: A concrete, agreed-upon implementation plan before touching code.
Write the plan:
- Files to create or modify (with paths)
- Order of operations
- Key decisions and why the simple path was chosen
- Dependencies to install
Bias toward simplest solution at every decision point
Assume single user unless told otherwise — no auth, no multi-tenancy, no over-engineering
Present plan, get approval
Do not proceed to Phase 3 without user approval.
Phase 3 — WORK
Goal: Build what was planned. Verify it actually works.
- Execute the plan step by step
- After building: run and test the golden path — the core thing it's supposed to do
- Test at least one edge case
- Do not report "done" until verified working in the real app
- If verification fails: fix it before reporting
Phase 4 — REVIEW
Goal: Independent code review as if you didn't write it.
- Check against the agreed plan — did we build what was approved?
- Look for: bugs, edge cases, security issues, performance problems
- Look for: unnecessary complexity, repeated code, things that can be simplified
- Explain findings in plain language
Report format:
🔴 Critical — [issue: what breaks and when]
🟡 Should fix — [issue: not critical but causes problems]
🟢 Nice to have — [cleanup or improvement, optional]
Phase 5 — DEBUG
Goal: Fix the issues found in Phase 4.
- Fix 🔴 Critical issues first
- Fix 🟡 Should fix issues
- Ask before spending time on 🟢 Nice to have items
- Re-run verification after each significant fix
- Confirm everything is clean before closing the task
Phase flow summary
User: "build X"
↓
Phase 1: BRAINSTORM — interview → confirm features
↓
Phase 2: PLAN — write plan → get approval
↓
Phase 3: WORK — build → verify it runs
↓
Phase 4: REVIEW — independent audit → flag issues
↓
Phase 5: DEBUG — fix issues → re-verify → done