Skip to content
Development
Command

/analyze

Pre-refinement readiness check. Evaluates a work item against quality criteria and produces a readiness report with actionable flags. Standalone and non-destructive — it never rewrites the story.

From plugin
ai-sdlc-harness
114 skills3 agents4 commands4 hooks
Install
$ npx -y skills add MostAshraf/ai-sdlc-harness --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/analyze

Context preview

What this command does when you run it.

Pre-refinement readiness check. Evaluates a work item against quality criteria and produces a readiness report with actionable flags. Standalone and non-destructive — it never rewrites the story.

Command definition

analyze.md

/story-workflow analyze

Pre-refinement readiness check. Evaluates a work item against quality criteria and produces a readiness report with actionable flags. Standalone and non-destructive — it never rewrites the story.

> For most sessions `improve` is the better choice — it folds readiness analysis > into refinement in one adaptive pass. Reach for `analyze` when you want a > standalone report to share with the PO *before* touching the story.

Steps

1. **Fetch** the work item per `shared/provider-io.md`. Extract title, type, state, description, and acceptance criteria. If it isn't found, stop. 2. **Domain context (optional)**: skim `shared/context.md` only if you need the repo landscape to judge whether the story's scope is realistic. 3. **Evaluate** the story against every dimension in `templates/readiness-report.md`. For each, assign a 🔴/🟡/🟢 flag with a *specific* explanation. Rules:

  • **Be specific, not generic.** Not "ACs could be improved" but "AC #2 says

'handles errors gracefully' — untestable; suggest 'Given an invalid token, When login is attempted, Then a 401 with code `AUTH_INVALID_TOKEN` is returned'."

  • **UI ACs must name observable DOM semantics.** "the Next button is

disabled" reads two defensible ways — rendered carrying `disabled`, or not rendered at all — and each yields incompatible code AND incompatible tests. Flag it and draft the specific one (field: two independent runs of one story read exactly that AC in opposite directions and shipped mutually incompatible work, each internally consistent). Same for "shows an error", "the row is highlighted", "the field is cleared".

  • **Suggest, don't only critique.** Every 🔴/🟡 carries a concrete fix —

draft the replacement text where you can.

  • **Constructive tone.** The PO and team will read this.

4. **Write the report** in the `templates/readiness-report.md` format: flags with explanations, suggested improvements (draft Given/When/Then ACs where ACs are missing or vague), and a 2–3 sentence summary assessment. 5. **Present** the full report in the conversation, then ask whether to post it as a comment on the item. On yes, post it per `shared/provider-io.md`. For `local-markdown` (or any provider), the report is a **comment** — never overwrite the story with it; if the user wants it persisted separately, offer a sibling file (e.g. `<id>-readiness.md`) via the `Write` tool.

Notes

  • Never modify the item's Description or AC fields — comments only.
  • Don't force flags. A report that says "this story is ready" is a good result.
  • Flag missing pieces as **questions**, not assertions about what should exist.
Read more
Ships withai-sdlc-harness

A governed multi-agent SDLC pipeline for Claude Code — a ground-up rewrite of ai-sdlc-harness.

Get the whole plugin, auto-invoked
Stats
11
Stars
0
Views
4
Forks
Active
Maintenance
Python
Language
MIT
License
2d ago
Last commit
3mo ago
Created

Repo: MostAshraf/ai-sdlc-harness