AI-Assisted Coding · Module 5Prompt library

Prompt library · 21 prompts

Module 5 prompt library

Practical prompts for Codex App review, governance, planning, context engineering, and personal AI playbooks.

How to use this library
  • Use this library while completing Module 5 in Codex App. The default workflow is read first, inspect, grade, and only then decide what belongs in docs/.
  • Replace placeholders such as [PASTE AI FINDINGS HERE] or [PASTE YOUR NOTES HERE]. Do not leave placeholders in a final artifact.
  • Start fresh threads for separate tasks, especially when comparing generic and repo-grounded plans or context strategies A, B and C.
  • Ask Codex to cite actual files when it makes claims about the Task Tracker repo. Generic advice is not enough for Module 5.
  • Keep Module 5 outputs in docs/. Reject unexpected edits to app/ unless you intentionally choose the optional one-line fix from the security review.
  • Treat every answer as a draft to grade. Strong prompts ask for evidence, constraints, output format, and a verification or critique step.

Key mindset AI proposes; you grade. In Module 5, the prompt is not just a request for output; it is a tool for creating evidence you can inspect, compare, and turn into rules.

5.1A · 5.1B · 5.1C · 5.1D

Setup prompts — Part 5.1

These prompts establish the Module 5 posture: Codex App should read the repo, respect AGENTS.md, avoid hidden edits, and treat docs/ as the working area for this module.

5.1A · Start a Codex App thread with Module 5 guardrails

Use at the beginning of a fresh Codex App thread before any Module 5 activity.

Weak versionRemember this is Module 5. Help me with the repo.

Improved version · 5.1AI am working in Module 5 of AI-Assisted Coding with the Task Tracker repository in Codex App. Module goal: I am grading and governing AI-assisted coding work. I am not building new app features in this module. Default constraints: - Prefer read-only analysis first. - Edit files in docs/ only unless I explicitly approve a different path. - Do not modify app/ during Module 5 unless I ask for one specific minimal fix. - Use one bounded task per thread. - When you make claims about the repo, cite actual files you inspected. - If you are uncertain or a file is not visible, say so instead of guessing. Before answering, briefly state: 1. The task you think I am asking for. 2. The files you plan to inspect, if any. 3. Whether you need permission to edit anything.

Why it is betterIt gives Codex the module purpose, the review posture, the docs-first boundary, and the requirement for file evidence. This prevents the agent from treating Module 5 like another feature-building module.

The mistake it avoidsStarting a long agent thread with vague memory and then being surprised when it edits the wrong part of the repo.

Context / task boundary · Prompt library pp. 1-2

5.1B · Draft or review AGENTS.md

Use after opening the Task Tracker repo in Codex App and before running the rest of Module 5.

Weak versionCreate AGENTS.md for this repo.

Improved version · 5.1BYou are helping me set up Codex App for the Module 5 Task Tracker repo. Task: Draft an AGENTS.md file for this repository. Read the repo first, especially README.md, app/main.py, app/models.py, app/storage.py or equivalent persistence files, tests/, frontend/index.html if present, and requirements.txt or pyproject.toml if present. AGENTS.md must include: 1. Project summary. 2. Tech stack and run/test commands that are actually supported by the repo. 3. Business rules that are visible in the code, such as task statuses, priorities, and validation rules. 4. Module 5 guardrails: docs-first, read-only by default, one task per thread, and no app/ changes unless explicitly approved. 5. Security and governance reminders: do not paste or expose secrets, do not run destructive commands, cite files, and do not invent findings. Constraints: - Do not edit any file except AGENTS.md. - Show me the proposed AGENTS.md content and list the files you read before applying the change. - If a command or business rule is not visible, mark it as "not confirmed" instead of inventing it. Output format: 1. Files inspected 2. Proposed AGENTS.md 3. Assumptions or items to verify 4. Diff preview if you plan to create or update the file

Why it is betterThe old project-instructions idea is useful, but Module 5 now uses AGENTS.md. This prompt makes the file repo-grounded instead of generic and keeps Codex inside Module 5 boundaries.

