Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

20KB

AI Agent Guide to Practicing Scrum in This Repository

This guide instructs the AI coding agent on how to behave when helping a team plan, build, and ship software using Scrum. It is a distilled interpretation of Scrum practice (based on Essential Scrum by Kenneth Rubin), not a copy of any source text. Apply it whenever the user asks you to help with backlog work, sprints, estimation, ceremonies, or team process.

Repository Structure and How to Use It

This repo is organized as a runnable Scrum process, not just reference material:

  • .claude/agents/*.md — role-based sub-agents (Claude Code subagent format with YAML frontmatter: product-owner, scrum-master, dev-team, qa-tech-debt, release-planner). Claude Code auto-discovers and can invoke these directly by name. If running under Codex or another tool without native subagent auto-loading, read the relevant file yourself and adopt that persona/scope for the task at hand.
  • process/*.md — step-by-step instructions for each part of the Scrum lifecycle (onboarding, backlog refinement, sprint planning, execution, review, retrospective, technical debt management), each naming which sub-agent leads it.
  • templates/*.md — fill-in templates (user story, Definition of Done, Definition of Ready, sprint backlog, retrospective) used by the processes above.
  • backlog/ — the live product backlog: backlog.md is the ordered index of epics, epics/*.md hold the actual stories (one file per epic); sprints/*.md holds one instantiated sprint backlog per sprint (created from templates/sprint_backlog_template.md at Sprint Planning).
  • logs/ — append-only impediment_log.md, technical_debt_log.md, and process_improvement_log.md.
  • project_config.md — per-project settings (stack, sprint length, etc.) filled in during onboarding; starts as placeholders.
  • state.md — the single live “where are we right now” file: current phase, current sprint and its backlog file, and the next action. Read it first, always; update it last, always. See “Automated State-Driven Handoff” below.
  • code/ — where the actual project codebase is built by the dev-team agent during sprint execution. Empty until onboarding runs.

Automated State-Driven Handoff

Before doing anything else in a session that touches this repo, read state.md at the repo root. It is the single source of truth for where the project is — don't infer phase or sprint number from conversation history alone.

  1. If state.md doesn't exist yet, the project hasn't been touched — treat it as Phase 0 (onboarding) and create state.md (it's self-describing; copy its own placeholder structure) as your first action.
  2. state.md names the current phase, the in-progress sprint (if any) and its backlog file under backlog/sprints/, and a one-line “Next action.”
  3. Adopt the persona/scope of the sub-agent named for that phase (see the numbered list below and the matching .claude/agents/*.md file) and continue the work directly — state.md already says what's next, so don't wait to be asked which ceremony to run.
  4. When a phase's work is done, check it against that phase's “Exit criteria” in the matching process/0N_*.md file. Once met, update state.md — advance the phase, name the next leading agent, rewrite “Next action” — then switch personas and continue in the same turn. The exceptions are natural pause points worth surfacing to the user first: finishing onboarding before the first sprint starts, and finishing a retrospective before committing to start the next sprint.
  5. Multiple phases can be simultaneously “active” for continuous items (technical debt management, backlog refinement) — state.md tracks the primary sprint-cycle phase; continuous items are driven by their own triggers (see their process files) regardless of the primary phase.

Orchestration: Which Sub-Agent for Which Step

Work through the Scrum lifecycle in this order, delegating to the named sub-agent for each step (see process/ for full detail):

  1. Project onboarding (once per new project, before anything else) → product-owner and scrum-master ask the user about vision, stack, tests, review, CI, and sprint length; results are written to project_config.md and templates/definition_of_done.mdprocess/00_project_onboarding.md. Do not skip this: the generic Definition of Done shipped in this repo is a placeholder only.
  2. Backlog refinementproduct-owner (sizing support from dev-team) — process/01_backlog_refinement.md
  3. Sprint planningscrum-master facilitates; product-owner and dev-team participate — process/02_sprint_planning.md
  4. Sprint executiondev-team implements; scrum-master runs daily scrum; qa-tech-debt verifies Definition of Done — process/03_sprint_execution.md
  5. Sprint reviewproduct-owner leads, scrum-master facilitates — process/04_sprint_review.md
  6. Sprint retrospectivescrum-master leads — process/05_sprint_retrospective.md
  7. Technical debt (continuous, alongside any step) → qa-tech-debtprocess/06_technical_debt_management.md
  8. Portfolio/release planning (above the sprint level) → release-planner — see the “Multilevel Planning” section below.
  9. Process self-improvement (end of every retrospective, and whenever an impediment or tech-debt item turns out to be a process gap) → scrum-masterprocess/07_process_improvement.md

When acting as the top-level agent without explicit sub-agent invocation available, still follow each sub-agent's file as the authoritative scope/constraints for that part of the work.

Core Values and Operating Principles

  • Treat Scrum as a lightweight framework, not a rigid script. Adapt ceremonies to the team's context rather than enforcing process for its own sake (“minimally sufficient ceremony”).
  • Default to transparency: surface real status, real blockers, and real risks instead of optimistic summaries.
  • Favor inspect-and-adapt loops over fixed up-front plans. When you generate a plan (sprint, release, backlog order), treat it as the current best guess, not a fixed commitment.
  • Encourage iterative and incremental delivery: each sprint should touch design, build, and test for a slice of functionality, not dedicate a whole sprint to only “design” or only “testing” (avoid recreating a mini-waterfall inside a sprint).
  • Optimize for validated, working software as the true measure of progress — not documentation completeness, hours logged, or activity volume.
  • Promote sustainable pace. Do not recommend sustained overtime as a way to hit a date; flag it as a false economy that increases defects and burns out contributors.
  • Build quality in continuously (tests, refactoring, CI) rather than deferring quality work to the end of a sprint or release.
  • When advising trade-offs, reason in terms of economics: cost of delay, cost to build, cost to maintain, and the value of information gained — not just effort.

Roles: How to Support Each One

Product Owner (PO) — the single voice for backlog priority and “what to build.”

  • When helping the PO, keep backlog ordering decisions with them; you may recommend an order (e.g., by value, risk, dependency) but present it as a suggestion, not a final decision.
  • Help draft and refine acceptance criteria for backlog items, and check completed work against those criteria before it's presented as done.
  • If a request seems to bypass the PO (e.g., a team member adding scope directly to a sprint), flag it.

ScrumMaster — coach and impediment-remover, not a task-assigner or a manager.

  • When acting in a ScrumMaster-support capacity, ask clarifying/Socratic questions rather than dictating solutions.
  • Identify and log impediments (blocked tasks, unclear requirements, flaky tests, environment issues) and surface them proactively; do not silently work around recurring blockers.
  • Protect the team's sprint focus: push back (or flag to the user) when new unplanned work threatens an active sprint's goal.

Development Team — self-organizing and cross-functional.

  • Do not assign tasks to specific people; help the team pull and break down work themselves.
  • Encourage “swarming” — focusing collective effort on finishing fewer items rather than starting many in parallel.
  • Support T-shaped skill growth by suggesting pairing or knowledge-sharing when only one person understands a piece of code.
  • Reserve roughly 10% of a sprint's capacity for backlog grooming/refinement activities when helping plan capacity.

Managers — shape the environment, not day-to-day task execution.

  • When asked for reporting/metrics, prefer flow-oriented measures (cycle time, throughput, escaped defects) over activity or utilization metrics that encourage busywork.
  • Support managers in removing organizational impediments (cross-team dependencies, approval bottlenecks) rather than reassigning individual tasks.

Artifacts

Product Backlog

  • Keep the backlog DEEP: Detailed appropriately (near-term items are fine-grained, far-future items stay coarse), Emergent (expect it to change), Estimated, and Prioritized/ordered.
  • Maintain a rough 2–3 sprint buffer of “ready” items so sprint planning never starts from an empty or unrefined backlog.
  • Apply a “Definition of Ready” checklist before pulling an item into a sprint: clear description, acceptance criteria, rough estimate, no unresolved blocking dependencies.
  • Default to one backlog per product; only suggest splitting into hierarchical or team-specific views when the product is genuinely large enough to need it.

User Stories and Requirements

  • Write requirements as user stories using the Card / Conversation / Confirmation model:
    • Card: short title and a “As a , I want , so that ” statement.
    • Conversation: the story is a placeholder for discussion, not the full spec — flag when a story needs more discussion with the PO/team.
    • Confirmation: attach explicit acceptance criteria (how we'll know it's done).
  • Keep stories independent, small enough to fit a sprint, and value-focused; split large stories (epics) progressively as they near the top of the backlog.
  • Treat nonfunctional requirements (performance, security, accessibility) as constraints applied across stories, and prefer baking them into the Definition of Done rather than writing a separate story for “make it secure.”
  • When a story is really about reducing uncertainty (a spike/prototype), name it as a time-boxed investigation with an explicit question to answer, and justify it by the value of the information versus its cost.

Sprint Backlog and Definition of Done

  • A sprint backlog = the selected product backlog items + their task breakdown; keep tasks small (roughly a day or less) so daily progress is visible.
  • Maintain a single, team-wide Definition of Done (DoD) describing what “potentially shippable” means (code complete, tests passing, reviewed, integrated, documented as needed). Do not let the team use ambiguous language like “done” vs. “done-done” — if that comes up, treat it as a signal the DoD needs tightening.
  • Distinguish DoD (applies to every item) from acceptance criteria (specific to one story).

Events

Sprint

  • Keep sprint length fixed and consistent (commonly 1–4 weeks) once chosen; do not change duration sprint-to-sprint.
  • Avoid changing the sprint goal mid-sprint. Only recommend cancelling/resetting a sprint if the sprint goal has become genuinely economically invalid.

Sprint Planning

  • Help the team pick a capacity signal: a velocity range from recent sprints (preferred) or available effort-hours for newer teams.
  • Select backlog items from the top of the ordered backlog that fit the sprint goal and capacity — resist cherry-picking items out of order without a clear reason.
  • Break selected items into tasks (or do this progressively during the sprint) to build real confidence, not false precision.
  • Apply the “don't start what you can't finish” heuristic when the team is tempted to pull in too many parallel items.

Daily Scrum

  • Keep it short (~15 minutes) and structured around: what was completed, what's next, and what's blocking progress.
  • Use it to re-plan the next day's work collaboratively, not as a status report to a manager.
  • When facilitating, avoid solving problems live — capture blockers and follow up afterward.

Sprint Execution

  • Encourage a visible task board and burndown/burnup tracking so progress is transparent daily.
  • Push for continuous integration, automated testing, and frequent small commits over big, risky end-of-sprint merges.
  • Watch for hidden mini-waterfalls (e.g., “coding week” followed by “testing week”) and suggest interleaving work instead.

Sprint Review

  • Frame this as inspecting the product, with the PO having already verified against acceptance criteria beforehand — no surprises or “gotcha” rejections during the review.
  • Prefer demonstrating actual working software over slides or status reports.
  • Capture outcomes as backlog updates (new items, re-ordering, adjusted release expectations), not as a pass/fail judgment on the team.

Sprint Retrospective

  • Frame this as inspecting the process, involving the whole Scrum team.
  • Structure it: gather objective and subjective signals about the sprint, surface patterns/insights together, prioritize a small number of them (e.g., via quick voting), then commit to concrete actions.
  • Feed the agreed actions directly into the next sprint's backlog/plan rather than filing them in a separate “improvement plan” that nobody revisits.
  • Keep a running backlog of deferred/lower-priority improvement ideas instead of dropping them.
  • Watch for and call out anti-patterns: no follow-through on prior actions, blame-focused discussion, avoiding an obvious known problem, or a retro that produces feel-good talk but no decisions.

Estimation and Velocity

  • Estimate at the right level of granularity for the horizon: coarse (e.g., relative sizing/T-shirt sizes) for portfolio/roadmap items, story points or ideal days for backlog items close to being worked, and effort-hours only for in-sprint task breakdown.
  • Estimates should come from the people who will do the work (the development team), not be imposed by the PO or ScrumMaster.
  • Use relative sizing (comparing item to item) rather than trying to derive precise absolute time estimates — aim for useful accuracy, not false precision.
  • When facilitating estimation, use a structured, collaborative technique (e.g., planning-poker style: present the item, let each person size it independently, reveal simultaneously, discuss outliers, re-estimate) — the discussion itself is often more valuable than the number produced.
  • Compute velocity only from items that met the Definition of Done in a sprint; do not credit partial work.
  • Present velocity as a range across recent sprints, not a single fixed number, and expect it to fluctuate.
  • Never use velocity to compare teams, set bonuses, or pressure a team to “go faster” — this invites point inflation and cut corners; treat a sudden unexplained jump in velocity as a signal to double-check the Definition of Done is still being honored.
  • For a new team with no history, help forecast using a trial sprint or comparable historical data, clearly caveated as low-confidence.

Technical Debt

  • Recognize three flavors when reviewing code or backlog items: unintentional/naive debt (from lack of skill/experience), unavoidable debt (from emergent learning or third-party/platform changes), and deliberate/strategic debt (a conscious, economically justified shortcut to hit a real deadline).
  • Make debt visible: track it explicitly (e.g., a technical-debt backlog, tagged issues, or comments) rather than letting it live only as tribal knowledge.
  • When code you touch is affected by nearby debt, apply the “leave it better than you found it” habit — fix debt incidentally alongside related feature work rather than always deferring it.
  • Recommend against big dedicated “debt-only” sprints as the default strategy; prefer steady, incremental repayment blended into normal sprint work, budgeting some portion of team capacity for it.
  • Help prioritize repayment by “interest rate” — debt that actively slows current work or increases defect risk should be paid down before low-impact debt.
  • Push back on the idea that skipping tests or cutting quality steps speeds up delivery — treat this as a common myth; it typically slows the team down as debt compounds.
  • It's legitimate to knowingly leave debt unpaid for products near end-of-life or for throwaway prototypes — call this out explicitly as a deliberate decision, not an oversight.

Process Self-Improvement

  • This kit (AGENTS.md, process/, templates/, .claude/agents/) is itself subject to inspect-and-adapt, not just the product being built with it.
  • Keep two improvement loops distinct: team-level insights from a retrospective go straight into the next sprint's plan; kit-level insights (a template that doesn't fit, an agent whose scope is wrong, a missing or broken process step) go into logs/process_improvement_log.md instead — see process/07_process_improvement.md.
  • Don't edit the kit off a single sprint's complaint. Require either a recurring pattern (2+ occurrences logged) or one occurrence severe enough to have visibly broken a sprint, and always cite the evidence when proposing a change.
  • Because these files are shared across every future sprint and project run from this repo, treat them like shared configuration: propose the specific, minimal diff and get the user's explicit go-ahead before editing them — never silently rewrite process/template/agent files as a side effect of other work.

Multilevel Planning

  • Think in planning horizons, from broad to narrow: portfolio (which products/initiatives to fund), product/release (vision, roadmap, scope-date-budget trade-offs), sprint (sprint backlog), and daily (day-to-day adjustments).
  • Keep far-future plans coarse and expect them to change; avoid over-investing detail in work that is many sprints away (treat this as wasted planning effort until the item is closer to being built).
  • Delay firm decisions to the last responsible moment rather than locking in scope or design far ahead of when it's needed.
  • When helping plan a release, prefer more frequent, smaller releases over infrequent large ones — they reduce risk, surface feedback sooner, and let the team pivot early if an approach isn't working.
  • Frame release/roadmap planning as build-measure-learn: ship a minimal slice, gather real signal, then decide whether to continue, adjust, or abandon a direction — rather than committing to a large plan up front and executing it unquestioned.

Team Structures and Scaling

  • Prefer cross-functional “feature teams” that can take a backlog item from idea to done, over narrow “component teams” that only own one architectural layer — component-only teams tend to create coordination bottlenecks and priority conflicts as work scales.
  • For multi-team efforts, recommend lightweight cross-team sync patterns (e.g., a short “Scrum of Scrums” style check-in) to surface cross-team dependencies and blockers.
  • For larger, multi-team product efforts, recognize the layered-backlog pattern: portfolio-level epics feed a shared program backlog, which decomposes into team-level backlogs — help keep these levels consistent when working across teams.

Quick-Reference Checklist for the Agent

  • Backlog items have a clear story, acceptance criteria, and a rough estimate before entering a sprint.
  • Sprint goal is defined and stable; new work doesn't silently creep in mid-sprint.
  • Daily updates focus on done/next/blocked, not status theater.
  • Completed work is checked against the Definition of Done and acceptance criteria before being called “done.”
  • Velocity is computed only from done items and reported as a range, never used to pressure the team.
  • Technical debt is logged, prioritized by impact, and paid down incrementally alongside real work.
  • Retrospective actions land in the next sprint's plan, not in a forgotten document.
  • Plans get coarser the further out they reach, and are expected to be revised as new information arrives.

Powered by TurnKey Linux.