@yandy-r/ycc-opencode 6.0.0 → 6.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/AGENTS.md +3 -2
- package/README.md +10 -1
- package/agents/backport-conflict-resolver.md +346 -4
- package/agents/db-modifier.md +346 -4
- package/agents/git-cleanup.md +3 -2
- package/agents/pr-comment-fixer.md +365 -23
- package/agents/release-fix-applier.md +383 -19
- package/agents/review-fixer.md +371 -26
- package/index.js +268 -5
- package/package.json +3 -2
- package/registration.json +4113 -1238
- package/shared/references/ci-monitoring.md +11 -1
- package/shared/references/goal-pairing.md +4 -2
- package/shared/references/question-policy.md +99 -0
- package/shared/references/review-dispatch.md +4 -2
- package/shared/references/standalone-dispatch.md +4 -2
- package/shared/references/target-capability-matrix.md +227 -36
- package/shared/references/worktree-strategy.md +20 -4
- package/shared/scripts/worktree-paths.sh +7 -2
- package/skills/backport/SKILL.md +2 -0
- package/skills/blueprint/SKILL.md +2 -0
- package/skills/bundle-author/SKILL.md +2 -0
- package/skills/bundle-release/SKILL.md +11 -7
- package/skills/bundle-release/references/release-checklist.md +4 -4
- package/skills/bundle-release/references/version-policy.md +21 -15
- package/skills/bundle-release/scripts/bump-version.sh +5 -3
- package/skills/bundle-release/scripts/draft-notes.sh +1 -1
- package/skills/bundle-release/scripts/preflight.sh +2 -1
- package/skills/bundle-release/scripts/release_versions.py +21 -7
- package/skills/clean/SKILL.md +2 -0
- package/skills/code-report/SKILL.md +2 -0
- package/skills/code-review/SKILL.md +2 -0
- package/skills/compatibility-audit/SKILL.md +9 -6
- package/skills/compatibility-audit/references/reading-the-report.md +4 -1
- package/skills/compatibility-audit/scripts/audit-install-assumptions.sh +71 -12
- package/skills/compatibility-audit/scripts/audit-target-features.sh +58 -20
- package/skills/feature-research/SKILL.md +2 -0
- package/skills/formatters/SKILL.md +2 -0
- package/skills/git-cleanup/SKILL.md +19 -5
- package/skills/git-cleanup/references/active-code-rules.md +8 -3
- package/skills/git-workflow/SKILL.md +2 -0
- package/skills/implement-plan/SKILL.md +2 -0
- package/skills/init/SKILL.md +2 -0
- package/skills/init/templates/git/gitignore.tmpl +1 -0
- package/skills/plan/SKILL.md +2 -0
- package/skills/plan-workflow/SKILL.md +4 -1
- package/skills/pr-autofix/SKILL.md +2 -0
- package/skills/prp-implement/SKILL.md +2 -0
- package/skills/prp-plan/SKILL.md +2 -2
- package/skills/prp-pr/SKILL.md +2 -0
- package/skills/prp-prd/SKILL.md +2 -0
- package/skills/prp-spec/SKILL.md +2 -0
- package/skills/quick-review/SKILL.md +5 -3
- package/skills/release-model/SKILL.md +2 -0
- package/skills/releaser/SKILL.md +2 -0
- package/skills/research-to-issues/SKILL.md +2 -0
- package/skills/resume-session/SKILL.md +2 -0
- package/skills/review-fix/SKILL.md +11 -9
- package/skills/save-session/SKILL.md +2 -0
- package/ycc-sensitive-guard/index.js +621 -0
- package/ycc-sensitive-guard/package.json +7 -0
- package/ycc-sensitive-guard/policy.json +40 -0
- package/skills/prp-plan/scripts/preflight-enhanced-agents.sh +0 -111
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
# target capability matrix and report verdict per (surface, capability, target).
|
|
4
4
|
#
|
|
5
5
|
# Usage:
|
|
6
|
-
# audit-target-features.sh [--format=human|json] [--strict] [--help]
|
|
6
|
+
# audit-target-features.sh [--target=<t>|all] [--format=human|json] [--strict] [--help]
|
|
7
7
|
#
|
|
8
8
|
# Flags:
|
|
9
|
+
# --target=<t>|all Restrict findings to one target: claude, cursor, codex,
|
|
10
|
+
# opencode, omp, or all (default: all). `--target <t>` also works.
|
|
9
11
|
# --format=human|json Output format (default: human)
|
|
10
12
|
# --strict Exit 1 if any verdict is "unsupported"
|
|
11
13
|
# --help Show this help and exit 0
|
|
@@ -20,7 +22,7 @@
|
|
|
20
22
|
#
|
|
21
23
|
# The parser reads ONE markdown table from the matrix file. Rules:
|
|
22
24
|
# - The header row must be exactly (after per-cell whitespace trim):
|
|
23
|
-
# capability | claude | cursor | codex | opencode
|
|
25
|
+
# capability | claude | cursor | codex | opencode | omp
|
|
24
26
|
# - Separator rows (cells of dashes) are skipped.
|
|
25
27
|
# - Each data cell must be one of: supported | partial | unsupported
|
|
26
28
|
# - The "As of <date>" line is expected anywhere in the file as:
|
|
@@ -37,13 +39,15 @@ set -euo pipefail
|
|
|
37
39
|
|
|
38
40
|
usage() {
|
|
39
41
|
cat <<'EOF'
|
|
40
|
-
Usage: audit-target-features.sh [--format=human|json] [--strict] [--help]
|
|
42
|
+
Usage: audit-target-features.sh [--target=<t>|all] [--format=human|json] [--strict] [--help]
|
|
41
43
|
|
|
42
44
|
Parse the target capability matrix and cross-reference every ycc source surface
|
|
43
45
|
(skills, agents) against it to emit per-(surface, capability, target)
|
|
44
46
|
verdict lines.
|
|
45
47
|
|
|
46
48
|
Flags:
|
|
49
|
+
--target=<t>|all Restrict findings to one target: claude, cursor, codex,
|
|
50
|
+
opencode, omp, or all (default: all). `--target <t>` also works.
|
|
47
51
|
--format=human|json Output format (default: human)
|
|
48
52
|
--strict Exit 1 if any verdict is "unsupported"
|
|
49
53
|
--help Show this help and exit 0
|
|
@@ -59,14 +63,31 @@ EOF
|
|
|
59
63
|
# Argument parsing
|
|
60
64
|
# ---------------------------------------------------------------------------
|
|
61
65
|
|
|
66
|
+
# Canonical target order; must match the matrix header after `capability`.
|
|
67
|
+
ALL_TARGETS=("claude" "cursor" "codex" "opencode" "omp")
|
|
68
|
+
|
|
62
69
|
FORMAT="human"
|
|
63
70
|
STRICT=0
|
|
71
|
+
TARGET="all"
|
|
64
72
|
|
|
65
|
-
|
|
73
|
+
while [[ $# -gt 0 ]]; do
|
|
74
|
+
arg="$1"
|
|
66
75
|
case "$arg" in
|
|
67
76
|
--format=*)
|
|
68
77
|
FORMAT="${arg#--format=}"
|
|
69
78
|
;;
|
|
79
|
+
--target=*)
|
|
80
|
+
TARGET="${arg#--target=}"
|
|
81
|
+
;;
|
|
82
|
+
--target)
|
|
83
|
+
if [[ $# -lt 2 ]]; then
|
|
84
|
+
echo "audit-target-features.sh: --target requires a value" >&2
|
|
85
|
+
usage >&2
|
|
86
|
+
exit 2
|
|
87
|
+
fi
|
|
88
|
+
TARGET="$2"
|
|
89
|
+
shift
|
|
90
|
+
;;
|
|
70
91
|
--strict)
|
|
71
92
|
STRICT=1
|
|
72
93
|
;;
|
|
@@ -80,6 +101,7 @@ for arg in "$@"; do
|
|
|
80
101
|
exit 2
|
|
81
102
|
;;
|
|
82
103
|
esac
|
|
104
|
+
shift
|
|
83
105
|
done
|
|
84
106
|
|
|
85
107
|
case "$FORMAT" in
|
|
@@ -91,6 +113,15 @@ case "$FORMAT" in
|
|
|
91
113
|
;;
|
|
92
114
|
esac
|
|
93
115
|
|
|
116
|
+
case "$TARGET" in
|
|
117
|
+
all|claude|cursor|codex|opencode|omp) ;;
|
|
118
|
+
*)
|
|
119
|
+
echo "audit-target-features.sh: unknown --target value: $TARGET" >&2
|
|
120
|
+
usage >&2
|
|
121
|
+
exit 2
|
|
122
|
+
;;
|
|
123
|
+
esac
|
|
124
|
+
|
|
94
125
|
# ---------------------------------------------------------------------------
|
|
95
126
|
# Resolve MATRIX_FILE and REPO_ROOT
|
|
96
127
|
#
|
|
@@ -151,7 +182,7 @@ fi
|
|
|
151
182
|
# ---------------------------------------------------------------------------
|
|
152
183
|
# Parse the capability matrix via Python
|
|
153
184
|
# Outputs: one line per capability row in the form:
|
|
154
|
-
# <capability>|<
|
|
185
|
+
# <capability>|<claude>|<cursor>|<codex>|<opencode>|<omp>
|
|
155
186
|
# First line is the "As of ..." date (prefixed with "AS_OF:").
|
|
156
187
|
# ---------------------------------------------------------------------------
|
|
157
188
|
|
|
@@ -162,7 +193,7 @@ matrix_path = sys.argv[1]
|
|
|
162
193
|
matrix_rel = sys.argv[2]
|
|
163
194
|
|
|
164
195
|
VOCABULARY = {"supported", "partial", "unsupported"}
|
|
165
|
-
EXPECTED_HEADER = ["capability", "claude", "cursor", "codex", "opencode"]
|
|
196
|
+
EXPECTED_HEADER = ["capability", "claude", "cursor", "codex", "opencode", "omp"]
|
|
166
197
|
|
|
167
198
|
lines = open(matrix_path).read().splitlines()
|
|
168
199
|
|
|
@@ -201,7 +232,7 @@ for lineno, raw in enumerate(lines, 1):
|
|
|
201
232
|
if cells != EXPECTED_HEADER:
|
|
202
233
|
print(
|
|
203
234
|
f"PARSE_ERROR:Line {lineno}: expected header "
|
|
204
|
-
f"'|
|
|
235
|
+
f"'| {' | '.join(EXPECTED_HEADER)} |' "
|
|
205
236
|
f"but got: {raw!r}\n{error_pointer}",
|
|
206
237
|
file=sys.stderr
|
|
207
238
|
)
|
|
@@ -210,20 +241,15 @@ for lineno, raw in enumerate(lines, 1):
|
|
|
210
241
|
continue
|
|
211
242
|
|
|
212
243
|
# Data row — validate and emit
|
|
213
|
-
if len(cells) !=
|
|
244
|
+
if len(cells) != len(EXPECTED_HEADER):
|
|
214
245
|
print(
|
|
215
|
-
f"PARSE_ERROR:Line {lineno}: expected
|
|
246
|
+
f"PARSE_ERROR:Line {lineno}: expected {len(EXPECTED_HEADER)} cells but found {len(cells)}: {raw!r}\n{error_pointer}",
|
|
216
247
|
file=sys.stderr
|
|
217
248
|
)
|
|
218
249
|
sys.exit(2)
|
|
219
250
|
|
|
220
|
-
cap
|
|
221
|
-
for col_name, val in [
|
|
222
|
-
("claude", claude_v),
|
|
223
|
-
("cursor", cursor_v),
|
|
224
|
-
("codex", codex_v),
|
|
225
|
-
("opencode", opencode_v),
|
|
226
|
-
]:
|
|
251
|
+
cap = cells[0]
|
|
252
|
+
for col_name, val in zip(EXPECTED_HEADER[1:], cells[1:]):
|
|
227
253
|
if val not in VOCABULARY:
|
|
228
254
|
print(
|
|
229
255
|
f"PARSE_ERROR:Line {lineno}: cell '{col_name}={val}' is not in vocabulary "
|
|
@@ -232,7 +258,7 @@ for lineno, raw in enumerate(lines, 1):
|
|
|
232
258
|
)
|
|
233
259
|
sys.exit(2)
|
|
234
260
|
|
|
235
|
-
print(
|
|
261
|
+
print("|".join(cells))
|
|
236
262
|
|
|
237
263
|
if not header_found:
|
|
238
264
|
print(
|
|
@@ -254,14 +280,16 @@ fi
|
|
|
254
280
|
|
|
255
281
|
AS_OF_LINE="$(echo "$PARSE_RESULT" | grep "^AS_OF:" | sed 's/^AS_OF://')"
|
|
256
282
|
|
|
257
|
-
# Build parallel arrays: CAPS, VERDICTS_CLAUDE, VERDICTS_CURSOR, VERDICTS_CODEX,
|
|
283
|
+
# Build parallel arrays: CAPS, VERDICTS_CLAUDE, VERDICTS_CURSOR, VERDICTS_CODEX,
|
|
284
|
+
# VERDICTS_OPENCODE, VERDICTS_OMP
|
|
258
285
|
declare -a CAPS=()
|
|
259
286
|
declare -a VERDICTS_CLAUDE=()
|
|
260
287
|
declare -a VERDICTS_CURSOR=()
|
|
261
288
|
declare -a VERDICTS_CODEX=()
|
|
262
289
|
declare -a VERDICTS_OPENCODE=()
|
|
290
|
+
declare -a VERDICTS_OMP=()
|
|
263
291
|
|
|
264
|
-
while IFS='|' read -r cap cl cu co oc; do
|
|
292
|
+
while IFS='|' read -r cap cl cu co oc om; do
|
|
265
293
|
[[ "$cap" == AS_OF:* ]] && continue
|
|
266
294
|
[[ -z "$cap" ]] && continue
|
|
267
295
|
CAPS+=("$cap")
|
|
@@ -269,6 +297,7 @@ while IFS='|' read -r cap cl cu co oc; do
|
|
|
269
297
|
VERDICTS_CURSOR+=("$cu")
|
|
270
298
|
VERDICTS_CODEX+=("$co")
|
|
271
299
|
VERDICTS_OPENCODE+=("$oc")
|
|
300
|
+
VERDICTS_OMP+=("$om")
|
|
272
301
|
done < <(echo "$PARSE_RESULT" | grep -v "^AS_OF:")
|
|
273
302
|
|
|
274
303
|
# ---------------------------------------------------------------------------
|
|
@@ -364,7 +393,11 @@ declare -a FIND_CAP=()
|
|
|
364
393
|
declare -a FIND_TARGET=()
|
|
365
394
|
declare -a FIND_VERDICT=()
|
|
366
395
|
|
|
367
|
-
|
|
396
|
+
if [[ "$TARGET" == "all" ]]; then
|
|
397
|
+
TARGETS=("${ALL_TARGETS[@]}")
|
|
398
|
+
else
|
|
399
|
+
TARGETS=("$TARGET")
|
|
400
|
+
fi
|
|
368
401
|
|
|
369
402
|
lookup_verdict() {
|
|
370
403
|
local cap="$1"
|
|
@@ -377,6 +410,11 @@ lookup_verdict() {
|
|
|
377
410
|
cursor) echo "${VERDICTS_CURSOR[$i]}"; return ;;
|
|
378
411
|
codex) echo "${VERDICTS_CODEX[$i]}"; return ;;
|
|
379
412
|
opencode) echo "${VERDICTS_OPENCODE[$i]}"; return ;;
|
|
413
|
+
omp) echo "${VERDICTS_OMP[$i]}"; return ;;
|
|
414
|
+
*)
|
|
415
|
+
echo "audit-target-features.sh: lookup_verdict: unknown target '$target'" >&2
|
|
416
|
+
exit 2
|
|
417
|
+
;;
|
|
380
418
|
esac
|
|
381
419
|
fi
|
|
382
420
|
i=$((i + 1))
|
|
@@ -63,6 +63,8 @@ Examples:
|
|
|
63
63
|
/ycc:feature-research user-dashboard --dry-run
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
+
**Questions:** class `choose-path` (regenerate or enhance an existing spec); headless (no question tool or chat turn): enhance. See `{{package-root}}/shared/references/question-policy.md`.
|
|
67
|
+
|
|
66
68
|
---
|
|
67
69
|
|
|
68
70
|
## Phase 0: Initialize
|
|
@@ -37,6 +37,8 @@ Context injection is one scoped helper call: no `pwd`, `head`, `2>/dev/null`, or
|
|
|
37
37
|
|
|
38
38
|
Flags are composable. See `references/flag-reference.md` for the full matrix and precedence rules. See `references/best-practices.md` for per-language tool rationale.
|
|
39
39
|
|
|
40
|
+
**Questions:** class `confirm-destructive` ("Proceed with install?"); headless (no question tool or chat turn): abort the install and print `rerun with --yes`. See `{{package-root}}/shared/references/question-policy.md`.
|
|
41
|
+
|
|
40
42
|
## Task
|
|
41
43
|
|
|
42
44
|
Execute the phases in order. Phases are short — do not add narrative prose between them.
|
|
@@ -33,6 +33,8 @@ Parse `$ARGUMENTS`:
|
|
|
33
33
|
any branch that is the base of an open PR, and — when the repo has a
|
|
34
34
|
`RELEASING.md` — the state's `trunk` and every `maintenance` branch.
|
|
35
35
|
|
|
36
|
+
**Questions:** class `confirm-destructive` (Phase 4 decision gate, per-item prompts); headless (no question tool or chat turn): produce the dry-run report even with `--apply`, delete nothing, and print the interactive rerun. See `{{package-root}}/shared/references/question-policy.md`.
|
|
37
|
+
|
|
36
38
|
## Phase 0: Setup and Host Detection
|
|
37
39
|
|
|
38
40
|
1. **Verify working tree is a git repo**: `git rev-parse --git-dir`. Abort if not.
|
|
@@ -81,10 +83,17 @@ flags that emit machine-readable output.
|
|
|
81
83
|
- **Branches**: `git for-each-ref refs/heads/ --format='%(refname:short)|%(upstream)|%(upstream:track)|%(committerdate:iso8601)|%(objectname)'`
|
|
82
84
|
- **Remote-tracking prune candidates**: `git remote prune <remote> --dry-run`
|
|
83
85
|
for each remote from `git remote`.
|
|
86
|
+
|
|
87
|
+
|
|
84
88
|
- **Worktrees**: `git worktree list --porcelain`. Flag entries whose `worktree`
|
|
85
89
|
path no longer exists, whose branch is `[gone]`, or which sit under a legacy
|
|
86
|
-
global ycc root (`~/.claude-worktrees/`) instead of
|
|
87
|
-
|
|
90
|
+
global ycc root (`~/.claude-worktrees/`) instead of a repo-local managed root.
|
|
91
|
+
The managed roots under the repo root are `.claude/worktrees/`,
|
|
92
|
+
`.opencode/worktrees/`, `.codex/worktrees/`, `.cursor/worktrees/`,
|
|
93
|
+
`.omp/worktrees/` and `.agents/worktrees/`; every runtime checks all of them.
|
|
94
|
+
Entries under `~/.omp/wt` are OMP-managed (`omp worktree clear`): report only,
|
|
95
|
+
never delete.
|
|
96
|
+
|
|
88
97
|
- **Stashes**: `git stash list --date=iso`. Parse the date from each entry.
|
|
89
98
|
- **Tags**: `git for-each-ref refs/tags/ --format='%(refname:short)|%(creatordate:iso8601)|%(objectname)'`
|
|
90
99
|
then `git ls-remote --tags <remote>` to find local-only tags.
|
|
@@ -278,9 +287,14 @@ release-model rules (a malformed state has already stopped the run in Phase 0).
|
|
|
278
287
|
- **A malformed `RELEASING.md` state block stops the audit** with the parse
|
|
279
288
|
error and a pointer to `/ycc:release-model --audit`.
|
|
280
289
|
- **Never `git branch -D`** without explicit per-item confirmation.
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
- **Worktrees under any repo-local managed root** (`.claude/`, `.opencode/`,
|
|
293
|
+
`.codex/`, `.cursor/`, `.omp/` or `.agents/` followed by `worktrees/`) are fair
|
|
294
|
+
game per this repo's convention. Legacy worktrees under `~/.claude-worktrees/`
|
|
295
|
+
should be reported and, if the user confirms, relocated or removed. Never delete
|
|
296
|
+
worktrees under `~/.omp/wt`; OMP manages them (`omp worktree clear`).
|
|
297
|
+
|
|
284
298
|
- **Respect the repo's label taxonomy**. Do not invent stale/wontfix labels.
|
|
285
299
|
- **No secrets**. Do not log tokens or API responses containing credentials.
|
|
286
300
|
- **Ambiguous items are always surfaced**, never auto-deleted.
|
|
@@ -300,10 +300,15 @@ branch. Additionally, a worktree is **active** if any of:
|
|
|
300
300
|
prune is a safe cleanup, not a destructive action).
|
|
301
301
|
- The attached branch is `[gone]` — upstream deleted. Surface as Ambiguous:
|
|
302
302
|
safe to remove IF R2 (unpushed commits) does not fire.
|
|
303
|
+
|
|
304
|
+
|
|
303
305
|
- The worktree sits under the legacy global ycc root (`~/.claude-worktrees/`)
|
|
304
|
-
instead of
|
|
305
|
-
|
|
306
|
-
|
|
306
|
+
instead of a preferred repo-local parent: `.claude/worktrees/`,
|
|
307
|
+
`.opencode/worktrees/`, `.codex/worktrees/`, `.cursor/worktrees/`,
|
|
308
|
+
`.omp/worktrees/` or `.agents/worktrees/` under the repo root. Report and offer
|
|
309
|
+
relocation; do not delete without explicit approval.
|
|
310
|
+
- The worktree sits under `~/.omp/wt`. OMP manages that base
|
|
311
|
+
(`omp worktree clear`); report it as active and never delete it.
|
|
307
312
|
|
|
308
313
|
## PR / Issue–specific notes
|
|
309
314
|
|
|
@@ -44,6 +44,8 @@ At least one action flag is required in normal use; with none, resolve interacti
|
|
|
44
44
|
- **--ci**: monitor CI on the current branch's PR and auto-fix until green or a bail. Works with `--pr` (create-then-monitor), `--push` (push-then-monitor), or bare (monitor only: no commit, no push). An open PR for the branch must exist when Phase 6 starts. Incompatible with `--dry-run` and with `--commit`-only.
|
|
45
45
|
- **--ci-max-pushes=N** (default 5), **--ci-max-same-failure=N** (default 3), **--ci-timeout-min=N** (default 30, from first iteration), **--ci-yes** (skip the one-time auth prompt)
|
|
46
46
|
|
|
47
|
+
**Questions:** class `clarify` (Phase 0.5 action menu): headless (no question tool or chat turn), print the menu and stop; pass `--commit`, `--push` or `--pr`. Class `confirm-publish` (Step 22a "run --ci against the existing PR?", Phase 6 CI authorization): headless and without `--ci-yes`, skip CI monitoring and print `rerun with --ci-yes`. Class `confirm-publish` (backport-label question): headless, add no label and print the `/ycc:backport` hint. See `{{package-root}}/shared/references/question-policy.md`.
|
|
48
|
+
|
|
47
49
|
## Tool Preference (before Phase 0)
|
|
48
50
|
|
|
49
51
|
If tools matching `mcp__github__*` exist, use MCP for GitHub operations (PR create/view/list); otherwise use `gh` via Bash. `git` operations, the skill scripts, and file reading always use Bash and the Read/Grep/Glob tools regardless.
|
|
@@ -20,6 +20,8 @@ Execute a parallel implementation plan by deploying implementor agents in depend
|
|
|
20
20
|
- Never pass `isolation: "worktree"` per agent — all agents in all batches share the one feature worktree (or the prepared checkout under `--no-worktree`).
|
|
21
21
|
- Standalone task failure: record it and continue only independent tasks. Team failure: no auto-retry or skipping; ask the user before advancing.
|
|
22
22
|
|
|
23
|
+
**Questions:** class `failure-recovery` (team batch failure); headless (no question tool or chat turn): stop, keep the feature worktree, and print the failing batch plus the resume command. See `{{package-root}}/shared/references/question-policy.md`.
|
|
24
|
+
|
|
23
25
|
## Workflow Integration
|
|
24
26
|
|
|
25
27
|
Final step of the planning workflow; requires `parallel-plan.md` from the parallel-plan skill.
|
package/skills/init/SKILL.md
CHANGED
|
@@ -41,6 +41,8 @@ Context injection is deliberately one scoped helper call: no `pwd`, `ls | head`,
|
|
|
41
41
|
|
|
42
42
|
Flags are composable. See `references/flag-reference.md` for the full matrix.
|
|
43
43
|
|
|
44
|
+
**Questions:** headless (no question tool or chat turn) defaults: class `clarify` (empty or unknown profile): print the questions and stop; class `confirm-destructive` (profile confirmation, conflicts, rules migration): behave as `--dry-run`, skip existing files, print diffs and the rerun, then stop. The release-model offer is skipped unless `--release-model` is passed. See `{{package-root}}/shared/references/question-policy.md`.
|
|
45
|
+
|
|
44
46
|
## Task
|
|
45
47
|
|
|
46
48
|
Execute the following phases in order. Phases are short — do not add narrative prose between steps.
|
package/skills/plan/SKILL.md
CHANGED
|
@@ -13,6 +13,8 @@ Create conversational implementation plan before code. Default output stays in c
|
|
|
13
13
|
|
|
14
14
|
**Core gate: WAIT for explicit confirmation before any code is written.** Accept "yes", "proceed", "approved", or similar affirmative. Until then, read-only analysis only; do not touch code. Unclear draft: ask focused question and re-dispatch rather than guess.
|
|
15
15
|
|
|
16
|
+
**Questions:** class `checkpoint` (Step 4 confirmation); headless (no question tool or chat turn): emit the plan and stop before any implementation. See `{{package-root}}/shared/references/question-policy.md`.
|
|
17
|
+
|
|
16
18
|
## What This Skill Does
|
|
17
19
|
|
|
18
20
|
1. Parse `--parallel`, `--enhanced`, `--dry-run`, `--no-worktree`, `--worktree`,
|
|
@@ -50,6 +50,8 @@ Parse flags first, then the feature name (first non-flag argument, required; dir
|
|
|
50
50
|
|
|
51
51
|
If no feature name is provided, abort with the full usage instructions from `references/checkpoint-messages.md` — read when the feature name is missing ("Usage Instructions" section).
|
|
52
52
|
|
|
53
|
+
**Questions:** class `checkpoint` (Step 16 research review): headless (no question tool or chat turn), continue to planning and report the skipped checkpoint in the summary. Class `confirm-destructive` (Step 4C overwrite choice): headless, overwrite nothing; stop with `rerun with --no-checkpoint` to regenerate. See `{{package-root}}/shared/references/question-policy.md`.
|
|
54
|
+
|
|
53
55
|
## Visual mode
|
|
54
56
|
|
|
55
57
|
See `{{package-root}}/shared/references/visual-mode.md` for the canonical `--visual` contract. `--visual` is a terminal decorator step, orthogonal to `--optimized` and `--no-worktree`; it runs once at the very end. With `VISUAL_MODE=true` and no `--dry-run`, after the final phase invoke `visual-plan <absolute-plan-path>` where the path is the **actual written plan** at `${feature_dir}/parallel-plan.md` (resolved in Phase 0) — never a hardcoded `docs/prps/plans` path; `visual-plan` derives its `visual/` output directory from it. With `--dry-run`, short-circuit: print `visual generation would run` and do not invoke `visual-plan`. `--research-only` produces no plan file, so `--visual` does not run.
|
|
@@ -119,7 +121,8 @@ Run `scripts/check-prerequisites.sh "[feature-name]"` per gate 5. Then, for `--o
|
|
|
119
121
|
### Step 4C: Overwrite Choice (when shared.md or parallel-plan.md exists)
|
|
120
122
|
|
|
121
123
|
- **Interactive (checkpoint enabled)**: surface the matching warning from `references/checkpoint-messages.md` ("Existing State Warnings") and let the user choose regenerate vs reuse/stop.
|
|
122
|
-
- **Non-interactive (`--no-checkpoint`)**: default is **regenerate (overwrite)** so pipelines stay non-blocking. State the choice when proceeding (e.g. "shared.md exists — regenerating (non-interactive default)").
|
|
124
|
+
- **Non-interactive (`--no-checkpoint`)**: default is **regenerate (overwrite)** so pipelines stay non-blocking; passing the flag is the explicit opt-in. State the choice when proceeding (e.g. "shared.md exists — regenerating (non-interactive default)").
|
|
125
|
+
- **Headless (no question tool or chat turn), checkpoint enabled**: do not overwrite. Print the existing paths and `rerun with --no-checkpoint` to regenerate, then **STOP** without writes or dispatch.
|
|
123
126
|
- **Research-only reuse**: report the existing `shared.md` path, state that no files were changed, print `/ycc:parallel-plan <feature>` as the next step, and **STOP** without dispatching agents.
|
|
124
127
|
|
|
125
128
|
### Step 5: Create Directory
|
|
@@ -22,6 +22,8 @@ Vendor-neutral counterpart to `coderabbit:autofix`. Pulls every comment surface
|
|
|
22
22
|
- Every eligible thread is processed exactly once: applied, skipped-with-reason, deferred, or failed.
|
|
23
23
|
- GitHub-only. Forgejo/Gitea lack GraphQL `resolveReviewThread`, per-comment harvesting, and `gh run` controls, with no `tea` equivalent. Phase 0 detects the provider per `{{package-root}}/shared/references/forge-detection.md` (capability matrix rows: "Review-thread resolution", "Per-comment PR autofix harvesting", "CI-autofix loop"); on a non-`github` remote, stop gracefully and say why.
|
|
24
24
|
|
|
25
|
+
**Questions:** class `confirm-destructive` (per-comment approval, dirty tree, branch switch); headless (no question tool or chat turn) and without `--yes`/`--ci`: behave as `--dry-run`; a dirty tree or wrong branch aborts. Class `confirm-publish` (Phase 7 CI authorization): headless and without `--ci-yes`, skip CI monitoring and print `rerun with --ci-yes`. See `{{package-root}}/shared/references/question-policy.md`.
|
|
26
|
+
|
|
25
27
|
## Phase checklist
|
|
26
28
|
|
|
27
29
|
0. DETECT — parse flags, resolve PR, provider check, preflight.
|
|
@@ -21,6 +21,8 @@ Execute a plan file step-by-step with continuous validation. Every change is ver
|
|
|
21
21
|
- Dry-run prints the roster and exits without team/task/agent tools.
|
|
22
22
|
- Parallel validation failure stops the pipeline before the next batch. No auto-retry, no skipping a failed batch; preserve completed work and let the user decide.
|
|
23
23
|
|
|
24
|
+
**Questions:** class `choose-path` (execution mode for a parallel-capable plan): headless (no question tool or chat turn), run sequential (Path A); class `failure-recovery` (batch validation): stop, preserve completed work, and print the failing batch plus the resume command. See `{{package-root}}/shared/references/question-policy.md`.
|
|
25
|
+
|
|
24
26
|
## Phase 0 — DETECT
|
|
25
27
|
|
|
26
28
|
### Flag Parsing
|
package/skills/prp-plan/SKILL.md
CHANGED
|
@@ -64,6 +64,8 @@ ARGUMENTS="${ARGUMENTS//--visual/}"
|
|
|
64
64
|
- `--visual` is orthogonal — it composes with `--parallel`/`--enhanced`/`--no-worktree` and runs after the plan is written and validated. `--dry-run` short-circuits it (prints intent only).
|
|
65
65
|
|
|
66
66
|
|
|
67
|
+
**Questions:** class `clarify` (Ambiguity Gate): headless (no question tool or chat turn), print the open questions and stop; a team retry offer prints the `--parallel` rerun and stops. See `{{package-root}}/shared/references/question-policy.md`.
|
|
68
|
+
|
|
67
69
|
### Input Detection
|
|
68
70
|
|
|
69
71
|
| Input Pattern | Action |
|
|
@@ -110,8 +112,6 @@ Gather codebase intelligence across 8 categories and 5 traces.
|
|
|
110
112
|
|
|
111
113
|
**5 traces**: Entry Points, Data Flow, State Changes, Contracts, Patterns
|
|
112
114
|
|
|
113
|
-
When `ENHANCED_MODE=true`, run `{{package-root}}/skills/prp-plan/scripts/preflight-enhanced-agents.sh` and abort with the script's stderr if it exits non-zero. This catches missing agent dependencies before any researcher is dispatched. The script auto-derives the plugin root from its own install location; no argument needed at runtime.
|
|
114
|
-
|
|
115
115
|
|
|
116
116
|
### Path A — Sequential (default)
|
|
117
117
|
|
package/skills/prp-pr/SKILL.md
CHANGED
|
@@ -31,6 +31,8 @@ This is the lightweight counterpart to `/ycc:git-workflow --pr`. Use it when you
|
|
|
31
31
|
|
|
32
32
|
Without an explicit base this is the `RELEASING.md` base (`release-state.sh base`), else the repo default branch. Exit 2 means a malformed `RELEASING.md`: stop with the parse error and `/ycc:release-model --audit`. Use `$BASE` as `<base>` everywhere below. See `{{package-root}}/shared/references/pr-base-and-backport.md`.
|
|
33
33
|
|
|
34
|
+
**Questions:** class `confirm-publish` (Phase 1 "run --ci against the existing PR?", Phase 7 CI authorization): headless (no question tool or chat turn) and without `--ci-yes`, skip CI monitoring and print `rerun with --ci-yes`. Class `confirm-publish` (backport prompt): headless, add no label and print the `/ycc:backport` hint. Class `choose-path` (multiple PR templates): headless, use `default.md` (or the first template) and say so. See `{{package-root}}/shared/references/question-policy.md`.
|
|
35
|
+
|
|
34
36
|
---
|
|
35
37
|
|
|
36
38
|
## Phase 1 — VALIDATE
|
package/skills/prp-prd/SKILL.md
CHANGED
|
@@ -12,6 +12,8 @@ description: Develops problem-first PRDs through interactive discovery. Use when
|
|
|
12
12
|
|
|
13
13
|
**Input**: `$ARGUMENTS`
|
|
14
14
|
|
|
15
|
+
**Questions:** class `clarify` (every interview gate); headless (no question tool or chat turn): print the open questions, write nothing, stop. See `{{package-root}}/shared/references/question-policy.md`.
|
|
16
|
+
|
|
15
17
|
---
|
|
16
18
|
|
|
17
19
|
## Your Role
|
package/skills/prp-spec/SKILL.md
CHANGED
|
@@ -14,6 +14,8 @@ description: Writes lightweight single-pass PRP feature specs. Use when specifyi
|
|
|
14
14
|
|
|
15
15
|
**Core Philosophy**: A spec captures WHAT to build and WHY, with enough technical direction to feed directly into `prp-plan`. It does NOT capture HOW in implementation detail — that is the plan's job.
|
|
16
16
|
|
|
17
|
+
**Questions:** class `clarify` (Phase 1); headless (no question tool or chat turn): print the open questions, write nothing, stop. See `{{package-root}}/shared/references/question-policy.md`.
|
|
18
|
+
|
|
17
19
|
---
|
|
18
20
|
|
|
19
21
|
## Key Distinctions
|
|
@@ -47,6 +47,8 @@ Error: /ycc:quick-review takes no positional argument (only flags).
|
|
|
47
47
|
- More than one of `--yes`, `--save`, `--write-and-apply` present -> abort with: `--yes, --save, and --write-and-apply are mutually exclusive. Pick one.`
|
|
48
48
|
- `--severity` value not one of `CRITICAL|HIGH|MEDIUM|LOW` -> abort with: `Invalid --severity value. Use CRITICAL, HIGH, MEDIUM, or LOW.`
|
|
49
49
|
|
|
50
|
+
**Questions:** class `choose-path` (Phase 4 review action); headless (no question tool or chat turn): behave as `--save` (Save to file). See `{{package-root}}/shared/references/question-policy.md`.
|
|
51
|
+
|
|
50
52
|
---
|
|
51
53
|
|
|
52
54
|
## Phase 1 — GATHER
|
|
@@ -171,9 +173,9 @@ Mark "Apply fixes" with `(Recommended)` when `large_review=false` and
|
|
|
171
173
|
`critical_count + high_count > 0`. Mark "Write file and apply fixes" with
|
|
172
174
|
`(Recommended)` when `large_review=true`.
|
|
173
175
|
|
|
174
|
-
**Text-mode fallback** (
|
|
175
|
-
|
|
176
|
-
|
|
176
|
+
**Text-mode fallback** (no question tool, chat turn available): follow the shared
|
|
177
|
+
fallback in `{{package-root}}/shared/references/question-policy.md`.
|
|
178
|
+
Reply synonyms (case-insensitive):
|
|
177
179
|
|
|
178
180
|
- `yes` / `apply` / `apply fixes` / `fix` -> "Apply fixes"
|
|
179
181
|
- `write and apply` / `write file and apply fixes` / `file and fix` / `artifact and fix` -> "Write file and apply fixes"
|
|
@@ -47,6 +47,8 @@ Script paths used below:
|
|
|
47
47
|
- `POINTER={{package-root}}/shared/scripts/rules-pointer.sh` — the single canonical `AGENTS.md`/`CLAUDE.md` pointer helper shared with `init`; `$TARGETS` delegates to it. Release-model only reads it: it never migrates a layout and never creates a missing rules file.
|
|
48
48
|
- `TEMPLATE={{package-root}}/skills/release-model/templates/RELEASING.md.tmpl`
|
|
49
49
|
|
|
50
|
+
**Questions:** class `confirm-publish` (model questions, write after preview); headless (no question tool or chat turn) and without `--yes`: print the proposal and preview, write nothing, and print `rerun with --yes`. See `{{package-root}}/shared/references/question-policy.md`.
|
|
51
|
+
|
|
50
52
|
## Phase 0 — Preflight and mode
|
|
51
53
|
|
|
52
54
|
1. `git rev-parse --show-toplevel` must succeed; call the result `ROOT`. Otherwise STOP:
|
package/skills/releaser/SKILL.md
CHANGED
|
@@ -77,6 +77,8 @@ Parse `$ARGUMENTS`:
|
|
|
77
77
|
release workflow has no `workflow_dispatch` trigger. Without it the loop refuses to
|
|
78
78
|
enter when the only re-cut path is `gh release delete --cleanup-tag` + re-publish.
|
|
79
79
|
|
|
80
|
+
**Questions:** class `confirm-publish` (version confirm, backport gate, manifest diff, notes review, CI authorization); headless (no question tool or chat turn): stop at the first human gate, run nothing state-changing, and print the plan plus the exact rerun. Human gates are never auto-approved. See `{{package-root}}/shared/references/question-policy.md`.
|
|
81
|
+
|
|
80
82
|
## Phase 0..5: Preflight through Manifests
|
|
81
83
|
|
|
82
84
|
Read `references/release-preparation.md` before Phase 0 and follow it for the six preparation phases in order:
|
|
@@ -31,6 +31,8 @@ Parse arguments:
|
|
|
31
31
|
- **--skip-anti-scope**: Skip creating issues for anti-scope/deferred items
|
|
32
32
|
- **--skip-gaps**: Skip creating issues for research gaps
|
|
33
33
|
|
|
34
|
+
**Questions:** class `clarify` (source not found): headless (no question tool or chat turn), print the expected paths and stop; class `confirm-publish` (Step 3 source confirmation): headless, behave as `--dry-run`. See `{{package-root}}/shared/references/question-policy.md`.
|
|
35
|
+
|
|
34
36
|
---
|
|
35
37
|
|
|
36
38
|
## Tool Preference Strategy
|
|
@@ -11,6 +11,8 @@ Load the last saved session state and orient fully before doing any work. This s
|
|
|
11
11
|
|
|
12
12
|
**Operational context:** Load the most recent session through the shared session-state contract, or select by date/path; brief completed work, successful and failed approaches, open questions, and the exact next step. Do not start work or touch files until the user directs continuation.
|
|
13
13
|
|
|
14
|
+
**Questions:** class `checkpoint` (Step 4); headless (no question tool or chat turn): print the brief and stop; start no work. See `{{package-root}}/shared/references/question-policy.md`.
|
|
15
|
+
|
|
14
16
|
## When to Use
|
|
15
17
|
|
|
16
18
|
- Starting a new session to continue work from a previous day
|
|
@@ -31,6 +31,8 @@ Extract flags from `$ARGUMENTS` before treating the remainder as the input:
|
|
|
31
31
|
|
|
32
32
|
Strip the supported flags from `$ARGUMENTS` and set `PARALLEL_MODE`, `MIN_SEVERITY`, `DRY_RUN`, and `WORKTREE_MODE=true` unless `--no-worktree` is present. The remaining text is the input selector.
|
|
33
33
|
|
|
34
|
+
**Questions:** class `failure-recovery` (Path B/C between-batch failure): headless (no question tool or chat turn), stop, preserve completed fixes, and print the failing batch plus the resume command; class `clarify` (blank input): headless, print the resolved artifact path and stop. See `{{package-root}}/shared/references/question-policy.md`.
|
|
35
|
+
|
|
34
36
|
**Validation**:
|
|
35
37
|
|
|
36
38
|
- Both `--parallel`:
|
|
@@ -51,15 +53,15 @@ Error paths:
|
|
|
51
53
|
|
|
52
54
|
Package manager detection (`TYPECHECK_CMD`, `TEST_CMD`):
|
|
53
55
|
|
|
54
|
-
| File | Type-check
|
|
55
|
-
| ------------------- |
|
|
56
|
-
| `bun.lockb` | `bun run typecheck`
|
|
57
|
-
| `pnpm-lock.yaml` | `pnpm typecheck` / `pnpm tsc`
|
|
58
|
-
| `yarn.lock` | `yarn typecheck`
|
|
59
|
-
| `package-lock.json` | `npx tsc --noEmit`
|
|
60
|
-
| `Cargo.toml` | `cargo check`
|
|
61
|
-
| `go.mod` | `go vet ./...`
|
|
62
|
-
| `pyproject.toml` |
|
|
56
|
+
| File | Type-check | Tests |
|
|
57
|
+
| ------------------- | ------------------------------------------------------------------------------ | --------------- |
|
|
58
|
+
| `bun.lockb` | `bun run typecheck` | `bun test` |
|
|
59
|
+
| `pnpm-lock.yaml` | `pnpm typecheck` / `pnpm tsc` | `pnpm test` |
|
|
60
|
+
| `yarn.lock` | `yarn typecheck` | `yarn test` |
|
|
61
|
+
| `package-lock.json` | `npx tsc --noEmit` | `npm test` |
|
|
62
|
+
| `Cargo.toml` | `cargo check` | `cargo test` |
|
|
63
|
+
| `go.mod` | `go vet ./...` | `go test ./...` |
|
|
64
|
+
| `pyproject.toml` | `pytest` (`python3 -m mypy <paths>` only when mypy is configured with targets) | `pytest` |
|
|
63
65
|
|
|
64
66
|
## Phase 1 — LOAD
|
|
65
67
|
|
|
@@ -9,6 +9,8 @@ description: Saves session progress, failures, and next steps for later resumpti
|
|
|
9
9
|
|
|
10
10
|
Capture everything that happened in this session — what was built, what worked, what failed, what's left — and write it to a dated file so the next session can pick up exactly where this one left off.
|
|
11
11
|
|
|
12
|
+
**Questions:** class `checkpoint` (Step 5 review); headless (no question tool or chat turn): the file is written; report its path and finish. See `{{package-root}}/shared/references/question-policy.md`.
|
|
13
|
+
|
|
12
14
|
## When to Use
|
|
13
15
|
|
|
14
16
|
- End of a work session before closing opencode
|