---
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 include example [[component]] sections in project.toml and the chat agent to be instructed to replace them with real definitions, so that worktree setup, quality gates, and the build pipeline work out of the box.

## Acceptance Criteria

- [ ] DEFAULT_PROJECT_TOML includes example [[component]] sections with comments indicating they are placeholders to be replaced with real definitions
- [ ] Example components cover common patterns (e.g. a frontend component with pnpm install, a backend component with cargo check) so users understand the format
- [ ] The chat agent's project setup prompt instructs it to inspect the project's tech stack and replace the example components with real [[component]] definitions
- [ ] Existing project.toml files with components already defined are not overwritten during scaffolding

## Out of Scope

- TBD
