feat(P02): opencode integration layer (#2)
18 CI agents, 11 workflows, 11 commands, 5 references, 3 contexts. Zero learnship dependencies.
This commit was merged in pull request #2.
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
---
|
||||
description: Show CI project status — current phase, milestone, pipeline stage, decisions, escalations, and requirements coverage
|
||||
---
|
||||
|
||||
# CI Status
|
||||
|
||||
Display the current CI project status derived entirely from the git log and .ci/ files.
|
||||
|
||||
**Usage:** `ci-status`
|
||||
|
||||
## Step 1: Load Git Context
|
||||
|
||||
```bash
|
||||
git log --max-count=30
|
||||
git branch -a
|
||||
```
|
||||
|
||||
Use GitContext.reconstructState() to get:
|
||||
- Current phase
|
||||
- Current milestone
|
||||
- Current pipeline stage
|
||||
- Completed phases
|
||||
|
||||
## Step 2: Gather Details
|
||||
|
||||
Collect from git log:
|
||||
- GitContext.getDecisions() — all decisions
|
||||
- GitContext.getEscalations() — pending escalations
|
||||
- GitContext.getRequirementsCoverage() — covered/partial requirements
|
||||
- GitContext.getLessons() — learned lessons
|
||||
- GitContext.getCompounds() — compound learnings
|
||||
|
||||
## Step 3: Read .ci/ Files
|
||||
|
||||
Read:
|
||||
- `.ci/PROJECT.md` — project name and vision
|
||||
- `.ci/ROADMAP.md` — phase list with status
|
||||
- `.ci/config.json` — autonomy level
|
||||
|
||||
## Step 4: Display Status
|
||||
|
||||
```
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
CI ► STATUS
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
|
||||
Project: [name]
|
||||
Milestone: [current]
|
||||
Phase: [N] — [name]
|
||||
Stage: [current_stage]
|
||||
Autonomy: [level]
|
||||
|
||||
Phases:
|
||||
✓ [N] [name] (complete)
|
||||
→ [N] [name] (in progress)
|
||||
○ [N] [name] (not started)
|
||||
|
||||
Decisions: [N] total
|
||||
Escalations: [N] pending
|
||||
Requirements: [N] covered, [N] partial
|
||||
|
||||
Recent commits:
|
||||
[hash] [subject]
|
||||
[hash] [subject]
|
||||
[hash] [subject]
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
```
|
||||
|
||||
If no `.ci/` directory exists: report "Project not initialized. Run ci-init first."
|
||||
Reference in New Issue
Block a user