AI-Assisted Coding · Module 05

Security, Governance, Advanced Workflows & Looking Ahead

Stop building with AI and start grading it: every output is a draft you inspect, label and turn into a rule.

Seven lessons that close the course by grading AI instead of building with it. Set up Codex App with a repo-grounded AGENTS.md, grade an AI security audit against your own scan, take stock of what you shared and received, critique a generic and a grounded feature plan, compare three context strategies, and write a one-page personal AI playbook.

  • Grade, do not accept
  • Codex App and AGENTS.md
  • AI security review
  • Governance retrospective
  • Grounded feature planning
  • Context strategies
  • Personal AI playbook

Module introduction

From building with AI to grading AI

Across Modules 1 to 4 you used AI to build and improve a Task Tracker. Module 5 is deliberately light on feature code. The work now is evaluation, comparison, governance and documentation: you ask Codex App for a review, a plan or an architecture document, and then you grade what comes back. What did it notice, what did it miss, what did it invent, and what rule do you need next time? Every deliverable lives in docs/, unexpected changes to app/ are rejected, and the module ends with a one-page playbook in your own voice, backed by evidence from your own course work.

The module’s six activities and the docs/ artifact each one leaves · Lecture notes pp. 3-19
  1. 5.1Set upCodex App, AGENTS.md, two smoke tests
  2. 5.2Security reviewdocs/security-review.md
  3. 5.3Governancegovernance-worksheet.md, ai-usage.md
  4. 5.4Feature planningdecisions/comments-feature-plan.md
  5. 5.5Context engineeringarchitecture-A/B/C.md → architecture.md
  6. 5.6Playbookdocs/ai-playbook.md

Each activity grades AI output; none of them builds a feature.

Your learning path

Seven lessons, one posture: grade, do not accept

Open source guide
01Grade, do not acceptModule 5 changes the question from “Can AI help me build this?” to “What does AI notice, miss and invent, and what rules do I need?” Two rules carry every part: grade every output, and keep every deliverable in docs/.11 min02Codex App and AGENTS.mdSetup is a verification exercise. Select the real repo root, write a short repo-grounded AGENTS.md with Module 5 guardrails, prove with two smoke tests that Codex reads your actual files, and treat every permission click as a judgment call.15 min03AI security reviewA security review is a grading exercise. Codex runs a read-only audit that must cite files; you grade every finding Valid, False Positive or Noise, run your own manual scan, reconcile the two, and rank a top-3 backlog in docs/security-review.md.17 min04Governance retrospectiveEvery prompt was a governance decision. Look back through three lenses, what you shared, what you received and what changes, classify the risk of each item, trace one generated block line by line, and write rules a teammate could check.15 min05Feature planningGeneric advice can sound right and still be wrong for your project. Plan a comments feature twice, once generically and once grounded in the repo, then critique the grounded plan section by section as a tech lead. Plan it; do not build it.14 min06Context engineeringMore context is not always better. Run the same architecture-document task three times in fresh threads, with minimal, structured and targeted context, compare the outputs, and leave with a rule: for task shape X, use strategy Y because Z.15 min07Personal AI playbookThe closing artifact of the course: one page, in your voice, backed by specific evidence from your own work. Let AI draft only the empty template, fill it from course evidence, complete a Decision Card no one else would write the same way, and set a 30-day re-read.14 minWhat you keep from Module 5One posture and six documents: Codex proposes, you grade, and every judgment you make ends up as a markdown file in docs/, closing on a playbook only you could have written.SummaryPrompt library21 prompts, each as a weak and an improved version: Practical prompts for Codex App review, governance, planning, context engineering, and personal AI playbooks.PromptsFurther reading5 core readings, 6 practical references and 5 optional deeper dives, each with the part to read and the lesson it supports.Reading