The mistake it avoidsCreating a polished AGENTS.md that sounds helpful but does not reflect the actual repo or the Module 5 docs-first workflow.

Repo-level instructions / Codex App setup · Prompt library pp. 2-3

5.1C · Project evidence smoke test

Use immediately after selecting the Task Tracker repo in Codex App to verify the agent is reading real files.

Weak versionSummarize this project.

Improved version · 5.1CSummarize the Task Tracker repo in 5 bullets. For each bullet: - Name the exact file or files you inspected. - Quote or paraphrase the evidence briefly. - State your confidence level: High, Medium, or Low. Constraints: - Do not edit files. - Do not run tests or start the app. - Do not rely on generic FastAPI assumptions. - If you cannot find evidence for a claim, do not include the claim. Output format: Return a table with columns: Claim, Evidence file, Evidence summary, Confidence, Assumption to verify.

Why it is betterIt turns a generic repo summary into an evidence check. Students can quickly see whether Codex is grounded in their actual files.

The mistake it avoidsAccepting a fluent project summary that could describe any Task Tracker app.

Repo grounding / file evidence · Prompt library pp. 3-4

5.1D · Recent files smoke test

Use after the project evidence smoke test to confirm Codex can inspect local repo state without editing files.

Weak versionWhat changed recently?

Improved version · 5.1DUsing filesystem metadata only, identify the three most recently modified files in this repo. For each file, provide: - File path - Last modified time if visible - One sentence describing what you see in the file Constraints: - Do not use git. - Do not edit anything. - Do not infer from filenames alone. Open or inspect the file before describing it. - If filesystem metadata is unavailable, say that clearly and suggest a safe alternative read-only check. Output format: Return a table with columns: File, Modified time, What the file contains, Evidence confidence.

Why it is betterThe lecture uses smoke tests to confirm Codex is looking at the real repo. This prompt checks repo access without encouraging edits or commands that change state.

The mistake it avoidsContinuing into security review or planning before verifying that the selected folder is actually the repo root.

Repo grounding / filesystem awareness · Prompt library p. 4

5.2A · 5.2B · 5.2C · 5.2X

Security review prompts — Part 5.2

These prompts support the first major grading exercise. The goal is docs/security-review.md, not a code patch. The strongest student work appears in the grading, manual scan, You-only findings, and top-3 backlog.

5.2A · Run a read-only security audit

Use in a fresh Codex App thread after AGENTS.md and the smoke tests are complete.

Weak versionReview this codebase for security issues.

Improved version · 5.2AYou are a security-minded reviewer doing a read-only audit of the Task Tracker repo in Codex App. Task: Inspect relevant files before answering, including: - Backend app files such as app/main.py, route files, models, validation, and storage. - tests/ to understand expected behavior. - requirements.txt or pyproject.toml if present. - Dockerfile, compose files, or .github workflows if present. - frontend/index.html or frontend files if present. - AGENTS.md for project instructions and Module 5 guardrails. Focus areas: 1. Input validation, unbounded strings, enum handling, and type assumptions. 2. Authorization gaps or the intentional absence of auth as a course-scope decision. 3. Data exposure, stack traces, verbose errors, secrets, or unsafe config. 4. Error handling and broad exception behavior. 5. Dependency, CI, Docker, and deployment risks. 6. CORS or frontend API assumptions. Constraints: - Read-only. Do not edit files. - Do not run destructive commands. - Do not invent findings to fill space. - If a category is clean, not applicable, or not visible, say so. - Cite actual file paths and line numbers if available. Output format: Return a markdown table with columns: ID | Severity | File / location | Finding | Evidence | Suggested next step | Confidence After the table, add: - Files inspected - Categories where you found no issue - Any assumptions or limits of the audit

Why it is betterIt requires Codex to read the repo first, separates evidence from opinion, and prevents generic OWASP-style output from looking more useful than it is.

The mistake it avoidsTreating a fluent AI security report as correct without checking whether it cites real files and real behavior.

