@plainconceptsplatform/agent-harness 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +426 -419
- package/package.json +3 -3
- package/src/commands/join.js +244 -244
- package/src/commands/shared.js +27 -27
- package/src/commands/single.js +79 -79
- package/src/commands/update.js +109 -109
- package/src/commands/wizard.js +134 -134
- package/src/content/.agents/skills/browser-automation/SKILL.md +66 -66
- package/src/content/.agents/skills/pc-guardrails-generic/SKILL.md +68 -68
- package/src/content/.agents/skills/pc-guardrails-project/SKILL.md +8 -8
- package/src/content/.agents/skills/pc-make-architecture/SKILL.md +51 -51
- package/src/content/.agents/skills/pc-make-architecture/structure-template.md +38 -38
- package/src/content/.agents/skills/pc-make-design/SKILL.md +68 -68
- package/src/content/.agents/skills/pc-make-engineer/SKILL.md +219 -219
- package/src/content/.agents/skills/pc-make-engineer/signal-mapping.md +68 -68
- package/src/content/.agents/skills/pc-make-engineer/template.md +81 -81
- package/src/content/.agents/skills/pc-make-evidence-scaffold/SKILL.md +18 -18
- package/src/content/.agents/skills/pc-make-evidence-scaffold/evidence-contract.md +29 -29
- package/src/content/.agents/skills/pc-make-guardrails/SKILL.md +74 -74
- package/src/content/.agents/skills/pc-make-guardrails/category-reference.md +68 -68
- package/src/content/.agents/skills/pc-make-merge-risk-assess/SKILL.md +70 -70
- package/src/content/.agents/skills/pc-make-merge-risk-assess/category-reference.md +98 -98
- package/src/content/.agents/skills/pc-make-user-model/SKILL.md +66 -66
- package/src/content/.agents/skills/pc-ops-evidence/SKILL.md +127 -127
- package/src/content/.agents/skills/pc-ops-ship/SKILL.md +18 -18
- package/src/content/.agents/skills/pc-plan-apply/SKILL.md +83 -83
- package/src/content/.agents/skills/pc-plan-apply/simple-mode.md +21 -21
- package/src/content/.agents/skills/pc-plan-archive/SKILL.md +63 -63
- package/src/content/.agents/skills/pc-plan-explore/SKILL.md +9 -9
- package/src/content/.agents/skills/pc-plan-goal/SKILL.md +94 -94
- package/src/content/.agents/skills/pc-plan-goal/branching.md +30 -30
- package/src/content/.agents/skills/pc-plan-goal/failure-policy.md +30 -30
- package/src/content/.agents/skills/pc-plan-goal/output-mode.md +9 -9
- package/src/content/.agents/skills/pc-plan-goal/output.md +68 -68
- package/src/content/.agents/skills/pc-plan-propose/SKILL.md +125 -125
- package/src/content/.agents/skills/pc-plan-propose/task-annotation.md +39 -39
- package/src/content/.agents/skills/pc-plan-quick/SKILL.md +62 -62
- package/src/content/.agents/skills/pc-plan-story/SKILL.md +146 -146
- package/src/content/.agents/skills/pc-repo-audit/SKILL.md +44 -44
- package/src/content/.agents/skills/pc-repo-help/SKILL.md +91 -91
- package/src/content/.agents/skills/pc-repo-initialize/SKILL.md +130 -130
- package/src/content/.agents/skills/pc-repo-onboard/SKILL.md +87 -87
- package/src/content/.agents/skills/pc-repo-verify/SKILL.md +34 -34
- package/src/content/.agents/skills/pc-userstory-az/SKILL.md +157 -157
- package/src/content/.agents/skills/pc-userstory-browser/SKILL.md +132 -132
- package/src/content/.agents/skills/pc-userstory-gh/SKILL.md +120 -120
- package/src/content/.agents/skills/pc-userstory-jira/SKILL.md +131 -131
- package/src/content/.opencode/_gitignore +9 -7
- package/src/content/.opencode/commands/init.md +5 -5
- package/src/content/.opencode/commands/make-architecture.md +5 -5
- package/src/content/.opencode/commands/make-design.md +5 -5
- package/src/content/.opencode/commands/make-engineer.md +5 -5
- package/src/content/.opencode/commands/make-evidence-scaffold.md +5 -5
- package/src/content/.opencode/commands/make-guardrails.md +5 -5
- package/src/content/.opencode/commands/make-user-model.md +5 -5
- package/src/content/.opencode/commands/ops-backlog.md +10 -10
- package/src/content/.opencode/commands/ops-evidence.md +9 -9
- package/src/content/.opencode/commands/ops-review.md +8 -8
- package/src/content/.opencode/commands/ops-ship.md +9 -9
- package/src/content/.opencode/commands/plan-apply.md +9 -9
- package/src/content/.opencode/commands/plan-archive.md +5 -5
- package/src/content/.opencode/commands/plan-explore.md +9 -9
- package/src/content/.opencode/commands/plan-goal.md +5 -5
- package/src/content/.opencode/commands/plan-propose.md +9 -9
- package/src/content/.opencode/commands/plan-quick.md +5 -5
- package/src/content/.opencode/commands/plan-story.md +9 -9
- package/src/content/.opencode/commands/repo-audit.md +5 -5
- package/src/content/.opencode/commands/repo-help.md +5 -5
- package/src/content/.opencode/commands/repo-initialize.md +5 -5
- package/src/content/.opencode/commands/repo-onboard.md +5 -5
- package/src/content/.opencode/commands/repo-verify.md +5 -5
- package/src/content/.opencode/plugins/pc-subagent-monitor.js +139 -139
- package/src/content/.opencode/plugins/pc-subagent-tiers.js +281 -179
- package/src/content/.opencode/plugins/pc-system-reminders.js +96 -96
- package/src/content/.opencode/tui/pc-subagents.tsx +98 -98
- package/src/content/.opencode/tui.json +6 -6
- package/src/content/AGENTS.md +71 -71
- package/src/content/opencode.jsonc +39 -31
- package/src/fragments/archive/az.md +95 -95
- package/src/fragments/archive/gh.md +94 -94
- package/src/fragments/archive/gl.md +94 -94
- package/src/fragments/archive/none.md +73 -73
- package/src/fragments/guardrails/codegraph.md +7 -7
- package/src/fragments/guardrails/humanizer.md +4 -4
- package/src/fragments/guardrails/memory.md +4 -4
- package/src/fragments/guardrails/rtk.md +3 -3
- package/src/fragments/guardrails/simple-english.md +4 -4
- package/src/fragments/ops-backlog/az.md +28 -28
- package/src/fragments/ops-backlog/gh.md +29 -29
- package/src/fragments/ops-backlog/jira.md +28 -28
- package/src/fragments/ops-evidence/az.md +41 -41
- package/src/fragments/ops-evidence/gh.md +53 -53
- package/src/fragments/ops-evidence/jira.md +38 -38
- package/src/fragments/ops-review/az.md +62 -62
- package/src/fragments/ops-review/gh.md +52 -52
- package/src/fragments/ops-review/gl.md +56 -56
- package/src/fragments/ops-ship/az.md +80 -80
- package/src/fragments/ops-ship/gh.md +68 -68
- package/src/fragments/ops-ship/gl.md +85 -85
- package/src/index.js +107 -107
- package/src/presets/agents-content.json +53 -53
- package/src/presets/models.json +68 -68
- package/src/steps/copy/agents.js +118 -118
- package/src/steps/copy/commands.js +91 -91
- package/src/steps/copy/fullstack-engineer.js +85 -83
- package/src/steps/copy/index.js +88 -88
- package/src/steps/copy/opencode-json.js +147 -129
- package/src/steps/copy/skills.js +196 -196
- package/src/steps/metadata/index.js +108 -108
- package/src/steps/models/write.js +34 -34
- package/src/steps/optimization/patch-guardrails.js +108 -108
- package/src/utils/copy.js +108 -108
- package/src/utils/legacy-check.js +30 -30
- package/src/utils/models-cache.js +58 -58
- package/src/utils/paths.js +67 -64
- package/src/utils/update-manifest.js +49 -49
- package/src/content/.opencode/plugins/pc-system-reminders.test.js +0 -35
|
@@ -1,130 +1,130 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: pc-repo-initialize
|
|
3
|
-
description: Initialize the project. Presents a single form with all setup questions, then executes selected steps. Invoked by the /init command (alias: /repo-initialize).
|
|
4
|
-
license: MIT
|
|
5
|
-
---
|
|
6
|
-
Check if `AGENTS.md` contains the `<!-- PC-NOT-INITIALIZED -->` marker.
|
|
7
|
-
|
|
8
|
-
- If no: tell the user the project is already initialized. Suggest running `/make-architecture` or `/make-design` if they want to refresh those docs.
|
|
9
|
-
- If yes: run the sequence below.
|
|
10
|
-
|
|
11
|
-
## Step 1: Ask everything at once
|
|
12
|
-
|
|
13
|
-
Call the `question` tool with all five questions in a single batch (do not ask them one at a time). Use exactly these fields:
|
|
14
|
-
|
|
15
|
-
```json
|
|
16
|
-
{
|
|
17
|
-
"questions": [
|
|
18
|
-
{
|
|
19
|
-
"header": "Type",
|
|
20
|
-
"question": "What type of project is this?",
|
|
21
|
-
"options": [
|
|
22
|
-
{ "label": "brownfield", "description": "Existing codebase. Generate docs from your code." },
|
|
23
|
-
{ "label": "greenfield", "description": "Starting from scratch, little or no existing code." }
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"header": "History",
|
|
28
|
-
"question": "Archive project history into OpenSpec?",
|
|
29
|
-
"options": [
|
|
30
|
-
{ "label": "Yes", "description": "Scan codebase for existing docs, changelogs, decisions and archive them." },
|
|
31
|
-
{ "label": "No", "description": "Skip history archival." }
|
|
32
|
-
]
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"header": "Architecture",
|
|
36
|
-
"question": "Generate ARCHITECTURE.md from the codebase?",
|
|
37
|
-
"options": [
|
|
38
|
-
{ "label": "Yes", "description": "Analyze project structure and generate architecture documentation." },
|
|
39
|
-
{ "label": "No", "description": "Skip, leave as placeholder." }
|
|
40
|
-
]
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"header": "Design",
|
|
44
|
-
"question": "Generate DESIGN.md from the design system?",
|
|
45
|
-
"options": [
|
|
46
|
-
{ "label": "Yes", "description": "Analyze Tailwind, CSS vars, tokens and generate design documentation." },
|
|
47
|
-
{ "label": "No", "description": "Skip, leave as placeholder." }
|
|
48
|
-
]
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"header": "Evidence",
|
|
52
|
-
"question": "Enable visual evidence capture for this project? (playwright-cli + pnpm run dev; no per-project scaffold needed)",
|
|
53
|
-
"options": [
|
|
54
|
-
{ "label": "Yes", "description": "Evidence will be captured automatically by /plan-goal using playwright-cli + pnpm run dev." },
|
|
55
|
-
{ "label": "No", "description": "Skip evidence capture." }
|
|
56
|
-
]
|
|
57
|
-
}
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
## Step 2: Execute selected steps
|
|
63
|
-
|
|
64
|
-
Based on the user's answers, run the selected steps in order:
|
|
65
|
-
|
|
66
|
-
### Sync skills (always)
|
|
67
|
-
|
|
68
|
-
Ensure all skills listed in `skills-lock.json` are installed. Run `npx skills experimental_install --yes` in the project root. This installs the core and selected optional skills queued by onboarding. If the command fails or is unavailable, warn the user but continue because optional skills can be installed manually later.
|
|
69
|
-
|
|
70
|
-
### Archive project history (if Yes)
|
|
71
|
-
|
|
72
|
-
Scan the codebase for existing documentation, changelogs, ADRs, README files, or notable history. Create an OpenSpec archive entry that captures this history.
|
|
73
|
-
|
|
74
|
-
Before scanning, load source roots from `.opencode/source-roots.json` when present. Only scan those roots plus this repo's docs/config files.
|
|
75
|
-
|
|
76
|
-
```bash
|
|
77
|
-
openspec new change "project-history"
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
Write a `proposal.md` inside that change summarizing:
|
|
81
|
-
- What this project is
|
|
82
|
-
- Key decisions already made (inferred from code and docs)
|
|
83
|
-
- Known tech debt or constraints visible in the codebase
|
|
84
|
-
- Current state of the project
|
|
85
|
-
|
|
86
|
-
Then archive it immediately (`-y` skips the confirmation prompt so this never blocks):
|
|
87
|
-
|
|
88
|
-
```bash
|
|
89
|
-
openspec archive "project-history" -y
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
### Generate ARCHITECTURE.md (if Yes)
|
|
93
|
-
|
|
94
|
-
Load the `pc-make-architecture` skill now. Follow every step defined in it.
|
|
95
|
-
|
|
96
|
-
### Generate DESIGN.md (if Yes)
|
|
97
|
-
|
|
98
|
-
Load the `pc-make-design` skill now. Follow every step defined in it.
|
|
99
|
-
|
|
100
|
-
### Generate guardrails (always)
|
|
101
|
-
|
|
102
|
-
Load the `pc-make-guardrails` skill now. Follow every step defined in it.
|
|
103
|
-
|
|
104
|
-
### Visual evidence (if Yes)
|
|
105
|
-
|
|
106
|
-
Evidence is built into the `pc-ops-evidence` skill using `playwright-cli` + `pnpm run dev`. No scaffold is needed — it works out of the box as long as the project has a root `pnpm run dev` script that starts the full app stack with mock auth. Ensure `playwright-cli` is installed (handled by `opencode-ci.md` in CI).
|
|
107
|
-
|
|
108
|
-
## Step 3: Show help
|
|
109
|
-
|
|
110
|
-
Load the `pc-repo-help` skill and display the full command reference exactly as written.
|
|
111
|
-
|
|
112
|
-
## Step 4: Confirm
|
|
113
|
-
|
|
114
|
-
Tell the user:
|
|
115
|
-
|
|
116
|
-
```
|
|
117
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
118
|
-
Initialization complete.
|
|
119
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
120
|
-
|
|
121
|
-
Restart OpenCode now.
|
|
122
|
-
Nothing will work correctly until you do.
|
|
123
|
-
After restarting you are ready to work.
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
If the user answered Yes to Question 5 (Evidence), no post-init step is needed. Evidence works automatically via `pc-ops-evidence` using `playwright-cli` + `pnpm run dev`.
|
|
127
|
-
|
|
128
|
-
## Init scope
|
|
129
|
-
|
|
130
|
-
During init, write only to: ARCHITECTURE.md, DESIGN.md, AGENTS.md, openspec/, .agents/skills/. Read source files for analysis. Feature implementation, branches, PRs, and project source file modification are outside init's scope.
|
|
1
|
+
---
|
|
2
|
+
name: pc-repo-initialize
|
|
3
|
+
description: Initialize the project. Presents a single form with all setup questions, then executes selected steps. Invoked by the /init command (alias: /repo-initialize).
|
|
4
|
+
license: MIT
|
|
5
|
+
---
|
|
6
|
+
Check if `AGENTS.md` contains the `<!-- PC-NOT-INITIALIZED -->` marker.
|
|
7
|
+
|
|
8
|
+
- If no: tell the user the project is already initialized. Suggest running `/make-architecture` or `/make-design` if they want to refresh those docs.
|
|
9
|
+
- If yes: run the sequence below.
|
|
10
|
+
|
|
11
|
+
## Step 1: Ask everything at once
|
|
12
|
+
|
|
13
|
+
Call the `question` tool with all five questions in a single batch (do not ask them one at a time). Use exactly these fields:
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"questions": [
|
|
18
|
+
{
|
|
19
|
+
"header": "Type",
|
|
20
|
+
"question": "What type of project is this?",
|
|
21
|
+
"options": [
|
|
22
|
+
{ "label": "brownfield", "description": "Existing codebase. Generate docs from your code." },
|
|
23
|
+
{ "label": "greenfield", "description": "Starting from scratch, little or no existing code." }
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"header": "History",
|
|
28
|
+
"question": "Archive project history into OpenSpec?",
|
|
29
|
+
"options": [
|
|
30
|
+
{ "label": "Yes", "description": "Scan codebase for existing docs, changelogs, decisions and archive them." },
|
|
31
|
+
{ "label": "No", "description": "Skip history archival." }
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"header": "Architecture",
|
|
36
|
+
"question": "Generate ARCHITECTURE.md from the codebase?",
|
|
37
|
+
"options": [
|
|
38
|
+
{ "label": "Yes", "description": "Analyze project structure and generate architecture documentation." },
|
|
39
|
+
{ "label": "No", "description": "Skip, leave as placeholder." }
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"header": "Design",
|
|
44
|
+
"question": "Generate DESIGN.md from the design system?",
|
|
45
|
+
"options": [
|
|
46
|
+
{ "label": "Yes", "description": "Analyze Tailwind, CSS vars, tokens and generate design documentation." },
|
|
47
|
+
{ "label": "No", "description": "Skip, leave as placeholder." }
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"header": "Evidence",
|
|
52
|
+
"question": "Enable visual evidence capture for this project? (playwright-cli + pnpm run dev; no per-project scaffold needed)",
|
|
53
|
+
"options": [
|
|
54
|
+
{ "label": "Yes", "description": "Evidence will be captured automatically by /plan-goal using playwright-cli + pnpm run dev." },
|
|
55
|
+
{ "label": "No", "description": "Skip evidence capture." }
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Step 2: Execute selected steps
|
|
63
|
+
|
|
64
|
+
Based on the user's answers, run the selected steps in order:
|
|
65
|
+
|
|
66
|
+
### Sync skills (always)
|
|
67
|
+
|
|
68
|
+
Ensure all skills listed in `skills-lock.json` are installed. Run `npx skills experimental_install --yes` in the project root. This installs the core and selected optional skills queued by onboarding. If the command fails or is unavailable, warn the user but continue because optional skills can be installed manually later.
|
|
69
|
+
|
|
70
|
+
### Archive project history (if Yes)
|
|
71
|
+
|
|
72
|
+
Scan the codebase for existing documentation, changelogs, ADRs, README files, or notable history. Create an OpenSpec archive entry that captures this history.
|
|
73
|
+
|
|
74
|
+
Before scanning, load source roots from `.opencode/source-roots.json` when present. Only scan those roots plus this repo's docs/config files.
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
openspec new change "project-history"
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Write a `proposal.md` inside that change summarizing:
|
|
81
|
+
- What this project is
|
|
82
|
+
- Key decisions already made (inferred from code and docs)
|
|
83
|
+
- Known tech debt or constraints visible in the codebase
|
|
84
|
+
- Current state of the project
|
|
85
|
+
|
|
86
|
+
Then archive it immediately (`-y` skips the confirmation prompt so this never blocks):
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
openspec archive "project-history" -y
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Generate ARCHITECTURE.md (if Yes)
|
|
93
|
+
|
|
94
|
+
Load the `pc-make-architecture` skill now. Follow every step defined in it.
|
|
95
|
+
|
|
96
|
+
### Generate DESIGN.md (if Yes)
|
|
97
|
+
|
|
98
|
+
Load the `pc-make-design` skill now. Follow every step defined in it.
|
|
99
|
+
|
|
100
|
+
### Generate guardrails (always)
|
|
101
|
+
|
|
102
|
+
Load the `pc-make-guardrails` skill now. Follow every step defined in it.
|
|
103
|
+
|
|
104
|
+
### Visual evidence (if Yes)
|
|
105
|
+
|
|
106
|
+
Evidence is built into the `pc-ops-evidence` skill using `playwright-cli` + `pnpm run dev`. No scaffold is needed — it works out of the box as long as the project has a root `pnpm run dev` script that starts the full app stack with mock auth. Ensure `playwright-cli` is installed (handled by `opencode-ci.md` in CI).
|
|
107
|
+
|
|
108
|
+
## Step 3: Show help
|
|
109
|
+
|
|
110
|
+
Load the `pc-repo-help` skill and display the full command reference exactly as written.
|
|
111
|
+
|
|
112
|
+
## Step 4: Confirm
|
|
113
|
+
|
|
114
|
+
Tell the user:
|
|
115
|
+
|
|
116
|
+
```
|
|
117
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
118
|
+
Initialization complete.
|
|
119
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
120
|
+
|
|
121
|
+
Restart OpenCode now.
|
|
122
|
+
Nothing will work correctly until you do.
|
|
123
|
+
After restarting you are ready to work.
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
If the user answered Yes to Question 5 (Evidence), no post-init step is needed. Evidence works automatically via `pc-ops-evidence` using `playwright-cli` + `pnpm run dev`.
|
|
127
|
+
|
|
128
|
+
## Init scope
|
|
129
|
+
|
|
130
|
+
During init, write only to: ARCHITECTURE.md, DESIGN.md, AGENTS.md, openspec/, .agents/skills/. Read source files for analysis. Feature implementation, branches, PRs, and project source file modification are outside init's scope.
|
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: pc-repo-onboard
|
|
3
|
-
description: Walk the user through the project and its agentic infrastructure. Explains what exists, how agents work, and how to use the system. Invoked by the /repo-onboard command.
|
|
4
|
-
license: MIT
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
This command is a guided tour. Read and explain only.
|
|
8
|
-
|
|
9
|
-
## Step 1: Project overview
|
|
10
|
-
|
|
11
|
-
Read `AGENTS.md`, `ARCHITECTURE.md`, and `DESIGN.md`. Summarize:
|
|
12
|
-
|
|
13
|
-
- What this project is (name, purpose, domain)
|
|
14
|
-
- Tech stack (languages, frameworks, build system)
|
|
15
|
-
- Project structure (key directories and what they contain)
|
|
16
|
-
|
|
17
|
-
Keep it to 3 to 5 bullet points. Focus on what a new contributor needs to know.
|
|
18
|
-
|
|
19
|
-
## Step 2: Agent infrastructure
|
|
20
|
-
|
|
21
|
-
Inspect `.opencode/agents/` and list every agent file. For each agent, read its frontmatter and summarize:
|
|
22
|
-
|
|
23
|
-
- Agent name and role (primary, subagent, or specialist)
|
|
24
|
-
- Model tier it uses (plan, build, or fast)
|
|
25
|
-
- Key abilities: what it can do
|
|
26
|
-
|
|
27
|
-
Present as a table:
|
|
28
|
-
|
|
29
|
-
| Agent | Role | Tier | Purpose |
|
|
30
|
-
|---|---|---|---|
|
|
31
|
-
| ... | ... | ... | ... |
|
|
32
|
-
|
|
33
|
-
Then explain the agent selection model:
|
|
34
|
-
- Primary agents appear in Tab and handle direct user interaction
|
|
35
|
-
- Subagent engineers are spawned by the lead for parallel implementation waves
|
|
36
|
-
- Specialist engineers are preferred when their domain matches the task
|
|
37
|
-
|
|
38
|
-
## Step 3: Command reference
|
|
39
|
-
|
|
40
|
-
Read every `.md` file in `.opencode/commands/`. List each command with its name and description:
|
|
41
|
-
|
|
42
|
-
| Command | What it does |
|
|
43
|
-
|---|---|
|
|
44
|
-
| ... | ... |
|
|
45
|
-
|
|
46
|
-
Group them by workflow phase if possible:
|
|
47
|
-
- Planning: plan-explore, plan-story, plan-propose, plan-quick, plan-goal
|
|
48
|
-
- Implementation: plan-apply, plan-archive
|
|
49
|
-
- Maintenance: make-architecture, make-design, make-engineer, make-guardrails, make-evidence-scaffold
|
|
50
|
-
- Shipping: ops-ship, ops-review, ops-backlog, ops-evidence
|
|
51
|
-
- Quality: repo-audit, repo-verify
|
|
52
|
-
- Setup: init, make-user-model, repo-help
|
|
53
|
-
|
|
54
|
-
## Step 4: Skills
|
|
55
|
-
|
|
56
|
-
Inspect `.agents/skills/` (if present). List installed skills with a one-line description each. Note which are platform-specific (userstory, pullrequest) vs general-purpose, and identify `pc-repo-audit` as read-only and `pc-repo-verify` as the current-branch verification gate.
|
|
57
|
-
|
|
58
|
-
## Step 5: OpenSpec workflow
|
|
59
|
-
|
|
60
|
-
Explain the OpenSpec change lifecycle:
|
|
61
|
-
|
|
62
|
-
1. Explore (`/plan-explore`): investigate and discuss, no files created
|
|
63
|
-
2. Propose (`/plan-propose`): structured plan, saved to `openspec/changes/`
|
|
64
|
-
3. Apply (`/plan-apply`): implement tasks via parallel subagent waves
|
|
65
|
-
4. Archive (`/plan-archive`): finalize and clean up
|
|
66
|
-
|
|
67
|
-
Explain `openspec/config.yaml`: what it contains and why it matters.
|
|
68
|
-
|
|
69
|
-
## Step 6: Configuration
|
|
70
|
-
|
|
71
|
-
Explain `harness.json`:
|
|
72
|
-
- What each field controls (platform, models, agents, tools, source)
|
|
73
|
-
- How to change the model for a tier (`/make-user-model`)
|
|
74
|
-
- What `agents.maxConcurrent` does
|
|
75
|
-
|
|
76
|
-
## Step 7: Quick tips
|
|
77
|
-
|
|
78
|
-
End with 3 to 5 practical tips:
|
|
79
|
-
|
|
80
|
-
- How to start working: "Run `/plan-goal` with a description of what you want to build"
|
|
81
|
-
- How to add a specialist: "Run `/make-engineer`"
|
|
82
|
-
- How to regenerate docs: "Run `/make-architecture` or `/make-design`"
|
|
83
|
-
- How to audit the whole repository: "Run `/repo-audit`"
|
|
84
|
-
- How to verify an active branch: "Run `/repo-verify`"
|
|
85
|
-
- How to set up visual evidence: "Run `/make-evidence-scaffold` (UI projects) so `/plan-goal` can prove changes with screenshots"
|
|
86
|
-
- How to see all commands: "Run `/repo-help`"
|
|
87
|
-
- How to refresh config after changes: "Re-run `npx @plainconceptsplatform/agent-harness` in the terminal"
|
|
1
|
+
---
|
|
2
|
+
name: pc-repo-onboard
|
|
3
|
+
description: Walk the user through the project and its agentic infrastructure. Explains what exists, how agents work, and how to use the system. Invoked by the /repo-onboard command.
|
|
4
|
+
license: MIT
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
This command is a guided tour. Read and explain only.
|
|
8
|
+
|
|
9
|
+
## Step 1: Project overview
|
|
10
|
+
|
|
11
|
+
Read `AGENTS.md`, `ARCHITECTURE.md`, and `DESIGN.md`. Summarize:
|
|
12
|
+
|
|
13
|
+
- What this project is (name, purpose, domain)
|
|
14
|
+
- Tech stack (languages, frameworks, build system)
|
|
15
|
+
- Project structure (key directories and what they contain)
|
|
16
|
+
|
|
17
|
+
Keep it to 3 to 5 bullet points. Focus on what a new contributor needs to know.
|
|
18
|
+
|
|
19
|
+
## Step 2: Agent infrastructure
|
|
20
|
+
|
|
21
|
+
Inspect `.opencode/agents/` and list every agent file. For each agent, read its frontmatter and summarize:
|
|
22
|
+
|
|
23
|
+
- Agent name and role (primary, subagent, or specialist)
|
|
24
|
+
- Model tier it uses (plan, build, or fast)
|
|
25
|
+
- Key abilities: what it can do
|
|
26
|
+
|
|
27
|
+
Present as a table:
|
|
28
|
+
|
|
29
|
+
| Agent | Role | Tier | Purpose |
|
|
30
|
+
|---|---|---|---|
|
|
31
|
+
| ... | ... | ... | ... |
|
|
32
|
+
|
|
33
|
+
Then explain the agent selection model:
|
|
34
|
+
- Primary agents appear in Tab and handle direct user interaction
|
|
35
|
+
- Subagent engineers are spawned by the lead for parallel implementation waves
|
|
36
|
+
- Specialist engineers are preferred when their domain matches the task. `build` and `plan` are the only agents the user selects, and both run the `fullstack-engineer` body; `plan` cannot edit files. Everything else is `mode: subagent` and spawned. If no specialist matches, create one with `/make-engineer`.
|
|
37
|
+
|
|
38
|
+
## Step 3: Command reference
|
|
39
|
+
|
|
40
|
+
Read every `.md` file in `.opencode/commands/`. List each command with its name and description:
|
|
41
|
+
|
|
42
|
+
| Command | What it does |
|
|
43
|
+
|---|---|
|
|
44
|
+
| ... | ... |
|
|
45
|
+
|
|
46
|
+
Group them by workflow phase if possible:
|
|
47
|
+
- Planning: plan-explore, plan-story, plan-propose, plan-quick, plan-goal
|
|
48
|
+
- Implementation: plan-apply, plan-archive
|
|
49
|
+
- Maintenance: make-architecture, make-design, make-engineer, make-guardrails, make-evidence-scaffold
|
|
50
|
+
- Shipping: ops-ship, ops-review, ops-backlog, ops-evidence
|
|
51
|
+
- Quality: repo-audit, repo-verify
|
|
52
|
+
- Setup: init, make-user-model, repo-help
|
|
53
|
+
|
|
54
|
+
## Step 4: Skills
|
|
55
|
+
|
|
56
|
+
Inspect `.agents/skills/` (if present). List installed skills with a one-line description each. Note which are platform-specific (userstory, pullrequest) vs general-purpose, and identify `pc-repo-audit` as read-only and `pc-repo-verify` as the current-branch verification gate.
|
|
57
|
+
|
|
58
|
+
## Step 5: OpenSpec workflow
|
|
59
|
+
|
|
60
|
+
Explain the OpenSpec change lifecycle:
|
|
61
|
+
|
|
62
|
+
1. Explore (`/plan-explore`): investigate and discuss, no files created
|
|
63
|
+
2. Propose (`/plan-propose`): structured plan, saved to `openspec/changes/`
|
|
64
|
+
3. Apply (`/plan-apply`): implement tasks via parallel subagent waves
|
|
65
|
+
4. Archive (`/plan-archive`): finalize and clean up
|
|
66
|
+
|
|
67
|
+
Explain `openspec/config.yaml`: what it contains and why it matters.
|
|
68
|
+
|
|
69
|
+
## Step 6: Configuration
|
|
70
|
+
|
|
71
|
+
Explain `harness.json`:
|
|
72
|
+
- What each field controls (platform, models, agents, tools, source)
|
|
73
|
+
- How to change the model for a tier (`/make-user-model`)
|
|
74
|
+
- What `agents.maxConcurrent` does
|
|
75
|
+
|
|
76
|
+
## Step 7: Quick tips
|
|
77
|
+
|
|
78
|
+
End with 3 to 5 practical tips:
|
|
79
|
+
|
|
80
|
+
- How to start working: "Run `/plan-goal` with a description of what you want to build"
|
|
81
|
+
- How to add a specialist: "Run `/make-engineer`"
|
|
82
|
+
- How to regenerate docs: "Run `/make-architecture` or `/make-design`"
|
|
83
|
+
- How to audit the whole repository: "Run `/repo-audit`"
|
|
84
|
+
- How to verify an active branch: "Run `/repo-verify`"
|
|
85
|
+
- How to set up visual evidence: "Run `/make-evidence-scaffold` (UI projects) so `/plan-goal` can prove changes with screenshots"
|
|
86
|
+
- How to see all commands: "Run `/repo-help`"
|
|
87
|
+
- How to refresh config after changes: "Re-run `npx @plainconceptsplatform/agent-harness` in the terminal"
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: pc-repo-verify
|
|
3
|
-
description: Verify and repair current-branch changes using applicable fullstack engineer abilities, project checks, and dependency rules. Invoked by /repo-verify and the plan-goal pipeline.
|
|
4
|
-
license: MIT
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Repo Verify
|
|
8
|
-
|
|
9
|
-
Verify the current branch before it is archived, shipped, or handed to an external automation gate. Work only on the current branch: do not switch branches, push, create pull requests or backlog items, or contact external platforms.
|
|
10
|
-
|
|
11
|
-
## Step 1: Load verification rules
|
|
12
|
-
|
|
13
|
-
1. Read `.opencode/agents/fullstack-engineer.md`.
|
|
14
|
-
2. Parse every `@skill-name` in its `## Abilities` section.
|
|
15
|
-
3. Load every listed skill, guardrails first. A missing referenced skill is a verification failure; report it and do not claim `VERIFIED`.
|
|
16
|
-
|
|
17
|
-
## Step 2: Determine changed scope
|
|
18
|
-
|
|
19
|
-
1. Read `.opencode/source-roots.json` when it exists. Use its non-empty `roots` array; otherwise use the repository root.
|
|
20
|
-
2. Inspect `git diff` against the branch base and the working tree. Map every changed path to a configured root and discovered project.
|
|
21
|
-
3. Discover every project in every configured source root. Read each project's manifest, scripts, test configuration, CI configuration, and applicable guardrail instructions.
|
|
22
|
-
4. Build a check matrix. Include every discovered project's repository-defined immutable dependency install or restore command, build command, and test command, even when that project is untouched. Add changed-scope lint, typecheck, migration, generated-artifact, documentation, evidence, and required repository-wide checks from loaded guardrails.
|
|
23
|
-
|
|
24
|
-
## Step 3: Verify and repair
|
|
25
|
-
|
|
26
|
-
Run every discovered project's repository-defined immutable dependency install or restore command, build command, and test command. Run the changed-scope lint, typecheck, migration, generated-artifact, documentation, and evidence checks. A project without one of those commands is the only allowed skip, and the report must name the missing command.
|
|
27
|
-
|
|
28
|
-
When a dependency manifest changes, require its ecosystem lockfile to change when the package manager uses one. The dependency install or restore command must validate that lockfile without mutating it.
|
|
29
|
-
|
|
30
|
-
When a check fails, repair only the current branch's relevant files and rerun the failed check. Continue until every applicable check passes or a hard blocker prevents progress. Never hide a failure by deleting tests, weakening checks, or reverting requested work.
|
|
31
|
-
|
|
32
|
-
## Step 4: Result
|
|
33
|
-
|
|
34
|
-
Report a check matrix with command, affected project, result, and skip reason where applicable. Report `VERIFIED` only when every applicable check passed, every dependency change has consistent lockfiles, and no required ability is missing. Otherwise report `NOT VERIFIED`, the blockers, and the exact next command.
|
|
1
|
+
---
|
|
2
|
+
name: pc-repo-verify
|
|
3
|
+
description: Verify and repair current-branch changes using applicable fullstack engineer abilities, project checks, and dependency rules. Invoked by /repo-verify and the plan-goal pipeline.
|
|
4
|
+
license: MIT
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Repo Verify
|
|
8
|
+
|
|
9
|
+
Verify the current branch before it is archived, shipped, or handed to an external automation gate. Work only on the current branch: do not switch branches, push, create pull requests or backlog items, or contact external platforms.
|
|
10
|
+
|
|
11
|
+
## Step 1: Load verification rules
|
|
12
|
+
|
|
13
|
+
1. Read `.opencode/agents/fullstack-engineer.md`.
|
|
14
|
+
2. Parse every `@skill-name` in its `## Abilities` section.
|
|
15
|
+
3. Load every listed skill, guardrails first. A missing referenced skill is a verification failure; report it and do not claim `VERIFIED`.
|
|
16
|
+
|
|
17
|
+
## Step 2: Determine changed scope
|
|
18
|
+
|
|
19
|
+
1. Read `.opencode/source-roots.json` when it exists. Use its non-empty `roots` array; otherwise use the repository root.
|
|
20
|
+
2. Inspect `git diff` against the branch base and the working tree. Map every changed path to a configured root and discovered project.
|
|
21
|
+
3. Discover every project in every configured source root. Read each project's manifest, scripts, test configuration, CI configuration, and applicable guardrail instructions.
|
|
22
|
+
4. Build a check matrix. Include every discovered project's repository-defined immutable dependency install or restore command, build command, and test command, even when that project is untouched. Add changed-scope lint, typecheck, migration, generated-artifact, documentation, evidence, and required repository-wide checks from loaded guardrails.
|
|
23
|
+
|
|
24
|
+
## Step 3: Verify and repair
|
|
25
|
+
|
|
26
|
+
Run every discovered project's repository-defined immutable dependency install or restore command, build command, and test command. Run the changed-scope lint, typecheck, migration, generated-artifact, documentation, and evidence checks. A project without one of those commands is the only allowed skip, and the report must name the missing command.
|
|
27
|
+
|
|
28
|
+
When a dependency manifest changes, require its ecosystem lockfile to change when the package manager uses one. The dependency install or restore command must validate that lockfile without mutating it.
|
|
29
|
+
|
|
30
|
+
When a check fails, repair only the current branch's relevant files and rerun the failed check. Continue until every applicable check passes or a hard blocker prevents progress. Never hide a failure by deleting tests, weakening checks, or reverting requested work.
|
|
31
|
+
|
|
32
|
+
## Step 4: Result
|
|
33
|
+
|
|
34
|
+
Report a check matrix with command, affected project, result, and skip reason where applicable. Report `VERIFIED` only when every applicable check passed, every dependency change has consistent lockfiles, and no required ability is missing. Otherwise report `NOT VERIFIED`, the blockers, and the exact next command.
|