Module 2 of 6
Application Planning
Turn an idea into requirements, MVP scope, architecture, data model, security requirements, acceptance criteria and sprints.
0% · 0 of 13 lessons
The quality of an AI-built application depends heavily on the quality of the plan. A clear plan lets Claude Code build the right thing in a few consolidated sprints instead of many rounds of guesswork. In this module you will use ChatGPT as a product manager and architect to produce that plan.
Turning an idea into business requirements
An idea such as "an app to manage my team's tasks" is not yet buildable. Business requirements state what the application must do in specific, verifiable terms.
Start by answering these questions in plain language:
- What problem exists today, and what does it cost (time, money, errors)?
- Who experiences the problem?
- What would a successful outcome look like?
- What must the application do to produce that outcome?
- What must it never do (for example, expose one customer's data to another)?
Then rewrite the answers as numbered requirements:
| Vague | Specific requirement |
|---|---|
| Users can manage tasks | Signed-in users can create, edit, complete and delete their own tasks |
| It should be secure | Users can only see and modify tasks they own |
| Reminders would be nice | Out of scope for the MVP |
Identifying target users
Describe each type of user in a sentence or two — a persona. Include what they are trying to achieve and their technical comfort.
- Primary user: the person who uses the application daily.
- Administrator: someone who manages users or settings, if needed.
- Visitor: someone who sees public pages without signing in.
Fewer user types mean a simpler application. Many MVPs need only one.
Defining use cases
A use case (or user story) describes one thing a user does and why:
As a team member, I want to mark a task as complete so that my team knows it is done.
Write a use case for every core action. Each one should map to something you can test by clicking through the application.
Establishing MVP scope
The Minimum Viable Product is the smallest version that delivers real value. Explicitly list what is in and out of scope.
| In scope (MVP) | Out of scope (later) |
|---|---|
| Sign in | Single sign-on for enterprises |
| Create, edit, complete, delete tasks | Recurring tasks |
| Filter by status | Analytics dashboards |
| Mobile-friendly layout | Native mobile apps |
Choosing an appropriate technology stack
The technology stack is the set of languages, frameworks and services the application is built with. For AI-assisted development, prefer:
- Mainstream, well-documented technologies. AI models have seen far more examples of popular frameworks and make fewer mistakes with them.
- Stable versions over newly released ones.
- Fewer moving parts. Every extra service adds configuration, cost and failure points.
- A platform that deploys easily to Railway from GitHub.
A common, reliable starting point for web applications:
| Layer | Common choice | Why |
|---|---|---|
| Framework | Next.js with TypeScript | Front end and back end in one project, widely documented |
| Styling | Tailwind CSS | Consistent, fast to iterate |
| Database | PostgreSQL | Reliable, relational, available on Railway |
| Database access | An ORM such as Prisma or Drizzle | Type-safe queries and migrations |
| Authentication | A maintained library or provider | Avoid writing security-critical code from scratch |
| Hosting | Railway | Deploys from GitHub, hosts databases alongside the app |
This is a starting point, not a rule. Let ChatGPT recommend a stack for your requirements, then ask it to justify each choice.
Designing application architecture
Architecture describes the major parts of the application and how they communicate. For most MVPs it is simple:
- A web application service that serves pages and API routes.
- A database, if data must persist.
- Optional external services, such as an email provider or payment processor.
Railway application and database architecture
Users
GitHub
Railway project · production environment
Application service
PostgreSQL
Redis (optional)
Ask ChatGPT to describe the architecture in words and as a simple list of components. If the plan includes microservices, message queues or multiple databases for an MVP, question it.
Database selection
Not every application needs a database.
| Situation | Recommendation |
|---|---|
| Static content, calculators, informational sites | No database. Content lives in files; browser state can use local storage. |
| Structured records with relationships (users, orders, tasks) | PostgreSQL — the safe default. |
| Flexible, document-shaped data with varying fields | MongoDB can fit, but PostgreSQL with JSON columns often works too. |
| Caching, sessions, rate limiting, queues | Redis, usually alongside a primary database, not instead of one. |
More detail on each option is in Cloud Deployment.
Data model
The data model lists the entities (things you store), their fields and how they relate. For a task manager:
User: id, email, name, created_at
Task: id, user_id → User, title, description, status (open | done), due_date, created_at, updated_atReview the data model carefully. Changing it after launch requires migrations and can risk existing data.
User experience planning
List the screens and the path a user takes through them:
- Landing page → Sign in
- Task list (default screen after sign-in)
- Create or edit task form
- Settings or account page
For each screen, note what the user sees, what actions are available and what happens on errors (empty states, validation messages, loading states). Specify that layouts must work on mobile.
Security requirements
Write security requirements into the plan so they are built in from the start:
- Authentication: how users sign in. Use a maintained library or provider.
- Authorization: users can only access their own data; admin actions are restricted.
- Input validation: validate everything on the server, not only in the browser.
- Secret management: all credentials in environment variables, never in code;
.envgit-ignored;.env.examplewith placeholders. - Data protection: HTTPS everywhere; collect only data you need.
- Error handling: users never see stack traces or internal details.
Acceptance criteria
Acceptance criteria are measurable conditions that define "done". They let you — and ChatGPT — judge completion reports objectively.
Good acceptance criteria are specific and testable:
- A signed-in user can create a task with a title of up to 200 characters.
- A user cannot view or edit another user's task, even by changing the URL.
- The task list is usable on a 375-pixel-wide mobile screen.
- Type checking, automated tests and the production build pass.
Avoid vague criteria such as "works well" or "looks nice".
Sprint planning
A sprint is a consolidated batch of related work that ends with a working, testable application. With AI agents, fewer and larger sprints are usually more efficient than many small ones, because each prompt carries setup and reporting overhead.
A typical small application fits in two to four sprints:
| Sprint | Focus |
|---|---|
| 1 | Project foundation, layout, data model, core create/read/update/delete workflow, tests, push to GitHub |
| 2 | Authentication, authorization, validation, error handling, remaining features |
| 3 | Deployment readiness, polish, documentation, production fixes |
You will generate the actual sprint prompts in Agentic AI Development.
Avoiding overengineering
Overengineering means building more than the requirements need. AI tools are prone to it because they draw on patterns from large systems. Warning signs:
- Microservices, Kubernetes or multiple databases for a first release.
- Custom authentication, payment or encryption code instead of proven libraries.
- Admin dashboards, analytics and role systems nobody asked for.
- Abstractions "for future flexibility" with no current use.
Ask ChatGPT directly: "What in this plan could be removed without hurting the MVP?"
The complete planning prompt
Copy this prompt into a new ChatGPT conversation, replace the placeholders and review the plan it produces. Keep the conversation — you will continue it to generate sprint prompts.
Application Planning
- Purpose
- Turn a raw idea into a complete, implementation-ready application plan.
- When to use
- At the very start of a project, before any code is written. Reuse it whenever you start a new application.
[APPLICATION IDEA][TARGET USERS][PROBLEM BEING SOLVED][MUST-HAVE FEATURES][CONSTRAINTS: budget, timeline, compliance, preferred technologies][HOSTING: Railway]Act as an experienced product manager and software architect. Help me plan a web application that I will build with Claude Code (an AI coding agent) and deploy to [HOSTING: Railway] from a private GitHub repository. ## My idea [APPLICATION IDEA] ## Target users [TARGET USERS] ## Problem being solved [PROBLEM BEING SOLVED] ## Must-have features [MUST-HAVE FEATURES] ## Constraints [CONSTRAINTS: budget, timeline, compliance, preferred technologies] ## Produce the following plan 1. Product summary and value proposition (one paragraph). 2. Business requirements as a numbered list. 3. Target user personas and their primary goals. 4. Core use cases written as "As a [user], I want to [action] so that [outcome]". 5. MVP scope: what is IN the first release and what is explicitly OUT. 6. Recommended technology stack with a short justification for each choice. Prefer mainstream, well-documented, stable technologies that an AI coding agent handles reliably. Avoid unnecessary services. 7. Application architecture: components, how they communicate and where they are hosted. 8. Data model: entities, key fields and relationships. State clearly if no database is needed. 9. Database recommendation (none, PostgreSQL, MongoDB, Redis) with reasoning. 10. User experience: main screens, navigation and key user flows. 11. Security requirements: authentication, authorization, input validation, secret management and data protection. 12. Environment variables the application will need (names and purpose only, never real values). 13. Testing approach: what must be covered by automated tests and what must be validated manually. 14. Measurable acceptance criteria for the MVP. 15. Risks, assumptions and open questions I need to decide. 16. Things to deliberately avoid so we do not overengineer the MVP. Ask me up to five clarifying questions first if anything critical is ambiguous. Otherwise, produce the plan directly. Keep it concise, specific and practical.
Reviewing the plan
Before approving the plan, check that:
0 of 7 complete
Ask follow-up questions until you understand and agree with every decision. Then save the final plan — many people paste it into a document or into the project README later.