Security review / file-evidence audit · Prompt library pp. 4-5

5.2B · Grade AI security findings

Use after Codex produces the security audit and before writing the final security-review.md.

Weak versionAre these findings right?

Improved version · 5.2BI am grading AI security findings for Module 5. Definitions: - Valid: a real issue in this repo, or a course-scope limitation that would matter outside the learning context. - False Positive: wrong because of the actual code, severity, behavior, or Task Tracker scope. - Noise: technically true but too generic, trivial, or unsupported to become an action item. Task: For each finding below, help me classify it as Valid, False Positive, or Noise. If you need code or file evidence to grade a finding, ask for it instead of guessing. Constraints: - Do not invent new findings. - Do not upgrade severity without evidence. - Treat "no authentication" carefully: it may be an intentional course-scope decision, but it may still be a production risk. - Keep the final judgment mine; provide evidence and reasoning. Output format: Return a table with columns: Finding ID | Proposed grade | Reason | Evidence needed or evidence used | Student decision to confirm AI findings: [PASTE AI SECURITY FINDINGS HERE]

Why it is betterThe improved prompt matches the lecture principle: the AI output is not the deliverable; the student grading is the deliverable.

The mistake it avoidsMarking every AI finding as Valid because the report sounds professional.

Security review / human grading · Prompt library p. 6

5.2C · Reconcile manual scan with AI findings

Use after completing your own manual scan of app/ and related files.

Weak versionFind what the AI missed.

Improved version · 5.2CI completed a Module 5 security review. Below are the AI findings and my own manual scan findings. Task: 1. Group the findings into Agreement, AI-only, and You-only. 2. Write a two-line observation about the shape of AI coverage. 3. Create a top-3 security backlog from the Valid findings. Definitions: - Agreement: both AI and I noticed the issue or a closely related issue. - AI-only: AI noticed it and I did not notice it during my manual scan. - You-only: I noticed it and AI missed it. This is the most important learning column. Constraints: - Do not invent new findings. - If a finding lacks file evidence, mark it "needs evidence" instead of treating it as confirmed. - Suggested owners should be realistic, such as backend, frontend, DevOps, or course/project owner. Output format: 1. Reconciliation table with columns: Agreement, AI-only, You-only 2. Two-line observation 3. Top-3 backlog table with columns: Rank, Finding, Why it matters, Suggested owner, Next action AI findings: [PASTE AI FINDINGS WITH GRADES HERE] My manual scan findings: [PASTE YOUR MANUAL FINDINGS HERE]

Why it is betterIt directly supports the lecture artifact: docs/security-review.md with Agreement / AI-only / You-only and a top-3 backlog. It also protects the student-owned manual scan.

The mistake it avoidsStopping at the AI audit and skipping the manual scan, which removes the main evidence of student judgment.

Security review / reconciliation · Prompt library pp. 6-7

5.2X · Optional minimal one-line fix

Use only if one Valid finding is clearly a one-line fix and you intentionally decide to review a patch.

Weak versionFix this security issue.

Improved version · 5.2XI want to consider one optional one-line fix from docs/security-review.md. Finding: [PASTE THE ONE FINDING HERE] Task: Propose the minimal diff that addresses only this finding. Do not apply the diff yet. Constraints: - One finding only. - No refactoring. - No unrelated validation changes. - No new dependencies. - Do not edit tests unless I explicitly ask. - Explain why this is small enough for Module 5; if it is not small enough, say it belongs in the backlog. Output format: 1. Decision: one-line fix or backlog 2. Minimal unified diff 3. Why this change is limited 4. Verification step I should run or document

Why it is betterThe old minimal-fix prompt was useful, but the recording frames Module 5 as documentation-heavy. This version keeps the option but makes it conservative.

The mistake it avoidsTurning a security review into a broad refactor and losing the Module 5 focus on grading and documentation.

Optional extension / security fix preview · Prompt library pp. 7-8

5.3A · 5.3B · 5.3C

