oc-harness-setup 0.1.1 → 0.3.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/.docs/unwired-routing.md +14 -9
- package/.gitignore +14 -1
- package/AGENTS.md +70 -106
- package/README.md +31 -27
- package/agents/build.md +10 -12
- package/agents/explore.md +14 -8
- package/agents/general.md +7 -9
- package/agents/orchestrator.md +38 -0
- package/agents/plan.md +10 -13
- package/agents/reviewer.md +9 -14
- package/agents/vault.md +44 -35
- package/bin/cli.js +323 -81
- package/commands/build.md +2 -8
- package/commands/checkpoint.md +3 -1
- package/commands/code-simplify.md +3 -9
- package/commands/gauntlet.md +7 -0
- package/commands/handoff.md +3 -1
- package/commands/keeper.md +3 -3
- package/commands/kill.md +11 -0
- package/commands/plan.md +2 -13
- package/commands/retro.md +15 -0
- package/commands/review.md +1 -1
- package/commands/ship.md +3 -27
- package/commands/spec.md +3 -11
- package/commands/test.md +2 -9
- package/commands/webperf.md +7 -0
- package/opencode.jsonc +23 -8
- package/package.json +3 -3
- package/reference/README.md +14 -14
- package/reference/auto-mandate.md +11 -0
- package/reference/backup-convention.md +9 -0
- package/reference/clean-mandate.md +13 -0
- package/reference/editor-parity.md +7 -0
- package/reference/gc-scripts.md +8 -0
- package/reference/intent-routing.md +14 -0
- package/reference/lifecycle.md +15 -0
- package/reference/model-keeper.md +30 -10
- package/reference/model-test.md +13 -8
- package/reference/models.md +25 -14
- package/reference/oc-source-map.md +162 -0
- package/reference/owner-pin.md +31 -0
- package/reference/roster.md +15 -0
- package/reference/session-scope.md +9 -0
- package/reference/session-state.md +13 -0
- package/reference/swarm.md +32 -0
- package/scripts/backup-config.ps1 +42 -0
- package/scripts/gc-branch.ps1 +196 -0
- package/scripts/gc-bump.ps1 +198 -0
- package/scripts/gc-clean.ps1 +648 -0
- package/scripts/gc-commit.ps1 +143 -0
- package/scripts/gc-merge.ps1 +272 -0
- package/scripts/gc-pr.ps1 +190 -0
- package/scripts/gc-push.ps1 +111 -0
- package/scripts/gc-read.ps1 +150 -0
- package/scripts/gc-rebase.ps1 +162 -0
- package/scripts/gc-release.ps1 +225 -0
- package/scripts/gc-stage.ps1 +103 -0
- package/scripts/gc-status.ps1 +127 -0
- package/scripts/gc-sync.ps1 +65 -0
- package/scripts/gc.core.ps1 +715 -0
- package/scripts/gc.smoke.ps1 +779 -0
- package/scripts/harness-doctor.ps1 +11 -9
- package/scripts/interrupt-session.ps1 +65 -0
- package/scripts/logbook/README.md +108 -0
- package/scripts/logbook/logbook.test.ts +440 -0
- package/scripts/logbook/logbook.ts +797 -0
- package/scripts/pirep/README.md +147 -0
- package/scripts/pirep/pirep.test.ts +735 -0
- package/scripts/pirep/pirep.ts +836 -0
- package/scripts/testflight/README.md +112 -0
- package/scripts/testflight/testflight.test.ts +512 -0
- package/scripts/testflight/testflight.ts +806 -0
- package/skills/_shared/SOURCES.md +7 -7
- package/skills/_shared/references/definition-of-done.md +2 -2
- package/skills/_shared/references/orchestration-patterns.md +1 -2
- package/skills/_shared/references/security-checklist.md +2 -2
- package/skills/api-and-interface-design/SKILL.md +7 -360
- package/skills/browser-testing-with-devtools/SKILL.md +303 -0
- package/skills/code-simplification/SKILL.md +7 -364
- package/skills/creative-writing/SKILL.md +1 -1
- package/skills/debugging-and-error-recovery/SKILL.md +8 -309
- package/skills/flight-deck/SKILL.md +17 -0
- package/skills/frontend-ui-engineering/SKILL.md +8 -320
- package/skills/gauntlet/SKILL.md +21 -0
- package/skills/git-ceremony/SKILL.md +16 -318
- package/skills/grilling/SKILL.md +10 -30
- package/skills/observability-and-instrumentation/SKILL.md +9 -229
- package/skills/performance-optimization/SKILL.md +8 -488
- package/skills/pilot-report/SKILL.md +18 -0
- package/skills/planning-and-task-breakdown/SKILL.md +8 -249
- package/skills/security-and-hardening/SKILL.md +9 -490
- package/skills/source-driven-development/SKILL.md +8 -208
- package/skills/spec-driven-development/SKILL.md +15 -234
- package/skills/test-driven-development/SKILL.md +8 -388
- package/skills/test-flight/SKILL.md +14 -0
- package/skills/writing-for-agents/SKILL-MECHANICS.md +3 -3
- package/skills/writing-for-agents/SKILL.md +7 -1
- package/agents/coder.md +0 -19
- package/agents/documenter.md +0 -28
- package/agents/keeper.md +0 -22
- package/agents/master.md +0 -65
- package/agents/researcher.md +0 -21
- package/agents/security-auditor.md +0 -20
- package/agents/test-engineer.md +0 -20
- package/agents/web-performance-auditor.md +0 -19
- package/commands/council.md +0 -24
- package/commands/doctor.md +0 -18
- package/commands/ponytail-audit.md +0 -7
- package/commands/ponytail-debt.md +0 -14
- package/reference/models.md.example +0 -21
- package/scripts/panic/panic.ts +0 -240
- package/skills/code-review-and-quality/SKILL.md +0 -396
- package/skills/incremental-implementation/SKILL.md +0 -249
- package/skills/swarm-orchestration/SKILL.md +0 -54
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gauntlet
|
|
3
|
+
description: "Explicit-only bounded challenge-and-repair loop for /gauntlet or a direct 'gauntlet this' request."
|
|
4
|
+
metadata:
|
|
5
|
+
"opencode/autoinvoke": false
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Gauntlet
|
|
9
|
+
|
|
10
|
+
Use only when deliberately invoked. The orchestrator owns dispatch and reporting.
|
|
11
|
+
|
|
12
|
+
1. Freeze the artifact, constraints, acceptance evidence, round ceiling, and revert pointer before the first challenge. Changing the bar restarts the loop.
|
|
13
|
+
2. Dispatch one or more independent read-only reviewers with non-overlapping lenses. Findings need executed evidence or an `UNVERIFIED` label.
|
|
14
|
+
3. Merge duplicate findings and reject anything outside the frozen scope.
|
|
15
|
+
4. Dispatch one writer with only the accepted findings. No finding means no edit.
|
|
16
|
+
5. Rerun the original acceptance evidence and a fresh review. Track opened, closed, and regressed findings.
|
|
17
|
+
6. Stop on green, a hard blocker, or the round ceiling. At the ceiling, report options and recommend one; do not continue silently.
|
|
18
|
+
|
|
19
|
+
Keep independent challenges parallel, repair dependent on findings, and one writer per artifact. In verdict-only mode, edit nothing.
|
|
20
|
+
|
|
21
|
+
Return the terminal state, rounds used, findings opened/closed/regressed, and exact acceptance results; add remaining risk and the revert pointer only when they have real content, omit otherwise.
|
|
@@ -1,329 +1,27 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: git-ceremony
|
|
3
|
-
description: "
|
|
3
|
+
description: "Explicit-only Git workflow activated by --gc or a direct request for branch, commit, PR, merge, tag, version, release, or worktree ceremony."
|
|
4
|
+
metadata:
|
|
5
|
+
"opencode/autoinvoke": false
|
|
4
6
|
---
|
|
5
7
|
|
|
6
8
|
# Git Ceremony
|
|
7
9
|
|
|
8
|
-
|
|
9
|
-
**The repo's own rules win. Ours is the fallback.**
|
|
10
|
+
The repository's own instructions win. This skill is the fallback when the user explicitly activates Git work.
|
|
10
11
|
|
|
11
|
-
##
|
|
12
|
+
## Sequence
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
1. Inspect repository rules, status, branch, remotes, default branch, and staged/unstaged/untracked work. Preserve unrelated user changes.
|
|
15
|
+
2. Classify the requested mutation and confirm any destructive, public, production, or history-rewriting step that lacks explicit authorization.
|
|
16
|
+
3. Sync with fast-forward-only behavior only when requested or required for the named endpoint.
|
|
17
|
+
4. Use a short typed branch when review isolation is appropriate: `feat/`, `fix/`, `docs/`, `refactor/`, `test/`, or `chore/` plus a lowercase slug.
|
|
18
|
+
5. Stage only intended files. Review the staged diff and scan for secrets, generated noise, and line-ending churn.
|
|
19
|
+
6. When a commit is requested or required for the named endpoint, commit one logical change with `<type>(<scope>): <imperative summary>`; omit scope when it adds no value.
|
|
20
|
+
7. Push, open a PR, merge, tag, version, or release only when the request includes that step. Never infer publication from a build or test request.
|
|
21
|
+
8. Verify the resulting status and remote state; report exact evidence and anything still local.
|
|
15
22
|
|
|
16
|
-
|
|
17
|
-
commit-lint / husky configs, branch protection, a versioning or release process, sign-off
|
|
18
|
-
or DCO requirements.
|
|
23
|
+
Use only the deterministic wrappers named in `~/.config/opencode/reference/gc-scripts.md`. If a wrapper cannot express an authorized operation, report that boundary before using a native command. `gc-release -MovingLatest` is valid only when repository policy explicitly declares that nonstandard scheme.
|
|
19
24
|
|
|
20
|
-
|
|
21
|
-
- Repo is silent → follow this document.
|
|
25
|
+
For worktrees, first verify the destination is outside tracked content or ignored, create from an explicit base, and never move uncommitted changes between worktrees. Version bumps and releases must follow the repository's format and policy; otherwise use SemVer and keep a bump isolated from unrelated code.
|
|
22
26
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
## 1. Pull — start from truth
|
|
26
|
-
|
|
27
|
-
```
|
|
28
|
-
git switch <default-branch> # main, master, trunk — whichever the repo uses
|
|
29
|
-
git pull --ff-only
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
- Detect the default branch from the repo (§0). Never assume `main`.
|
|
33
|
-
- Fast-forward only. If it fails, stop — do not manufacture a merge on the default branch.
|
|
34
|
-
- Never branch from a stale default branch.
|
|
35
|
-
|
|
36
|
-
## 2. Branch — create and name
|
|
37
|
-
|
|
38
|
-
One branch per unit of work. Never work on main. Never reuse a merged branch.
|
|
39
|
-
|
|
40
|
-
**Format:** `<type>/<slug>`
|
|
41
|
-
|
|
42
|
-
| type | for |
|
|
43
|
-
|---|---|
|
|
44
|
-
| `feat` | new capability |
|
|
45
|
-
| `fix` | broken behavior |
|
|
46
|
-
| `chore` | tooling, deps, config |
|
|
47
|
-
| `docs` | documentation only |
|
|
48
|
-
| `refactor` | no behavior change |
|
|
49
|
-
| `test` | tests only |
|
|
50
|
-
| `perf` | speed/size |
|
|
51
|
-
| `hotfix` | urgent production fix |
|
|
52
|
-
| `wt` | isolated worktree work (§10) |
|
|
53
|
-
|
|
54
|
-
- `slug`: kebab-case, 2–5 words, describes the change — not the author, not the date.
|
|
55
|
-
- Issue suffix only when the repo tracks issues: `fix/login-timeout-4821`.
|
|
56
|
-
- Examples: `feat/token-refresh`, `docs/git-ceremony`, `hotfix/null-cart`.
|
|
57
|
-
|
|
58
|
-
## 3. Commit — message format
|
|
59
|
-
|
|
60
|
-
**Subject:** `type: imperative summary`, ≤ 72 chars, no trailing period. An optional `(scope)` may follow the type — `fix(api): cap retry backoff`.
|
|
61
|
-
|
|
62
|
-
```
|
|
63
|
-
fix: cap retry backoff at 30s
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
**Body:** only when the reason isn't obvious. Up to three plain bullets — no padding,
|
|
67
|
-
no "this commit…", no emoji unless the repo uses them.
|
|
68
|
-
|
|
69
|
-
```
|
|
70
|
-
fix: cap retry backoff at 30s
|
|
71
|
-
|
|
72
|
-
- unbounded backoff stalled the queue ~9 min
|
|
73
|
-
- 30s ceiling keeps retries under the request timeout
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
- One logical change per commit. If the subject needs "and", split it.
|
|
77
|
-
- No WIP commits on a branch headed for review — squash first.
|
|
78
|
-
- Issue refs (`#123`, `ABC-123`) go in the body, never the subject.
|
|
79
|
-
- No AI-attribution or sign-off trailers unless the repo requires them.
|
|
80
|
-
- A version bump is its own commit — never buried in a feature commit (§8).
|
|
81
|
-
|
|
82
|
-
**Review the staged diff before every commit:** `git diff --staged`. It is the last gate
|
|
83
|
-
against a secret, a stray artifact, or a debug print.
|
|
84
|
-
|
|
85
|
-
**Line endings.** Never commit a whole-file line-ending change — it buries the real diff.
|
|
86
|
-
On our repos, keep a `.gitattributes` with `* text=auto eol=lf`. On a repo we don't own,
|
|
87
|
-
if a change shows whole-file churn, stop and fix the checkout config instead of committing
|
|
88
|
-
the noise.
|
|
89
|
-
|
|
90
|
-
## 4. Push and PR
|
|
91
|
-
|
|
92
|
-
Open the PR against the repo's default branch. Title = the commit subject.
|
|
93
|
-
|
|
94
|
-
**PR body — exactly this, nothing more:**
|
|
95
|
-
|
|
96
|
-
```
|
|
97
|
-
What: <one line>
|
|
98
|
-
Why: <one line, omit if obvious>
|
|
99
|
-
Check: <the single command that proves it, or "n/a">
|
|
100
|
-
Risk: <one line, or "low">
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
- Draft PR while in progress; ready only when the check passes.
|
|
104
|
-
- Small diffs. If it's large, split it.
|
|
105
|
-
- Screenshots only for visual changes.
|
|
106
|
-
|
|
107
|
-
## 5. Comments and review — format
|
|
108
|
-
|
|
109
|
-
- One point per comment. Short, direct. No greetings, no praise padding.
|
|
110
|
-
- Prefix intent when useful: `nit:` · `q:` · `blocker:` · `suggest:`.
|
|
111
|
-
- Reply once — resolve or answer. Take real disagreements offline.
|
|
112
|
-
- Review at the same standard: tight, specific, no essay.
|
|
113
|
-
|
|
114
|
-
## 6. Merge
|
|
115
|
-
|
|
116
|
-
- **main stays green.** A PR merges only after its check passes — never merge red.
|
|
117
|
-
- Default to **squash merge** — one commit per PR, linear history. Honor the repo otherwise.
|
|
118
|
-
- **Conflicts:** if main moved, rebase your branch on it and resolve there — never on main.
|
|
119
|
-
Never leave conflict markers, and never resolve by discarding the other side wholesale.
|
|
120
|
-
Re-run the check after resolving.
|
|
121
|
-
- Delete the branch after merge, local and remote. `git fetch --prune` when stale refs pile up.
|
|
122
|
-
- Force-push only your own PR branch, and only with `--force-with-lease`. Plain `--force` is
|
|
123
|
-
reserved for the single `latest` tag (§9).
|
|
124
|
-
- **Never** force-push main or any shared branch.
|
|
125
|
-
|
|
126
|
-
## 7. Tags — default OFF
|
|
127
|
-
|
|
128
|
-
> Off unless proven necessary.
|
|
129
|
-
|
|
130
|
-
- Do not create tags as part of normal work. Not per commit, not per PR.
|
|
131
|
-
- Turn tags on only when the repo requires them (publish/deploy tooling), or you ask.
|
|
132
|
-
- The single exception is the moving release pointer in §9 — that is a pointer, not a version tag.
|
|
133
|
-
|
|
134
|
-
## 8. Versioning — strict
|
|
135
|
-
|
|
136
|
-
**Format: detect, never invent.**
|
|
137
|
-
|
|
138
|
-
1. The repo declares a versioning format → use it exactly.
|
|
139
|
-
2. The repo declares nothing → our default: `MAJOR.MINOR.PATCH`.
|
|
140
|
-
|
|
141
|
-
Shapes we follow as-is: `0.0.0`, `0.0.0.0`, `0.0.0-beta.1`, CalVer `YYYY.MM.DD`,
|
|
142
|
-
a bare build number — whatever the repo uses.
|
|
143
|
-
|
|
144
|
-
**One source of truth.** The version lives in exactly one place — the manifest its
|
|
145
|
-
ecosystem reads (`package.json`, `pyproject.toml`, `Cargo.toml`, a `VERSION` file).
|
|
146
|
-
Everything else derives from it — the release body in §9 only *renders* it. Never hardcode the number in two places.
|
|
147
|
-
|
|
148
|
-
**Bump table (default 3-part):**
|
|
149
|
-
|
|
150
|
-
| Change | Bump |
|
|
151
|
-
|---|---|
|
|
152
|
-
| Breaking API or behavior change | MAJOR |
|
|
153
|
-
| New capability, backward compatible | MINOR |
|
|
154
|
-
| Bug fix, no new surface | PATCH |
|
|
155
|
-
|
|
156
|
-
- MAJOR resets MINOR and PATCH to 0. MINOR resets PATCH to 0.
|
|
157
|
-
- At `0.y.z` the project is unstable: a `y` bump may include breaking changes. State the
|
|
158
|
-
break so it isn't a surprise.
|
|
159
|
-
- Four-part `MAJOR.MINOR.PATCH.BUILD`: the first three follow the table; `BUILD` increments
|
|
160
|
-
per build and carries no API meaning. It never absorbs a breaking change.
|
|
161
|
-
|
|
162
|
-
**No bump for:** docs, tests, CI, formatting, or refactors that don't change shipped behavior.
|
|
163
|
-
|
|
164
|
-
**The bump is its own commit** — `chore(release): <old> -> <new>` — never buried inside a
|
|
165
|
-
feature commit.
|
|
166
|
-
|
|
167
|
-
**Every bump is justified — an unjustified bump is invalid.** The reason is one line, and it
|
|
168
|
-
appears twice: in the bump commit and in the release body.
|
|
169
|
-
|
|
170
|
-
```
|
|
171
|
-
chore(release): 1.4.2 -> 1.5.0
|
|
172
|
-
|
|
173
|
-
- minor: adds token refresh endpoint (backward compatible)
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
```
|
|
177
|
-
bump 1.4.2 -> 1.5.0 · minor · new: token refresh endpoint
|
|
178
|
-
```
|
|
179
|
-
|
|
180
|
-
The justification states *what kind of change* forced *which digit*. A `1.4.2 -> 1.4.3` with no
|
|
181
|
-
line explaining the fix is not allowed.
|
|
182
|
-
|
|
183
|
-
**Never:** reuse a version · bump downward · bump without justification · keep two sources of
|
|
184
|
-
truth · bury a bump inside an unrelated feature commit.
|
|
185
|
-
|
|
186
|
-
## 9. Releases — exactly one, forever
|
|
187
|
-
|
|
188
|
-
A repo has **at most one release entry, permanently**. Never a growing list. Each release is
|
|
189
|
-
the same entry, rewritten to describe the project as it stands now.
|
|
190
|
-
|
|
191
|
-
**Mechanism — one moving tag, one release:**
|
|
192
|
-
|
|
193
|
-
```
|
|
194
|
-
git tag -f latest <head-sha> # move the single pointer
|
|
195
|
-
git push --force origin latest # deliberate: the tag is a pointer, not a version
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
Then edit the one release object to point at `latest` and rewrite its body.
|
|
199
|
-
|
|
200
|
-
**Body format:**
|
|
201
|
-
|
|
202
|
-
```
|
|
203
|
-
Version: <rendered from the manifest — never hand-edited>
|
|
204
|
-
Now: <what the project is right now, 1–3 bullets>
|
|
205
|
-
Changed: <bump + reason since the last update, 1–3 bullets>
|
|
206
|
-
Use: <one line to install/run>
|
|
207
|
-
```
|
|
208
|
-
|
|
209
|
-
- One release entry. Ever. Never create a second.
|
|
210
|
-
- Never accumulate per-version tags or releases.
|
|
211
|
-
- If the repo has its own release process → **theirs wins**; do not collapse or delete it.
|
|
212
|
-
- Some repos forbid force-moving tags → repo rule wins; fall back to their process.
|
|
213
|
-
|
|
214
|
-
**How this squares with strict versioning:** the release entry is a current-state snapshot, not
|
|
215
|
-
a changelog. Version *history* lives in the bump commits — each justified, each permanent. The
|
|
216
|
-
entry only reports the version the project is at now, and overwrites cleanly every time.
|
|
217
|
-
Nothing is lost, because the commits are the record.
|
|
218
|
-
|
|
219
|
-
## 10. Worktrees — isolate when the work earns it
|
|
220
|
-
|
|
221
|
-
Multiple working trees from one repo, each on its own branch, sharing one `.git`. Use one when
|
|
222
|
-
the main checkout must stay clean, or when two things are in flight at once.
|
|
223
|
-
|
|
224
|
-
**Use when:** risky or large change · two or more features in flight · isolated review or merge ·
|
|
225
|
-
multi-branch test runs.
|
|
226
|
-
|
|
227
|
-
**Don't use when:** single-branch linear work (pure ceremony) · you just need to park uncommitted
|
|
228
|
-
changes (`git stash` is the smaller tool) · the same file would be open in two places (a conflict
|
|
229
|
-
factory, not parallelism).
|
|
230
|
-
|
|
231
|
-
### 10.1 Detect first — never create what already exists
|
|
232
|
-
|
|
233
|
-
```
|
|
234
|
-
git rev-parse --git-dir
|
|
235
|
-
git rev-parse --git-common-dir
|
|
236
|
-
```
|
|
237
|
-
|
|
238
|
-
Different paths means you are already in a linked worktree — stop, do not nest another.
|
|
239
|
-
|
|
240
|
-
**Submodule guard:** that difference is also true inside a submodule. Confirm with
|
|
241
|
-
`git rev-parse --show-superproject-working-tree` — a path back means submodule, treat it as a
|
|
242
|
-
normal repo.
|
|
243
|
-
|
|
244
|
-
Only when the two paths match are you in a normal checkout.
|
|
245
|
-
|
|
246
|
-
### 10.2 Directory — pick, then prove it's ignored
|
|
247
|
-
|
|
248
|
-
Priority: explicit instruction › existing `.worktrees/` › existing `worktrees/` › default
|
|
249
|
-
`.worktrees/`.
|
|
250
|
-
|
|
251
|
-
**Before creating, verify the directory is ignored.** An unignored worktree dir commits the
|
|
252
|
-
entire tree into the repo:
|
|
253
|
-
|
|
254
|
-
```
|
|
255
|
-
git check-ignore -q .worktrees || {
|
|
256
|
-
echo ".worktrees/" >> .gitignore
|
|
257
|
-
git add .gitignore
|
|
258
|
-
git commit -m "chore: ignore worktrees dir"
|
|
259
|
-
}
|
|
260
|
-
```
|
|
261
|
-
|
|
262
|
-
If the worktree must live outside the repo, use a sibling instead: `<repo-root>-wt-<slug>`.
|
|
263
|
-
|
|
264
|
-
### 10.3 Create, then start from a clean baseline
|
|
265
|
-
|
|
266
|
-
```
|
|
267
|
-
git worktree add -b wt/<slug> <repo-root>/.worktrees/<slug> <main | commit | tag>
|
|
268
|
-
```
|
|
269
|
-
|
|
270
|
-
1. **Set up deps** — detect and run the project's own installer (`npm install`, `cargo build`,
|
|
271
|
-
`pip install -r requirements.txt`, `poetry install`, `go mod download`).
|
|
272
|
-
2. **Run the test suite before writing code.** A dirty baseline makes every later failure
|
|
273
|
-
ambiguous. If tests already fail, report and ask — do not build on sand.
|
|
274
|
-
3. Report: worktree path, baseline result, ready.
|
|
275
|
-
|
|
276
|
-
**Sandbox fallback:** if `git worktree add` is blocked by permissions, say so and work in place.
|
|
277
|
-
|
|
278
|
-
### 10.4 Work, merge, remove
|
|
279
|
-
|
|
280
|
-
```pwsh
|
|
281
|
-
# pin every command to the worktree — the shell cwd is NOT the worktree
|
|
282
|
-
git -C <path> status
|
|
283
|
-
git -C <path> add -A; git -C <path> commit -m "..."
|
|
284
|
-
|
|
285
|
-
# merge into the base with a merge commit (keeps history readable)
|
|
286
|
-
git -C <repo-root> merge --no-ff wt/<slug>
|
|
287
|
-
|
|
288
|
-
# after merge, remove and sweep stale bookkeeping
|
|
289
|
-
git -C <repo-root> worktree remove <path>
|
|
290
|
-
git -C <repo-root> worktree prune
|
|
291
|
-
git -C <repo-root> worktree list
|
|
292
|
-
```
|
|
293
|
-
|
|
294
|
-
The `--no-ff` merge here is a local integration step. The PR itself still squashes per §6.
|
|
295
|
-
|
|
296
|
-
### 10.5 Rails
|
|
297
|
-
|
|
298
|
-
- **One writer per worktree.** One tree = one agent or session at a time; concurrent edits
|
|
299
|
-
corrupt review state.
|
|
300
|
-
- **Always pin with `git -C <path>`.** Never assume the shell is inside the worktree.
|
|
301
|
-
- **No `git clean` or `git reset --hard`** in a shared worktree.
|
|
302
|
-
- **Uncommitted work stays put.** Never carry edits between worktrees — commit, then merge.
|
|
303
|
-
- **`git worktree remove` refusing a dirty tree is the safety, not an error to route around.**
|
|
304
|
-
- **Adopting a worktree as the session's working directory is a session move:** call
|
|
305
|
-
`tools.opencode.session_move` rather than relying on shell cwd.
|
|
306
|
-
|
|
307
|
-
## 11. Never
|
|
308
|
-
|
|
309
|
-
- Never work directly on main.
|
|
310
|
-
- Never merge red — main stays green.
|
|
311
|
-
- Never commit secrets, `.env`, or credentials.
|
|
312
|
-
- Never commit debug prints or commented-out code.
|
|
313
|
-
- Never commit generated artifacts unless the repo expects them.
|
|
314
|
-
- Never force-push a shared branch.
|
|
315
|
-
- Never create a second release entry or a per-version tag.
|
|
316
|
-
- Never bump a version without a stated justification.
|
|
317
|
-
- Never tag by default.
|
|
318
|
-
|
|
319
|
-
## Quick card
|
|
320
|
-
|
|
321
|
-
```
|
|
322
|
-
detect repo rules → pull --ff-only → branch type/slug → commit type: summary →
|
|
323
|
-
push → PR (What/Why/Check/Risk) → squash → delete branch
|
|
324
|
-
version: repo's format first, else MAJOR.MINOR.PATCH — every bump justified, own commit
|
|
325
|
-
tags: off release: one, moved via `latest`, body rewritten
|
|
326
|
-
worktree: detect first · .worktrees/ ignored · clean baseline · one writer · git -C
|
|
327
|
-
main stays green · force-push only with --force-with-lease
|
|
328
|
-
repo rules always win
|
|
329
|
-
```
|
|
27
|
+
Never commit secrets, debug residue, or unrelated files. Do not clean, reset, rebase, force-push, merge, tag, or publish beyond the requested scope.
|
package/skills/grilling/SKILL.md
CHANGED
|
@@ -1,38 +1,18 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: grilling
|
|
3
|
-
description:
|
|
3
|
+
description: "Explicit-only decision interview for 'grill me' or when the user deliberately requests a bounded design-question round before a costly choice."
|
|
4
|
+
metadata:
|
|
5
|
+
"opencode/autoinvoke": false
|
|
4
6
|
---
|
|
5
7
|
|
|
6
8
|
# Grilling
|
|
7
9
|
|
|
8
|
-
|
|
10
|
+
Turn unresolved design choices into a bounded decision frontier.
|
|
9
11
|
|
|
10
|
-
|
|
12
|
+
1. Extract settled facts from the conversation and available evidence. Do not re-ask answered or discoverable questions.
|
|
13
|
+
2. Identify only decisions that materially change outcome, cost, risk, compatibility, or irreversible structure.
|
|
14
|
+
3. Ask one numbered round containing the currently independent decisions. Offer two or three mutually exclusive options, put the recommended option first, and explain the tradeoff in one sentence.
|
|
15
|
+
4. Wait for answers. Then either close with the settled decisions and remaining unknowns, or ask one dependent follow-up round.
|
|
16
|
+
5. Stop when the next action is safe and unambiguous. Return decisions to the orchestrator; do not build, dispatch, or write project files.
|
|
11
17
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
Work the tree in **rounds**. The **frontier** is every decision whose prerequisites are already settled — the questions you can ask _now_ without guessing at answers you have not heard. Ask the whole frontier in one round, numbered, each with your recommended answer. Then wait for the user's answers before the next round.
|
|
15
|
-
|
|
16
|
-
Format a round like so:
|
|
17
|
-
|
|
18
|
-
```
|
|
19
|
-
❓ **Q1** - **<question title>**: <question body, including the choices>
|
|
20
|
-
|
|
21
|
-
➡️ <your recommended answer>
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
❓ **Q2** - **<question title>**: <question body>
|
|
26
|
-
|
|
27
|
-
➡️ <your recommended answer>
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
Each round reshapes the tree: settled decisions push the frontier outward and unblock questions that depended on them. Recompute the frontier and ask the next round. A question whose answer depends on another question still open in this round belongs to a _later_ round, not this one.
|
|
31
|
-
|
|
32
|
-
## Facts are yours; decisions are theirs
|
|
33
|
-
|
|
34
|
-
Find facts yourself — never ask the user for something the environment can answer. Dispatch `explore` for filesystem, code, or docs facts; don't block on it. A running exploration is an unsettled prerequisite, so only the questions downstream of it wait for the report; ask the rest of the frontier now. Put every decision to the user and wait.
|
|
35
|
-
|
|
36
|
-
## Done
|
|
37
|
-
|
|
38
|
-
The session is done when the frontier is empty: every branch of the design tree visited, nothing left silently assumed. Do not act on it until the user confirms you have reached a shared understanding; then hand the settled decisions to `spec-driven-development` or straight to the build.
|
|
18
|
+
Prefer a stated assumption over a question when the choice is cheap and reversible. Never use interviewing as generic preflight or confirmation theater.
|