Reusable Contextual Prompts Library
These prompts are designed for real software engineering workflows—never generic one-liners like "Build me an app."
The Contextual Prompting Anatomy
Every strong prompt in this library follows 7 core principles:
| Principle | What It Does | Why It Matters |
|---|---|---|
| 1. Context | Point the agent to your Markdown docs (docs/prd.md, docs/architecture.md) | Grounds AI in your actual project rules |
| 2. Objective | State the single task or decision you need right now | Prevents tangled multi-feature changes |
| 3. Boundaries | Tell the agent what not to touch, add, or invent | Stops scope creep and unapproved rewrites |
| 4. Inspect First | Require reading relevant files before proposing or editing code | Eliminates guessed file paths and broken imports |
| 5. Expected Output | Define the exact response format (plan, diff summary, diagnosis) | Keeps answers concise and reviewable |
| 6. Verification | Ask how you can independently verify the result works | Replaces blind trust with concrete checks |
| 7. Review First | Review each output before moving on to the next step | Catches bugs early while changes are tiny |
Prompt Collections
| Collection | Phases Covered | What's Inside | File |
|---|---|---|---|
| Product & Planning | Phases 1–2 | Stress-test problem, MVP scoping, PRD/acceptance criteria, task breakdown | 01-product-and-planning-prompts.md |
| Design & Architecture | Phases 3–4 | Journey/wireframe critique, design direction, tech stack comparison, folder/data model | 02-design-and-architecture-prompts.md |
| Implementation & Understanding | Phases 5–6 | Starter setup, inspect-before-edit plans, backend/frontend slices, code explainer, screen/concept breakdown (Prompt 6) | 03-implementation-prompts.md |
| Debugging, Testing, Git & Deploy | Phases 7–9 | Root-cause diagnosis, security review, automated tests, PR summaries, pre-deploy smoke check | 04-debugging-testing-and-review-prompts.md |
Mandatory Safety Reminders
danger
- Never paste real passwords, API keys,
.envcontents, or private user data into prompts. - Keep prompts vendor-neutral: Store your project context in repo Markdown files so any AI assistant or coding agent can pick up cleanly.