@yandy-r/ycc-opencode 6.0.0 → 6.1.1
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
|
@@ -29,6 +29,8 @@ Parse `$ARGUMENTS`:
|
|
|
29
29
|
The older `--with-command` flag is accepted as a legacy no-op. It never creates
|
|
30
30
|
a wrapper or overrides `--skill-only`.
|
|
31
31
|
|
|
32
|
+
**Questions:** class `clarify` (Phase 0 anti-pattern match "proceed?"): headless (no question tool or chat turn), print the matched anti-pattern and stop; scaffold nothing. See `{{package-root}}/shared/references/question-policy.md`.
|
|
33
|
+
|
|
32
34
|
## Phase 0: Guards
|
|
33
35
|
|
|
34
36
|
Before scaffolding, verify all of the following. If any check fails, abort immediately
|
|
@@ -24,6 +24,8 @@ Parse `$ARGUMENTS` for:
|
|
|
24
24
|
- **--no-publish** — this is the default; the skill never invokes `gh release create`.
|
|
25
25
|
The flag is accepted silently for clarity.
|
|
26
26
|
|
|
27
|
+
**Questions:** class `confirm-publish` (semver concern, release-branch intent); headless (no question tool or chat turn): stop before the bump and print the concern plus the rerun command. See `{{package-root}}/shared/references/question-policy.md`.
|
|
28
|
+
|
|
27
29
|
## Phase 0: Pre-flight
|
|
28
30
|
|
|
29
31
|
Run `ycc/skills/bundle-release/scripts/preflight.sh`. On non-zero
|
|
@@ -76,7 +78,8 @@ If `--dry-run` was passed, print the full release plan:
|
|
|
76
78
|
`.claude-plugin/marketplace.json`, and `ycc/package.json` when it carries a version.
|
|
77
79
|
The package model is validated, not bumped; generated `packages/**` and runtime
|
|
78
80
|
manifests are check-only (including the required opencode npm manifest).
|
|
79
|
-
- Derived bundles that will be regenerated (`.cursor-plugin/`, `.codex-plugin/`, `.opencode-plugin
|
|
81
|
+
- Derived bundles that will be regenerated (`.cursor-plugin/`, `.codex-plugin/`, `.opencode-plugin/`,
|
|
82
|
+
the `.omp-plugin/` catalog, and `packages/omp/<pkg>/.omp-plugin/plugin.json`).
|
|
80
83
|
- All commands that would be executed, in order.
|
|
81
84
|
|
|
82
85
|
Then STOP without writing or executing anything.
|
|
@@ -90,7 +93,8 @@ The wrappers share `scripts/release_versions.py`, which reads
|
|
|
90
93
|
unmodeled product version fields, and validates all inputs before writing. A missing
|
|
91
94
|
or malformed model or required manifest causes no writes; a write error mid-bump
|
|
92
95
|
has best-effort rollback only (not crash-atomic).
|
|
93
|
-
Generated surfaces (`packages
|
|
96
|
+
Generated surfaces (`packages/` including `packages/omp/<pkg>/.omp-plugin/plugin.json`,
|
|
97
|
+
runtime bundles, the `.omp-plugin/` catalog, `.agents/plugins/marketplace.json`)
|
|
94
98
|
are checked by preflight but never bumped directly. Bumped files are JSON
|
|
95
99
|
re-serialized (2-space indent, trailing newline), preserving key order and unrelated
|
|
96
100
|
fields. After it exits, surface the diff (`git diff` of the modified files from
|
|
@@ -111,7 +115,7 @@ If it fails, surface the following rollback command and STOP:
|
|
|
111
115
|
for path in ycc/.claude-plugin/plugin.json .claude-plugin/marketplace.json \
|
|
112
116
|
ycc/package.json \
|
|
113
117
|
packages .agents/plugins/marketplace.json .agents-plugin \
|
|
114
|
-
.cursor-plugin .codex-plugin .opencode-plugin docs/inventory.json; do
|
|
118
|
+
.cursor-plugin .codex-plugin .opencode-plugin .omp-plugin docs/inventory.json; do
|
|
115
119
|
if git ls-files --error-unmatch -- "$path" >/dev/null 2>&1; then
|
|
116
120
|
git checkout -- "$path"
|
|
117
121
|
fi
|
|
@@ -120,7 +124,7 @@ done
|
|
|
120
124
|
```
|
|
121
125
|
|
|
122
126
|
Do not hand-edit `packages/`, `.agents/plugins/marketplace.json`, `.agents-plugin/`,
|
|
123
|
-
`.cursor-plugin/`, `.codex-plugin/`, or `.
|
|
127
|
+
`.cursor-plugin/`, `.codex-plugin/`, `.opencode-plugin/`, or `.omp-plugin/` — regenerate them only.
|
|
124
128
|
The rollback loop restores tracked paths (including deleted files) but does not
|
|
125
129
|
remove newly generated untracked files; review those separately.
|
|
126
130
|
|
|
@@ -159,10 +163,10 @@ Release prepared. No commits have been made — review the diff, then run:
|
|
|
159
163
|
for path in ycc/.claude-plugin/plugin.json .claude-plugin/marketplace.json \
|
|
160
164
|
ycc/package.json \
|
|
161
165
|
packages .agents/plugins/marketplace.json .agents-plugin \
|
|
162
|
-
.cursor-plugin .codex-plugin .opencode-plugin docs/inventory.json \
|
|
166
|
+
.cursor-plugin .codex-plugin .opencode-plugin .omp-plugin docs/inventory.json \
|
|
163
167
|
docs/releases/<new-version>.md; do
|
|
164
|
-
if [ -e "$path" ]; then
|
|
165
|
-
git add -- "$path"
|
|
168
|
+
if [ -e "$path" ] || git ls-files --error-unmatch -- "$path" >/dev/null 2>&1; then
|
|
169
|
+
git add -A -- "$path"
|
|
166
170
|
fi
|
|
167
171
|
done
|
|
168
172
|
git commit -m "chore(release): v<new-version>"
|
|
@@ -122,10 +122,10 @@ The skill does NOT auto-commit. After reviewing all changes, run:
|
|
|
122
122
|
for path in ycc/.claude-plugin/plugin.json .claude-plugin/marketplace.json \
|
|
123
123
|
ycc/package.json \
|
|
124
124
|
packages .agents/plugins/marketplace.json .agents-plugin \
|
|
125
|
-
.cursor-plugin .codex-plugin .opencode-plugin docs/inventory.json \
|
|
125
|
+
.cursor-plugin .codex-plugin .opencode-plugin .omp-plugin docs/inventory.json \
|
|
126
126
|
docs/releases/<new-version>.md; do
|
|
127
|
-
if [ -e "$path" ]; then
|
|
128
|
-
git add -- "$path"
|
|
127
|
+
if [ -e "$path" ] || git ls-files --error-unmatch -- "$path" >/dev/null 2>&1; then
|
|
128
|
+
git add -A -- "$path"
|
|
129
129
|
fi
|
|
130
130
|
done
|
|
131
131
|
git commit -m "chore(release): v<new-version>"
|
|
@@ -167,7 +167,7 @@ If anything fails after Phase 1:
|
|
|
167
167
|
for path in ycc/.claude-plugin/plugin.json .claude-plugin/marketplace.json \
|
|
168
168
|
ycc/package.json \
|
|
169
169
|
packages .agents/plugins/marketplace.json .agents-plugin \
|
|
170
|
-
.cursor-plugin .codex-plugin .opencode-plugin docs/inventory.json; do
|
|
170
|
+
.cursor-plugin .codex-plugin .opencode-plugin .omp-plugin docs/inventory.json; do
|
|
171
171
|
if git ls-files --error-unmatch -- "$path" >/dev/null 2>&1; then
|
|
172
172
|
git checkout -- "$path"
|
|
173
173
|
fi
|
|
@@ -15,17 +15,18 @@ The following files carry version information for the `ycc` bundle. Only hand-ed
|
|
|
15
15
|
files are modified directly; regenerated files are produced by running the listed
|
|
16
16
|
generator script.
|
|
17
17
|
|
|
18
|
-
| File
|
|
19
|
-
|
|
|
20
|
-
| `ycc/.claude-plugin/plugin.json`
|
|
21
|
-
| `.claude-plugin/marketplace.json`
|
|
22
|
-
| `ycc/package.json`
|
|
23
|
-
| `ycc/settings/packages.json`
|
|
24
|
-
| `packages/<package>` and `packages/<runtime>/<package>` manifests (`{.claude-plugin,.codex-plugin,.cursor-plugin}/plugin.json`, `package.json`) | regenerated | runtime package generators via `scripts/sync.sh`; included native manifests required, generated versions check-only |
|
|
25
|
-
| `.agents/plugins/marketplace.json`
|
|
26
|
-
| `.codex-plugin/**`
|
|
27
|
-
| `.cursor-plugin/**`
|
|
28
|
-
| `.opencode-plugin/**`
|
|
18
|
+
| File | Kind | Maintained by |
|
|
19
|
+
| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------- |
|
|
20
|
+
| `ycc/.claude-plugin/plugin.json` | hand-edited | `bundle-release` `bump-version.sh` |
|
|
21
|
+
| `.claude-plugin/marketplace.json` | hand-edited | `bundle-release` `bump-version.sh` |
|
|
22
|
+
| `ycc/package.json` | optional | `bundle-release` `bump-version.sh` (only if it already has a `version` field) |
|
|
23
|
+
| `ycc/settings/packages.json` | hand-edited | package model read directly by release discovery; validated, never bumped |
|
|
24
|
+
| `packages/<package>` and `packages/<runtime>/<package>` manifests (`{.claude-plugin,.codex-plugin,.cursor-plugin,.omp-plugin}/plugin.json`, `package.json`) | regenerated | runtime package generators via `scripts/sync.sh`; included native manifests required, generated versions check-only |
|
|
25
|
+
| `.agents/plugins/marketplace.json` | regenerated | `scripts/generate-codex-plugin.sh` |
|
|
26
|
+
| `.codex-plugin/**` | regenerated | `scripts/generate-codex-plugin.sh` |
|
|
27
|
+
| `.cursor-plugin/**` | regenerated | `scripts/sync.sh --only cursor` |
|
|
28
|
+
| `.opencode-plugin/**` | regenerated | `scripts/sync.sh --only opencode` |
|
|
29
|
+
| `.omp-plugin/marketplace.json` (catalog; present only while an OMP row is listed) | regenerated | `scripts/sync.sh --only omp` |
|
|
29
30
|
|
|
30
31
|
Discovery rules are implemented in `bundle-release/scripts/release_versions.py`
|
|
31
32
|
(shared by `bump-version.sh` and `preflight.sh`):
|
|
@@ -36,8 +37,10 @@ Discovery rules are implemented in `bundle-release/scripts/release_versions.py`
|
|
|
36
37
|
- Every `included` native entry must have an existing manifest with a non-empty
|
|
37
38
|
string version, regardless of `listed`: Claude `ycc` uses the canonical source;
|
|
38
39
|
other Claude packages use `packages/claude/<key>/` with the same manifest suffix,
|
|
39
|
-
Codex uses `.codex-plugin/<key>/.codex-plugin/plugin.json`,
|
|
40
|
-
`packages/cursor/<key>/.cursor-plugin/plugin.json
|
|
40
|
+
Codex uses `.codex-plugin/<key>/.codex-plugin/plugin.json`, Cursor uses
|
|
41
|
+
`packages/cursor/<key>/.cursor-plugin/plugin.json`, and OMP uses
|
|
42
|
+
`packages/omp/<key>/.omp-plugin/plugin.json` plus `packages/omp/<key>/.opencode-plugin/plugin.json`
|
|
43
|
+
and `packages/omp/<key>/package.json`. Generated manifests are check-only.
|
|
41
44
|
- Included opencode npm packages use `packages/opencode/<unscoped-key>/package.json`
|
|
42
45
|
and are required to exist at the lockstep version (check-only). The package is
|
|
43
46
|
experimental, opt-in, and not yet published.
|
|
@@ -60,7 +63,8 @@ non-excluded `plugins[]` entry's `version`, the required included native manifes
|
|
|
60
63
|
and the optional versioned manifests above. Only source manifests and versioned
|
|
61
64
|
`ycc/package.json` are bumped directly; `packages/**` is generated check-only.
|
|
62
65
|
Generated marketplaces and package manifests (`.agents/plugins/marketplace.json`,
|
|
63
|
-
`.cursor-plugin/**`, `.codex-plugin/**`, `packages/**`) are checked
|
|
66
|
+
`.omp-plugin/marketplace.json`, `.cursor-plugin/**`, `.codex-plugin/**`, `packages/**`) are checked
|
|
67
|
+
for parity too, refreshed only by
|
|
64
68
|
`./scripts/sync.sh`. `bundle-release/scripts/preflight.sh` enforces all of this before
|
|
65
69
|
any release action proceeds. If generated surfaces are stale after a bump, run
|
|
66
70
|
`./scripts/sync.sh` — never hand-edit them. If hand-edited sources diverge, fix them
|
|
@@ -95,7 +99,8 @@ current bundle version. Prose mentions (e.g., "the 2.0.0 breaking change") are n
|
|
|
95
99
|
matched because the pattern requires a `version` key preceding the semver — those are
|
|
96
100
|
allowed in historical context.
|
|
97
101
|
|
|
98
|
-
Generated bundles (`.cursor-plugin/`, `.codex-plugin/`, `.opencode-plugin
|
|
102
|
+
Generated bundles (`.cursor-plugin/`, `.codex-plugin/`, `.opencode-plugin/`, `.omp-plugin/`,
|
|
103
|
+
`packages/`) and
|
|
99
104
|
historical dirs (`docs/releases/`, `docs/plans/`, `docs/research/`, `docs/internal/`)
|
|
100
105
|
are excluded from the scan.
|
|
101
106
|
|
|
@@ -138,6 +143,7 @@ scripts) to propagate:
|
|
|
138
143
|
- `.cursor-plugin/**`
|
|
139
144
|
- `.codex-plugin/**`
|
|
140
145
|
- `.opencode-plugin/**`
|
|
146
|
+
- `.omp-plugin/**`
|
|
141
147
|
- `docs/inventory.json`
|
|
142
148
|
|
|
143
149
|
## Pre-Bump Checklist
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
# paths are suppressed and file-copy entries are skipped. Included opencode npm
|
|
17
17
|
# manifests are required to exist at the lockstep version (check-only).
|
|
18
18
|
# Never touches ycc/mods (versioned separately) or generated bundles
|
|
19
|
-
# (packages
|
|
19
|
+
# (packages/ including packages/omp/<pkg>/.omp-plugin/plugin.json, .agents/plugins/,
|
|
20
|
+
# .cursor-plugin/, .codex-plugin/, .opencode-plugin/, the .omp-plugin/ catalog) —
|
|
20
21
|
# refresh those with ./scripts/sync.sh after the bump; preflight.sh enforces their parity.
|
|
21
22
|
set -euo pipefail
|
|
22
23
|
|
|
@@ -63,8 +64,9 @@ Bump the product version across every hand-edited version surface in lockstep:
|
|
|
63
64
|
- .claude-plugin/marketplace.json (.metadata.version and every .plugins[].version)
|
|
64
65
|
- ycc/package.json if it already carries a version
|
|
65
66
|
Versionless entries stay versionless. ycc/mods is never touched. Generated
|
|
66
|
-
bundles (packages
|
|
67
|
-
.
|
|
67
|
+
bundles (packages/ including packages/omp/<pkg>/.omp-plugin/plugin.json,
|
|
68
|
+
.agents/plugins/, .cursor-plugin/, .codex-plugin/, .opencode-plugin/, the
|
|
69
|
+
.omp-plugin/ catalog) are not edited — run ./scripts/sync.sh afterwards. Validates
|
|
68
70
|
semver format (x.y.z); malformed inputs, a missing/malformed package model, or a
|
|
69
71
|
missing/versionless required manifest abort before any file is written.
|
|
70
72
|
EOF
|
|
@@ -142,7 +142,7 @@ if not isinstance(packages, dict):
|
|
|
142
142
|
print(f"draft-notes.sh: FAIL: {path}: packages must be an object", file=sys.stderr)
|
|
143
143
|
sys.exit(1)
|
|
144
144
|
|
|
145
|
-
RUNTIME_ORDER = ("claude", "codex", "cursor", "opencode", "agents")
|
|
145
|
+
RUNTIME_ORDER = ("claude", "codex", "cursor", "opencode", "agents", "omp")
|
|
146
146
|
rows = []
|
|
147
147
|
for key in sorted(packages):
|
|
148
148
|
package = packages[key]
|
|
@@ -123,7 +123,8 @@ fi
|
|
|
123
123
|
# Prose mentions of older versions (e.g., "2.0.0 breaking change") are not
|
|
124
124
|
# matched because the pattern requires a "version" key preceding the semver.
|
|
125
125
|
#
|
|
126
|
-
# Generated bundles (.opencode-plugin, .cursor-plugin, .codex-plugin
|
|
126
|
+
# Generated bundles (.opencode-plugin, .cursor-plugin, .codex-plugin, the
|
|
127
|
+
# .omp-plugin catalog, packages/ including packages/omp/<pkg>/.omp-plugin) and
|
|
127
128
|
# historical directories (docs/releases, docs/plans, docs/research,
|
|
128
129
|
# docs/internal) are excluded.
|
|
129
130
|
|
|
@@ -16,11 +16,13 @@ Bumped (hand-edited sources):
|
|
|
16
16
|
- ``ycc/package.json`` when it already carries a ``version``
|
|
17
17
|
|
|
18
18
|
Checked only (regenerated by ``./scripts/sync.sh``, never hand-bumped): the
|
|
19
|
-
marketplaces ``.agents/plugins/marketplace.json
|
|
20
|
-
``.cursor-plugin/marketplace.json``, plus plugin
|
|
21
|
-
``.codex-plugin/`` and ``.cursor-plugin/`` (the directory
|
|
22
|
-
directories), plus ``packages/<package>`` and
|
|
23
|
-
plugin/package manifests (same bounded manifest
|
|
19
|
+
marketplaces ``.agents/plugins/marketplace.json``,
|
|
20
|
+
``.cursor-plugin/marketplace.json`` and ``.omp-plugin/marketplace.json``, plus plugin
|
|
21
|
+
and package manifests under ``.codex-plugin/`` and ``.cursor-plugin/`` (the directory
|
|
22
|
+
and its direct child directories), plus ``packages/<package>`` and
|
|
23
|
+
``packages/<runtime>/<package>`` plugin/package manifests (same bounded manifest
|
|
24
|
+
filenames). An included native OMP package must have ``.omp-plugin/plugin.json``,
|
|
25
|
+
``.claude-plugin/plugin.json`` and ``package.json`` under ``packages/omp/<package>``.
|
|
24
26
|
|
|
25
27
|
Included native manifests must exist and have a version. Unmodeled optional files
|
|
26
28
|
and versionless marketplace entries never gain a field.
|
|
@@ -38,11 +40,16 @@ from typing import Any
|
|
|
38
40
|
|
|
39
41
|
PLUGIN_REL = "ycc/.claude-plugin/plugin.json"
|
|
40
42
|
SOURCE_MARKETPLACE_REL = ".claude-plugin/marketplace.json"
|
|
41
|
-
OPTIONAL_MARKETPLACES = (
|
|
43
|
+
OPTIONAL_MARKETPLACES = (
|
|
44
|
+
".agents/plugins/marketplace.json",
|
|
45
|
+
".cursor-plugin/marketplace.json",
|
|
46
|
+
".omp-plugin/marketplace.json",
|
|
47
|
+
)
|
|
42
48
|
MANIFEST_SUBDIRS = (".claude-plugin", ".codex-plugin", ".cursor-plugin")
|
|
49
|
+
OMP_MANIFEST_SUBDIRS = (".omp-plugin", ".claude-plugin")
|
|
43
50
|
EXCLUDED_NAME = "ycc-mods"
|
|
44
51
|
EXCLUDED_SOURCE_PREFIX = "ycc/mods"
|
|
45
|
-
PACKAGE_RUNTIMES = ("claude", "codex", "cursor", "opencode", "agents")
|
|
52
|
+
PACKAGE_RUNTIMES = ("claude", "codex", "cursor", "opencode", "agents", "omp")
|
|
46
53
|
MODEL_REL = "ycc/settings/packages.json"
|
|
47
54
|
Key = str | int
|
|
48
55
|
|
|
@@ -181,6 +188,13 @@ def _model_manifests(root: Path) -> list[tuple[str, str, bool, bool]]:
|
|
|
181
188
|
if mechanism == "file-copy":
|
|
182
189
|
continue
|
|
183
190
|
required = True
|
|
191
|
+
if runtime == "omp" and mechanism == "native" and "/" not in key:
|
|
192
|
+
# scripts/generate_omp_packages.py: OMP reads the version from these, in this
|
|
193
|
+
# package root; the catalog entry is checked through OPTIONAL_MARKETPLACES.
|
|
194
|
+
base = f"packages/{runtime}/{key}"
|
|
195
|
+
for rel in (*(f"{base}/{sub}/plugin.json" for sub in OMP_MANIFEST_SUBDIRS), f"{base}/package.json"):
|
|
196
|
+
manifests.append((label, rel, status == "included", required))
|
|
197
|
+
continue
|
|
184
198
|
if mechanism == "native" and runtime in PACKAGE_RUNTIMES[:3] and "/" not in key:
|
|
185
199
|
subdir = MANIFEST_SUBDIRS[PACKAGE_RUNTIMES.index(runtime)]
|
|
186
200
|
if runtime == "claude" and key == "ycc":
|
package/skills/clean/SKILL.md
CHANGED
|
@@ -19,6 +19,8 @@ Parse `$ARGUMENTS` for:
|
|
|
19
19
|
- **--report-only**: Generate report without deletions
|
|
20
20
|
- **--safe-mode**: Extra confirmation per category
|
|
21
21
|
|
|
22
|
+
**Questions:** class `confirm-destructive` (both deletion prompts); headless (no question tool or chat turn): behave as `--report-only`. See `{{package-root}}/shared/references/question-policy.md`.
|
|
23
|
+
|
|
22
24
|
### Deprecated: `--include-git`
|
|
23
25
|
|
|
24
26
|
If `$ARGUMENTS` contains `--include-git`: ignore the flag, keep every other argument unchanged, and display this notice exactly once, before Phase 0 (including before any `--dry-run` stop):
|
|
@@ -44,6 +44,8 @@ Examples:
|
|
|
44
44
|
/ycc:code-report payment-integration --dry-run
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
+
**Questions:** class `clarify` (prerequisite failure "proceed anyway?", changed-file list request): headless (no question tool or chat turn), print the error or the missing input and stop; write no report. See `{{package-root}}/shared/references/question-policy.md`.
|
|
48
|
+
|
|
47
49
|
---
|
|
48
50
|
|
|
49
51
|
## Phase 0: Prerequisites Check
|
|
@@ -43,6 +43,8 @@ Mode selection: `--quick` first; PR number/URL (or branch selector) means PR;
|
|
|
43
43
|
blank means local. Local/quick mode MUST NOT post to GitHub, promote drafts,
|
|
44
44
|
commit/push artifacts, or remove worktrees.
|
|
45
45
|
|
|
46
|
+
**Questions:** none. A PR argument is the explicit `confirm-publish` selection: PR mode posts the review, promotes a draft unless `--keep-draft`, and commits and pushes the artifact, interactive or headless. Local and `--quick` modes never publish. See `{{package-root}}/shared/references/question-policy.md`.
|
|
47
|
+
|
|
46
48
|
### Quick delegation
|
|
47
49
|
|
|
48
50
|
Print:
|
|
@@ -10,7 +10,7 @@ metadata:
|
|
|
10
10
|
# compatibility-audit
|
|
11
11
|
|
|
12
12
|
This skill audits the health of every generated compatibility target for the
|
|
13
|
-
`ycc` plugin — Claude, Cursor, Codex, and
|
|
13
|
+
`ycc` plugin — Claude, Cursor, Codex, opencode, and omp (oh-my-pi) — and produces a structured,
|
|
14
14
|
per-target triage report. It detects bundle drift between the `ycc/` source
|
|
15
15
|
tree and the generated bundles, validates install assumptions (path conventions,
|
|
16
16
|
shebang lines, executable bits), and surfaces feature-capability gaps using the
|
|
@@ -36,8 +36,10 @@ modifies any file.
|
|
|
36
36
|
Parse `$ARGUMENTS` for:
|
|
37
37
|
|
|
38
38
|
- **--target** (optional, default `all`) — restrict the audit to a single
|
|
39
|
-
target. Accepted values: `claude`, `cursor`, `codex`, `opencode`, `all`. When `all` is
|
|
40
|
-
specified, phases 2–5 run once per target in the set `{claude, cursor, codex, opencode}`.
|
|
39
|
+
target. Accepted values: `claude`, `cursor`, `codex`, `opencode`, `omp`, `all`. When `all` is
|
|
40
|
+
specified, phases 2–5 run once per target in the set `{claude, cursor, codex, opencode, omp}`.
|
|
41
|
+
`omp` has no generated tree or generator yet: skip Phases 2 and 3 for it and
|
|
42
|
+
report them as `not generated yet` rather than failures.
|
|
41
43
|
- **--json** (flag, default off) — emit the final triage report as a
|
|
42
44
|
machine-readable JSON envelope instead of Markdown. Per-target sections are
|
|
43
45
|
preserved inside the envelope as structured objects.
|
|
@@ -64,7 +66,7 @@ required for Phase 5.
|
|
|
64
66
|
|
|
65
67
|
Parse `$ARGUMENTS` as described above. Resolve `--target` to a concrete list:
|
|
66
68
|
|
|
67
|
-
- `all` → `[claude, cursor, codex, opencode]`
|
|
69
|
+
- `all` → `[claude, cursor, codex, opencode, omp]`
|
|
68
70
|
- any single value → a one-element list
|
|
69
71
|
|
|
70
72
|
If `--dry-run` was passed, print the resolved target list, the scripts that
|
|
@@ -117,7 +119,7 @@ is active, STOP after the first failure.
|
|
|
117
119
|
Run once, not per-target:
|
|
118
120
|
|
|
119
121
|
```
|
|
120
|
-
{{package-root}}/skills/compatibility-audit/scripts/audit-target-features.sh
|
|
122
|
+
{{package-root}}/skills/compatibility-audit/scripts/audit-target-features.sh --format=json
|
|
121
123
|
```
|
|
122
124
|
|
|
123
125
|
This script cross-references the capability matrix loaded in Phase 0 against
|
|
@@ -149,7 +151,8 @@ Wrap the per-target objects in a top-level envelope:
|
|
|
149
151
|
"claude": { "drift": {...}, "validation": {...}, "install": {...}, "features": {...}, "verdict": "PASS|WARN|FAIL" },
|
|
150
152
|
"cursor": { "drift": {...}, "validation": {...}, "install": {...}, "features": {...}, "verdict": "PASS|WARN|FAIL" },
|
|
151
153
|
"codex": { "drift": {...}, "validation": {...}, "install": {...}, "features": {...}, "verdict": "PASS|WARN|FAIL" },
|
|
152
|
-
"opencode":{ "drift": {...}, "validation": {...}, "install": {...}, "features": {...}, "verdict": "PASS|WARN|FAIL" }
|
|
154
|
+
"opencode":{ "drift": {...}, "validation": {...}, "install": {...}, "features": {...}, "verdict": "PASS|WARN|FAIL" },
|
|
155
|
+
"omp": { "drift": {...}, "validation": {...}, "install": {...}, "features": {...}, "verdict": "PASS|WARN|FAIL" }
|
|
153
156
|
},
|
|
154
157
|
"audited_at": "<ISO-8601 timestamp>"
|
|
155
158
|
}
|
|
@@ -32,7 +32,10 @@ A failure here means the bundle cannot be trusted for release.
|
|
|
32
32
|
artifact uses the expected install-path convention, has a valid shebang where required,
|
|
33
33
|
and that plugin-root variable references are rewritten target-appropriately (kept as
|
|
34
34
|
`${CLAUDE_PLUGIN_ROOT}` in the Claude source tree; rewritten to the installed plugin's
|
|
35
|
-
absolute path in generated Cursor and Codex bundles).
|
|
35
|
+
absolute path in generated Cursor and Codex bundles). For `omp`, `OM1` passes while the root
|
|
36
|
+
`.omp-plugin/` is absent only if the matrix marks `INSTALL_PATH:omp` `unsupported` or `partial`
|
|
37
|
+
(`partial` with no listed OMP package: installed by `install.sh --target omp` from a generated
|
|
38
|
+
export); once the catalog exists, `OM2` requires a valid `.omp-plugin/marketplace.json`.
|
|
36
39
|
|
|
37
40
|
**Feature-vs-matrix** — output of `audit-target-features.sh`. Cross-references
|
|
38
41
|
capabilities in the source tree against `target-capability-matrix.md`. Features present
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# audit-install-assumptions.sh — validate install-path assumptions for each
|
|
3
|
-
# generated compatibility target (Claude, Cursor, Codex, opencode).
|
|
3
|
+
# generated compatibility target (Claude, Cursor, Codex, opencode, omp).
|
|
4
4
|
#
|
|
5
5
|
# Flags:
|
|
6
|
-
# --target=<claude|cursor|codex|opencode|all> (default: all)
|
|
6
|
+
# --target=<claude|cursor|codex|opencode|omp|all> (default: all)
|
|
7
7
|
# --format=<human|json> (default: human)
|
|
8
8
|
# --help, -h print usage and exit 0
|
|
9
9
|
#
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
set -euo pipefail
|
|
13
13
|
|
|
14
14
|
usage() { cat <<'EOF'
|
|
15
|
-
Usage: audit-install-assumptions.sh [--target=<claude|cursor|codex|opencode|all>]
|
|
15
|
+
Usage: audit-install-assumptions.sh [--target=<claude|cursor|codex|opencode|omp|all>]
|
|
16
16
|
[--format=<human|json>] [--help|-h]
|
|
17
17
|
[repo-root]
|
|
18
18
|
|
|
@@ -42,7 +42,7 @@ for arg in "$@"; do
|
|
|
42
42
|
;;
|
|
43
43
|
esac
|
|
44
44
|
done
|
|
45
|
-
case "$TARGET" in all|claude|cursor|codex|opencode) ;;
|
|
45
|
+
case "$TARGET" in all|claude|cursor|codex|opencode|omp) ;;
|
|
46
46
|
*) echo "audit-install-assumptions.sh: unknown --target: $TARGET" >&2; usage >&2; exit 2 ;; esac
|
|
47
47
|
case "$FORMAT" in human|json) ;;
|
|
48
48
|
*) echo "audit-install-assumptions.sh: unknown --format: $FORMAT" >&2; usage >&2; exit 2 ;; esac
|
|
@@ -243,7 +243,10 @@ run_opencode_checks() {
|
|
|
243
243
|
[[ ${#miss[@]} -eq 0 ]] && record "opencode" "OC2" "PASS" "" \
|
|
244
244
|
|| record "opencode" "OC2" "FAIL" "missing: ${miss[*]}"
|
|
245
245
|
|
|
246
|
-
# OC3: opencode.json is valid JSON with expected
|
|
246
|
+
# OC3: opencode.json is valid JSON with the expected $schema and no
|
|
247
|
+
# `instructions` key. The bundle ships its rules as the global AGENTS.md; a
|
|
248
|
+
# relative `instructions` entry resolves from the workspace and loads the
|
|
249
|
+
# project AGENTS.md a second time.
|
|
247
250
|
local cfg="${odir}/opencode.json"
|
|
248
251
|
if [[ ! -f "$cfg" ]]; then record "opencode" "OC3" "FAIL" "${cfg} does not exist"
|
|
249
252
|
elif json_ok "$cfg"; then
|
|
@@ -251,10 +254,9 @@ run_opencode_checks() {
|
|
|
251
254
|
r=$(python3 - "$cfg" <<'PY'
|
|
252
255
|
import json,sys
|
|
253
256
|
d=json.load(open(sys.argv[1]))
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
elif d.get("$schema")!="https://opencode.ai/config.json": print(f"FAIL:$schema={d.get('$schema')!r} (expected 'https://opencode.ai/config.json')")
|
|
257
|
+
if "$schema" not in d: print(f"FAIL:{sys.argv[1]}: missing key '$schema'")
|
|
258
|
+
elif d.get("$schema")!="https://opencode.ai/config.json": print(f"FAIL:{sys.argv[1]}: $schema={d.get('$schema')!r} (expected 'https://opencode.ai/config.json')")
|
|
259
|
+
elif "instructions" in d: print(f"FAIL:{sys.argv[1]}: unexpected key 'instructions' (bundle rules ship as the global AGENTS.md; a relative entry resolves from the workspace and loads the project AGENTS.md a second time)")
|
|
258
260
|
else: print("PASS:")
|
|
259
261
|
PY
|
|
260
262
|
); set -e; record "opencode" "OC3" "${r%%:*}" "${r#*:}"
|
|
@@ -298,6 +300,62 @@ PY
|
|
|
298
300
|
|| record "opencode" "OC6" "FAIL" "${cc_label} residue in code/config: $(printf '%s ' "$hits")"
|
|
299
301
|
}
|
|
300
302
|
|
|
303
|
+
# ---------------------------------------------------------------------------
|
|
304
|
+
# omp (oh-my-pi) checks
|
|
305
|
+
# ---------------------------------------------------------------------------
|
|
306
|
+
run_omp_checks() {
|
|
307
|
+
local odir="${REPO_ROOT}/.omp-plugin"
|
|
308
|
+
local matrix="${REPO_ROOT}/ycc/skills/_shared/references/target-capability-matrix.md"
|
|
309
|
+
|
|
310
|
+
# OM1: the generated catalog and the matrix INSTALL_PATH:omp verdict must agree.
|
|
311
|
+
# The root .omp-plugin/ exists while an OMP package is listed in ycc/settings/packages.json;
|
|
312
|
+
# with none listed it is absent and 'partial' means install.sh --target omp installs an export.
|
|
313
|
+
if [[ ! -f "$matrix" ]]; then
|
|
314
|
+
record "omp" "OM1" "FAIL" "${matrix} does not exist — cannot read INSTALL_PATH:omp"; return
|
|
315
|
+
fi
|
|
316
|
+
local verdict; set +e
|
|
317
|
+
verdict=$(python3 - "$matrix" <<'PY'
|
|
318
|
+
import sys
|
|
319
|
+
header = None
|
|
320
|
+
for raw in open(sys.argv[1], encoding="utf-8"):
|
|
321
|
+
s = raw.strip()
|
|
322
|
+
if not s.startswith("|"):
|
|
323
|
+
if header is not None:
|
|
324
|
+
break
|
|
325
|
+
continue
|
|
326
|
+
cells = [c.strip() for c in s.strip("|").split("|")]
|
|
327
|
+
if all(c and set(c) == {"-"} for c in cells):
|
|
328
|
+
continue
|
|
329
|
+
if header is None:
|
|
330
|
+
header = cells
|
|
331
|
+
continue
|
|
332
|
+
if cells[0] == "INSTALL_PATH" and "omp" in header and len(cells) == len(header):
|
|
333
|
+
print(cells[header.index("omp")])
|
|
334
|
+
break
|
|
335
|
+
PY
|
|
336
|
+
); set -e
|
|
337
|
+
if [[ -z "$verdict" ]]; then
|
|
338
|
+
record "omp" "OM1" "FAIL" "INSTALL_PATH:omp not found in ${matrix}"
|
|
339
|
+
elif [[ ! -d "$odir" ]]; then
|
|
340
|
+
case "$verdict" in
|
|
341
|
+
unsupported) record "omp" "OM1" "PASS" "${odir} not generated yet (matrix INSTALL_PATH:omp=unsupported)" ;;
|
|
342
|
+
partial) record "omp" "OM1" "PASS" "${odir} absent until a package is listed; install.sh --target omp installs a generated export (matrix INSTALL_PATH:omp=partial)" ;;
|
|
343
|
+
*) record "omp" "OM1" "FAIL" "${odir} does not exist but matrix INSTALL_PATH:omp=${verdict}" ;;
|
|
344
|
+
esac
|
|
345
|
+
return
|
|
346
|
+
elif [[ "$verdict" == "unsupported" ]]; then
|
|
347
|
+
record "omp" "OM1" "FAIL" "${odir} exists but matrix INSTALL_PATH:omp=unsupported"
|
|
348
|
+
else
|
|
349
|
+
record "omp" "OM1" "PASS" ""
|
|
350
|
+
fi
|
|
351
|
+
|
|
352
|
+
# OM2: a generated tree must carry a valid catalog.
|
|
353
|
+
local mkt="${odir}/marketplace.json"
|
|
354
|
+
if [[ ! -f "$mkt" ]]; then record "omp" "OM2" "FAIL" "${mkt} does not exist"
|
|
355
|
+
elif json_ok "$mkt"; then record "omp" "OM2" "PASS" ""
|
|
356
|
+
else record "omp" "OM2" "FAIL" "${mkt} is not valid JSON"; fi
|
|
357
|
+
}
|
|
358
|
+
|
|
301
359
|
# ---------------------------------------------------------------------------
|
|
302
360
|
# Dispatch
|
|
303
361
|
# ---------------------------------------------------------------------------
|
|
@@ -306,7 +364,8 @@ case "$TARGET" in
|
|
|
306
364
|
cursor) run_cursor_checks ;;
|
|
307
365
|
codex) run_codex_checks ;;
|
|
308
366
|
opencode) run_opencode_checks ;;
|
|
309
|
-
|
|
367
|
+
omp) run_omp_checks ;;
|
|
368
|
+
all) run_claude_checks; run_cursor_checks; run_codex_checks; run_opencode_checks; run_omp_checks ;;
|
|
310
369
|
esac
|
|
311
370
|
|
|
312
371
|
OVERALL_RC=0
|
|
@@ -316,7 +375,7 @@ for s in "${CS[@]}"; do [[ "$s" == "FAIL" ]] && { OVERALL_RC=1; break; }; done
|
|
|
316
375
|
# Human output
|
|
317
376
|
# ---------------------------------------------------------------------------
|
|
318
377
|
emit_human() {
|
|
319
|
-
local tgts=(); [[ "$TARGET" == "all" ]] && tgts=(claude cursor codex opencode) || tgts=("$TARGET")
|
|
378
|
+
local tgts=(); [[ "$TARGET" == "all" ]] && tgts=(claude cursor codex opencode omp) || tgts=("$TARGET")
|
|
320
379
|
local n=${#CI[@]}
|
|
321
380
|
for tgt in "${tgts[@]}"; do
|
|
322
381
|
local pass=0 fail=0 i=0
|
|
@@ -360,7 +419,7 @@ ss=[rd(f"{tmp}/s_{i}") for i in range(n)]; ds=[rd(f"{tmp}/d_{i}") for i in range
|
|
|
360
419
|
def build(t):
|
|
361
420
|
ch=[{"id":ids[i],"status":ss[i],"detail":ds[i] or None} for i in range(n) if ts[i]==t]
|
|
362
421
|
return {"checks":ch,"ok":all(c["status"]!="FAIL" for c in ch)}
|
|
363
|
-
names=["claude","cursor","codex","opencode"] if tgt=="all" else [tgt]
|
|
422
|
+
names=["claude","cursor","codex","opencode","omp"] if tgt=="all" else [tgt]
|
|
364
423
|
out={t:build(t) for t in names}
|
|
365
424
|
print(json.dumps({"as_of":datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ"),
|
|
366
425
|
"targets":out,"ok":all(v["ok"] for v in out.values())},indent=2))
|