--- name: up-project-bootstrap description: Bootstrap the Inception-phase workspace, declarative tech profile (tech-profile.yaml), and governance files (master context, assumptions register, glossary, decision log, folder discovery report) for any Greenfield or Brownfield development program before deep source analysis begins. Use this at the very start of a new engagement, when 04_generated_documentation/00_process_control/ is empty or missing, or when re-establishing governance scaffolding after a reset. This is Stage 0 of the UP-AI v1.0 Generic Process (process/AI_Native_Unified_Process_v1.md). --- # up-project-bootstrap — Stage 0 (Inception) ## Objective Create a controlled workspace before deep source-code or requirements analysis happens, establishing the declarative technology profile (`tech-profile.yaml`) and core CMMI Level 3 governance registers so subsequent stages do not repeatedly re-consume unstructured directories. ## When to invoke - Starting the process from scratch on a new Greenfield or Brownfield project. - `04_generated_documentation/00_process_control/` is empty or missing. - `tech-profile.yaml` needs to be initialized or re-baselined. ## Parameters - `--archetype`: `greenfield` (0-to-1 build) | `brownfield` (legacy modernization/migration). Default: reads from `tech-profile.yaml` or prompts user. ## Read first - `tech-profile.yaml` (if present) or `process/templates/tech-profile.template.yaml` - `01_BRD/` or PRD inputs directory (folder and file names only) - `02_legacy_source_code/` & `03_old_screenshots/` (Brownfield archetype only) - `process/AI_Native_Unified_Process_v1.md` §4 "Stage 0" and §2 (ID scheme) ## Procedure You are acting as a senior business analyst, solution architect, and CMMI Level 3 process consultant. Context & Scope Setup: 1. Check for `tech-profile.yaml` at project root. If missing, copy `process/templates/tech-profile.template.yaml` to `tech-profile.yaml` and configure it based on target project parameters. 2. Identify project archetype: - **Greenfield Track:** Focuses on target PRD/BRD, target architecture, and domain modeling. Does not mandate legacy discovery. - **Brownfield Track:** Inventories legacy codebases, database schemas, and screenshots as specified in `tech-profile.yaml`. Task — create, under `04_generated_documentation/00_process_control/`: 1. `master_context.md` — project goal, active archetype, target technology profile, integration sandboxes, and active stage/iteration index. 2. `assumptions_register.md` — initialize with standard `ASM-xxx` table schema (`ID | Date | Stage | Assumption | Basis | Risk Level | Status | Superseded By`). 3. `vocabulary_glossary.md` — seed with domain terminology extracted from high-level documents. 4. `decision_log.md` — initialize with standard `DEC-xxx` table schema (`ID | Date | Stage | Decision | Rationale | Alternatives Considered | Impact | Made By`). 5. `folder_discovery_report.md` — inventory of project input folders (file names, purpose, risk notes) and recommended processing sequence. Rules: - Do not deeply analyze source code or PRD content yet — that starts at Stage 1. - Do not invent detailed business rules. - Capture only known facts, assumptions, risks, and open questions. - If `assumptions_register.md` / `decision_log.md` already exist with entries, do not overwrite — validate schema and append. - Every ID minted anywhere in this process follows the scheme in `process/AI_Native_Unified_Process_v1.md` §2. - Keep output concise, structured, and markdown formatted. ## Output expected `tech-profile.yaml`, `00_process_control/master_context.md`, `assumptions_register.md`, `vocabulary_glossary.md`, `decision_log.md`, `folder_discovery_report.md`. ## Exit criteria `tech-profile.yaml` is configured; folder structure exists; governance files are initialized; recommended processing order for Stage 1 is documented. ## Sample invocation > "/up-project-bootstrap --archetype greenfield" ## Related skills Next: `up-brd-extract` (Stage 1). If Brownfield: `up-legacy-gap-analysis` (Stages 2–4).