Governance prompts — Part 5.3

These prompts help you reconstruct what you shared with AI, what you received, what you understand, and what concrete rules you want to follow next time.

5.3A · Classify what you shared with AI

Use after filling the “What I Shared” table in docs/governance-worksheet.md.

Weak versionClassify my AI prompts by risk.

Improved version · 5.3AI am doing a Module 5 governance retrospective on what I shared with AI coding tools during this course. Risk rubric: - Low: public code, course toy project code, no sensitive data, no proprietary logic. - Medium: private but non-sensitive code, internal implementation details, or non-public repo context with no secrets and no PII. - High: credentials, tokens, secrets, production config, real customer/user data, regulated data, or code I am not authorized to share. Task: For each row in my "What I Shared" table, classify the risk as Low, Medium, or High. Add a one-sentence reason and a safer future version of what I could paste instead. Constraints: - If a row is ambiguous, say what information is missing instead of guessing. - Do not minimize risk because the project is small. - Do not invent rows I did not provide. Output format: Return a table with columns: Item shared | Risk | Reason | Safer future version | Ambiguity to resolve What I Shared: [PASTE YOUR TABLE HERE]

Why it is betterIt turns governance into a practical classification exercise and adds the “safer future version” students can actually reuse.

The mistake it avoidsCalling everything Low because the Task Tracker feels like a learning project, even when real names, secrets, or private code were pasted.

Governance / risk classification · Prompt library pp. 8-9

5.3B · Trace one generated block line by line

Use for one AI-generated code block from Modules 1-4 that you cannot fully explain.

Weak versionExplain this code.

Improved version · 5.3BWalk me through the following AI-generated code block line by line. For each line or small group of lines, explain: 1. What it does. 2. Why it is written this way. 3. What would break if it were removed or changed. 4. Any assumption, risk, or library behavior I should verify. Constraints: - Use beginner-friendly but precise language. - If the explanation would require seeing surrounding files, ask for them. - If you are unsure, say so. Do not use vague phrases such as "this is standard" without explaining why. - Do not rewrite the code unless I ask. Output format: Return a table with columns: Line(s) | What it does | Why it is there | What could break | Do I own this yet? Code block: ``` [PASTE ONE GENERATED CODE BLOCK HERE] ```

Why it is betterThe lecture emphasizes that code you cannot explain is code you do not own. This prompt turns understanding into a concrete review table.

The mistake it avoidsAssuming a generated block is safe because it ran once or because the explanation sounded confident.

Governance / ownership of generated code · Prompt library pp. 9-10

5.3C · Turn notes into concrete AI usage rules

Use after completing the governance worksheet and tracing at least one generated code block.

Weak versionWrite my AI policy.

Improved version · 5.3CUse only my governance worksheet notes below. Do not invent events, examples, or rules. Task: Help me turn my notes into three personal AI usage rules: 1. What I will never paste. 2. What I will always verify before accepting. 3. How I will record AI contributions. Quality bar: Each rule must be concrete enough that a teammate could tell whether a future action violates it. If the rule sounds like "be careful," it is too vague. Constraints: - Do not write generic company policy. - Do not add examples that are not in my notes. - If my notes do not support a rule, write "Missing - add course evidence". - Keep the language student-friendly and specific. Output format: Return a table with columns: Rule category | Draft rule | Evidence from my notes | What is still vague? | Revised rule My notes: [PASTE GOVERNANCE WORKSHEET NOTES HERE]

Why it is betterIt preserves student ownership while still using AI to organize and sharpen the rules. The prompt prevents a polished but fictional governance reflection.

The mistake it avoidsLetting AI write generic rules that sound responsible but do not come from the student's actual course experience.

Governance / personal rules · Prompt library pp. 10-11

5.4A · 5.4B · 5.4C

Feature planning prompts — Part 5.4

These prompts support the comments-feature planning exercise. The core comparison is generic planning versus repo-grounded planning. You plan and critique; you do not implement the feature.

5.4A · Create a generic comments feature plan

