@plainconceptsplatform/agent-harness 2.4.1 → 2.5.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 +435 -437
- package/cli/fragments/archive/az.md +97 -95
- package/cli/fragments/archive/gh.md +96 -94
- package/cli/fragments/archive/gl.md +96 -94
- package/cli/fragments/archive/none.md +75 -73
- package/cli/fragments/guardrails/codegraph.md +5 -7
- package/cli/fragments/guardrails/humanizer.md +4 -4
- package/cli/fragments/guardrails/memory.md +4 -4
- package/cli/fragments/guardrails/rtk.md +3 -3
- package/cli/fragments/guardrails/simple-english.md +4 -4
- package/cli/fragments/ops-backlog/az.md +1 -1
- package/cli/fragments/ops-backlog/gh.md +1 -1
- package/cli/fragments/ops-backlog/jira.md +1 -1
- package/cli/fragments/ops-evidence/az.md +44 -41
- package/cli/fragments/ops-evidence/gh.md +54 -53
- package/cli/fragments/ops-evidence/jira.md +42 -38
- package/cli/fragments/ops-review/az.md +1 -1
- package/cli/fragments/ops-review/gh.md +1 -1
- package/cli/fragments/ops-review/gl.md +1 -1
- package/cli/fragments/ops-ship/az.md +81 -80
- package/cli/fragments/ops-ship/gh.md +68 -68
- package/cli/fragments/ops-ship/gl.md +85 -85
- package/cli/presets/agents-content.json +34 -53
- package/cli/steps/copy/agents.js +18 -17
- package/cli/steps/copy/opencode-json.js +5 -1
- package/cli/steps/copy/skills.js +98 -5
- package/cli/steps/optimization/patch-guardrails.js +5 -3
- package/cli/utils/copy.js +8 -3
- package/cli/utils/update-manifest.js +28 -2
- package/harness/.agents/skills/pc-guardrails-generic/SKILL.md +47 -68
- package/harness/.agents/skills/pc-make-architecture/SKILL.md +31 -51
- package/harness/.agents/skills/pc-make-design/SKILL.md +45 -68
- package/harness/.agents/skills/pc-make-engineer/SKILL.md +59 -219
- package/harness/.agents/skills/pc-make-engineer/signal-mapping.md +53 -68
- package/harness/.agents/skills/pc-make-engineer/template.md +42 -80
- package/harness/.agents/skills/pc-make-evidence-scaffold/SKILL.md +18 -18
- package/harness/.agents/skills/pc-make-evidence-scaffold/evidence-contract.md +29 -29
- package/harness/.agents/skills/pc-make-guardrails/SKILL.md +43 -74
- package/harness/.agents/skills/pc-make-guardrails/category-reference.md +10 -5
- package/harness/.agents/skills/pc-make-merge-risk-assess/category-reference.md +26 -7
- package/harness/.agents/skills/pc-make-user-model/SKILL.md +56 -66
- package/harness/.agents/skills/pc-ops-evidence/SKILL.md +133 -127
- package/harness/.agents/skills/pc-plan-apply/SKILL.md +14 -5
- package/harness/.agents/skills/pc-plan-apply/simple-mode.md +21 -21
- package/harness/.agents/skills/pc-plan-archive/SKILL.md +66 -66
- package/harness/.agents/skills/pc-plan-explore/SKILL.md +19 -2
- package/harness/.agents/skills/pc-plan-goal/SKILL.md +7 -5
- package/harness/.agents/skills/pc-plan-goal/output-mode.md +1 -0
- package/harness/.agents/skills/pc-plan-goal/output.md +71 -65
- package/harness/.agents/skills/pc-plan-propose/SKILL.md +1 -1
- package/harness/.agents/skills/pc-plan-quick/SKILL.md +46 -62
- package/harness/.agents/skills/pc-plan-story/SKILL.md +48 -149
- package/harness/.agents/skills/pc-repo-help/SKILL.md +89 -91
- package/harness/.agents/skills/pc-repo-initialize/SKILL.md +112 -130
- package/harness/.agents/skills/pc-repo-onboard/SKILL.md +32 -87
- package/harness/.agents/skills/pc-repo-verify/SKILL.md +2 -0
- package/harness/.agents/skills/pc-userstory-az/SKILL.md +71 -157
- package/harness/.agents/skills/pc-userstory-browser/SKILL.md +50 -122
- package/harness/.agents/skills/pc-userstory-gh/SKILL.md +63 -120
- package/harness/.agents/skills/pc-userstory-jira/SKILL.md +74 -131
- package/harness/.opencode/commands/init.md +5 -5
- package/harness/.opencode/commands/make-architecture.md +5 -5
- package/harness/.opencode/commands/make-design.md +5 -5
- package/harness/.opencode/commands/make-engineer.md +5 -5
- package/harness/.opencode/commands/make-evidence-scaffold.md +5 -5
- package/harness/.opencode/commands/make-guardrails.md +5 -5
- package/harness/.opencode/commands/make-user-model.md +5 -5
- package/harness/.opencode/commands/plan-apply.md +9 -9
- package/harness/.opencode/commands/plan-goal.md +5 -5
- package/harness/.opencode/commands/plan-quick.md +5 -5
- package/harness/.opencode/commands/plan-story.md +9 -9
- package/harness/.opencode/commands/repo-audit.md +5 -5
- package/harness/.opencode/commands/repo-initialize.md +5 -5
- package/harness/.opencode/commands/repo-onboard.md +5 -5
- package/harness/.opencode/commands/repo-verify.md +5 -5
- package/harness/.opencode/plugins/pc-subagent-monitor.js +82 -2
- package/harness/.opencode/plugins/pc-subagent-tiers.js +9 -6
- package/harness/.opencode/plugins/pc-system-reminders.js +312 -3
- package/harness/AGENTS.md +49 -71
- package/harness/opencode.jsonc +1 -1
- package/package.json +1 -1
|
@@ -1,81 +1,82 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
git
|
|
29
|
-
git
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
--
|
|
38
|
-
--
|
|
39
|
-
--
|
|
40
|
-
--
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
--
|
|
63
|
-
--
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
1
|
+
Azure DevOps data comes from the `az` CLI; a page fetch of dev.azure.com is denied (pc-system-reminders). If `az` is unavailable, report it as a blocker. Browser tools reach only the local app on `localhost`.
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
### Step 1: Verify feature branch
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
git branch --show-current
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Branch must be `feature/{id}-{slug}`. NEVER push to `main`.
|
|
12
|
+
|
|
13
|
+
### Step 2: Capture screenshots (if UI changes exist)
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
browser_navigate url="http://localhost:{port}/{route}"
|
|
17
|
+
browser_wait ms=2000
|
|
18
|
+
browser_screenshot
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Save to: `openspec/changes/{change-name}/images/{feature}.png`
|
|
22
|
+
|
|
23
|
+
### Step 3: Commit and push
|
|
24
|
+
|
|
25
|
+
The `pc-plan-apply` skill already committed each task group: usually only screenshots or small residuals remain. Stage the paths you actually changed; unscoped staging is denied (`pc-system-reminders`):
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
git add openspec/changes/{change-name}/images/ # plus any other paths you actually changed
|
|
29
|
+
git commit -m "feat({scope}): {description} (#{id})"
|
|
30
|
+
git push origin feature/{id}-{slug}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Step 4: Create PR
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
az repos pr create \
|
|
37
|
+
--repository {repo} \
|
|
38
|
+
--source-branch feature/{id}-{slug} \
|
|
39
|
+
--target-branch main \
|
|
40
|
+
--title "feat({scope}): {title} (#{id})" \
|
|
41
|
+
--description "{description}"
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Step 5: Link work item (MANDATORY, run sequentially, not in parallel)
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
az repos pr work-item add --id {pr-id} --work-items {workitem-id}
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Step 6: Post screenshot comment
|
|
51
|
+
|
|
52
|
+
Build raw URL for each image:
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
https://dev.azure.com/{org}/{project}/_apis/git/repositories/{repo}/items?path=openspec/changes/{change}/images/{file}.png&versionType=branch&version={branch}&api-version=7.1
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Post via:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
az devops invoke \
|
|
62
|
+
--area git --resource pullRequestThreads \
|
|
63
|
+
--route-parameters project={project} repositoryId={repo} pullRequestId={pr-id} \
|
|
64
|
+
--http-method POST --api-version 7.1 --in-file body.json
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
`body.json`:
|
|
68
|
+
|
|
69
|
+
```json
|
|
70
|
+
{
|
|
71
|
+
"comments": [
|
|
72
|
+
{
|
|
73
|
+
"parentCommentId": 0,
|
|
74
|
+
"content": "## Screenshots\n\n",
|
|
75
|
+
"commentType": 1
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"status": "active"
|
|
79
|
+
}
|
|
80
|
+
```
|
|
81
|
+
|
|
81
82
|
---
|
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
|
|
2
|
-
Always pass `--repo {owner}/{repo}` explicitly, never rely on git context to resolve the repo.
|
|
3
|
-
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
### Step 1: Verify feature branch
|
|
7
|
-
|
|
8
|
-
```bash
|
|
9
|
-
BRANCH="$(git branch --show-current)"
|
|
10
|
-
DEFAULT_BRANCH="$(git symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null | sed 's|^origin/||')"
|
|
11
|
-
[ -z "$DEFAULT_BRANCH" ] && DEFAULT_BRANCH="main"
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
`$BRANCH` must be a work branch (`feature/*` or `bugfix/*`: the `pc-plan-apply` skill creates `feature/{change-slug}`).
|
|
15
|
-
|
|
16
|
-
### Step 2: Capture screenshots (if UI changes exist)
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
browser_navigate url="http://localhost:{port}/{route}"
|
|
20
|
-
browser_wait ms=2000
|
|
21
|
-
browser_screenshot
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
Save to: `openspec/changes/{change-name}/images/{feature}.png`
|
|
25
|
-
|
|
26
|
-
### Step 3: Commit and push
|
|
27
|
-
|
|
28
|
-
The `pc-plan-apply` skill already committed each task group: usually only screenshots or small residuals remain. Stage
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
git add openspec/changes/{change-name}/images/ # plus any other paths you actually changed
|
|
32
|
-
git commit -m "feat({scope}): {description} (#{id})" # only if there is something to commit
|
|
33
|
-
git push -u origin "$BRANCH"
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
### Step 4: Create PR
|
|
37
|
-
|
|
38
|
-
```bash
|
|
39
|
-
gh pr create \
|
|
40
|
-
--repo {owner}/{repo} \
|
|
41
|
-
--base "$DEFAULT_BRANCH" \
|
|
42
|
-
--head "$BRANCH" \
|
|
43
|
-
--title "feat({scope}): {title} (#{id})" \
|
|
44
|
-
--body "{description}"
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
### Step 5: Post screenshot comment
|
|
48
|
-
|
|
49
|
-
Resolve commit SHA (the commit that includes screenshots):
|
|
50
|
-
|
|
51
|
-
```bash
|
|
52
|
-
git rev-parse HEAD
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
Build blob URL for each image with `?raw=true` (a plain blob URL renders the GitHub HTML page, not the image, inside `![...]()`):
|
|
56
|
-
|
|
57
|
-
```
|
|
58
|
-
https://github.com/{owner}/{repo}/blob/{sha}/openspec/changes/{change}/images/{file}.png?raw=true
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
Note: on private repos the embedded image is only visible to users with repo access.
|
|
62
|
-
|
|
63
|
-
Post comment:
|
|
64
|
-
|
|
65
|
-
```bash
|
|
66
|
-
gh pr comment {pr-number} --repo {owner}/{repo} --body $'## Screenshots\n\n'
|
|
67
|
-
```
|
|
68
|
-
|
|
1
|
+
GitHub data comes from the `gh` CLI; a page fetch of github.com is denied (pc-system-reminders). If `gh` is unavailable, report it as a blocker.
|
|
2
|
+
Always pass `--repo {owner}/{repo}` explicitly, never rely on git context to resolve the repo.
|
|
3
|
+
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
### Step 1: Verify feature branch
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
BRANCH="$(git branch --show-current)"
|
|
10
|
+
DEFAULT_BRANCH="$(git symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null | sed 's|^origin/||')"
|
|
11
|
+
[ -z "$DEFAULT_BRANCH" ] && DEFAULT_BRANCH="main"
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
`$BRANCH` must be a work branch (`feature/*` or `bugfix/*`: the `pc-plan-apply` skill creates `feature/{change-slug}`). Never push the default branch.
|
|
15
|
+
|
|
16
|
+
### Step 2: Capture screenshots (if UI changes exist)
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
browser_navigate url="http://localhost:{port}/{route}"
|
|
20
|
+
browser_wait ms=2000
|
|
21
|
+
browser_screenshot
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Save to: `openspec/changes/{change-name}/images/{feature}.png`
|
|
25
|
+
|
|
26
|
+
### Step 3: Commit and push
|
|
27
|
+
|
|
28
|
+
The `pc-plan-apply` skill already committed each task group: usually only screenshots or small residuals remain. Stage the paths you actually changed; unscoped staging is denied (`pc-system-reminders`):
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
git add openspec/changes/{change-name}/images/ # plus any other paths you actually changed
|
|
32
|
+
git commit -m "feat({scope}): {description} (#{id})" # only if there is something to commit
|
|
33
|
+
git push -u origin "$BRANCH"
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Step 4: Create PR
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
gh pr create \
|
|
40
|
+
--repo {owner}/{repo} \
|
|
41
|
+
--base "$DEFAULT_BRANCH" \
|
|
42
|
+
--head "$BRANCH" \
|
|
43
|
+
--title "feat({scope}): {title} (#{id})" \
|
|
44
|
+
--body "{description}"
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Step 5: Post screenshot comment
|
|
48
|
+
|
|
49
|
+
Resolve commit SHA (the commit that includes screenshots):
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
git rev-parse HEAD
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Build blob URL for each image with `?raw=true` (a plain blob URL renders the GitHub HTML page, not the image, inside `![...]()`):
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
https://github.com/{owner}/{repo}/blob/{sha}/openspec/changes/{change}/images/{file}.png?raw=true
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Note: on private repos the embedded image is only visible to users with repo access.
|
|
62
|
+
|
|
63
|
+
Post comment:
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
gh pr comment {pr-number} --repo {owner}/{repo} --body $'## Screenshots\n\n'
|
|
67
|
+
```
|
|
68
|
+
|
|
69
69
|
---
|
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
|
|
2
|
-
Always pass `--repo {owner}/{repo}` explicitly, never rely on git context to resolve the repo.
|
|
3
|
-
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
### Step 1: Verify feature branch
|
|
7
|
-
|
|
8
|
-
```bash
|
|
9
|
-
BRANCH="$(git branch --show-current)"
|
|
10
|
-
DEFAULT_BRANCH="$(git symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null | sed 's|^origin/||')"
|
|
11
|
-
[ -z "$DEFAULT_BRANCH" ] && DEFAULT_BRANCH="main"
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
`$BRANCH` must be a work branch (`feature/*` or `bugfix/*`: the `pc-plan-apply` skill creates `feature/{change-slug}`).
|
|
15
|
-
|
|
16
|
-
### Step 2: Capture screenshots (if UI changes exist)
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
browser_navigate url="http://localhost:{port}/{route}"
|
|
20
|
-
browser_wait ms=2000
|
|
21
|
-
browser_screenshot
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
Save to: `openspec/changes/{change-name}/images/{feature}.png`
|
|
25
|
-
|
|
26
|
-
### Step 3: Commit and push
|
|
27
|
-
|
|
28
|
-
The `pc-plan-apply` skill already committed each task group: usually only screenshots or small residuals remain. Stage
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
git add openspec/changes/{change-name}/images/ # plus any other paths you actually changed
|
|
32
|
-
git commit -m "{change}: {summary}" # only if there is something to commit
|
|
33
|
-
git push -u origin "$BRANCH"
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
### Step 4: Upload screenshots (if any)
|
|
37
|
-
|
|
38
|
-
If screenshots exist, upload them so they can be referenced in the MR description:
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
glab api --method POST "projects/:id/uploads" -f "file=@openspec/changes/{change-name}/images/{feature}.png"
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
(`:id` is glab's placeholder for the current project: this is the one sanctioned use of git context in this skill.)
|
|
45
|
-
|
|
46
|
-
Parse the returned `markdown` field: use it to embed the image in the MR description. If the upload fails (the endpoint needs multipart form data and `-f` support varies by glab version), fall back to referencing the image committed on the branch instead.
|
|
47
|
-
|
|
48
|
-
If no UI changes, skip this step.
|
|
49
|
-
|
|
50
|
-
### Step 5: Create Merge Request
|
|
51
|
-
|
|
52
|
-
```bash
|
|
53
|
-
glab mr create \
|
|
54
|
-
--source-branch "$BRANCH" \
|
|
55
|
-
--target-branch "$DEFAULT_BRANCH" \
|
|
56
|
-
--title "{title}" \
|
|
57
|
-
--description "Closes {issue-link}
|
|
58
|
-
|
|
59
|
-
## Summary
|
|
60
|
-
{summary from proposal.md}
|
|
61
|
-
|
|
62
|
-
## Changes
|
|
63
|
-
{key changes from tasks.md}
|
|
64
|
-
|
|
65
|
-
## Test plan
|
|
66
|
-
- [ ] {checklist of manual verification steps}
|
|
67
|
-
{screenshots if available}" \
|
|
68
|
-
--remove-source-branch \
|
|
69
|
-
--squash-before-merge
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
Do NOT use `--yes` unless running in autopilot/non-interactive mode.
|
|
73
|
-
|
|
74
|
-
### Step 6: Report
|
|
75
|
-
|
|
76
|
-
Display:
|
|
77
|
-
|
|
78
|
-
```text
|
|
79
|
-
Merge Request created
|
|
80
|
-
MR: {mr-url}
|
|
81
|
-
Title: {title}
|
|
82
|
-
Source: {branch}
|
|
83
|
-
Target: {default-branch}
|
|
84
|
-
```
|
|
85
|
-
|
|
1
|
+
GitLab data comes from the `glab` CLI; a page fetch of gitlab.com is denied (pc-system-reminders). If `glab` is unavailable, report it as a blocker.
|
|
2
|
+
Always pass `--repo {owner}/{repo}` explicitly, never rely on git context to resolve the repo.
|
|
3
|
+
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
### Step 1: Verify feature branch
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
BRANCH="$(git branch --show-current)"
|
|
10
|
+
DEFAULT_BRANCH="$(git symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null | sed 's|^origin/||')"
|
|
11
|
+
[ -z "$DEFAULT_BRANCH" ] && DEFAULT_BRANCH="main"
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
`$BRANCH` must be a work branch (`feature/*` or `bugfix/*`: the `pc-plan-apply` skill creates `feature/{change-slug}`). Never push the default branch.
|
|
15
|
+
|
|
16
|
+
### Step 2: Capture screenshots (if UI changes exist)
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
browser_navigate url="http://localhost:{port}/{route}"
|
|
20
|
+
browser_wait ms=2000
|
|
21
|
+
browser_screenshot
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Save to: `openspec/changes/{change-name}/images/{feature}.png`
|
|
25
|
+
|
|
26
|
+
### Step 3: Commit and push
|
|
27
|
+
|
|
28
|
+
The `pc-plan-apply` skill already committed each task group: usually only screenshots or small residuals remain. Stage the paths you actually changed; unscoped staging is denied (`pc-system-reminders`):
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
git add openspec/changes/{change-name}/images/ # plus any other paths you actually changed
|
|
32
|
+
git commit -m "{change}: {summary}" # only if there is something to commit
|
|
33
|
+
git push -u origin "$BRANCH"
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Step 4: Upload screenshots (if any)
|
|
37
|
+
|
|
38
|
+
If screenshots exist, upload them so they can be referenced in the MR description:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
glab api --method POST "projects/:id/uploads" -f "file=@openspec/changes/{change-name}/images/{feature}.png"
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
(`:id` is glab's placeholder for the current project: this is the one sanctioned use of git context in this skill.)
|
|
45
|
+
|
|
46
|
+
Parse the returned `markdown` field: use it to embed the image in the MR description. If the upload fails (the endpoint needs multipart form data and `-f` support varies by glab version), fall back to referencing the image committed on the branch instead.
|
|
47
|
+
|
|
48
|
+
If no UI changes, skip this step.
|
|
49
|
+
|
|
50
|
+
### Step 5: Create Merge Request
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
glab mr create \
|
|
54
|
+
--source-branch "$BRANCH" \
|
|
55
|
+
--target-branch "$DEFAULT_BRANCH" \
|
|
56
|
+
--title "{title}" \
|
|
57
|
+
--description "Closes {issue-link}
|
|
58
|
+
|
|
59
|
+
## Summary
|
|
60
|
+
{summary from proposal.md}
|
|
61
|
+
|
|
62
|
+
## Changes
|
|
63
|
+
{key changes from tasks.md}
|
|
64
|
+
|
|
65
|
+
## Test plan
|
|
66
|
+
- [ ] {checklist of manual verification steps}
|
|
67
|
+
{screenshots if available}" \
|
|
68
|
+
--remove-source-branch \
|
|
69
|
+
--squash-before-merge
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Do NOT use `--yes` unless running in autopilot/non-interactive mode.
|
|
73
|
+
|
|
74
|
+
### Step 6: Report
|
|
75
|
+
|
|
76
|
+
Display:
|
|
77
|
+
|
|
78
|
+
```text
|
|
79
|
+
Merge Request created
|
|
80
|
+
MR: {mr-url}
|
|
81
|
+
Title: {title}
|
|
82
|
+
Source: {branch}
|
|
83
|
+
Target: {default-branch}
|
|
84
|
+
```
|
|
85
|
+
|
|
86
86
|
---
|
|
@@ -1,53 +1,34 @@
|
|
|
1
|
-
{
|
|
2
|
-
"platform": {
|
|
3
|
-
"none": {
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"pipeline": "```\nlead (main session)\n -> fetch Jira work item (acli jira workitem view)\n -> pc-plan-propose (propose + enrich tasks)\n |\n [confirm when scope needs it]\n |\n*-engineer specialists (parallel via pc-plan-apply)\n -> implement assigned tasks (parallel waves)\n |\nlead verifies, creates PR via repo platform (gh or az)\n -> transition Jira work item to Done (acli jira workitem transition)\n```\n\n### Phase 1, Fetch & Plan\n\n```\n1. Fetch the Jira work item via acli jira workitem view --key KEY.\n2. Load the pc-plan-propose skill to create the OpenSpec change from the work item.\n3. Confirm with the user.\n```\n\n### Phase 2, Implement & Ship\n\n```\n1. Load the pc-plan-apply skill to implement via parallel subagent waves.\n2. Create PR via repo platform CLI (gh pr create or az repos pr create).\n3. Transition Jira work item: acli jira workitem transition --key KEY --status \"Done\"\n```",
|
|
36
|
-
"skillsGuide": "### Backlog Platform: Jira\n- `pc-userstory` -> fetches Jira work items via `acli jira` CLI. Load when a Jira URL or issue key is provided.\n\n### Repo Platform\n- PR skills are loaded based on `platform.repo` (GitHub or Azure DevOps)."
|
|
37
|
-
},
|
|
38
|
-
"gitlab": {
|
|
39
|
-
"devopsSkills": "- Selected repo platform: `gitlab` (from onboarding platform step).\n- GitLab is a REPO-ONLY platform. MRs and code review via `glab` CLI.\n- Backlog/work items use the backlog platform (GitHub / Azure / Jira) configured separately.\n- Load `pc-ops-ship` skill for GitLab MR operations.",
|
|
40
|
-
"devopsMode": "This project uses GitLab for code repository and merge requests, with a separate backlog platform for work items. Create MRs via `glab mr create` CLI. Fetch work items via the backlog platform CLI. Do NOT use browser tools for GitLab operations.",
|
|
41
|
-
"workflow": "When the user provides a GitLab MR URL or says \"implement the plan\", **I own the full lifecycle**. I load the appropriate userstory skill (from backlog platform) and `pc-ops-ship` skill (for GitLab MRs).\n\nTrigger patterns, I recognize ALL of these, exact wording does not matter:\n- User pastes or mentions a backlog work item URL -> load `pc-userstory` skill -> fetch via backlog CLI -> load the `pc-plan-propose` skill -> confirm -> load the `pc-plan-apply` skill -> ship\n- `implement the plan` / `implement` / `start` / `go` -> load the `pc-plan-apply` skill -> ship\n- User says \"I've added comments to the MR\" -> read MR comments via `glab mr note list` -> triage feedback\n- Any GitLab MR URL in a feedback/fix request -> run MR Feedback Loop via `glab` CLI\n\n**A GitLab MR URL in the user's message is a strong trigger: follow the pipeline unless the user explicitly asks for analysis or context only.**\n\nFor work item fetching, use the backlog platform (configured as `platform.backlog`). GitLab has no backlog integration.",
|
|
42
|
-
"pipeline": "```\nlead (main session)\n -> fetch work item (backlog platform CLI: gh / az / acli)\n -> pc-plan-propose (propose + enrich tasks)\n |\n [confirm when scope needs it]\n |\n*-engineer specialists (parallel via pc-plan-apply)\n -> implement assigned tasks (parallel waves)\n |\nlead verifies, creates MR via GitLab (glab mr create)\n```\n\n### Phase 1, Fetch & Plan\n\n```\n1. Fetch the work item via backlog platform CLI.\n2. Load the pc-plan-propose skill to create the OpenSpec change.\n3. Confirm with the user.\n```\n\n### Phase 2, Implement & Ship\n\n```\n1. Load the pc-plan-apply skill to implement via parallel subagent waves.\n2. Create MR via glab mr create.\n3. Archive change after MR is merged.\n```",
|
|
43
|
-
"skillsGuide": "### Repo Platform: GitLab\n- `pc-ops-ship` -> creates GitLab merge requests via `glab` CLI. Load when shipping a branch or processing MR feedback.\n\n### Backlog Platform\n- Work item skills are loaded based on `platform.backlog` (GitHub / Azure / Jira)."
|
|
44
|
-
},
|
|
45
|
-
"browser": {
|
|
46
|
-
"devopsSkills": "- Selected backlog platform: `browser` (from onboarding platform step).\n- No CLI integration for the backlog system. Work items are fetched via agent-browser.\n- The `pc-userstory` skill opens work item URLs the user provides and reads page content.\n- PRs and code review use the repo platform (GitHub / Azure DevOps / GitLab) configured separately.",
|
|
47
|
-
"devopsMode": "This project uses browser automation for backlog/work items (no CLI) and a separate repo platform for code. Work items are read from web pages using agent-browser. Create PRs via the repo platform CLI. The browser navigation exception ONLY applies to work item URLs the user explicitly provides.",
|
|
48
|
-
"workflow": "When the user provides a work item URL from any backlog tool (Azure DevOps, Linear, Trello, etc.), **I own the full lifecycle**. I load `pc-userstory` skill to navigate to the URL via browser and read the page content.\n\nTrigger patterns, I recognize ALL of these, exact wording does not matter:\n- User pastes any URL to a work item/ticket/issue -> load `pc-userstory` skill -> navigate via browser -> read page text + snapshot -> parse work item -> load the `pc-plan-propose` skill -> confirm -> load the `pc-plan-apply` skill -> ship\n- `implement the plan` / `implement` / `start` / `go` -> load the `pc-plan-apply` skill -> ship\n- PR feedback -> use the repo platform CLI (gh, az, or glab) for PR operations\n\n**Any work item URL in the user's message is a trigger, regardless of the backlog tool it points to.**\n\nFor PR creation and code review, use the repo platform (configured as `platform.repo`). Browser is backlog-only: it has no PR capability.",
|
|
49
|
-
"pipeline": "```\nlead (main session)\n -> open work item URL in browser (agent-browser --session backlog --restore open)\n -> wait for load (agent-browser wait --load networkidle)\n -> read page content (agent-browser snapshot + read)\n -> parse work item fields from snapshot\n -> pc-plan-propose (propose + enrich tasks)\n |\n [confirm when scope needs it]\n |\n*-engineer specialists (parallel via pc-plan-apply)\n -> implement assigned tasks (parallel waves)\n |\nlead verifies, creates PR via repo platform (gh / az / glab)\n```\n\n### Phase 1, Fetch & Plan\n\n```\n1. User provides a work item URL.\n2. Open the URL via agent-browser --session backlog --restore open.\n3. Wait for load via agent-browser wait --load networkidle.\n4. Take an accessibility snapshot via agent-browser snapshot.\n5. Parse title, description, acceptance criteria from the snapshot.\n6. Load the pc-plan-propose skill to create the OpenSpec change.\n7. Confirm with the user.\n```\n\n### Phase 2, Implement & Ship\n\n```\n1. Load the pc-plan-apply skill to implement via parallel subagent waves.\n2. Create PR via repo platform CLI (gh pr create, az repos pr create, or glab mr create).\n3. Archive change after PR is merged.\n```",
|
|
50
|
-
"skillsGuide": "### Backlog Platform: Others (Browser)\n- `pc-userstory` -> opens work item URLs via agent-browser, reads page content, creates OpenSpec changes. Load when a URL the user provides does not match GitHub/Azure/Jira CLI platforms.\n\n### Repo Platform\n- PR skills are loaded based on `platform.repo` (GitHub / Azure DevOps / GitLab)."
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"platform": {
|
|
3
|
+
"none": {
|
|
4
|
+
"workflow": "There is no backlog and no PR integration here, so the work arrives in the conversation and the local repository is the only context.\n\n- A described feature, bug or refactor: clarify if needed, then `pc-plan-propose` when the change is worth planning, or straight to `pc-plan-apply`.\n- An existing OpenSpec change, plus any of `implement` / `start` / `go`: `pc-plan-apply`.\n- `just do it` or `quick fix`: work in this session, no proposal, no ceremony.\n\nA GitHub or Azure DevOps URL is not a trigger in this mode; re-run onboarding to configure a platform.",
|
|
5
|
+
"skillsGuide": "No platform skills installed (platform: none). Work from direct user instructions and local OpenSpec artifacts only."
|
|
6
|
+
},
|
|
7
|
+
"azure": {
|
|
8
|
+
"workflow": "An Azure DevOps work item or PR URL in the user's message means run the pipeline, in whatever words it arrives, unless they asked for analysis or context only.\n\n- Work item URL: `pc-userstory` to parse it, `pc-plan-propose` for the plan, confirm, `pc-plan-apply` to build, then ship.\n- An existing OpenSpec change, plus any of `implement` / `start` / `go`: `pc-plan-apply`, then ship.\n- A PR URL with a feedback or fix request: read the PR comments, fix, update the PR.",
|
|
9
|
+
"skillsGuide": "Platform skills (Azure DevOps):\n- `@pc-userstory`: load when an Azure DevOps work item URL is detected. Fetches the work item via `az` CLI and creates an OpenSpec change. NEVER use browser tools for Azure DevOps operations.\n- `pc-ops-ship`: load in ship mode to create a PR and link the work item, or in feedback mode to read and classify PR review comments."
|
|
10
|
+
},
|
|
11
|
+
"github": {
|
|
12
|
+
"workflow": "A GitHub Issue or PR URL in the user's message means run the pipeline, in whatever words it arrives, unless they asked for analysis or context only.\n\n- Issue URL: `pc-userstory` to parse it, `pc-plan-propose` for the plan, confirm, `pc-plan-apply` to build, then ship.\n- An existing OpenSpec change, plus any of `implement` / `start` / `go`: `pc-plan-apply`, then ship.\n- A PR URL with a feedback or fix request: read the PR comments, fix, update the PR.",
|
|
13
|
+
"skillsGuide": "Platform skills (GitHub):\n- `@pc-userstory`: load when a GitHub Issue URL is detected. Fetches the issue via `gh` CLI and creates an OpenSpec change. NEVER use webfetch to access GitHub URLs.\n- `pc-ops-ship`: load in ship mode to create a PR with screenshots, or in feedback mode to read and classify PR review comments."
|
|
14
|
+
},
|
|
15
|
+
"mixed": {
|
|
16
|
+
"default": {
|
|
17
|
+
"workflow": "The backlog and the repo are on different platforms here: `.opencode/harness.json` → `platform.backlog` and `platform.repo`. Never cross them. Work items always come from the backlog CLI and pull requests always from the repo CLI, or the command fails against the wrong host and the fallback is a page fetch that is denied.\n\nA work item URL, or a PR URL with a feedback request, means run the pipeline, in whatever words it arrives, unless the user asked for analysis or context only.\n\n- Work item URL or issue key: `pc-userstory` (backlog CLI) to parse it, `pc-plan-propose` for the plan, confirm, `pc-plan-apply` to build, `pc-ops-ship` (repo CLI) to ship.\n- An existing OpenSpec change, plus any of `implement` / `start` / `go`: `pc-plan-apply`, then ship.\n- A PR or MR URL with a feedback or fix request: read its comments through the repo CLI, fix, update it.",
|
|
18
|
+
"skillsGuide": "Mixed platform setup: the two platform skills target different hosts:\n- `@pc-userstory` → fetches work items from the backlog platform. Load when a work-item URL or issue key is provided.\n- `pc-ops-ship` → creates PRs/MRs and triages review feedback on the repo platform. Load in ship mode or PR-feedback mode."
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"jira": {
|
|
22
|
+
"workflow": "A Jira URL or a bare issue key (`PROJ-123`) means run the pipeline, in whatever words it arrives, unless they asked for analysis or context only.\n\n- Either one: `pc-userstory` to fetch it through `acli jira`, `pc-plan-propose` for the plan, confirm, `pc-plan-apply` to build, then ship.\n- An existing OpenSpec change, plus any of `implement` / `start` / `go`: `pc-plan-apply`, then ship.\n\nJira has no pull requests: PR work runs on the repo platform in `platform.repo`.",
|
|
23
|
+
"skillsGuide": "### Backlog Platform: Jira\n- `pc-userstory` -> fetches Jira work items via `acli jira` CLI. Load when a Jira URL or issue key is provided.\n\n### Repo Platform\n- PR skills are loaded based on `platform.repo` (GitHub or Azure DevOps)."
|
|
24
|
+
},
|
|
25
|
+
"gitlab": {
|
|
26
|
+
"workflow": "A backlog work item URL, or a GitLab MR URL with a feedback request, means run the pipeline, in whatever words it arrives, unless they asked for analysis or context only.\n\n- Work item URL: `pc-userstory` to fetch it through the backlog CLI, `pc-plan-propose` for the plan, confirm, `pc-plan-apply` to build, then ship.\n- An existing OpenSpec change, plus any of `implement` / `start` / `go`: `pc-plan-apply`, then ship.\n- An MR URL with a feedback or fix request: `glab mr note list`, triage, fix, update the MR.\n\nGitLab has no backlog here: work items come from the platform in `platform.backlog`.",
|
|
27
|
+
"skillsGuide": "### Repo Platform: GitLab\n- `pc-ops-ship` -> creates GitLab merge requests via `glab` CLI. Load when shipping a branch or processing MR feedback.\n\n### Backlog Platform\n- Work item skills are loaded based on `platform.backlog` (GitHub / Azure / Jira)."
|
|
28
|
+
},
|
|
29
|
+
"browser": {
|
|
30
|
+
"workflow": "Any work item URL means run the pipeline, whichever tool it points at, unless the user asked for analysis or context only.\n\n- The URL: `pc-userstory` to open and read the page, `pc-plan-propose` for the plan, confirm, `pc-plan-apply` to build, then ship.\n- An existing OpenSpec change, plus any of `implement` / `start` / `go`: `pc-plan-apply`, then ship.\n\nBrowser is backlog-only: PR work runs on the repo platform in `platform.repo`.",
|
|
31
|
+
"skillsGuide": "### Backlog Platform: Others (Browser)\n- `pc-userstory` -> opens work item URLs via agent-browser, reads page content, creates OpenSpec changes. Load when a URL the user provides does not match GitHub/Azure/Jira CLI platforms.\n\n### Repo Platform\n- PR skills are loaded based on `platform.repo` (GitHub / Azure DevOps / GitLab)."
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|