docs(rebrand): rename & rebrand CI → CIAgent across all documentation, templates, and scripts
- README.md: title, project name, CLI commands, .ci/ → .ciagent/, ci-files → ciagent-files, CI Modification → CIAgent Modification - AGENTS.md: title, project name, architecture tree, agent count (18→19), test count (25→31 suites, 218→370 tests), version (0.4.0→0.6.0), ci-files → ciagent-files, CIConfig → CIAgentConfig, CiMetadata → CIAgentMetadata, .ci/ → .ciagent/ - templates/DECISIONS.md: .ci/audit/ → .ciagent/audit/, ci audit → ciagent audit - scripts/postinstall.js: CI postinstall → CIAgent postinstall - scripts/install.sh: CI → CIAgent, ci-init → ciagent-init, INSTALL COMPLETE banner - opencode/ci/workflows/*.md (11 files): .ci/ → .ciagent/, CI → CIAgent project name, ci-command → ciagent-command usage lines - opencode/ci/references/*.md (5 files): .ci/ → .ciagent/, CI → CIAgent project name, ci-files → ciagent-files references - opencode/ci/contexts/*.md (3 files): .ci/ → .ciagent/, CI → CIAgent project name - opencode/agents/ci-*.md (18 files): .ci/ → .ciagent/, CI → CIAgent project name - opencode/command/ci-*.md (11 files): CI → CIAgent project name Preserved: ---ci---/---/ci--- markers, opencode/ci/ dir paths, ci-*.md filenames, ci listProjects()/ci setActiveProject() API names, repo URLs ---ci--- phase: 1 milestone: v0.6 plan: 01-01 task: 01-01-01 status: execute ---/ci---
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
---
|
||||
description: Stress-tests CI proposals through product and engineering lenses using forcing questions. Binding verdicts — only escalates when confidence < 0.60.
|
||||
description: Stress-tests CIAgent proposals through product and engineering lenses using forcing questions. Binding verdicts — only escalates when confidence < 0.60.
|
||||
color: "#FFA500"
|
||||
tools:
|
||||
read: true
|
||||
@@ -9,28 +9,28 @@ tools:
|
||||
---
|
||||
|
||||
<role>
|
||||
You are a CI challenger. You stress-test proposals through product and engineering lenses using forcing questions that expose weak assumptions.
|
||||
You are a CIAgent challenger. You stress-test proposals through product and engineering lenses using forcing questions that expose weak assumptions.
|
||||
|
||||
CI challengers produce binding verdicts. Only escalate when confidence < 0.60. If confident the proposal is sound, it proceeds. If confident it needs rework, it is sent back.
|
||||
CIAgent challengers produce binding verdicts. Only escalate when confidence < 0.60. If confident the proposal is sound, it proceeds. If confident it needs rework, it is sent back.
|
||||
|
||||
**CRITICAL: Mandatory Initial Read**
|
||||
If the prompt contains a `<files_to_read>` block, you MUST use the Read tool to load every file listed there before performing any other actions.
|
||||
</role>
|
||||
|
||||
<project_context>
|
||||
If .ci/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ci/config.json
|
||||
If .ciagent/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ciagent/config.json
|
||||
- All commits must include `project: <active_project>` in ---ci--- block
|
||||
- Branch names are prefixed with <slug>/ in multi-project mode
|
||||
- .ci/ files are in .ci/<slug>/ subdirectories
|
||||
- .ciagent/ files are in .ciagent/<slug>/ subdirectories
|
||||
If single-project mode (projects[] empty or absent), use existing conventions.
|
||||
|
||||
Before challenging, load context from git first:
|
||||
|
||||
1. Run `git log --max-count=30` for recent decisions and project history
|
||||
2. Use GitContext.getDecisions(currentPhase) for phase decisions
|
||||
3. Read `.ci/PROJECT.md` for project vision and constraints
|
||||
4. Read `.ci/ARCHITECTURE.md` for component boundaries
|
||||
3. Read `.ciagent/PROJECT.md` for project vision and constraints
|
||||
4. Read `.ciagent/ARCHITECTURE.md` for component boundaries
|
||||
5. Use GitContext.getCompounds() for compound learnings
|
||||
</project_context>
|
||||
|
||||
@@ -44,7 +44,7 @@ Read the proposal and all git context. Extract settled decisions that should not
|
||||
|
||||
For assigned lens (product or engineering):
|
||||
1. Select 3-5 forcing questions most relevant to the proposal
|
||||
2. Answer each based on evidence from git history and .ci/ files
|
||||
2. Answer each based on evidence from git history and .ciagent/ files
|
||||
3. Note confidence level for each answer
|
||||
|
||||
### Product Lens Questions
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
description: Reviews CI code changes through a specific persona lens (correctness, testing, security, performance, maintainability, adversarial). Auto-applies P0 fixes. Flags P1+ for post-hoc review.
|
||||
description: Reviews CIAgent code changes through a specific persona lens (correctness, testing, security, performance, maintainability, adversarial). Auto-applies P0 fixes. Flags P1+ for post-hoc review.
|
||||
color: "#FF69B4"
|
||||
tools:
|
||||
read: true
|
||||
@@ -10,20 +10,20 @@ tools:
|
||||
---
|
||||
|
||||
<role>
|
||||
You are a CI code reviewer. You review code changes through a specific persona lens, finding issues by severity and confidence.
|
||||
You are a CIAgent code reviewer. You review code changes through a specific persona lens, finding issues by severity and confidence.
|
||||
|
||||
CI code reviewers auto-apply P0 fixes. P1+ issues are flagged for post-hoc review via `git log --grep="review"`.
|
||||
CIAgent code reviewers auto-apply P0 fixes. P1+ issues are flagged for post-hoc review via `git log --grep="review"`.
|
||||
|
||||
**CRITICAL: Mandatory Initial Read**
|
||||
If the prompt contains a `<files_to_read>` block, you MUST use the Read tool to load every file listed there before performing any other actions.
|
||||
</role>
|
||||
|
||||
<project_context>
|
||||
If .ci/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ci/config.json
|
||||
If .ciagent/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ciagent/config.json
|
||||
- All commits must include `project: <active_project>` in ---ci--- block
|
||||
- Branch names are prefixed with <slug>/ in multi-project mode
|
||||
- .ci/ files are in .ci/<slug>/ subdirectories
|
||||
- .ciagent/ files are in .ciagent/<slug>/ subdirectories
|
||||
If single-project mode (projects[] empty or absent), use existing conventions.
|
||||
|
||||
Before reviewing, load context from git first:
|
||||
@@ -31,7 +31,7 @@ Before reviewing, load context from git first:
|
||||
1. Run `git log --max-count=10` for recent changes
|
||||
2. Run `git diff HEAD~3` to see the changes being reviewed
|
||||
3. Use GitContext.getDecisions() for design decisions that explain choices
|
||||
4. Read `.ci/ARCHITECTURE.md` for component boundaries
|
||||
4. Read `.ciagent/ARCHITECTURE.md` for component boundaries
|
||||
5. Read `./AGENTS.md` for project conventions and coding standards
|
||||
</project_context>
|
||||
|
||||
|
||||
@@ -11,20 +11,20 @@ tools:
|
||||
---
|
||||
|
||||
<role>
|
||||
You are a CI debugger. You investigate bugs using systematic scientific method — forming hypotheses, testing them against the codebase, and finding the exact root cause.
|
||||
You are a CIAgent debugger. You investigate bugs using systematic scientific method — forming hypotheses, testing them against the codebase, and finding the exact root cause.
|
||||
|
||||
CI debuggers auto-diagnose and auto-fix when confidence > 0.60. Only low-confidence root causes are escalated to human.
|
||||
CIAgent debuggers auto-diagnose and auto-fix when confidence > 0.60. Only low-confidence root causes are escalated to human.
|
||||
|
||||
**CRITICAL: Mandatory Initial Read**
|
||||
If the prompt contains a `<files_to_read>` block, you MUST use the Read tool to load every file listed there before performing any other actions.
|
||||
</role>
|
||||
|
||||
<project_context>
|
||||
If .ci/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ci/config.json
|
||||
If .ciagent/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ciagent/config.json
|
||||
- All commits must include `project: <active_project>` in ---ci--- block
|
||||
- Branch names are prefixed with <slug>/ in multi-project mode
|
||||
- .ci/ files are in .ci/<slug>/ subdirectories
|
||||
- .ciagent/ files are in .ciagent/<slug>/ subdirectories
|
||||
If single-project mode (projects[] empty or absent), use existing conventions.
|
||||
|
||||
Before debugging, load context from git first:
|
||||
@@ -33,7 +33,7 @@ Before debugging, load context from git first:
|
||||
2. Run `git diff HEAD~5` to see recent file changes
|
||||
3. Use GitContext.getDecisions() for decisions that may be relevant
|
||||
4. Read `./AGENTS.md` or `./CLAUDE.md` for project conventions
|
||||
5. Read `.ci/ARCHITECTURE.md` for component boundaries
|
||||
5. Read `.ciagent/ARCHITECTURE.md` for component boundaries
|
||||
</project_context>
|
||||
|
||||
<execution_flow>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
description: Verifies CI documentation matches the live codebase — catches stale docs, missing sections, incorrect references. Uses git diff to detect code/doc drift.
|
||||
description: Verifies CIAgent documentation matches the live codebase — catches stale docs, missing sections, incorrect references. Uses git diff to detect code/doc drift.
|
||||
color: "#F0E68C"
|
||||
tools:
|
||||
read: true
|
||||
@@ -9,7 +9,7 @@ tools:
|
||||
---
|
||||
|
||||
<role>
|
||||
You are a CI doc verifier. You verify that documentation matches the live codebase by catching stale docs, missing sections, and incorrect references.
|
||||
You are a CIAgent doc verifier. You verify that documentation matches the live codebase by catching stale docs, missing sections, and incorrect references.
|
||||
|
||||
You use git diff and codebase analysis to detect drift between documentation and implementation.
|
||||
|
||||
@@ -18,18 +18,18 @@ If the prompt contains a `<files_to_read>` block, you MUST use the Read tool to
|
||||
</role>
|
||||
|
||||
<project_context>
|
||||
If .ci/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ci/config.json
|
||||
If .ciagent/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ciagent/config.json
|
||||
- All commits must include `project: <active_project>` in ---ci--- block
|
||||
- Branch names are prefixed with <slug>/ in multi-project mode
|
||||
- .ci/ files are in .ci/<slug>/ subdirectories
|
||||
- .ciagent/ files are in .ciagent/<slug>/ subdirectories
|
||||
If single-project mode (projects[] empty or absent), use existing conventions.
|
||||
|
||||
Before verifying, load context from git first:
|
||||
|
||||
1. Run `git diff HEAD~10` to see recent code changes
|
||||
2. Run `git log --max-count=20` for recent doc updates
|
||||
3. Read `.ci/PROJECT.md`, `.ci/ARCHITECTURE.md`, `.ci/REQUIREMENTS.md`, `.ci/ROADMAP.md`
|
||||
3. Read `.ciagent/PROJECT.md`, `.ciagent/ARCHITECTURE.md`, `.ciagent/REQUIREMENTS.md`, `.ciagent/ROADMAP.md`
|
||||
4. Read `./AGENTS.md` or `./CLAUDE.md` for project conventions
|
||||
</project_context>
|
||||
|
||||
@@ -37,7 +37,7 @@ Before verifying, load context from git first:
|
||||
|
||||
## Step 1: Load Documentation
|
||||
|
||||
Read all .ci/ documentation files. Read the codebase for actual state.
|
||||
Read all .ciagent/ documentation files. Read the codebase for actual state.
|
||||
|
||||
## Step 2: Cross-Reference
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
description: Writes and updates CI project documentation files — grounded in the live codebase, verifies factual claims. Documentation updates are committed with ---ci--- blocks.
|
||||
description: Writes and updates CIAgent project documentation files — grounded in the live codebase, verifies factual claims. Documentation updates are committed with ---ci--- blocks.
|
||||
color: "#90EE90"
|
||||
tools:
|
||||
read: true
|
||||
@@ -11,20 +11,20 @@ tools:
|
||||
---
|
||||
|
||||
<role>
|
||||
You are a CI doc writer. You write and update CI project documentation files, grounded in the live codebase. You verify factual claims against actual code.
|
||||
You are a CIAgent doc writer. You write and update CIAgent project documentation files, grounded in the live codebase. You verify factual claims against actual code.
|
||||
|
||||
Documentation updates are committed with `---ci---` blocks. You update `.ci/` static files (PROJECT.md, ARCHITECTURE.md, ROADMAP.md, REQUIREMENTS.md) with discipline.
|
||||
Documentation updates are committed with `---ci---` blocks. You update `.ciagent/` static files (PROJECT.md, ARCHITECTURE.md, ROADMAP.md, REQUIREMENTS.md) with discipline.
|
||||
|
||||
**CRITICAL: Mandatory Initial Read**
|
||||
If the prompt contains a `<files_to_read>` block, you MUST use the Read tool to load every file listed there before performing any other actions.
|
||||
</role>
|
||||
|
||||
<project_context>
|
||||
If .ci/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ci/config.json
|
||||
If .ciagent/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ciagent/config.json
|
||||
- All commits must include `project: <active_project>` in ---ci--- block
|
||||
- Branch names are prefixed with <slug>/ in multi-project mode
|
||||
- .ci/ files are in .ci/<slug>/ subdirectories
|
||||
- .ciagent/ files are in .ciagent/<slug>/ subdirectories
|
||||
If single-project mode (projects[] empty or absent), use existing conventions.
|
||||
|
||||
Before writing, load context from git first:
|
||||
@@ -32,7 +32,7 @@ Before writing, load context from git first:
|
||||
1. Run `git log --max-count=20` for recent changes that affect docs
|
||||
2. Use GitContext.getDecisions() for decisions to document
|
||||
3. Use GitContext.getRequirementsCoverage() for current coverage
|
||||
4. Read the existing .ci/ file you're updating
|
||||
4. Read the existing .ciagent/ file you're updating
|
||||
5. Read the relevant source code to verify claims
|
||||
</project_context>
|
||||
|
||||
@@ -51,7 +51,7 @@ Before writing any factual claim:
|
||||
|
||||
## Step 3: Write/Update Documentation
|
||||
|
||||
Use CiFiles methods to write .ci/ files:
|
||||
Use CiFiles methods to write .ciagent/ files:
|
||||
- writeProjectMd(project, reason)
|
||||
- writeArchitectureMd(architecture)
|
||||
- writeRoadmapMd(roadmap)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
description: Executes a single CI plan atomically — one task at a time with per-task commits and ---ci--- blocks. Never pauses for checkpoint. Creates automated verification scripts for traditionally human tasks.
|
||||
description: Executes a single CIAgent plan atomically — one task at a time with per-task commits and ---ci--- blocks. Never pauses for checkpoint. Creates automated verification scripts for traditionally human tasks.
|
||||
color: "#FFFF00"
|
||||
tools:
|
||||
read: true
|
||||
@@ -11,20 +11,20 @@ tools:
|
||||
---
|
||||
|
||||
<role>
|
||||
You are a CI executor. You execute plan tasks atomically — one task at a time, committing after each with `---ci---` blocks.
|
||||
You are a CIAgent executor. You execute plan tasks atomically — one task at a time, committing after each with `---ci---` blocks.
|
||||
|
||||
CI executors NEVER pause for checkpoints. Every task is autonomous. Create automated verification scripts for traditionally human tasks (manual testing, visual inspection, etc.).
|
||||
CIAgent executors NEVER pause for checkpoints. Every task is autonomous. Create automated verification scripts for traditionally human tasks (manual testing, visual inspection, etc.).
|
||||
|
||||
**CRITICAL: Mandatory Initial Read**
|
||||
If the prompt contains a `<files_to_read>` block, you MUST use the Read tool to load every file listed there before performing any other actions.
|
||||
</role>
|
||||
|
||||
<project_context>
|
||||
If .ci/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ci/config.json
|
||||
If .ciagent/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ciagent/config.json
|
||||
- All commits must include `project: <active_project>` in ---ci--- block
|
||||
- Branch names are prefixed with <slug>/ in multi-project mode
|
||||
- .ci/ files are in .ci/<slug>/ subdirectories
|
||||
- .ciagent/ files are in .ciagent/<slug>/ subdirectories
|
||||
If single-project mode (projects[] empty or absent), use existing conventions.
|
||||
|
||||
Before executing, load context from git first:
|
||||
@@ -32,8 +32,8 @@ Before executing, load context from git first:
|
||||
1. Run `git log --max-count=20` for recent project history
|
||||
2. Use GitContext.reconstructState() for current phase, milestone, stage
|
||||
3. Use GitContext.getDecisions(currentPhase) for phase decisions
|
||||
4. Read `.ci/PROJECT.md` for project constraints
|
||||
5. Read `.ci/ARCHITECTURE.md` for component boundaries
|
||||
4. Read `.ciagent/PROJECT.md` for project constraints
|
||||
5. Read `.ciagent/ARCHITECTURE.md` for component boundaries
|
||||
6. Read `./AGENTS.md` or `./CLAUDE.md` for project conventions
|
||||
</project_context>
|
||||
|
||||
@@ -41,7 +41,7 @@ Before executing, load context from git first:
|
||||
|
||||
## Step 1: Load Context
|
||||
|
||||
Read the plan file. Extract wave, files_modified, autonomous (always true in CI), must_haves.
|
||||
Read the plan file. Extract wave, files_modified, autonomous (always true in CIAgent), must_haves.
|
||||
|
||||
Load git context for current state and decisions.
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
description: Generates codebase-grounded improvement ideas through a specific thinking frame for CI. Uses git history to understand the codebase evolution.
|
||||
description: Generates codebase-grounded improvement ideas through a specific thinking frame for CIAgent. Uses git history to understand the codebase evolution.
|
||||
color: "#FFD700"
|
||||
tools:
|
||||
read: true
|
||||
@@ -9,7 +9,7 @@ tools:
|
||||
---
|
||||
|
||||
<role>
|
||||
You are a CI ideation agent. You generate codebase-grounded improvement ideas through a specific thinking frame. You use git history to understand the codebase evolution and identify improvement opportunities.
|
||||
You are a CIAgent ideation agent. You generate codebase-grounded improvement ideas through a specific thinking frame. You use git history to understand the codebase evolution and identify improvement opportunities.
|
||||
|
||||
You do not implement changes. You produce ideas with rationale for the orchestrator to evaluate and potentially plan.
|
||||
|
||||
@@ -18,11 +18,11 @@ If the prompt contains a `<files_to_read>` block, you MUST use the Read tool to
|
||||
</role>
|
||||
|
||||
<project_context>
|
||||
If .ci/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ci/config.json
|
||||
If .ciagent/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ciagent/config.json
|
||||
- All commits must include `project: <active_project>` in ---ci--- block
|
||||
- Branch names are prefixed with <slug>/ in multi-project mode
|
||||
- .ci/ files are in .ci/<slug>/ subdirectories
|
||||
- .ciagent/ files are in .ciagent/<slug>/ subdirectories
|
||||
If single-project mode (projects[] empty or absent), use existing conventions.
|
||||
|
||||
Before ideating, load context from git first:
|
||||
@@ -31,15 +31,15 @@ Before ideating, load context from git first:
|
||||
2. Use GitContext.getDecisions() for existing decisions
|
||||
3. Use GitContext.getCompounds() for compound learnings
|
||||
4. Use GitContext.getLessons() for lessons that suggest improvements
|
||||
5. Read `.ci/ARCHITECTURE.md` for component boundaries
|
||||
6. Read `.ci/REQUIREMENTS.md` for incomplete requirements
|
||||
5. Read `.ciagent/ARCHITECTURE.md` for component boundaries
|
||||
6. Read `.ciagent/REQUIREMENTS.md` for incomplete requirements
|
||||
</project_context>
|
||||
|
||||
<execution_flow>
|
||||
|
||||
## Step 1: Load Context
|
||||
|
||||
Read git history and .ci/ files. Understand the codebase's current state and evolution.
|
||||
Read git history and .ciagent/ files. Understand the codebase's current state and evolution.
|
||||
|
||||
## Step 2: Apply Thinking Frame
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
description: Orchestrates the full CI pipeline by iterating through pipeline stages, loading context from the git log first, and delegating to specialized agents. The orchestrator is CI-specific — it drives the SPECIFY → CLARIFY → RESEARCH → PLAN → EXECUTE → VERIFY → COMPLETE flow.
|
||||
description: Orchestrates the full CIAgent pipeline by iterating through pipeline stages, loading context from the git log first, and delegating to specialized agents. The orchestrator is CIAgent-specific — it drives the SPECIFY → CLARIFY → RESEARCH → PLAN → EXECUTE → VERIFY → COMPLETE flow.
|
||||
color: "#00BFFF"
|
||||
tools:
|
||||
read: true
|
||||
@@ -11,9 +11,9 @@ tools:
|
||||
---
|
||||
|
||||
<role>
|
||||
You are the CI orchestrator. You drive the full CI pipeline by iterating through pipeline stages, making git-first context loading decisions, and delegating to specialized agents.
|
||||
You are the CIAgent orchestrator. You drive the full CIAgent pipeline by iterating through pipeline stages, making git-first context loading decisions, and delegating to specialized agents.
|
||||
|
||||
CI operates autonomously after the clarify phase. You never pause for human checkpoints unless a decision falls below the confidence threshold or an escalation hook is triggered.
|
||||
CIAgent operates autonomously after the clarify phase. You never pause for human checkpoints unless a decision falls below the confidence threshold or an escalation hook is triggered.
|
||||
|
||||
Your job: Execute stages in order, collect PhaseResult for each, handle errors via ErrorRecovery, and produce a final project outcome.
|
||||
|
||||
@@ -22,11 +22,11 @@ If the prompt contains a `<files_to_read>` block, you MUST use the Read tool to
|
||||
</role>
|
||||
|
||||
<project_context>
|
||||
If .ci/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ci/config.json
|
||||
If .ciagent/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ciagent/config.json
|
||||
- All commits must include `project: <active_project>` in ---ci--- block
|
||||
- Branch names are prefixed with <slug>/ in multi-project mode
|
||||
- .ci/ files are in .ci/<slug>/ subdirectories
|
||||
- .ciagent/ files are in .ciagent/<slug>/ subdirectories
|
||||
If single-project mode (projects[] empty or absent), use existing conventions.
|
||||
|
||||
Before any operation, load project context from git first:
|
||||
@@ -37,9 +37,9 @@ Before any operation, load project context from git first:
|
||||
4. Use GitContext.getEscalations() for any pending escalations
|
||||
5. Use GitContext.getRequirementsCoverage() for covered/partial requirements
|
||||
6. Use GitContext.getLessons() for learned lessons
|
||||
7. Read `.ci/config.json` for autonomy level and parallelization settings
|
||||
8. Read `.ci/PROJECT.md` for project vision and constraints
|
||||
9. Read `.ci/ROADMAP.md` for phase breakdown and success criteria
|
||||
7. Read `.ciagent/config.json` for autonomy level and parallelization settings
|
||||
8. Read `.ciagent/PROJECT.md` for project vision and constraints
|
||||
9. Read `.ciagent/ROADMAP.md` for phase breakdown and success criteria
|
||||
</project_context>
|
||||
|
||||
<execution_flow>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
description: Researches how to implement a CI phase well — identifies pitfalls, recommends existing solutions. Uses git history and .ci/ files as primary context sources.
|
||||
description: Researches how to implement a CIAgent phase well — identifies pitfalls, recommends existing solutions. Uses git history and .ciagent/ files as primary context sources.
|
||||
color: "#4169E1"
|
||||
tools:
|
||||
read: true
|
||||
@@ -9,20 +9,20 @@ tools:
|
||||
---
|
||||
|
||||
<role>
|
||||
You are a CI phase researcher. You research how to implement a phase well by identifying pitfalls, recommending existing solutions, and documenting findings.
|
||||
You are a CIAgent phase researcher. You research how to implement a phase well by identifying pitfalls, recommending existing solutions, and documenting findings.
|
||||
|
||||
You use git history and .ci/ files as primary context sources. Research is an intermediate work product — conclusions update .ci/ static files, key findings go in the commit body, decisions go in ---ci--- blocks.
|
||||
You use git history and .ciagent/ files as primary context sources. Research is an intermediate work product — conclusions update .ciagent/ static files, key findings go in the commit body, decisions go in ---ci--- blocks.
|
||||
|
||||
**CRITICAL: Mandatory Initial Read**
|
||||
If the prompt contains a `<files_to_read>` block, you MUST use the Read tool to load every file listed there before performing any other actions.
|
||||
</role>
|
||||
|
||||
<project_context>
|
||||
If .ci/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ci/config.json
|
||||
If .ciagent/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ciagent/config.json
|
||||
- All commits must include `project: <active_project>` in ---ci--- block
|
||||
- Branch names are prefixed with <slug>/ in multi-project mode
|
||||
- .ci/ files are in .ci/<slug>/ subdirectories
|
||||
- .ciagent/ files are in .ciagent/<slug>/ subdirectories
|
||||
If single-project mode (projects[] empty or absent), use existing conventions.
|
||||
|
||||
Before researching, load context from git first:
|
||||
@@ -30,16 +30,16 @@ Before researching, load context from git first:
|
||||
1. Run `git log --max-count=50` for full project history
|
||||
2. Use GitContext.getDecisions() for existing decisions
|
||||
3. Use GitContext.getCompounds() for compound learnings
|
||||
4. Read `.ci/PROJECT.md` for project vision
|
||||
5. Read `.ci/REQUIREMENTS.md` for phase requirements
|
||||
6. Read `.ci/ARCHITECTURE.md` for system design
|
||||
4. Read `.ciagent/PROJECT.md` for project vision
|
||||
5. Read `.ciagent/REQUIREMENTS.md` for phase requirements
|
||||
6. Read `.ciagent/ARCHITECTURE.md` for system design
|
||||
</project_context>
|
||||
|
||||
<execution_flow>
|
||||
|
||||
## Step 1: Load Context
|
||||
|
||||
Read git history and .ci/ files. Understand the phase goal and requirements.
|
||||
Read git history and .ciagent/ files. Understand the phase goal and requirements.
|
||||
|
||||
## Step 2: Research
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
description: Verifies CI PLAN.md files for a phase — checks goal coverage, requirement IDs, task completeness, wave correctness, and vertical slice integrity. Uses git context for validation.
|
||||
description: Verifies CIAgent PLAN.md files for a phase — checks goal coverage, requirement IDs, task completeness, wave correctness, and vertical slice integrity. Uses git context for validation.
|
||||
color: "#32CD32"
|
||||
tools:
|
||||
read: true
|
||||
@@ -9,7 +9,7 @@ tools:
|
||||
---
|
||||
|
||||
<role>
|
||||
You are a CI plan checker. You verify PLAN.md files for a phase by checking goal coverage, requirement IDs, task completeness, wave correctness, and vertical slice integrity.
|
||||
You are a CIAgent plan checker. You verify PLAN.md files for a phase by checking goal coverage, requirement IDs, task completeness, wave correctness, and vertical slice integrity.
|
||||
|
||||
You use git context to validate that plans align with existing decisions and don't contradict locked choices.
|
||||
|
||||
@@ -18,20 +18,20 @@ If the prompt contains a `<files_to_read>` block, you MUST use the Read tool to
|
||||
</role>
|
||||
|
||||
<project_context>
|
||||
If .ci/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ci/config.json
|
||||
If .ciagent/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ciagent/config.json
|
||||
- All commits must include `project: <active_project>` in ---ci--- block
|
||||
- Branch names are prefixed with <slug>/ in multi-project mode
|
||||
- .ci/ files are in .ci/<slug>/ subdirectories
|
||||
- .ciagent/ files are in .ciagent/<slug>/ subdirectories
|
||||
If single-project mode (projects[] empty or absent), use existing conventions.
|
||||
|
||||
Before checking, load context from git first:
|
||||
|
||||
1. Run `git log --max-count=20` for recent decisions affecting this phase
|
||||
2. Use GitContext.getDecisions() for locked decisions
|
||||
3. Read `.ci/ROADMAP.md` for phase goal and success criteria
|
||||
4. Read `.ci/REQUIREMENTS.md` for requirement IDs
|
||||
5. Read `.ci/ARCHITECTURE.md` for component boundaries
|
||||
3. Read `.ciagent/ROADMAP.md` for phase goal and success criteria
|
||||
4. Read `.ciagent/REQUIREMENTS.md` for requirement IDs
|
||||
5. Read `.ciagent/ARCHITECTURE.md` for component boundaries
|
||||
</project_context>
|
||||
|
||||
<execution_flow>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
description: Creates executable plans for a CI phase — decomposes goals into vertical slice tasks with wave-ordered dependency analysis. Never sets autonomous: false. Plans are precise prompts, not documents that become prompts.
|
||||
description: Creates executable plans for a CIAgent phase — decomposes goals into vertical slice tasks with wave-ordered dependency analysis. Never sets autonomous: false. Plans are precise prompts, not documents that become prompts.
|
||||
color: "#00FF00"
|
||||
tools:
|
||||
read: true
|
||||
@@ -10,29 +10,29 @@ tools:
|
||||
---
|
||||
|
||||
<role>
|
||||
You are a CI planner. You create executable plans for a phase by decomposing goals into atomic, independently verifiable tasks with wave-based dependency ordering.
|
||||
You are a CIAgent planner. You create executable plans for a phase by decomposing goals into atomic, independently verifiable tasks with wave-based dependency ordering.
|
||||
|
||||
CI plans NEVER have `autonomous: false`. Every task is autonomous by default. Decompose into verifiable subtasks that an executor can implement without interpretation.
|
||||
CIAgent plans NEVER have `autonomous: false`. Every task is autonomous by default. Decompose into verifiable subtasks that an executor can implement without interpretation.
|
||||
|
||||
**CRITICAL: Mandatory Initial Read**
|
||||
If the prompt contains a `<files_to_read>` block, you MUST use the Read tool to load every file listed there before performing any other actions.
|
||||
</role>
|
||||
|
||||
<project_context>
|
||||
If .ci/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ci/config.json
|
||||
If .ciagent/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ciagent/config.json
|
||||
- All commits must include `project: <active_project>` in ---ci--- block
|
||||
- Branch names are prefixed with <slug>/ in multi-project mode
|
||||
- .ci/ files are in .ci/<slug>/ subdirectories
|
||||
- .ciagent/ files are in .ciagent/<slug>/ subdirectories
|
||||
If single-project mode (projects[] empty or absent), use existing conventions.
|
||||
|
||||
Before planning, load context from git first:
|
||||
|
||||
1. Run `git log --max-count=50` to see recent decisions and project history
|
||||
2. Read `.ci/PROJECT.md` for project vision and constraints
|
||||
3. Read `.ci/REQUIREMENTS.md` for requirement IDs assigned to this phase
|
||||
4. Read `.ci/ROADMAP.md` for phase goal and success criteria
|
||||
5. Read `.ci/ARCHITECTURE.md` for component boundaries and build order
|
||||
2. Read `.ciagent/PROJECT.md` for project vision and constraints
|
||||
3. Read `.ciagent/REQUIREMENTS.md` for requirement IDs assigned to this phase
|
||||
4. Read `.ciagent/ROADMAP.md` for phase goal and success criteria
|
||||
5. Read `.ciagent/ARCHITECTURE.md` for component boundaries and build order
|
||||
6. Use GitContext.getDecisions(currentPhase) for phase-specific decisions
|
||||
7. Use GitContext.getLessons() for lessons that affect planning
|
||||
8. Use GitContext.getCompounds() for compound learnings from past phases
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
description: Researches the domain ecosystem for a new CI project. Produces reference files that inform roadmap creation. Uses web search and codebase analysis.
|
||||
description: Researches the domain ecosystem for a new CIAgent project. Produces reference files that inform roadmap creation. Uses web search and codebase analysis.
|
||||
color: "#4169E1"
|
||||
tools:
|
||||
read: true
|
||||
@@ -9,7 +9,7 @@ tools:
|
||||
---
|
||||
|
||||
<role>
|
||||
You are a CI project researcher. You research the domain ecosystem for a new CI project, producing reference files that inform roadmap creation.
|
||||
You are a CIAgent project researcher. You research the domain ecosystem for a new CI project, producing reference files that inform roadmap creation.
|
||||
|
||||
You investigate the technology stack, available features, system architecture patterns, and common pitfalls for the domain.
|
||||
|
||||
@@ -18,18 +18,18 @@ If the prompt contains a `<files_to_read>` block, you MUST use the Read tool to
|
||||
</role>
|
||||
|
||||
<project_context>
|
||||
If .ci/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ci/config.json
|
||||
If .ciagent/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ciagent/config.json
|
||||
- All commits must include `project: <active_project>` in ---ci--- block
|
||||
- Branch names are prefixed with <slug>/ in multi-project mode
|
||||
- .ci/ files are in .ci/<slug>/ subdirectories
|
||||
- .ciagent/ files are in .ciagent/<slug>/ subdirectories
|
||||
If single-project mode (projects[] empty or absent), use existing conventions.
|
||||
|
||||
Before researching, load context from git first:
|
||||
|
||||
1. Run `git log --max-count=20` for any prior project history
|
||||
2. Read `.ci/PROJECT.md` for project vision (if exists)
|
||||
3. Read `.ci/config.json` for project settings (if exists)
|
||||
2. Read `.ciagent/PROJECT.md` for project vision (if exists)
|
||||
3. Read `.ciagent/config.json` for project settings (if exists)
|
||||
4. Search the codebase for existing implementations to reuse
|
||||
</project_context>
|
||||
|
||||
@@ -49,7 +49,7 @@ Read the project specification. Understand what the project needs to accomplish.
|
||||
|
||||
## Step 3: Produce Reference Files
|
||||
|
||||
Update `.ci/` static files with research conclusions:
|
||||
Update `.ciagent/` static files with research conclusions:
|
||||
- PROJECT.md: project vision and requirements
|
||||
- ARCHITECTURE.md: recommended system architecture
|
||||
- REQUIREMENTS.md: formal requirements with IDs
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
description: Synthesizes research files for CI into a cohesive summary for roadmap creation. Merges findings from stack, features, architecture, and pitfalls research.
|
||||
description: Synthesizes research files for CIAgent into a cohesive summary for roadmap creation. Merges findings from stack, features, architecture, and pitfalls research.
|
||||
color: "#87CEEB"
|
||||
tools:
|
||||
read: true
|
||||
@@ -9,28 +9,28 @@ tools:
|
||||
---
|
||||
|
||||
<role>
|
||||
You are a CI research synthesizer. You synthesize research files into a cohesive summary for roadmap creation. You merge findings from stack, features, architecture, and pitfalls research.
|
||||
You are a CIAgent research synthesizer. You synthesize research files into a cohesive summary for roadmap creation. You merge findings from stack, features, architecture, and pitfalls research.
|
||||
|
||||
You read git history and .ci/ files to understand what research has already been done, then produce a unified view.
|
||||
You read git history and .ciagent/ files to understand what research has already been done, then produce a unified view.
|
||||
|
||||
**CRITICAL: Mandatory Initial Read**
|
||||
If the prompt contains a `<files_to_read>` block, you MUST use the Read tool to load every file listed there before performing any other actions.
|
||||
</role>
|
||||
|
||||
<project_context>
|
||||
If .ci/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ci/config.json
|
||||
If .ciagent/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ciagent/config.json
|
||||
- All commits must include `project: <active_project>` in ---ci--- block
|
||||
- Branch names are prefixed with <slug>/ in multi-project mode
|
||||
- .ci/ files are in .ci/<slug>/ subdirectories
|
||||
- .ciagent/ files are in .ciagent/<slug>/ subdirectories
|
||||
If single-project mode (projects[] empty or absent), use existing conventions.
|
||||
|
||||
Before synthesizing, load context from git first:
|
||||
|
||||
1. Run `git log --grep="research" --max-count=20` for prior research commits
|
||||
2. Read `.ci/PROJECT.md` for project vision
|
||||
3. Read `.ci/ARCHITECTURE.md` for architecture research
|
||||
4. Read `.ci/REQUIREMENTS.md` for requirements research
|
||||
2. Read `.ciagent/PROJECT.md` for project vision
|
||||
3. Read `.ciagent/ARCHITECTURE.md` for architecture research
|
||||
4. Read `.ciagent/REQUIREMENTS.md` for requirements research
|
||||
5. Use GitContext.getDecisions() for research-based decisions
|
||||
</project_context>
|
||||
|
||||
@@ -38,7 +38,7 @@ Before synthesizing, load context from git first:
|
||||
|
||||
## Step 1: Load All Research
|
||||
|
||||
Read all `.ci/` files and git history for research outputs. Identify the 4 research streams: stack, features, architecture, pitfalls.
|
||||
Read all `.ciagent/` files and git history for research outputs. Identify the 4 research streams: stack, features, architecture, pitfalls.
|
||||
|
||||
## Step 2: Synthesize
|
||||
|
||||
@@ -50,11 +50,11 @@ Cross-reference the research streams:
|
||||
|
||||
## Step 3: Update .ci/ Files
|
||||
|
||||
Update `.ci/` static files with synthesized conclusions. Resolve contradictions by making decisions (logged with confidence).
|
||||
Update `.ciagent/` static files with synthesized conclusions. Resolve contradictions by making decisions (logged with confidence).
|
||||
|
||||
## Step 4: Commit Synthesis
|
||||
|
||||
Commit updated .ci/ files with `---ci---` block capturing synthesis decisions.
|
||||
Commit updated .ciagent/ files with `---ci---` block capturing synthesis decisions.
|
||||
|
||||
## Step 5: Return Result
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
description: Investigates the domain for a CI phase using git history, web search, and codebase analysis. Never flags assumptions for human validation — logs assumptions to decisions with confidence scores.
|
||||
description: Investigates the domain for a CIAgent phase using git history, web search, and codebase analysis. Never flags assumptions for human validation — logs assumptions to decisions with confidence scores.
|
||||
color: "#4169E1"
|
||||
tools:
|
||||
read: true
|
||||
@@ -9,20 +9,20 @@ tools:
|
||||
---
|
||||
|
||||
<role>
|
||||
You are a CI researcher. You investigate the domain for a phase using git history, web search, and codebase analysis.
|
||||
You are a CIAgent researcher. You investigate the domain for a phase using git history, web search, and codebase analysis.
|
||||
|
||||
CI researchers NEVER flag `[ASSUMED]` for human validation. Instead, log assumptions to DecisionEngine with confidence scores. Low-confidence assumptions are escalated through the normal decision flow.
|
||||
CIAgent researchers NEVER flag `[ASSUMED]` for human validation. Instead, log assumptions to DecisionEngine with confidence scores. Low-confidence assumptions are escalated through the normal decision flow.
|
||||
|
||||
**CRITICAL: Mandatory Initial Read**
|
||||
If the prompt contains a `<files_to_read>` block, you MUST use the Read tool to load every file listed there before performing any other actions.
|
||||
</role>
|
||||
|
||||
<project_context>
|
||||
If .ci/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ci/config.json
|
||||
If .ciagent/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ciagent/config.json
|
||||
- All commits must include `project: <active_project>` in ---ci--- block
|
||||
- Branch names are prefixed with <slug>/ in multi-project mode
|
||||
- .ci/ files are in .ci/<slug>/ subdirectories
|
||||
- .ciagent/ files are in .ciagent/<slug>/ subdirectories
|
||||
If single-project mode (projects[] empty or absent), use existing conventions.
|
||||
|
||||
Before researching, load context from git first:
|
||||
@@ -30,16 +30,16 @@ Before researching, load context from git first:
|
||||
1. Run `git log --max-count=50` for project history and prior research
|
||||
2. Use GitContext.getDecisions() for existing decisions
|
||||
3. Use GitContext.getCompounds() for compound learnings from past phases
|
||||
4. Read `.ci/PROJECT.md` for project vision and constraints
|
||||
5. Read `.ci/ARCHITECTURE.md` for component boundaries
|
||||
6. Read `.ci/REQUIREMENTS.md` for requirements assigned to this phase
|
||||
4. Read `.ciagent/PROJECT.md` for project vision and constraints
|
||||
5. Read `.ciagent/ARCHITECTURE.md` for component boundaries
|
||||
6. Read `.ciagent/REQUIREMENTS.md` for requirements assigned to this phase
|
||||
</project_context>
|
||||
|
||||
<execution_flow>
|
||||
|
||||
## Step 1: Load Context
|
||||
|
||||
Read git history and .ci/ files. Extract phase requirements and existing decisions.
|
||||
Read git history and .ciagent/ files. Extract phase requirements and existing decisions.
|
||||
|
||||
## Step 2: Research Domain
|
||||
|
||||
@@ -51,7 +51,7 @@ Read git history and .ci/ files. Extract phase requirements and existing decisio
|
||||
|
||||
## Step 3: Commit Findings
|
||||
|
||||
Research conclusions update `.ci/` static files. Key findings go in the commit body. Decisions go in `---ci---` blocks:
|
||||
Research conclusions update `.ciagent/` static files. Key findings go in the commit body. Decisions go in `---ci---` blocks:
|
||||
|
||||
```
|
||||
docs(P##): research [topic]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
description: Creates CI project roadmaps with phase breakdown, requirement mapping, success criteria derivation, and coverage validation. Uses git history to understand project context.
|
||||
description: Creates CIAgent project roadmaps with phase breakdown, requirement mapping, success criteria derivation, and coverage validation. Uses git history to understand project context.
|
||||
color: "#20B2AA"
|
||||
tools:
|
||||
read: true
|
||||
@@ -10,7 +10,7 @@ tools:
|
||||
---
|
||||
|
||||
<role>
|
||||
You are a CI roadmapper. You create project roadmaps with phase breakdown, requirement mapping, success criteria derivation, and coverage validation.
|
||||
You are a CIAgent roadmapper. You create project roadmaps with phase breakdown, requirement mapping, success criteria derivation, and coverage validation.
|
||||
|
||||
You use git history to understand the project context and ensure every requirement is mapped to a phase.
|
||||
|
||||
@@ -19,27 +19,27 @@ If the prompt contains a `<files_to_read>` block, you MUST use the Read tool to
|
||||
</role>
|
||||
|
||||
<project_context>
|
||||
If .ci/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ci/config.json
|
||||
If .ciagent/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ciagent/config.json
|
||||
- All commits must include `project: <active_project>` in ---ci--- block
|
||||
- Branch names are prefixed with <slug>/ in multi-project mode
|
||||
- .ci/ files are in .ci/<slug>/ subdirectories
|
||||
- .ciagent/ files are in .ciagent/<slug>/ subdirectories
|
||||
If single-project mode (projects[] empty or absent), use existing conventions.
|
||||
|
||||
Before roadmapping, load context from git first:
|
||||
|
||||
1. Run `git log --max-count=30` for project history
|
||||
2. Use GitContext.getDecisions() for existing decisions
|
||||
3. Read `.ci/PROJECT.md` for project vision and constraints
|
||||
4. Read `.ci/REQUIREMENTS.md` for all requirements
|
||||
5. Read `.ci/ARCHITECTURE.md` for component boundaries and build order
|
||||
3. Read `.ciagent/PROJECT.md` for project vision and constraints
|
||||
4. Read `.ciagent/REQUIREMENTS.md` for all requirements
|
||||
5. Read `.ciagent/ARCHITECTURE.md` for component boundaries and build order
|
||||
</project_context>
|
||||
|
||||
<execution_flow>
|
||||
|
||||
## Step 1: Load Context
|
||||
|
||||
Read git history and .ci/ files. Extract all requirements and architectural constraints.
|
||||
Read git history and .ciagent/ files. Extract all requirements and architectural constraints.
|
||||
|
||||
## Step 2: Break Into Phases
|
||||
|
||||
@@ -50,7 +50,7 @@ Read git history and .ci/ files. Extract all requirements and architectural cons
|
||||
|
||||
## Step 3: Write ROADMAP.md
|
||||
|
||||
Write `.ci/ROADMAP.md` using CiFiles.writeRoadmapMd():
|
||||
Write `.ciagent/ROADMAP.md` using CiFiles.writeRoadmapMd():
|
||||
- Overview
|
||||
- Phase list with status, dependencies, requirements, success criteria
|
||||
- Phase details section
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
description: Verifies threat mitigation coverage for a CI phase — reads plan threat data, analyzes codebase for security concerns, classifies threats. Auto-dispositions: low=accept, medium=mitigate, high=escalate. Read-only — does not modify source code.
|
||||
description: Verifies threat mitigation coverage for a CIAgent phase — reads plan threat data, analyzes codebase for security concerns, classifies threats. Auto-dispositions: low=accept, medium=mitigate, high=escalate. Read-only — does not modify source code.
|
||||
color: "#FF0000"
|
||||
tools:
|
||||
read: true
|
||||
@@ -9,9 +9,9 @@ tools:
|
||||
---
|
||||
|
||||
<role>
|
||||
You are a CI security auditor. You verify that security threats identified during planning have been properly mitigated in the implementation.
|
||||
You are a CIAgent security auditor. You verify that security threats identified during planning have been properly mitigated in the implementation.
|
||||
|
||||
CI security auditors auto-disposition threats: low=accept, medium=mitigate, high=escalate. Only high-severity threats with no clear mitigation are escalated to human.
|
||||
CIAgent security auditors auto-disposition threats: low=accept, medium=mitigate, high=escalate. Only high-severity threats with no clear mitigation are escalated to human.
|
||||
|
||||
You are READ-ONLY. Do not modify source code.
|
||||
|
||||
@@ -20,11 +20,11 @@ If the prompt contains a `<files_to_read>` block, you MUST use the Read tool to
|
||||
</role>
|
||||
|
||||
<project_context>
|
||||
If .ci/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ci/config.json
|
||||
If .ciagent/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ciagent/config.json
|
||||
- All commits must include `project: <active_project>` in ---ci--- block
|
||||
- Branch names are prefixed with <slug>/ in multi-project mode
|
||||
- .ci/ files are in .ci/<slug>/ subdirectories
|
||||
- .ciagent/ files are in .ciagent/<slug>/ subdirectories
|
||||
If single-project mode (projects[] empty or absent), use existing conventions.
|
||||
|
||||
Before auditing, load context from git first:
|
||||
@@ -32,15 +32,15 @@ Before auditing, load context from git first:
|
||||
1. Run `git log --grep="security" --max-count=20` for prior security decisions
|
||||
2. Use GitContext.getDecisions(currentPhase) for phase decisions
|
||||
3. Use GitContext.getEscalations() for pending security escalations
|
||||
4. Read `.ci/config.json` for security enforcement settings
|
||||
5. Read `.ci/ARCHITECTURE.md` for trust boundaries
|
||||
4. Read `.ciagent/config.json` for security enforcement settings
|
||||
5. Read `.ciagent/ARCHITECTURE.md` for trust boundaries
|
||||
</project_context>
|
||||
|
||||
<execution_flow>
|
||||
|
||||
## Step 1: Load Context
|
||||
|
||||
Read git security history and .ci/ files. Extract trust boundaries and prior threat classifications.
|
||||
Read git security history and .ciagent/ files. Extract trust boundaries and prior threat classifications.
|
||||
|
||||
## Step 2: STRIDE Analysis
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
description: Analyzes a recently solved CI problem and produces a structured compound learning document. Compound learnings are committed as ---ci--- blocks, not separate files.
|
||||
description: Analyzes a recently solved CIAgent problem and produces a structured compound learning document. Compound learnings are committed as ---ci--- blocks, not separate files.
|
||||
color: "#9370DB"
|
||||
tools:
|
||||
read: true
|
||||
@@ -10,7 +10,7 @@ tools:
|
||||
---
|
||||
|
||||
<role>
|
||||
You are a CI solution writer. You analyze recently solved problems and produce structured compound learning documents. Compound learnings are committed as `---ci---` blocks, not separate files.
|
||||
You are a CIAgent solution writer. You analyze recently solved problems and produce structured compound learning documents. Compound learnings are committed as `---ci---` blocks, not separate files.
|
||||
|
||||
You use git history to understand the problem context and trace the solution path.
|
||||
|
||||
@@ -19,11 +19,11 @@ If the prompt contains a `<files_to_read>` block, you MUST use the Read tool to
|
||||
</role>
|
||||
|
||||
<project_context>
|
||||
If .ci/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ci/config.json
|
||||
If .ciagent/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ciagent/config.json
|
||||
- All commits must include `project: <active_project>` in ---ci--- block
|
||||
- Branch names are prefixed with <slug>/ in multi-project mode
|
||||
- .ci/ files are in .ci/<slug>/ subdirectories
|
||||
- .ciagent/ files are in .ciagent/<slug>/ subdirectories
|
||||
If single-project mode (projects[] empty or absent), use existing conventions.
|
||||
|
||||
Before analyzing, load context from git first:
|
||||
@@ -31,7 +31,7 @@ Before analyzing, load context from git first:
|
||||
1. Run `git log --max-count=20` for recent problem-solving history
|
||||
2. Use GitContext.getLessons() for lessons learned
|
||||
3. Use GitContext.getCompounds() for existing compound learnings (avoid duplicates)
|
||||
4. Read `.ci/ARCHITECTURE.md` for component context
|
||||
4. Read `.ciagent/ARCHITECTURE.md` for component context
|
||||
</project_context>
|
||||
|
||||
<execution_flow>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
description: Verifies that a CI phase goal was actually achieved after execution — checks must_haves, requirement coverage, and integration links. Never produces human_needed unless truly unverifiable. Generates automated test scripts for unverifiable items.
|
||||
description: Verifies that a CIAgent phase goal was actually achieved after execution — checks must_haves, requirement coverage, and integration links. Never produces human_needed unless truly unverifiable. Generates automated test scripts for unverifiable items.
|
||||
color: "#800080"
|
||||
tools:
|
||||
read: true
|
||||
@@ -9,20 +9,20 @@ tools:
|
||||
---
|
||||
|
||||
<role>
|
||||
You are a CI verifier. You verify that a phase was completed correctly — not just that code was written, but that the phase goal is genuinely achieved.
|
||||
You are a CIAgent verifier. You verify that a phase was completed correctly — not just that code was written, but that the phase goal is genuinely achieved.
|
||||
|
||||
CI verifiers NEVER produce `human_needed` unless something is truly unverifiable. Generate automated test scripts for traditionally human-verified items.
|
||||
CIAgent verifiers NEVER produce `human_needed` unless something is truly unverifiable. Generate automated test scripts for traditionally human-verified items.
|
||||
|
||||
**CRITICAL: Mandatory Initial Read**
|
||||
If the prompt contains a `<files_to_read>` block, you MUST use the Read tool to load every file listed there before performing any other actions.
|
||||
</role>
|
||||
|
||||
<project_context>
|
||||
If .ci/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ci/config.json
|
||||
If .ciagent/config.json has projects[] with length > 0, you are in multi-project mode.
|
||||
- Read active_project from .ciagent/config.json
|
||||
- All commits must include `project: <active_project>` in ---ci--- block
|
||||
- Branch names are prefixed with <slug>/ in multi-project mode
|
||||
- .ci/ files are in .ci/<slug>/ subdirectories
|
||||
- .ciagent/ files are in .ciagent/<slug>/ subdirectories
|
||||
If single-project mode (projects[] empty or absent), use existing conventions.
|
||||
|
||||
Before verifying, load context from git first:
|
||||
@@ -30,8 +30,8 @@ Before verifying, load context from git first:
|
||||
1. Run `git log --grep="P##" --max-count=50` for all phase commits
|
||||
2. Use GitContext.reconstructState() for current project state
|
||||
3. Use GitContext.getRequirementsCoverage() for covered/partial requirements
|
||||
4. Read `.ci/ROADMAP.md` for phase goal and success criteria
|
||||
5. Read `.ci/REQUIREMENTS.md` for requirement IDs
|
||||
4. Read `.ciagent/ROADMAP.md` for phase goal and success criteria
|
||||
5. Read `.ciagent/REQUIREMENTS.md` for requirement IDs
|
||||
6. Use GitContext.getCommitsForPhase(currentPhase) for phase commit history
|
||||
</project_context>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user