Use in a fresh thread without repo access or pasted code. The goal is to create a baseline to compare against the repo-grounded plan.

Weak versionPlan comments for my task tracker.

Improved version · 5.4AWithout reading repo files, produce a generic plan for adding comments to tasks in a Task Tracker app. A comment has: - id: string UUID - task_id: string foreign key or task reference - author: required string, 1-100 characters - body: required string, 1-2000 characters - created_at: server-generated UTC datetime Task: Create a plan with these sections: 1. Data Model 2. API Routes 3. Tests 4. Frontend Changes 5. Migration or data-shape notes 6. Open Questions Constraints: - Do not write implementation code. - Clearly label assumptions as assumptions. - Do not claim knowledge of my actual file names, storage approach, frontend structure, or test style. - Keep this generic; I will compare it with a repo-grounded Codex App plan. Output format: Return a markdown plan followed by a section called "Assumptions this plan makes."

Why it is betterThe lecture compares generic and repo-grounded planning. This prompt intentionally creates the generic baseline while forcing the model to label its assumptions.

The mistake it avoidsMistaking a coherent generic plan for a plan that fits the actual codebase.

Feature planning / ungrounded baseline · Prompt library pp. 11-12

5.4B · Create a repo-grounded comments feature plan

Use in a fresh Codex App thread after creating the generic plan. This is the main Part 5.4 prompt.

Weak versionMake the comments plan fit my repo.

Improved version · 5.4BPlan - do not implement - a "comments on tasks" feature for this Task Tracker repo. A comment has: - id: string UUID - task_id: string foreign key or task reference - author: required string, 1-100 characters - body: required string, 1-2000 characters - created_at: server-generated UTC datetime Before planning, read the actual repository files, especially: - AGENTS.md - app/models.py or equivalent model files - app/main.py and any route files - app/storage.py or wherever tasks are persisted - tests/ to understand test style - frontend/index.html or equivalent frontend files - README.md if it documents run behavior or conventions Task: Produce a design document with these sections: 1. Data Model - where the comment models belong and how they fit existing patterns. 2. API Routes - HTTP method, path, request body, response body, and error cases. 3. Tests - concrete test names grouped by happy path, validation, and edge cases. 4. Frontend Changes - which files would change and what the user would see. 5. Migration Notes - anything about existing task data or storage shape that must change. 6. Open Questions - at least three real decisions the team should make. Constraints: - Read-only. Do not edit app/ or create implementation files. - Do not produce implementation code blocks. - Reference actual file paths and conventions you observed. - If you start writing generic FastAPI advice, stop and read the relevant repo file. - If something is not visible from the files, say so. Output format: Return markdown suitable for docs/decisions/comments-feature-plan.md, followed by "Files read" and "Assumptions to verify."

Why it is betterIt makes repository reading a requirement and keeps the task as a design review. The plan becomes something a student can critique like a teammate proposal.

The mistake it avoidsLetting the agent start implementing comments or accepting a plan that does not mention actual project files.

Feature planning / agent-grounded design · Prompt library pp. 12-13

5.4C · Critique and compare feature plans

Use after you have both the generic plan and the repo-grounded Codex plan.

Weak versionIs this plan good?

Improved version · 5.4CI am evaluating two comments-feature plans for Module 5: one generic plan and one repo-grounded Codex App plan. Grading labels: - Right: accurate about the existing repo and safe to keep. - Missing: a specific required detail is absent. - Needs-Resequencing: the idea may be useful, but the order is wrong for implementation or review. Task: 1. Grade each section of the repo-grounded plan: Data Model, API Routes, Tests, Frontend Changes, Migration Notes, Open Questions. 2. For each section, give evidence from the plan or actual repo context I provide. 3. Compare the generic and repo-grounded plans in three lines: - Biggest difference - Plan I would hand to a teammate and why - A task shape where generic chat is enough Constraints: - Do not implement the feature. - Do not rewrite the whole plan. - Do not invent repo facts that are not in the pasted plan or context. Output format: 1. Section critique table: Section | Label | Evidence | Minimal correction 2. Three-line generic vs repo-grounded comparison Generic plan: [PASTE GENERIC PLAN HERE] Repo-grounded plan: [PASTE CODEX PLAN HERE] Repo notes, if needed: [PASTE ANY FILE EVIDENCE YOU CHECKED YOURSELF]

