Skip to main content

Final Project: Deliver a Feature End to End

Why This Matters

This is where everything comes together. You implement a feature from a brief, in a repository of your choice, using the full practice from this course, and you finish with a pull request you would be comfortable showing to any reviewer.

The brief

Pick one:

  • TestRun Board: “Flaky history panel” from docs/specs/flaky-history.md in the example repository.
  • Your own project: a feature that touches at least three files and has real logic (not only UI).

What the finished panel looks like in the worked solution (solution/lesson-22-flaky-history, with docs/solutions/lesson-22-flaky-history.md mapping every acceptance criterion to its tests):

The real flaky history panel for login.spec.ts over the sorted runs table: twenty run dots, pass rate 85.0%, last failure 25 Nov 2026

Requirements

Your delivery must include:

  1. Context: a CLAUDE.md (or AGENTS.md plus import) with commands, architecture and rules.
  2. Spec: in docs/specs/, with acceptance criteria, out of scope and done-when.
  3. Plan: approved in plan mode, with your corrections.
  4. Tests first: red run that fails for the right reason, no test changes on the way to green.
  5. At least one skill used during the work (your own or from a plugin).
  6. Browser verification with Playwright MCP, codified into an e2e test.
  7. Hooks: at least lint after edits and a block on dangerous commands.
  8. Gates: CI with lint, typecheck, tests and one regression technique from lesson 21, Regression Strategy and Governance Basics.
  9. Review: a reviewer subagent pass plus your own review with the failure-mode table.
  10. PR description: each acceptance criterion with the test that covers it, and any decision the agent made that you accepted.

Suggested timeline (about 2 hours)

TimeStep
0:00Context check and spec
0:20Plan mode, answer open questions
0:35Tests first, confirm red
0:50Implement to green, hooks running
1:20Browser check with Playwright MCP, e2e test
1:35Reviewer subagent, own review, fixes
1:50Push, CI green, PR description

Demo and review

Present your result to a colleague (or record a short screen video):

  • Show the spec and one acceptance criterion end to end: criterion → test → code → green check.
  • Show one moment where the agent went wrong and how you caught it.
  • Show one thing you turned into a rule, skill or hook because of this project.

Self-assessment

  • Every acceptance criterion has a test, and every test failed before its code existed.
  • git diff --stat contains only files that belong to the feature.
  • CI is green and includes at least one regression technique beyond unit tests.
  • A reviewer understands the PR in under 15 minutes.
  • Your team can reuse at least one artifact (skill, hook, rule or spec template).

What next

  • Share your skills, hooks and governance starter with your team in one pull request.
  • Run a retrospective after two weeks: which agent mistakes escaped, and which gate would have caught them?
  • Revisit lesson 11, Agent Harnesses: Claude Code, OpenCode, Pi and Hermes every few months: harnesses and models change fast, your practices should not depend on one of them.

Walkthrough in TestRun Board

  1. Start from solution/lesson-16-pass-rate-column (it already has the history endpoint) on a new branch.
  2. Follow the timeline above with docs/specs/flaky-history.md. Answer its open question about the endpoint before you plan.
  3. When you are done, compare with solution/lesson-22-flaky-history:
    git diff solution/lesson-16-pass-rate-column..solution/lesson-22-flaky-history --stat
    
  4. Read docs/solutions/lesson-22-flaky-history.md: the criteria-to-tests table, the design decisions (a button for flaky pills only, dots with accessible names, dates in UTC, focus returned to the pill) and a demo script you can use for your own presentation.
  5. Open a pull request with your version. All four CI jobs should pass.

Key Takeaways

  • Context, spec, plan, tests first, implementation, verification, review, gates: in that order.
  • The pull request proves the work: criteria mapped to tests, decisions made visible.
  • Every project should leave your team’s agent setup a little better than before.