Skip to content

Program 02 • 9 modules • 43 lessons

AI-Assisted Existing Project Engineering

Learn to understand, debug, test, change, upgrade and release software you did not write, using AI assistants as helpers whose claims you check.

Level
Intermediate
Lesson time
About 29 h 15 min, plus assignments
Updated
13 Nov 2026

Sign in to track your progress. Every lesson stays free to read without an account.

Most professional engineering happens in code that already exists, has users, and has no complete documentation. The risks are different from those of a new project: a change can break behaviour nobody remembers, and a plausible explanation from an assistant can be wrong about a system it has only partly seen.

This program teaches a disciplined approach. You understand before you change, pin down current behaviour with characterisation tests, make small reversible changes, debug from evidence, and release with a way back. Throughout, an AI assistant speeds up reading, drafting and mechanical edits, while you keep responsibility for what is true and what ships.

The material is vendor-neutral: the techniques apply to any capable assistant. It also covers what you may share with an AI service, including licences, secrets, customer data and your employer's policy. Examples follow a fictional supplier, Tidewell Wholesale, and its invented order service.

What you will learn

  • Build an evidence-backed picture of an unfamiliar codebase and write an orientation guide.
  • Recover and document the architecture and the reasons behind it.
  • Diagnose defects by reproduction, hypotheses and experiments, and prove the fix.
  • Write characterisation tests and refactor in small reversible steps.
  • Implement, upgrade and migrate with staged, reviewable changes.
  • Investigate performance, reliability and security issues with measurement and review.
  • Release with a rehearsed rollback and hand the system on with clear documents.
  • Decide what may be shared with an AI service and verify assistant output before relying on it.

Who it is for

  • Developers joining an established codebase or taking over a system.
  • Engineers maintaining legacy applications who want a safer way to change them.
  • Tech leads who need to set team practice for AI-assisted work on existing code.
  • QA and DevOps engineers who work alongside developers on legacy systems.

Prerequisites

  • Working knowledge of at least one mainstream programming language.
  • Everyday use of Git and a command line.
  • Experience writing and running automated tests at a basic level.
  • Access to an AI coding assistant approved for the code you will use it on.

Curriculum

9 modules

Open a module to see its lessons. Each module ends with a practical assignment, a validation checklist and a knowledge check.
  1. 01Codebase Discovery and OrientationProduce an evidence-backed orientation guide for an unfamiliar codebase.4 lessons · 5–6 hours
  2. 02Architecture Recovery and DocumentationRecover and document a system's real architecture, with every claim traceable to code.4 lessons · 5–6 hours
  3. 03Debugging and Root-Cause AnalysisFind and confirm the root cause of a defect with evidence, and fix it with a regression test.5 lessons · 6–7 hours
    1. 3.1Reproducing a Failure40 min
    2. 3.2Hypotheses and Experiments45 min
    3. 3.3Using History and Bisection40 min
    4. 3.4Debugging with an AI Assistant45 min
    5. 3.5Fixing and Proving the Fix40 min
    About 3 h 30 min of lessons, plus the module assignmentOpen module 03
  4. 04Characterization Tests and Safe RefactoringRefactor untested code in small, verified, reversible steps.5 lessons · 6–8 hours
  5. 05Implementing Changes in an Existing CodebaseDeliver a small, reviewable change that follows the codebase's conventions and is covered by tests.5 lessons · 6–7 hours
  6. 06Dependency Upgrades and MigrationsPlan and carry out a staged dependency upgrade with a tested way back.5 lessons · 5–6 hours
    1. 6.1Inventorying Dependencies and RiskIn preparation
    2. 6.2Reading Release Notes and Breaking ChangesIn preparation
    3. 6.3Staged Upgrades and Compatibility LayersIn preparation
    4. 6.4Mechanical Migration with an AssistantIn preparation
    5. 6.5Running Old and New Side by SideIn preparation
    About 3 h 20 min of lessons, plus the module assignmentOpen module 06
  7. 07Performance and Reliability InvestigationFind a performance or reliability problem by measurement, fix it and show the effect.5 lessons · 6 hours
  8. 08Security Review and HardeningReview a codebase for common weaknesses and apply prioritised, verified fixes.5 lessons · 6 hours
  9. 09Release, Rollback and Knowledge TransferRelease a change with a tested rollback and leave handover material for the next engineer.5 lessons · 5–6 hours
    1. 9.1Planning a Safe ReleaseIn preparation
    2. 9.2Rollback and RecoveryIn preparation
    3. 9.3Monitoring a ReleaseIn preparation
    4. 9.4Blameless ReviewsIn preparation
    5. 9.5Handover and Knowledge TransferIn preparation
    About 3 h 15 min of lessons, plus the module assignmentOpen module 09

