// 4 min
AI Context Checklist: From Chatting to Architecting
AI Engineering Productivity
The Goal: Stop correcting the AI. Start directing it.
1. The “Plan-First” Protocol
Stop the “Review Trap” by forcing the AI to think before it types.
- The Rule: Never ask for code immediately for a new feature.
- The Prompt: “I want to implement [Feature]. Do not write any code yet. Review the codebase and list the files you need to modify and the logic steps you will take. Wait for my ‘Go’ before writing code.”
- Why it works: You catch architectural bugs in 10 seconds of reading a list, rather than 5 minutes of debugging a 100-line file.
2. Context is King (The Command Palette)
AI logic is only as good as the files it can “see.”
- @workspace / #codebase: Use for “Where is…?” or “How do we handle…?” questions.
- @file / #file: Use this religiously. Point to your specific
Service,View, orModel. - @terminal / @logs: If an app crashes, don’t describe the error. Paste the raw log/terminal output and ask: “Explain why this occurred based on the logic in
@file.”
3. Mobile & Fullstack Specifics
Bridging the gap between iOS and Web.
- The Xcode Gap: Since Xcode integration can be less “context-aware” than VS Code, manually reference your Protocols and Models.
- Cross-Stack Sync: When changing an API, mention both sides: “Update
UserAPI.swiftto match the schema changes I just made inuser_controller.ts.” - The “Internal” Pattern: If your team uses a specific pattern (e.g., MVVM, Composable Architecture), tell the AI: “Follow the pattern used in
ExistingView.swiftexactly.”
4. The 4-Part Prompt Formula
Use this for complex tasks to ensure high-quality output.
- Role: “Act as a Senior iOS & Fullstack Engineer.”
- Context: “We are working on the [Project Name] using
existing_pattern.swift.” - Task: “Implement the logic for [X] feature.”
- Constraints: “Use async/await, do not add external dependencies, and follow the naming conventions in
styleguide.md.”
5. Setting “Project Rules” (The Guardrails)
Standardize the AI for the whole team.
- Create a
.github/copilot-instructions.md(for Copilot) or a.cursorrulesfile in your root. - Include:
- “Always use SwiftUI, never UIKit.”
- “Use our
Logger.swiftfor all error handling.” - “Prefer functional programming patterns in TypeScript.”
- “If a function exceeds 25 lines, suggest a refactor.”