speckit.analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
Generate implementation tasks from design
> /plugin marketplace add tzachbon/smart-ralphHow it fires
How this command gets triggered: by you, by Claude, or both.
/tasksContext preview
What this command does when you run it.
Generate implementation tasks from design
description: Generate implementation tasks from design argument-hint: [spec-name] [--tasks-size fine|coarse] [--quick|--interactive] allowed-tools: "*"
Generate implementation tasks for the active spec after explicit design artifact approval. You are a **coordinator, not a task planner** -- delegate ALL work to the `task-planner` subagent.
Read `${CLAUDE_PLUGIN_ROOT}/references/normal-mode-gates.md` before gathering context.
Create a task for each item and complete in order:
1. **Gather context** -- resolve spec, read design, requirements, research 2. **Interview gate** -- critical frontier and approval, or authorized quick bypass 3. **Execute task generation** -- dispatch task-planner via team 4. **Artifact review** -- automatic spec-reviewer loop in authorized quick mode 5. **Walkthrough & approval** -- display summary, get user approval 6. **Finalize** -- update state, commit, stop
1. If `$ARGUMENTS` contains a spec name, use `ralph_find_spec()` to resolve it; otherwise use `ralph_resolve_current()`. Store the resolved spec directory as `SPEC_PATH`. 2. If no active spec, error: "No active spec. Run /ralph-specum:new <name> first." 3. Check the resolved spec directory exists 4. Check `design.md` exists. If not, error: "Design not found. Run /ralph-specum:design first." 5. Check `requirements.md` exists 6. Read `.ralph-state.json`, reject simultaneous exact `--quick` and `--interactive`, and normalize persistent mode with `phase_gate.py mode`. 7. When normalized `quickMode` is false, require explicit design artifact approval before clearing its approval flag. Exact quick mode continues with the validated file. 8. Clear the approval flag through the locked helper while preserving every other field:
python3 "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/locked-state.py" merge \
--state "$SPEC_PATH/.ralph-state.json" \
--set "awaitingApproval=false"9. **`--tasks-size` flag handling**: Check `$ARGUMENTS` for `--tasks-size` flag:
10. Treat granularity as workflow administration. Never add it to the interview frontier or count it as an answered gate decision. 11. Run any missing applicable skill discovery pass. When research exists, pass 2 must be present. 12. Read context: `requirements.md`, `design.md`, `research.md` (if exists), `.progress.md`. 13. Run prototype record selection before task generation:
python3 "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/prototype-records.py" select-downstream --base-path "$SPEC_PATH" --state "$SPEC_PATH/.ralph-state.json" --target tasks --target 'transition:design->tasks' --path design.md --path tasks.md14. Include only valid, `gateApproved: true`, non-superseded prototype evidence returned by the selector. Reject skipped, failed, inconclusive, cancelled, malformed, superseded, and explicitly excluded records. 15. If selection reports an `activePrototypes` blocker for task generation, stop before Step 2 and report the active prototype ID, blocker reason, and resume command. Proven unrelated prototypes may continue only when every matching `targetDecisions` entry has `proofAvailable: true` and `eligible: true`; missing dependency or transfer-path proof blocks conservatively. 16. If selection reports stale `design.md` or an upstream artifact that design depends on, stop and route to the earliest stale phase. Do not generate tasks from stale design. 17. Pass selected prototype evidence and the clean blocker/stale-gate result to the task-planner.
Apply `${CLAUDE_PLUGIN_ROOT}/skills/interview-framework/SKILL.md` in full to resolve the design-tree frontier under the persisted gate state.
In both interactive and exact quick mode, reload all selected contracts and required current-work resources, hash them, record the current manifest, then call `begin-interview` for phase `tasks`. A core load failure blocks either mode.
If normalized `quickMode` is true, the helper records `bypassed_quick`; continue to Step 3 without questions.
In interactive mode, apply the interview-framework with phase `tasks`.
Use these as critical decision candidates, not a question checklist:
Inspect test tooling, CI, dependency order, deployment mechanisms, and team conventions instead of asking about them. Keep only decisions that materially change task sequencing, acceptance, or risk. Ask the whole unblocked critical frontier in calls of at most four questions, persist partial answers, apply control-only and bare-skip semantics, and require explicit `Approve and delegate`. On approval, run `check-delegation` and launch Step 3 immediately in the same response.
Treat these candidates as exploration territory for the design tr
Spec-driven development with smart compaction. Claude Code plugin combining Ralph Wiggum loop with structured specification workflow.
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
Generate a custom checklist for the current feature based on user requirements.
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
Create or update the project constitution from interactive or provided principle inputs, ensuring all dependent templates stay in sync.
Execute the implementation plan by processing and executing all tasks defined in tasks.md
Execute the implementation planning workflow using the plan template to generate design artifacts.