feat(P03): multi-project support, NFR milestone versioning, phase context reset, install scripts (v0.3.0)

This commit is contained in:
CI
2026-05-29 15:13:45 +00:00
parent e4bb3a9970
commit ddf04792c7
57 changed files with 1748 additions and 59 deletions
+22 -5
View File
@@ -8,6 +8,18 @@ Initialize a new CI project with specification parsing, clarification, and .ci/
**Usage:** `ci-init [description]`
## Step 0: Confirm Active Project
Check `ci listProjects()` or read `.ci/config.json` to determine if multi-project mode is active.
If `.ci/config.json` has `projects[]` with length > 0:
- Confirm `active_project` is correct for this initialization
- If not, set it with `ci setActiveProject(<slug>)`
- All subsequent operations use `.ci/<slug>/` subdirectories
- All commit messages must include `project: <slug>` in `---ci---` block
If single-project mode: proceed with existing conventions.
## Step 1: Check Prerequisites
Verify git is initialized:
@@ -51,11 +63,13 @@ Record decisions in the `---ci---` block of the init commit.
Use CiFiles to create the project structure:
1. `.ci/config.json`default CI configuration with autonomy level
2. `.ci/PROJECT.md` — vision, requirements, constraints, key decisions
3. `.ci/ARCHITECTURE.md` — system architecture (initial, may be incomplete)
4. `.ci/ROADMAP.md` — phase breakdown (to be refined by roadmapper)
5. `.ci/REQUIREMENTS.md` — formal requirements with REQ-IDs
1. `.ci/config.json`registry with `projects[]` and `active_project`
2. `.ci/<slug>/PROJECT.md` — vision, requirements, constraints, key decisions (or `.ci/PROJECT.md` in single-project mode)
3. `.ci/<slug>/ARCHITECTURE.md` — system architecture (initial, may be incomplete)
4. `.ci/<slug>/ROADMAP.md` — phase breakdown (to be refined by roadmapper)
5. `.ci/<slug>/REQUIREMENTS.md` — formal requirements with REQ-IDs
`initCI()` accepts `projectSlug` and `projectName` parameters for multi-project initialization.
## Step 5: Create Initial Branches
@@ -69,6 +83,7 @@ git checkout -b milestone/v1.0-initial
docs(init): initialize [project-name] ([N] phases)
---ci---
project: <slug>
phase: 0
milestone: v1.0
status: specify
@@ -86,6 +101,8 @@ Constraints: [constraint1, ...]
Out of scope: [item1, ...]
```
Include `project: <slug>` in the `---ci---` block when in multi-project mode.
## Step 7: Done
Report project initialized, .ci/ files created, initial branch created.