Why it is betterIt creates the exact student work the lecture asks for: critique, not implementation. It also makes the difference between generic and repo-grounded planning obvious.

The mistake it avoidsSaving an agent-generated design document without labeling what is right, missing, or in the wrong order.

Feature planning / technical critique · Prompt library pp. 13-14

5.5A · 5.5B · 5.5C · 5.5D

Context engineering prompts — Part 5.5

These prompts run the same architecture-document task three ways. The architecture doc matters, but the comparison matters more. Use fresh threads so the outputs are genuinely comparable.

5.5A · Architecture doc with minimal context

Use in a fresh Codex App thread as the minimal-context baseline.

Weak versionWrite an architecture doc for this repo.

Improved version · 5.5AThis is Strategy A: minimal context. Task: Produce a one-page architecture doc for this Task Tracker repo using only the minimal task description below. You may inspect repo files as needed, but do not ask me for extra summaries first. Minimal task description: Create a concise architecture document for the Task Tracker app. Required sections: 1. What the app does - one short paragraph. 2. Data model - entities and important fields. 3. Request flow - what happens when a user creates a task. 4. Key files - 5-10 important files, one line each. 5. Conventions - validation, storage, error handling, frontend/backend interaction. 6. Not visible or assumptions - anything you could not confirm. Constraints: - One page maximum. - Output markdown. - Do not produce code. - Do not edit app/. - If you save a file, save only to docs/architecture-A.md after showing me the draft. Output format: Return: 1. Draft architecture-A.md 2. Files inspected 3. Assumptions or possible inventions

Why it is betterIt intentionally gives Codex little context so students can observe what it discovers correctly and what it invents or overgeneralizes.

The mistake it avoidsAssuming the first architecture doc is good simply because it is readable.

Context engineering / Strategy A · Prompt library pp. 14-15

5.5B · Architecture doc with structured context

Use in a new Codex App thread after Strategy A. Provide AGENTS.md and a short file summary to make context structured.

Weak versionHere is a bunch of project context. Write architecture docs.

Improved version · 5.5BThis is Strategy B: structured context. Context: Here is AGENTS.md: [PASTE AGENTS.md HERE] Here is a one-line summary of each important app file: [PASTE FILE SUMMARY LIST HERE] Task: Using the structured context above, produce a one-page architecture doc for the Task Tracker app. Required sections: 1. What the app does - one short paragraph. 2. Data model - entities and important fields. 3. Request flow - what happens when a user creates a task. 4. Key files - 5-10 important files, one line each. 5. Conventions - validation, storage, error handling, frontend/backend interaction. 6. Not visible or assumptions - anything you could not confirm. Constraints: - One page maximum. - Output markdown. - Do not produce code. - Do not edit app/. - If you save a file, save only to docs/architecture-B.md after showing me the draft. - Do not add details that are not supported by AGENTS.md, the file summaries, or files you explicitly inspect. Output format: Return: 1. Draft architecture-B.md 2. Which context item helped most 3. Any remaining assumptions or unsupported details

Why it is betterIt teaches that structured context can improve completeness, but it still requires verification and length control.

The mistake it avoidsBelieving that more context always means better output.

Context engineering / Strategy B · Prompt library pp. 15-16

5.5C · Architecture doc with targeted context

Use in a new Codex App thread for a narrow and honesty-focused architecture draft.

Weak versionOnly read the important files and write the doc.

