Lesson 15
End-to-end walkthrough: from project setup to shipping your first sprint
This capstone lesson walks through an entire sprint cycle โ from initial project setup to shipping working software. Every concept from Lessons 1 through 14 comes together here.
Before your first sprint, initialize the workflow and memory system.
# 1. Copy workflow files into your project
cp -r ultimate_workflow/ .claude/
# 2. Run initialization
/agile-setup-init
# 3. This creates:
# .memory/MEMORY_INDEX.md โ project summary
# .memory/semantic/ โ architecture, conventions, etc.
# .memory/episodic/ โ decisions, learnings (empty)
# .memory/backlog/ โ product + sprint backlog
The initialization command asks you about your project (name, tech stack, architecture) and generates the initial memory files. This gives the AI full context about your project from the very first conversation.
Sprint planning is where the team decides what to build in the next 1-2 weeks.
/agile-story-create "User authentication system"
โ US-001: User Registration (email + password)
US-002: User Login with JWT tokens
US-003: Password Reset via Email
US-004: Email Verification
US-005: Role-Based Access Control (admin/user)
Each story includes:
- User story format (As a... I want... So that...)
- Acceptance criteria (Given/When/Then)
- Story points estimate
- Priority ranking
The team reviews stories, asks clarifying questions, and estimates effort using story points.
| Story | Points | Priority | Sprint? |
|---|---|---|---|
| US-001: User Registration | 3 | Must Have | Yes |
| US-002: User Login | 5 | Must Have | Yes |
| US-003: Password Reset | 5 | Should Have | Yes |
| US-004: Email Verification | 3 | Should Have | Yes |
| US-005: RBAC | 8 | Could Have | No (over capacity) |
If your velocity is 16 points/sprint, don't pull 20 points of work. Leave buffer for unexpected complexity. In this example, we pull 16 points (3+5+5+3) and leave US-005 for next sprint. If a story is too large (like the 8-point US-005), use /agile-story-split to break it into smaller stories that fit within a single sprint.
Sprint 1 Goal: "Users can register, log in, reset passwords, and verify email"
Capacity: 16 story points
Duration: 2 weeks
This is where the actual work happens. Each story follows the same disciplined loop.
# Check sprint progress and select the highest-priority unstarted story
/agile-sprint-status
@sm assign US-001 to @dev
/agile-code-branch US-001-user-registration
โ git checkout develop
โ git pull origin develop
โ git checkout -b feature/US-001-user-registration
# RED: Write a failing test
@dev write test for: "registration validates email format"
# GREEN: Write minimal code to pass
@dev implement to pass the failing test
# REFACTOR: Improve code structure
@dev refactor keeping all tests green
/agile-code-ci
โ Build: โ
Pass
โ Test: โ
24/24 passing, 92% coverage
โ Lint: โ
No violations
โ Security: โ
No findings
/agile-code-pr
โ Creates PR: "feat(auth): implement user registration (US-001)"
โ Links to story US-001
โ Includes description, test results, screenshots
@lead /agile-code-pr-review PR#42
โ Review Results:
๐ก S2: Consider extracting email validation to a value object
๐ต S3: Suggest renaming 'data' to 'registrationDto'
โ
No S0/S1 findings
โ Status: APPROVED (no merge blockers)
/agile-code-merge PR#42
โ git checkout develop
โ git merge --no-ff feature/US-001-user-registration
โ git push origin develop
โ git branch -d feature/US-001-user-registration
Move to the next story (US-002) and repeat the loop. Each story goes through the same cycle: /agile-code-branch, TDD, CI, PR, review, /agile-code-merge.
At the end of the sprint, the team demos working software to stakeholders.
Sprint 1 Review Summary
========================
Sprint Goal: โ
ACHIEVED
Stories Completed: 4/4 (16 points)
Velocity: 16 points
US-001: User Registration โ
Accepted
US-002: User Login โ
Accepted
US-003: Password Reset โ
Accepted
US-004: Email Verification โ
Accepted
Bugs Found: 1 (S2, fixed in-sprint)
Test Coverage: 91%
The retrospective is about continuous improvement. What worked? What didn't? What will we change?
# Save learnings to memory
/agile-memory-learn
โ Saved to .memory/episodic/learnings.md:
- [Sprint 1] TDD significantly reduces bugs reaching review
- [Sprint 1] Integration stories need higher estimates (+2 points buffer)
- [Sprint 1] Clear AC upfront saves more time than clarifying mid-sprint
โ Updated .memory/episodic/context.md:
Sprint 1: 16/16 points, 4/4 stories, velocity=16
Every story must pass this checklist before it is considered "Done." This is your quality contract.
## Definition of Done โ
- [ ] All acceptance criteria met
- [ ] Code written following SOLID principles
- [ ] Clean Code standards applied (naming, functions, DRY)
- [ ] Tests written FIRST (TDD: Red โ Green โ Refactor)
- [ ] Unit test coverage >= 80%
- [ ] Integration tests for API endpoints
- [ ] CI pipeline green (build, test, lint, security)
- [ ] Code reviewed โ zero S0/S1 findings
- [ ] PR approved by at least 1 reviewer
- [ ] Documentation updated (if API changed)
- [ ] No hardcoded secrets or credentials
- [ ] Feature branch merged to develop
- [ ] Memory updated (if architecture/conventions changed)
| Pitfall | Symptom | Fix |
|---|---|---|
| Skipping TDD | "I'll add tests later" โ tests never get written | Write the test FIRST. Always. No exceptions. |
| Giant PRs | PRs with 1000+ lines get rubber-stamped, not reviewed | Keep PRs under 400 lines. Split stories into tasks if needed. |
| Unclear stories | Developer builds the wrong thing, wastes a sprint | Require Given/When/Then acceptance criteria before starting. |
| Ignoring CI failures | "It's just a flaky test" โ real bugs slip through | Fix or remove flaky tests immediately. Never ignore red. |
| No retrospective | Same mistakes repeat sprint after sprint | Always run retro. Save learnings to memory. Review next sprint. |
| Over-committing | Sprint fails because too much work was pulled in | Use velocity. Leave buffer. It's okay to finish early. |
| Trusting AI blindly | Bugs in AI-generated code ship to production | TDD catches AI mistakes. Always review AI output. |
You now have the knowledge to run a complete Agile workflow with AI augmentation. You understand:
/agile-setup-initWhat is the correct order of a sprint cycle?