Repository navigation
Closed
Labels
enhancementNew feature or requestplannedImplementation plan approvedready-for-reviewReady for code review
Description
Summary
Expand Sequant's stack support beyond the current Next.js focus to support more technology ecosystems.
Current State
Sequant currently supports:
- nextjs: Next.js with npm/yarn/pnpm/bun
Stack detection is in src/lib/stacks.ts and affects:
- Package manager detection
- Test commands
- Build commands
- Lint commands
- Skill templates
Proposed Stacks
High Priority (Common use cases)
| Stack | Package Manager | Test | Build | Notes |
|---|---|---|---|---|
node |
npm/yarn/pnpm | jest/vitest/mocha | tsc/esbuild | Generic Node.js |
react |
npm/yarn/pnpm | jest/vitest | vite/webpack | React SPA (non-Next) |
vue |
npm/yarn/pnpm | vitest | vite | Vue 3 |
python |
pip/poetry/uv | pytest | - | Python projects |
fastapi |
pip/poetry/uv | pytest | - | FastAPI specifically |
django |
pip/poetry/uv | pytest/django test | - | Django projects |
Medium Priority
| Stack | Package Manager | Test | Build | Notes |
|---|---|---|---|---|
go |
go mod | go test | go build | Go projects |
rust |
cargo | cargo test | cargo build | Rust projects |
ruby-rails |
bundler | rspec/minitest | - | Rails apps |
dotnet |
nuget | dotnet test | dotnet build | .NET projects |
Lower Priority
| Stack | Notes |
|---|---|
java-spring |
Spring Boot |
kotlin |
Kotlin/JVM |
swift |
iOS/macOS |
flutter |
Dart/Flutter |
elixir-phoenix |
Elixir Phoenix |
Implementation
1. Stack Detection
Expand detectStack() in src/lib/stacks.ts:
// Python detection
if (existsSync('pyproject.toml') || existsSync('requirements.txt')) {
if (existsSync('manage.py')) return 'django'
if (hasDepedency('fastapi')) return 'fastapi'
return 'python'
}
// Go detection
if (existsSync('go.mod')) return 'go'
// Rust detection
if (existsSync('Cargo.toml')) return 'rust'2. Stack Configuration
const STACK_CONFIG: Record<Stack, StackConfig> = {
python: {
packageManager: 'pip', // or detect poetry/uv
testCommand: 'pytest',
buildCommand: null,
lintCommand: 'ruff check .',
},
go: {
packageManager: 'go',
testCommand: 'go test ./...',
buildCommand: 'go build ./...',
lintCommand: 'golangci-lint run',
},
// ...
}3. Skill Templates
Each stack needs adapted skill templates:
- Different file patterns (
.py,.go,.rs) - Different test frameworks
- Different idioms and patterns
4. Init Flow
Update sequant init to:
- Auto-detect stack
- Confirm with user
- Generate appropriate skill templates
Acceptance Criteria
- Stack detection expanded for Python, Go, Rust (minimum)
- PM_CONFIG supports new package managers
- Test/build/lint commands configured per stack
- Skill templates adapted per stack
-
sequant initworks correctly for new stacks - Documentation updated with supported stacks
Phased Rollout
Phase 1: Python Ecosystem
python,fastapi,django- pip, poetry, uv support
Phase 2: Systems Languages
go,rust- Native tooling (go mod, cargo)
Phase 3: Other JS Frameworks
react,vue,svelte- Vite-based tooling
Phase 4: Enterprise Stacks
dotnet,java-spring- More complex build systems
Related
- Stack-specific sanity checks (feat: Lightweight sanity checks for common anti-patterns in /qa #92)
- Stack-specific unused export tools (feat: Unused exports detection in /qa (stack-specific tooling) #93)
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestplannedImplementation plan approvedready-for-reviewReady for code review
Activity
admarble commentedon Mar 13, 2026
Solve Analysis
Recommended Phases: spec → testgen → exec → qa
Skip Spec: No (enhancement with broad ACs needs spec review)
Browser Testing: No (backend/CLI tooling, no UI)
Quality Loop: Yes (multi-file enhancement across stacks)
Reasoning
Flags
📝 Generated by
/solveadmarble commentedon Mar 13, 2026
Spec Review: Multi-Stack Support Enhancement
Executive Summary
After codebase analysis, Python, Go, and Rust stack detection is already implemented in
src/lib/stacks.ts. The primary gaps are:Acceptance Criteria (with Verification)
sequant initworks for new stacksImplementation Plan
Phase 1: Extend PM Support for Python
PackageManagertype to include"pip" | "poetry" | "uv"Phase 2: Update Skill Templates
5. Parameterize exec skill: replace hardcoded npm →
{{TEST_COMMAND}}6. Parameterize qa skill: stack-aware quality checks
7. Update template processing to inject stack commands
Phase 3: Init Command Updates
8. Handle Python PM detection in init flow
9. Skip PM detection for Go/Rust (use stack commands directly)
Phase 4: Documentation Verification
10. Verify stack docs are accurate
11. Add Python/Go/Rust examples where needed
Files to Modify
src/lib/stacks.tssrc/lib/stacks.test.ts.claude/skills/exec/SKILL.md.claude/skills/qa/SKILL.mdsrc/lib/templates.tssrc/commands/init.tsOpen Questions
uv → poetry → pip? (Recommended: yes)Scope Assessment
Verdict:⚠️ SCOPE_WARNING - Quality loop recommended
Recommended Workflow
npx sequant run 94 -q # exec → qa with quality loopPhases: spec → exec → qa
Quality Loop: enabled (moderate scope)
Non-Goals (Recommended)
📝 Generated by
/specfeat(#94): add Python package manager support
admarble commentedon Mar 13, 2026
Exec Phase Progress Update
AC Coverage Summary
src/lib/stacks.ts:70-116STACKSconfig{{PM_RUN}}tokensequant initworks for new stacksdetectPackageManager()STACK_NOTESKey Files Changed
src/lib/stacks.tspip,poetry,uvto PackageManager type, PM_CONFIG entries, Python lockfile detectionsrc/lib/stacks.test.tsQuality Checks
npm run buildTest Coverage Analysis
src/lib/stacks.tsSelf-Evaluation
PR Status
✅ Created: #360
CHANGELOG: N/A (internal tooling feature, not user-facing API change)
Quality Plan Alignment: N/A - No quality plan in issue
Next Steps: QA review via
/qa 94📝 Generated by
/execadmarble commentedon Mar 13, 2026
QA Review for Issue #94
AC Coverage
detectStack()at lines 434-451. DetectsCargo.toml,go.mod, and Python files.pip,poetry,uvtoPackageManagertype (lines 60-62) andPM_CONFIGentries (lines 103-120).STACKSconfig. Python uses pytest/ruff, Go usesgo test/golangci-lint, Rust uses cargo commands.{{PM_RUN}}token which resolves viaPM_CONFIG.sequant initworks for new stacksdetectPackageManager()atinit.ts:342. Supports Python PM detection via lockfile priority.STACK_NOTESincludes Python, Go, Rust guidance (lines 701-736).Coverage: 6/6 AC items fully met
Quality Metrics
any)CI Status
build (22.x)validate-skillstypecheckvalidate-pluginBuild Verification: CI failure is pre-existing on main branch. Lint warnings in
run.tsandbatch-executor.ts— files NOT modified by this PR.Test Coverage
src/lib/stacks.tssrc/lib/stacks.test.tsTest Results: 1522 tests pass (17 new tests for Python PM detection).
Code Review
Strengths:
PM_CONFIGpatternuv > poetry > pip(modern tools first)Issues: None identified.
Verdict: READY_FOR_MERGE ✅
All acceptance criteria are met:
PackageManagertype andPM_CONFIGNext Steps
📝 Generated by
/qadocs(#94): update PM_RUN token docs to include Python package managers
docs(#94): update PM_RUN token docs to include Python package managers
admarble commentedon Mar 13, 2026
Documentation Generated
File:
docs/features/python-stack-support.mdSections Included:
Next Steps:
📝 Generated by
/docsdocs: add Python stack support feature documentation (#94)
feat(#94): add Python package manager support (#360)