You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a user runs `sequant init` without required dependencies (gh, claude), they only discover this later when workflows fail. The init succeeds but the project isn't actually usable.
Proposed Solution
Add an optional setup wizard that:
Checks for required dependencies during init
Offers to guide installation if missing
Can be skipped with `--skip-setup` flag
Wizard Flow
```
sequant init
Checking dependencies...
✗ GitHub CLI (gh) not found
✗ Claude Code CLI not found
Would you like to set up missing dependencies? [Y/n]
Implementation Plan: Setup Wizard for Missing Dependencies
Acceptance Criteria Checklist
AC-1: Check dependencies during init
Verify: Unit test for checkAllDependencies() detecting missing gh/claude
AC-2: Offer guided setup for missing deps
Verify: Integration test showing wizard prompt and step-by-step instructions
AC-3: Platform-specific install instructions
Verify: Unit tests for getInstallHint("claude") returning correct commands per platform
AC-4: Skip option for CI/advanced users
Verify: --skip-setup flag skips wizard; CI env auto-skips
AC-5: Works even if deps are missing
Verify: Init completes with warnings when wizard declined/skipped
Implementation Phases
Phase
Description
Files
1
Extend prerequisite checking
src/lib/system.ts, src/commands/init.ts
2
Create wizard module
src/lib/wizard.ts (new)
3
Integrate into init
bin/cli.ts, src/commands/init.ts
4
Update doctor
src/commands/doctor.ts
5
Add tests
src/lib/wizard.test.ts, src/commands/init.test.ts
Key Decisions
Wizard pattern: Follows existing inquirer patterns from init.ts
Platform detection: Leverages existing getInstallHint() in system.ts
Skip mechanism: New --skip-setup flag (distinct from --yes)
Dependencies checked:gh (required), claude (required), jq (optional, shown as suggestion)
Wizard Flow Preview
sequant init
Checking dependencies...
✓ GitHub CLI (gh) - installed and authenticated
✗ Claude Code CLI - not installed
Would you like to set up missing dependencies? [Y/n]
Setting up Claude Code CLI...
→ Install: npm install -g @anthropic-ai/claude-code
→ Docs: https://docs.anthropic.com/en/docs/claude-code
Press Enter when installed, or 's' to skip...
✓ Claude Code CLI - now installed
Continuing with initialization...
gh authentication is checked separately from installation status
jq correctly marked as optional (doesn't block allRequiredMet)
Issues: None blocking
Suggestions:
Consider documenting --skip-setup flag in README (minor, discoverable via --help)
Manual testing items in PR still pending (as noted in PR checklist)
Verdict: ✅ READY_FOR_MERGE
All acceptance criteria are fully met with excellent test coverage. The implementation follows existing patterns and provides a significantly improved first-time user experience.
Documentation
README updated (if new feature/flag) - Minor gap, --skip-setup not documented
docs/ updated (if behavior changed) - N/A
CHANGELOG entry added (for user-facing changes) - Pending for release
N/A - Core behavior well-tested, flag discoverable via --help
Next Steps
✅ Merge when ready - all automated checks pass
Optional: Add --skip-setup to README init command documentation
Run /docs 9 before merge if admin-facing documentation needed
Activity
admarble commentedon Jan 11, 2026
Implementation Plan: Setup Wizard for Missing Dependencies
Acceptance Criteria Checklist
AC-1: Check dependencies during init
checkAllDependencies()detecting missinggh/claudeAC-2: Offer guided setup for missing deps
AC-3: Platform-specific install instructions
getInstallHint("claude")returning correct commands per platformAC-4: Skip option for CI/advanced users
--skip-setupflag skips wizard; CI env auto-skipsAC-5: Works even if deps are missing
Implementation Phases
src/lib/system.ts,src/commands/init.tssrc/lib/wizard.ts(new)bin/cli.ts,src/commands/init.tssrc/commands/doctor.tssrc/lib/wizard.test.ts,src/commands/init.test.tsKey Decisions
inquirerpatterns from init.tsgetInstallHint()in system.ts--skip-setupflag (distinct from--yes)gh(required),claude(required),jq(optional, shown as suggestion)Wizard Flow Preview
Recommended Workflow
/exec 9→/qa 9🤖 Generated with Claude Code
feat(#9): add setup wizard for missing dependencies
admarble commentedon Jan 11, 2026
Progress Update: Setup Wizard Implementation
AC Coverage Summary
checkAllDependencies()in wizard.ts - unit testedrunSetupWizard()prompts user and guides through installationgetInstallHint()returns brew/apt/choco per platform - unit tested--skip-setupflag and auto-skip in CI - unit testedFiles Changed
src/lib/wizard.tscheckAllDependencies(),displayDependencyStatus(),runSetupWizard(),getInstallInstructions()src/lib/wizard.test.tsbin/cli.ts--skip-setupoption to init commandsrc/commands/init.tssrc/lib/system.tsclaudeto install hintssrc/lib/system.test.tssrc/commands/init.test.tsChecks Run
npm test- 305 tests passednpm run build- TypeScript compilation successfulPR Status
Created: #63
Next Steps
Ready for
/qa 9review.🤖 Generated with Claude Code
admarble commentedon Jan 11, 2026
🔍 QA Review Complete (Phase 3)
AC Coverage
checkAllDependencies()checks gh, claude, jq - unit testedrunSetupWizard()prompts with "I've installed it - verify now" / "Skip for now"getInstallHint()returns brew/apt/choco per platform - unit tested--skip-setupflag + auto-skip in CI viaisCI()checkCoverage: 5/5 AC items fully met
Quality Metrics
any)Code Review
Strengths:
wizard.tsas standalone moduleDependencyStatus,DependencyCheckResult,WizardResult)allRequiredMet)Issues: None blocking
Suggestions:
--skip-setupflag in README (minor, discoverable via--help)Verdict: ✅ READY_FOR_MERGE
All acceptance criteria are fully met with excellent test coverage. The implementation follows existing patterns and provides a significantly improved first-time user experience.
Documentation
--skip-setupnot documented--helpNext Steps
--skip-setupto README init command documentation/docs 9before merge if admin-facing documentation needed🤖 Generated with Claude Code
/qafix(#9): harden wizard with security and error handling improvements
admarble commentedon Jan 11, 2026
🔧 A+ Improvements Applied
Changes Made
system.tscommandExists()- rejects shell metacharacterswizard.tswizard.test.tssystem.test.tsQuality Metrics (Updated)
Verification
Updated Verdict: ✅ A+ READY_FOR_MERGE
All security concerns addressed. Test coverage improved. Error handling added for edge cases.
🤖 Generated with Claude Code
docs(#740): make Rule #9 prefix-substitution enumeration exhaustive
feat(#740): feat(assess): emit `sequant run` when a global install is…
feat(#9): add setup wizard for missing dependencies
fix(#9): harden wizard with security and error handling improvements