story-kit: create 228_story_auto_detect_tech_stack_and_generate_component_sections_during_scaffolding

This commit is contained in:
Dave
2026-02-27 10:04:03 +00:00
parent 78c22574ec
commit 3106cc1696

View File

@@ -0,0 +1,21 @@
---
name: "Auto-detect tech stack and generate component sections during scaffolding"
---
# Story 228: Auto-detect tech stack and generate component sections during scaffolding
## User Story
As a user setting up a new project, I want the scaffold to auto-detect my tech stack and generate [[component]] sections in project.toml, so that worktree setup, quality gates, and the build pipeline work out of the box without manual configuration.
## Acceptance Criteria
- [ ] Scaffolding inspects the project root for known markers (Cargo.toml, package.json, pyproject.toml, go.mod, etc.) and generates a [[component]] entry for each detected stack
- [ ] Each generated component includes sensible default setup commands (e.g. pnpm install for Node, cargo check for Rust)
- [ ] If no known tech stack is detected, a single root component with empty setup is generated so the pipeline doesn't break
- [ ] The generated components are written into project.toml alongside the agent sections
- [ ] Existing project.toml files with components already defined are not overwritten
## Out of Scope
- TBD