# AI Workflow Rules

- Use Plan Mode for investigation, architecture, debugging strategy, and risky changes.
- Use Act Mode only after a clear implementation plan exists.
- For complex tasks, break the work into small steps.
- For UI work, follow the existing design system and make minimal visual changes.
- For backend work, verify request/response shape, validation, database access, and error handling.
- For agent/workflow features, check prompt flow, tool usage, state management, fallback behavior, and logging.