--- name: up-project-bootstrap description: Bootstrap the Inception-phase workspace, declarative tech profile (tech-profile.yaml), top-level 3-directory structure (process/, project_sdlc/, project_code/), 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 project_sdlc/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.5 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`), the top-level 3-directory scaffolding (`project_sdlc/` and empty `project_code/`), 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 after checking out `process/`. - `project_sdlc/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` - `project_sdlc/01_BRD/` or PRD inputs directory (folder and file names only) - `project_sdlc/02_legacy_analysis/` (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 using relative paths. 2. Establish top-level 3-directory structure and root symlinks: - Ensure `project_sdlc/` exists. - Ensure `project_code/` exists (initially empty with a `.gitkeep`). - `process/` is the meta-directory already checked out via git subtree. - Wire root symlinks pointing to canonical process assets (`.agents -> process/.agents`, `scripts -> process/scripts`, `AGENTS.md -> process/AGENTS.md`, `CLAUDE.md -> process/CLAUDE.md`, `GEMINI.md -> process/GEMINI.md`). Transcripts reside directly in `project_sdlc/prompts/`. 3. 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 `project_sdlc/00_process_control/` (auto-creating parent directories as needed): 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: - Auto-create target directories on-demand (`mkdir -p` / `os.makedirs(..., exist_ok=True)`) if they do not exist. - All paths everywhere must be strictly relative to the repository root. Never emit absolute filesystem paths. - 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`, `project_sdlc/00_process_control/master_context.md`, `assumptions_register.md`, `vocabulary_glossary.md`, `decision_log.md`, `folder_discovery_report.md`, and empty `project_code/`. ## Exit criteria `tech-profile.yaml` is configured; top-level 3-directory structure exists; governance files are initialized under `project_sdlc/00_process_control/`; 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).