feat(product): add /ensemble:feature pipeline orchestration command - #53
Conversation
Implements TRD-FEATURE-001: a single YAML command that orchestrates the full idea-to-plan pipeline (create-prd -> refine-prd -> create-trd -> refine-trd -> implement-trd-beads --plan) as one /ensemble:feature invocation. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…re command Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
PRD-2026-017 and TRD defining the /ensemble:feature pipeline orchestration command requirements and implementation blueprint. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
PR Review:
|
| Category | Finding | Severity |
|---|---|---|
| CI | All 4 checks failing | 🔴 Blocker |
| Bug | feature.yaml missing allowed_tools (likely schema failure cause) |
🔴 High |
| Bug | PRD/TRD path detection via glob-by-mtime is fragile | 🟡 Medium |
| Bug | Step 5 retry hint omits TRD_PATH argument |
🟡 Medium |
| Bug | --execute without trd-path gives misleading error |
🟡 Medium |
| Inconsistency | Stale "wheel instructions" text in --plan action description |
🔵 Low |
| Coverage | No automated tests for new argument-parsing logic | 🔵 Low |
| Docs | CLAUDE.md Quick Reference not updated for new command | 🔵 Low |
The core concept is solid and the architecture is consistent with the existing plugin conventions. Resolve the CI blockers (especially the missing allowed_tools field and the generate mismatch) and address the medium-severity path detection bugs before merging.
Reviewed by Claude Sonnet 4.6
|
PR Review: feat(product) pipeline orchestration - see inline comments for details |
|
test2 |
PR Review:
|
|
PR Review: feat(product) - /ensemble:feature pipeline orchestration Overall: Good concept and well-structured orchestration design. The pipeline sequencing is clear and the --plan/--execute split in implement-trd-beads is a useful addition. However, there are CI failures to address and a few correctness issues worth fixing before merge. CI Failures (all checks failing: generate, test, validate) All three required CI checks are failing. The most likely causes based on code inspection: 1. feature.yaml is missing allowed_tools - The command uses Glob internally to find PRD/TRD paths, but allowed_tools is not declared in metadata. Compare with implement-trd-beads.yaml which declares allowed_tools. Add: 2. feature.md was hand-authored, not generated - The DO NOT EDIT header is present, but npm run generate must be run to produce the canonical output. If the generated output differs from the checked-in .md, the generate CI check will fail. Run npm run generate and commit the result. Correctness Issues Fragile PRD/TRD path capture (Steps 1 and 3) Using Glob on the most recently modified .md file in docs/PRD/ is brittle. If a prior run left a stale file with a newer mtime, or if create-prd fails partway and leaves a partial file, the wrong path gets captured silently. Step 5 retry hint is incomplete When Step 5 fails, the retry message shown to the user is missing TRD_PATH. Current message: /ensemble:implement-trd-beads --plan. Should be: /ensemble:implement-trd-beads <TRD_PATH> --plan. Same issue in implement-trd-beads for the PLAN_ONLY exit message - it says 'Run /ensemble:implement-trd-beads --execute to begin implementation' without including the TRD path. 'print wheel instructions' placeholder in implement-trd-beads The action 'print wheel instructions' reads as an unresolved internal note. The actual exit message is defined correctly later in the file, but this parenthetical is confusing. Clarify or remove it. Minor Issues
What's Working Well
Summary
Reviewed by Claude Code |
) * feat(product): add /ensemble:feature pipeline orchestration command Implements TRD-FEATURE-001: a single YAML command that orchestrates the full idea-to-plan pipeline (create-prd -> refine-prd -> create-trd -> refine-trd -> implement-trd-beads --plan) as one /ensemble:feature invocation. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * feat(implement-trd-beads): add --plan and --execute flags Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * chore(release): bump versions for --plan/--execute and ensemble:feature command Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * docs(product): add PRD and TRD for ensemble:feature command PRD-2026-017 and TRD defining the /ensemble:feature pipeline orchestration command requirements and implementation blueprint. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix(feature): include TRD_PATH in handoff --execute instruction --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Summary
/ensemble:featurecommand (packages/product/commands/feature.yaml) that orchestrates the full idea-to-plan pipeline as a single invocation--planand--executeflags to/ensemble:implement-trd-beadsfor split scaffold/execute workflowsensemble-development→ 5.7.0,ensemble-product→ 5.5.0,ensemble-full→ 5.7.0, marketplace → 5.7.0New command:
/ensemble:featureRuns five commands in strict sequence:
/ensemble:create-prd <description>— creates PRD, capturesPRD_PATH/ensemble:refine-prd— user interview (skipped with--skip-refine)/ensemble:create-trd <PRD_PATH>— creates TRD, capturesTRD_PATH/ensemble:refine-trd— user interview (skipped with--skip-refine)/ensemble:implement-trd-beads <TRD_PATH> --plan— scaffold only, never executes codeEnds with a handoff message showing
PRD_PATH,TRD_PATH, and how to proceed:/ensemble:implement-trd-beads --executein current windowntmin a new windowFlags:
--skip-refine— bypasses steps 2 and 4 for an uninterrupted runChanges to
/ensemble:implement-trd-beads--plan— runs Scaffold phase only (creates bead hierarchy), then exits; use when you want to review the plan before executing--execute— skips Scaffold, runs Execute phase against existing beads; errors if no scaffold existsimplement-trd-beads.yamlbumped to2.6.0Test plan
/ensemble:feature "Add dark mode to settings panel"— verify 5-step progress indicators and handoff message/ensemble:feature "Add search" --skip-refine— verify steps 2 and 4 show(skipped)/ensemble:featurewith no args — verify usage message, no pipeline steps execute/ensemble:feature "test" --unknown-flag— verify unknown flag error/ensemble:implement-trd-beads <trd> --plan— verify scaffold creates beads then exits without executing/ensemble:implement-trd-beads <trd> --execute— verify skips scaffold, runs against existing beads/ensemble:implement-trd-beads <trd> --plan --execute— verify mutual exclusion errornpm run validate— verify all plugins pass🤖 Generated with Claude Code