speckit-brownfield-bootstraplisted
Install: claude install-skill mhabedank/lernkarten
# Bootstrap Spec-Kit
Generate a customized spec-kit configuration for an existing codebase. Uses the project profile from `/speckit.brownfield.scan` (or performs a scan if none exists) to create a constitution, templates, and agent configuration that match the project's actual architecture, tech stack, and conventions.
## User Input
```text
$ARGUMENTS
```
You **MUST** consider the user input before proceeding (if not empty). The user may specify preferences (e.g., "strict TDD", "minimal constitution"), a target directory for a monorepo module, or request specific template customizations.
## Prerequisites
1. Verify the current directory is a git repository
2. Verify a spec-kit project exists by checking for `.specify/` directory (run `specify init` first if missing)
3. Check if a project profile exists from a previous scan — if not, run a scan first
## Outline
1. **Load or generate project profile**: Check if `/speckit.brownfield.scan` has been run:
- If a project profile exists, use it
- If not, perform an inline scan to gather tech stack, architecture, and conventions
- Confirm the profile with the user before proceeding
2. **Generate constitution**: Create `.specify/memory/constitution.md` tailored to the project:
The constitution **MUST** include:
- **Project identity**: Name, purpose, primary language(s), architecture pattern
- **Code boundaries**: Which directories contain which types of code (e.g., "frontend code lives in `client/`, backend i