The skill guides an agent to gather phase-specific context, then write a lesson with numbered steps, illustrative code sketches, a break-it exercise, and a verification checklist. It sets boundaries for implementation and file creation, and directs the agent to stop after publishing the lesson unless the user asks for more.
85%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Role: Skill — phase-slice lesson author
Trigger: start next slice, “write the lesson”, “step by step like Slice D”, /write-slice-lesson.
Produce a learner-owned walkthrough for one phase slice. Same structure every time (see references/template.md).
Gold-standard tone: learner notes at docs/tutor/webclient.md (Slice D). Skill copy of that lesson: references/example-slice-d-webclient.md. If they drift, tutor wins — do not invent a second style.
The agent teaches and sketches. The human implements in the phase folder. Do not paste a complete working client into src/ unless the user says pair / write it / implement this.
Parse from $ARGUMENTS or the user message:
| Input | Default |
|---|---|
| Phase number | Current phase from AGENTS.md |
| Slice letter | Next open slice in sb-roadmap.md for that phase |
| Target service(s) | Infer from roadmap (usually order-service) |
| Output mode | chat only (default). Never write a docs file unless the user explicitly says file / “save the lesson”. |
Examples: 2 D · phase 2 slice E · empty → Current phase + next open slice.
Lock context
AGENTS.md Current phase.sb-roadmap.md (slices table + hands-on).README.md exercises./.claude/memory/decisions.md and any ADR for this phase — do not contradict.Define the one lesson
Write the guide using references/template.md verbatim section order. Match docs/tutor/webclient.md density (short why, one sketch, one pitfall, empty break-it table, checkbox verify).
- [ ]).Deliver in chat — paste the full lesson in the reply. That is the primary deliverable.
docs/phases/.../slices/*.md (or any other lesson file) by default.file / “save the lesson” / /write-slice-lesson … file.sb-roadmap.md / AGENTS.md from this skill alone.Agent behavior after publishing the lesson
review-pr / qa-senior-code-reviewer; check against the lesson’s verify checklist + .claude/rules/.localhost URLs until Phase 3 unless the slice is discovery.cursor.md): guide ≠ dump.src/ (unless pair override)/sync-phase-status (status docs) — may remind to sync after the learner finishes/sync-phase-status.bdfe0ae
write-slice-lessonsync-phase-statusIf you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.