Improved version · 5.5CThis is Strategy C: targeted context. Read exactly these files and nothing else unless I approve a follow-up: - app/main.py or the main API entry file - app/models.py or the main model file - app/storage.py or the main persistence file Task: From only those files, produce a one-page architecture doc for the Task Tracker app. Required sections: 1. What the app does - one short paragraph. 2. Data model - entities and important fields. 3. Request flow - what happens when a user creates a task. 4. Key files - 5-10 important files, one line each. 5. Conventions - validation, storage, error handling, frontend/backend interaction. 6. Not visible or assumptions - anything you could not confirm. Special rule: If something is not visible from the files you read, write "not visible from the files I read" instead of inferring from framework convention. Constraints: - One page maximum. - Output markdown. - Do not produce code. - Do not edit app/. - If a listed file does not exist, tell me the closest actual equivalent and ask before substituting it. - If you save a file, save only to docs/architecture-C.md after showing me the draft. Output format: Return: 1. Draft architecture-C.md 2. Files read 3. Items marked not visible 4. What this targeted strategy likely missed

Why it is betterIt teaches that targeted context can produce narrower, more honest output. The repeated “not visible” statements are a feature, not a failure.

The mistake it avoidsRewarding broad confident output more than honest limitations.

Context engineering / Strategy C · Prompt library pp. 16-17

5.5D · Compare context strategies

Use after completing architecture-A.md, architecture-B.md, and architecture-C.md.

Weak versionWhich architecture doc is best?

Improved version · 5.5DI ran the same architecture-document task with three context strategies. Strategy A: minimal context Strategy B: structured context using AGENTS.md and file summaries Strategy C: targeted context using a small set of anchor files Task: Compare the three outputs and help me write the comparison log for docs/architecture.md. For each strategy, identify: - What it got right. - What it got wrong, missed, or invented. - Which task shape it is best suited for. Then help me write: 1. A verdict: which strategy I chose for the final architecture doc and why. 2. A two-sentence context-engineering rule in the form: "For task shape X, I use strategy Y because Z." Constraints: - Use only the three drafts I paste below. - Do not invent repo facts. - Do not rewrite the entire architecture document unless I ask. - Make the comparison specific; avoid generic statements such as "context matters." Output format: 1. Strategy comparison table 2. Verdict paragraph 3. Two-sentence context-engineering rule Architecture A: [PASTE ARCHITECTURE-A HERE] Architecture B: [PASTE ARCHITECTURE-B HERE] Architecture C: [PASTE ARCHITECTURE-C HERE]

Why it is betterThe lecture says the comparison is the real lesson. This prompt turns the experiment into a reusable rule for future tasks.

The mistake it avoidsLeaving with three generated docs but no transferable context-engineering principle.

Context engineering / comparison and rule-making · Prompt library pp. 17-18

5.6A · 5.6B · 5.6C

Personal AI playbook prompts — Part 5.6

These prompts support the final course artifact. Codex can scaffold and review, but the playbook must be written in your own voice and backed by course evidence.

5.6A · Draft a playbook template only

Use at the start of Part 5.6. The AI should create structure, not fill in your rules.

Weak versionWrite my AI playbook.

Improved version · 5.6ADraft a one-page personal AI coding playbook template for me to fill in. Sections: 1. When I reach for AI first 2. When I do not reach for AI 3. My non-negotiables 4. My review rules 5. What I am still figuring out For each section, provide 2-3 empty bullet placeholders that show what kind of thing belongs there. Do not fill in my actual rules. End with a Decision Card in exactly this format: - For a new feature I reach for: ___ - For a code review I reach for: ___ - For debugging I reach for: ___ - For infrastructure I reach for: ___ - I will never paste ___ into an AI tool. - My one rule is: ___ Constraints: - Template only. - Do not invent examples from my course experience. - Do not write generic advice inside the blanks. - Keep it short enough for a one-page docs/ai-playbook.md.

Why it is betterIt prevents the most common playbook failure: letting AI fill the rules. The student owns the final content.

The mistake it avoidsSubmitting a polished AI-written playbook that could have been written by any student.

Personal playbook / template scaffold · Prompt library pp. 18-19

5.6B · Review playbook for evidence and voice

Use after writing your own draft of docs/ai-playbook.md.

