Interactive Onboarding
Version: 1.0.0 Duration: 5 minutes
Welcome to the SDLC plugin! This interactive tutorial walks you through a complete TDD cycle.
Tutorial Flow
Step 1: Introduction (30 seconds)
You'll learn:
- •RED phase: Write failing tests
- •GREEN phase: Implement minimal code
- •DOMAIN phase: Review types and domain modeling
- •How hooks enforce discipline
Step 2: Demo Project Setup (30 seconds)
We'll create a simple calculator with TDD:
- •Add two numbers
- •One test, one implementation
- •See the full cycle
Step 3: RED Phase Demo (1 minute)
Watch as we:
- •Write a failing test
- •Run it (see it fail)
- •Hook enforces test-first discipline
Step 4: GREEN Phase Demo (1 minute)
Implement minimal code to:
- •Make the test pass
- •No gold-plating
- •Just enough to go green
Step 5: DOMAIN Phase Demo (1 minute)
Review types:
- •Check for primitive obsession
- •Consider domain types
- •Approve or suggest improvements
Step 6: Complete Cycle (1 minute)
See how:
- •All phases work together
- •Hooks enforce boundaries
- •You can create a PR
Step 7: Next Steps (30 seconds)
Choose:
- •Continue with demo (add more features)
- •Start your real project
- •Review documentation
Progress Tracking
Your progress is saved in .claude/sdlc.yaml:
yaml
onboarding: completed: true date: 2026-02-05 demo_project: calculator
Demo Project: Calculator
Simple but complete TDD example:
Feature: Add two numbers
Test (RED):
rust
#[test]
fn adds_two_numbers() {
let calc = Calculator::new();
assert_eq!(calc.add(2, 3), 5);
}
Implementation (GREEN):
rust
struct Calculator;
impl Calculator {
fn new() -> Self { Self }
fn add(&self, a: i32, b: i32) -> i32 {
a + b
}
}
Domain Review:
- •✓ No primitive obsession (simple domain)
- •✓ Pure function (no side effects)
- •✓ Type safety maintained
Skip Tutorial
If you're experienced with TDD:
yaml
# In .claude/sdlc.yaml onboarding: skip: true
Full Documentation
After tutorial, explore:
- •TDD workflow:
/sdlc:work - •Event Modeling:
/sdlc:design - •Architecture:
/sdlc:arch