Summary
The ddx init --workflow helix command fails with "unknown flag: --workflow" error, despite being documented in the README.
Problem
The README shows this as a supported initialization option:
# Initialize with a template
ddx init --template nextjs-enterprise
# Apply your team's standards
ddx patterns apply team-standards
And later references workflow initialization:
# Initialize HELIX in your project
ddx workflows apply helix
However, trying to initialize with a workflow directly fails:
$ ddx init --workflow helix
Error: unknown flag: --workflow
Current vs Expected Behavior
Current:
$ ddx init --help | grep workflow
# No workflow flag shown
$ ddx init --workflow helix
Error: unknown flag: --workflow
Expected:
$ ddx init --workflow helix
🚀 Initializing DDx with HELIX workflow...
✅ HELIX workflow initialized successfully!
Root Cause Analysis
Looking at cli/cmd/init.go, the available flags are:
cmd.Flags().StringP("template", "t", "", "Use specific template")
cmd.Flags().BoolP("force", "f", false, "Force initialization even if DDx already exists")
cmd.Flags().Bool("no-git", false, "Skip git subtree setup")
The --workflow flag is missing from the implementation.
Documentation References
The README mentions workflow initialization in multiple places:
-
HELIX Workflow section:
# Initialize HELIX in your project
ddx workflows apply helix
-
Workflow: Structured Methodologies section:
# Apply your organization's workflow
ddx workflows apply company-sdlc
This suggests workflows can be applied, but the README implies ddx init --workflow should also work for direct initialization.
Expected Implementation
Add --workflow flag to ddx init command:
// In cli/cmd/init.go or cli/cmd/command_factory_commands.go
cmd.Flags().StringP("workflow", "w", "", "Initialize with specific workflow (e.g., helix)")
The flag should:
- Initialize DDx normally (
.ddx.yml, directory structure)
- Apply the specified workflow automatically
- Set up workflow-specific configuration
Alternative Solutions
If --workflow flag is not intended, the README should be updated to clarify:
Option 1: Two-step process (current working method)
ddx init
ddx workflow apply helix # or ddx workflows apply helix
Option 2: Single command with workflow flag (desired)
ddx init --workflow helix
User Impact
Current Workaround:
ddx init
ddx workflow apply helix # User must remember second step
With Fix:
ddx init --workflow helix # Single command as documented
Acceptance Criteria
Related Commands
ddx workflow apply <name> - Apply workflow to existing DDx project
ddx workflows list - List available workflows
ddx init --template <name> - Similar pattern for templates
🤖 Generated with Claude Code
Summary
The
ddx init --workflow helixcommand fails with "unknown flag: --workflow" error, despite being documented in the README.Problem
The README shows this as a supported initialization option:
And later references workflow initialization:
# Initialize HELIX in your project ddx workflows apply helixHowever, trying to initialize with a workflow directly fails:
Current vs Expected Behavior
Current:
Expected:
$ ddx init --workflow helix 🚀 Initializing DDx with HELIX workflow... ✅ HELIX workflow initialized successfully!Root Cause Analysis
Looking at
cli/cmd/init.go, the available flags are:The
--workflowflag is missing from the implementation.Documentation References
The README mentions workflow initialization in multiple places:
HELIX Workflow section:
# Initialize HELIX in your project ddx workflows apply helixWorkflow: Structured Methodologies section:
# Apply your organization's workflow ddx workflows apply company-sdlcThis suggests workflows can be applied, but the README implies
ddx init --workflowshould also work for direct initialization.Expected Implementation
Add
--workflowflag toddx initcommand:The flag should:
.ddx.yml, directory structure)Alternative Solutions
If
--workflowflag is not intended, the README should be updated to clarify:Option 1: Two-step process (current working method)
ddx init ddx workflow apply helix # or ddx workflows apply helixOption 2: Single command with workflow flag (desired)
User Impact
Current Workaround:
ddx init ddx workflow apply helix # User must remember second stepWith Fix:
ddx init --workflow helix # Single command as documentedAcceptance Criteria
ddx init --helpshows--workflowflagddx init --workflow helixworks without errorsddx initplus workflow setupRelated Commands
ddx workflow apply <name>- Apply workflow to existing DDx projectddx workflows list- List available workflowsddx init --template <name>- Similar pattern for templates🤖 Generated with Claude Code