Weak versionMake this playbook better.

Improved version · 5.6BI wrote the playbook below myself. Review it for evidence and student voice, but do not rewrite it for me. Task: Check whether my playbook meets the Module 5 quality bar: - It is one page or close to one page. - It uses my own voice, not generic AI-policy language. - Each rule is backed by a specific course incident or observation. - It mentions practical review habits, not vague aspirations. - The Decision Card is fully filled in. - The never-paste rule names a concrete type of data. - The 30-day re-read commitment is present. Constraints: - Do not produce a replacement playbook. - Do not add evidence I did not provide. - Suggest minimal edits only. - If a rule lacks evidence, mark it "needs course evidence". Output format: Return a checklist table with columns: Requirement | Present / Missing | Evidence from my draft | Minimal edit My playbook draft: [PASTE YOUR PLAYBOOK HERE]

Why it is betterIt uses AI as a reviewer while preserving the course principle that the final artifact must be personal and evidence-backed.

The mistake it avoidsPolishing the playbook prose while leaving the rules generic, unsupported, or not actually personal.

Personal playbook / student-owned review · Prompt library pp. 19-20

5.6C · Decision Card challenge

Use when you are stuck filling the Decision Card. The AI should ask forcing questions, not choose for you.

Weak versionFill in my Decision Card.

Improved version · 5.6CDo not fill in my Decision Card for me. Instead, ask me one forcing question for each blank: - For a new feature I reach for: ___ - For a code review I reach for: ___ - For debugging I reach for: ___ - For infrastructure I reach for: ___ - I will never paste ___ into an AI tool. - My one rule is: ___ Use the tool shapes from the course to make the questions concrete: - Cursor for larger implementation loops. - GitHub Copilot for continuous editor pairing. - Claude Code for terminal delivery work. - Codex App for desktop review, planning, and governance. - General chat for reasoning, drafting, and reflection without repo access. Constraints: - Ask questions only. - Do not recommend one tool as universally best. - Do not fill any blank for me. - Push me to answer from evidence, not preference or hype. Output format: Return six numbered questions, one for each Decision Card blank.

Why it is betterThe Decision Card is the one part AI cannot own. This prompt helps students think without letting the model decide.

The mistake it avoidsChoosing tools by habit or hype instead of matching the interface to the task shape.

Tool choice / final reflection · Prompt library pp. 20-21

End-of-module checklist

The library closes with what you should have produced and saved before moving on.

Quick reference: prompts and the deliverable they feed · Module 5 prompt library pp. 1-21
PartPromptsDeliverableWhat to check
5.1 Setup5.1A–5.1DAGENTS.mdReal stack and commands, Module 5 guardrails, and two smoke tests that cite files you can find.
5.2 Security review5.2A–5.2C (5.2X optional)docs/security-review.mdEvery AI finding graded Valid, False Positive or Noise; your manual findings; Agreement / AI-only / You-only; a top-3 backlog.
5.3 Governance5.3A–5.3Cdocs/governance-worksheet.md and docs/ai-usage.mdShared rows classified Low, Medium or High with reasons; one block traced line by line; rules a teammate could check.
5.4 Feature planning5.4A–5.4Cdocs/decisions/comments-feature-plan.mdEach section labelled Right, Missing or Needs-Resequencing, plus the three-line generic vs repo-grounded comparison.
5.5 Context engineering5.5A–5.5Ddocs/architecture-A.md, -B.md, -C.md and docs/architecture.mdThree fresh-thread drafts, a comparison log, and a two-sentence context-strategy rule.
5.6 Playbook5.6A–5.6Cdocs/ai-playbook.mdOne page, your voice, course evidence for each rule, a complete Decision Card, and the 30-day re-read.

Read with careThe library prints no end-of-module checklist. This table is assembled from its section intros and prompts.

Every prompt, its reasoning and the how-to-use notes are from the supplied Module 5 prompt library (21 pages). Prompt text is reproduced as printed, placeholders included. Back to the module.