Skip to main content

Implementation & Code Comprehension Prompts (Phases 5–6)

Use these prompts with IDE or terminal coding agents when setting up your repo and implementing one small feature at a time.


Prompt 1: Minimal Starter Project Setup​

Context:
Tech stack: [state stack]
Agreed folder layout: [refer to docs/architecture.md]

Objective:
Inspect this directory and scaffold ONLY the minimal runnable starter project.

Boundaries:
- Inspect existing files before creating or changing anything.
- Do NOT implement MVP features yet.
- Do NOT install extra UI or utility packages beyond the bare starter.
- Create `.gitignore` (blocking `.env` and dependency folders) and `.env.example` (placeholders only) before any commit.

Expected Output:
1. Exact starter setup changes or commands.
2. Command to boot locally and how I verify it works in my browser.
3. `git status` check to confirm no secrets or junk files are tracked.

Prompt 2: Inspect-Before-Edit Feature Plan (Mandatory Step 1)​

Context:
We are starting Task [ID & name] from `docs/development-plan.md`.
Read `docs/prd.md`, `docs/design-direction.md`, and `docs/architecture.md`.

Objective:
Inspect the existing codebase and propose an implementation plan for ONLY this task.

Boundaries:
- Do NOT edit or create any code files yet—wait for my approval.
- Do NOT touch unrelated files, styling, or architecture outside this task.
- Only include behavior required by this task's Acceptance Criteria.

Expected Output:
1. Existing files inspected and how this feature connects to them.
2. Exact list of files to create or modify.
3. Edge cases & validation rules (empty input, invalid format, server errors).
4. Exact commands or browser checks we will run after editing to verify it works.

Prompt 3: Scoped Backend / Data Implementation​

Context:
We approved the plan for Task [ID & name].

Objective:
Implement ONLY the backend/data layer for this task.

Boundaries:
- Edit only the backend/database files listed in our approved plan.
- Validate all incoming inputs on the server and enforce authorization checks where applicable.
- Do NOT modify frontend UI files yet.
- Do NOT refactor unrelated working code or add unapproved packages.

Expected Output:
1. Summary of exact files changed and why.
2. Exact command or HTTP check I should run to verify this backend step works before wiring the UI.

Prompt 4: Scoped Frontend Integration​

Context:
The backend/data step for Task [ID & name] is verified working.
Follow `docs/design-direction.md` and our approved plan.

Objective:
Implement ONLY the frontend UI and API integration for this task.

Boundaries:
- Include loading, empty, and user-friendly error states (never swallow errors silently).
- Edit only the frontend files in our approved plan.
- Do NOT introduce unrequested UI widgets, gradients, or extra features.
- Keep mobile layout clean and readable.

Expected Output:
1. Summary of files created or edited.
2. Exact browser steps (including edge cases and page reload) for me to verify every Acceptance Criterion.

Prompt 5: Explain Unfamiliar Code Safely​

Context:
I am reviewing the code changes in `[file path]`.

Objective:
Explain lines [start]-[end] in plain English so I understand exactly how this works before accepting it.

Boundaries:
- Do NOT modify any files.
- Explain technical terms simply when first mentioned.

Expected Output:
1. What data enters this block and what comes out.
2. Line-by-line or step-by-step plain-English walkthrough.
3. What happens if an input is missing or an error occurs here.
4. Any edge case or hidden assumption worth checking.

Prompt 6: Break Down a Confusing Screen, Video Concept, or Webpage​

Use this whenever you get stuck in Chrome (such as a database dashboard like Neon, GitHub settings, or a hosting panel) or after watching a quick 5–20 minute YouTube setup video.

Context:
I am a beginner building an app and I am stuck on this step: [what I am trying to do, e.g., "setting up a Postgres database on Neon"].
Here is a screenshot of what I see in Chrome / the text I copy-pasted / what I saw in a short tutorial video:
[Attach screenshot (with any passwords, API keys, or secret URLs hidden) OR paste copied text/error]

Objective:
Break down what I am looking at in plain English and tell me the exact next step to take.

Boundaries:
- Do NOT assume I already know developer jargon—explain every technical term simply.
- Tell me which buttons/fields on this screen actually matter right now and which settings I can safely ignore.
- Warn me before clicking anything destructive or pasting any secret in the wrong place.

Expected Output:
1. Simple explanation of what this screen/concept is doing (2-3 sentences).
2. Exact step-by-step clicks or inputs for what to do next on this screen.
3. One quick check to confirm I did it right before moving on.

Navigation: ← Previous: Design & Architecture Prompts | Prompts Index | Next: Debugging, Testing & Review Prompts →