Capstone and assessment

Deliver a tested change to an unfamiliar codebase

Choose a repository you are permitted to work in and deliver one meaningful change end to end: orient, recover, characterise, implement, review and release, with the evidence to show each step.

Deliverables

  • An orientation guide and a recovered architecture diagram, stamped with a commit and date.
  • Characterisation tests for the code you changed, with a baseline.
  • The change itself, in small reviewable commits, with new tests.
  • A pull request with scope, risk, test evidence and rollback plan.
  • A sharing note stating what was given to an AI service and what was withheld.
  • A short reflection on assistant output you accepted, changed or rejected, and why.

Suggested capstone options

  • Implement a minimum order value rule in a sample order service.
  • Complete the site's practical project, Reporting modernisation.
  • Upgrade a lagging dependency in an open-source project you may modify.
  • Fix and harden a defect-prone module in a codebase from your own work, if policy allows.

Assessment rubric

Assessment components and their weights
ComponentWeight
Module assignmentsEvidence from the nine module assignments, reviewed against each module's checklist.40%
Capstone changeThe tested change, its commits and its pull request.35%
Evidence and verificationLogs, baselines and notes showing that claims were checked, including assistant claims.15%
Safe practiceSharing notes, secrets handling and a rehearsed rollback.10%

Completion standard: PromptFable's own completion standard: you meet it by scoring at least 70 overall, with no component below 50. It is not an external certification and carries no accreditation.

There is no automatic marking. Use the rubric to assess your own work, or have a colleague or mentor do it.

Practise on a project

Related practical projects

ReportingAdvanced

Legacy Reporting Module Modernisation

A monthly sales report is produced by a tangled legacy module that nobody dares touch, yet it must be changed to add a new data source without altering any figures finance already relies on.

Skills

  • Reading an unfamiliar codebase and mapping its data flow
  • Capturing current behaviour with characterisation and golden-master tests
  • Refactoring in small, reversible steps
  • Separating data access, rules and formatting

Deliverables

  • A codebase orientation note with an entry point and data-flow map
  • A set of golden-master output files and the tests that compare against them
  • The refactored module, committed as small steps
  • A change log showing evidence that outputs are unchanged at each step

Related program: Existing Project Engineering · 20-28 hours

View project brief

References

Primary sources the program relies on. Lessons cite their own references as well.

Frequently asked questions

Do I need a particular AI assistant?

No. The techniques are vendor-neutral and work with any capable assistant. Use one your employer or client has approved for the code you will share.

Which programming language does the program use?

The worked examples are in Python, with a fictional Django service, but the practices apply to any language. You can do the assignments in your own stack.

Can I use my employer's code for the assignments?

Only if your employer's policy allows it, and only with a tool they approve. Otherwise use an open-source repository whose licence permits your use. The lesson on sharing code explains how to decide.

Why do the lessons stress verification so much?

Assistants produce fluent answers that may be wrong about code they have not seen. Treating their output as a hypothesis, and checking it, is the core habit of the program.

Is this program a certification?

No. PromptFable is independent, and the completion standard is its own. It is not endorsed by, or affiliated with, any AI vendor or accreditation body.

Are all lessons available now?

Modules 1 to 5, 7 and 8 are published, and each lesson shows who reviewed it and when. Modules 6 and 9 are outlined and shown as in preparation until they are written and reviewed.