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.mdin 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):
Requirements
Your delivery must include:
- Context: a CLAUDE.md (or AGENTS.md plus import) with commands, architecture and rules.
- Spec: in
docs/specs/, with acceptance criteria, out of scope and done-when. - Plan: approved in plan mode, with your corrections.
- Tests first: red run that fails for the right reason, no test changes on the way to green.
- At least one skill used during the work (your own or from a plugin).
- Browser verification with Playwright MCP, codified into an e2e test.
- Hooks: at least lint after edits and a block on dangerous commands.
- Gates: CI with lint, typecheck, tests and one regression technique from lesson 21, Regression Strategy and Governance Basics.
- Review: a reviewer subagent pass plus your own review with the failure-mode table.
- 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)
| Time | Step |
|---|---|
| 0:00 | Context check and spec |
| 0:20 | Plan mode, answer open questions |
| 0:35 | Tests first, confirm red |
| 0:50 | Implement to green, hooks running |
| 1:20 | Browser check with Playwright MCP, e2e test |
| 1:35 | Reviewer subagent, own review, fixes |
| 1:50 | Push, 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 --statcontains 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
- Start from
solution/lesson-16-pass-rate-column(it already has the history endpoint) on a new branch. - Follow the timeline above with
docs/specs/flaky-history.md. Answer its open question about the endpoint before you plan. - 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 - 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. - 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.
