@yandy-r/ycc-opencode 6.3.1 → 6.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +1 -1
- package/registration.json +11 -0
- package/shared/references/branching-model.md +2 -1
- package/shared/references/worktree-strategy.md +4 -12
- package/shared/scripts/lib/ci-classify.sh +2 -2
- package/shared/scripts/release-feature-sets.sh +18 -0
- package/shared/scripts/release_feature_sets.py +232 -0
- package/shared/scripts/setup-worktree.sh +2 -69
- package/skills/bundle-author/references/surface-map.md +1 -1
- package/skills/bundle-author/references/when-not-to-scaffold.md +1 -1
- package/skills/bundle-release/SKILL.md +22 -5
- package/skills/bundle-release/references/release-checklist.md +9 -1
- package/skills/bundle-release/references/version-policy.md +11 -4
- package/skills/formatters/SKILL.md +2 -1
- package/skills/formatters/references/flag-reference.md +8 -4
- package/skills/formatters/references/templates/lint-autofix.yml.tmpl +184 -18
- package/skills/formatters/references/templates/readme-section.md.tmpl +1 -1
- package/skills/formatters/scripts/bundle/style.sh +2 -2
- package/skills/git-cleanup/SKILL.md +4 -5
- package/skills/init/references/conventional-commits.md +8 -1
- package/skills/init/references/template-library.md +1 -1
- package/skills/init/templates/git/gitmessage.tmpl +2 -1
- package/skills/mcp-parity/SKILL.md +303 -0
- package/skills/mcp-parity/references/inventory-format.md +171 -0
- package/skills/mcp-parity/references/linear-sync.md +194 -0
- package/skills/mcp-parity/references/milestones-priority.md +91 -0
- package/skills/mcp-parity/references/research-agents.md +122 -0
- package/skills/mcp-parity/scripts/capability_diff.py +525 -0
- package/skills/mcp-parity/scripts/detect-api-surface.sh +109 -0
- package/skills/mcp-parity/scripts/openapi_inventory.py +253 -0
- package/skills/mcp-parity/templates/capability-issue.md +38 -0
- package/skills/mcp-parity/templates/foundation-issue.md +35 -0
- package/skills/release-model/templates/RELEASING.md.tmpl +2 -1
- package/skills/releaser/SKILL.md +5 -1
- package/skills/releaser/references/release-preparation.md +34 -15
- package/shared/scripts/merge-children.sh +0 -82
- package/skills/write-docs/templates/docs-readme.md +0 -34
|
@@ -90,9 +90,13 @@ The check workflow runs on every pull request and on pushes to the default branc
|
|
|
90
90
|
The autofix workflow:
|
|
91
91
|
|
|
92
92
|
- Triggers on pull requests to the target repo's default branch (detected via `git symbolic-ref refs/remotes/origin/HEAD`, falling back to `main`).
|
|
93
|
-
- Skips fork PRs via `github.event.pull_request.head.repo.full_name == github.repository
|
|
94
|
-
-
|
|
95
|
-
-
|
|
93
|
+
- Skips fork PRs in both jobs via `github.event.pull_request.head.repo.full_name == github.repository`; the workflow cannot push to fork branches.
|
|
94
|
+
- Runs two jobs. The `format` job checks out the PR head (`persist-credentials: false`), runs the language setup and `./scripts/style.sh format` + `lint --fix` with `GITHUB_TOKEN` at `contents: read` and no secrets, and uploads any fixes as a `git diff` patch artifact. With no fixes it succeeds and the `push` job is skipped.
|
|
95
|
+
- The `push` job holds the App key and token, so it never checks out or runs PR code: no `./scripts/style.sh`, package installs, or hooks. It treats the patch as untrusted, accepts only in-place text edits to existing regular files, and fails without pushing on anything else, including any path under `.github/` (workflows, local actions, and repository settings). It applies the patch to the PR head commit's index in a fresh repository (the PR tree is never written to disk, hooks are disabled), re-checks the result, and pushes. Keep it on GitHub-hosted or ephemeral runners so nothing started by the `format` job can outlive it. The split keeps the App key away from code that the formatters and package installs run; it does not protect against someone who can push a changed workflow file to a branch, so limit branch write access to trusted writers and review autofix commits like any other commit on the PR.
|
|
96
|
+
- Pushes with a GitHub App installation token minted by `actions/create-github-app-token` with Contents write only. A push made with `GITHUB_TOKEN` creates the `pull_request` runs for the fix commit in an approval-required state, so every check on it would wait for a maintainer.
|
|
97
|
+
- Needs the `AUTOFIX_APP_CLIENT_ID` variable and `AUTOFIX_APP_PRIVATE_KEY` secret and an App with repository permission Contents read and write, installed on the repo. The App needs no Workflows permission: the `format` job leaves `.github/` out of the patch (format those files locally; `lint.yml` still reports them) and the `push` job refuses them. Organization-level variables and secrets are not available to private repositories on GitHub Free, so set them on the repository there. Anyone who can write to a repository holding the private key can mint tokens for every repository the App is installed on, so reuse one App only across repositories with the same trusted writers. Without them, or if minting fails, the job prints a warning, lists the fixes in the job summary, and exits successfully without pushing.
|
|
98
|
+
- Commits as `github-actions[bot]`; the check workflow (`lint.yml`) still runs authoritatively on the resulting push. A loop guard stops a second push when the PR head is already the autofix commit and the fixers still change files.
|
|
99
|
+
- Carries a commented `git add -u -- . ':(exclude)...'` placeholder in the `format` job — customize after install if the project has generated files that should not be auto-fixed.
|
|
96
100
|
|
|
97
101
|
```
|
|
98
102
|
formatters --ci # installs both workflows
|
|
@@ -102,7 +106,7 @@ formatters --ci --no-autofix # install only lint.yml (check-only)
|
|
|
102
106
|
|
|
103
107
|
### `--no-autofix`
|
|
104
108
|
|
|
105
|
-
Only meaningful when `--ci` is set. Skips installing `lint-autofix.yml`. The existing check workflow (`lint.yml`) is still installed. Use when a repo has branch-protection rules that forbid bot pushes, or when the team prefers to run formatters exclusively via pre-commit hooks.
|
|
109
|
+
Only meaningful when `--ci` is set. Skips installing `lint-autofix.yml`. The existing check workflow (`lint.yml`) is still installed. Use when a repo has branch-protection rules that forbid bot pushes, when no GitHub App can be set up for the push, or when the team prefers to run formatters exclusively via pre-commit hooks.
|
|
106
110
|
|
|
107
111
|
```
|
|
108
112
|
formatters --ci --no-autofix
|
|
@@ -5,25 +5,33 @@ on:
|
|
|
5
5
|
branches: [{{DEFAULT_BRANCH}}]
|
|
6
6
|
|
|
7
7
|
permissions:
|
|
8
|
-
contents:
|
|
8
|
+
contents: read
|
|
9
9
|
|
|
10
10
|
concurrency:
|
|
11
11
|
group: lint-autofix-${{ github.event.pull_request.number || github.ref }}
|
|
12
12
|
cancel-in-progress: true
|
|
13
13
|
|
|
14
14
|
jobs:
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
# The work is split so PR code never shares a job with the App key or token:
|
|
16
|
+
# format: checks out and runs the PR branch (formatters, package installs) with a
|
|
17
|
+
# read-only GITHUB_TOKEN and no secrets, then uploads the fixes as a patch.
|
|
18
|
+
# push: never checks out or runs PR code. It treats the patch as untrusted input,
|
|
19
|
+
# validates it, mints the App token, applies the patch and pushes.
|
|
20
|
+
format:
|
|
21
|
+
name: Format (read-only)
|
|
17
22
|
# Fork PRs cannot be pushed back to; the check workflow (lint.yml) still runs authoritatively.
|
|
18
23
|
if: github.event.pull_request.head.repo.full_name == github.repository
|
|
19
24
|
runs-on: ubuntu-latest
|
|
25
|
+
permissions:
|
|
26
|
+
contents: read
|
|
27
|
+
outputs:
|
|
28
|
+
has_patch: ${{ steps.patch.outputs.has_patch }}
|
|
20
29
|
steps:
|
|
21
|
-
- name: Checkout PR head
|
|
30
|
+
- name: Checkout PR head
|
|
22
31
|
uses: actions/checkout@v4
|
|
23
32
|
with:
|
|
24
|
-
ref: ${{ github.
|
|
25
|
-
|
|
26
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
33
|
+
ref: ${{ github.event.pull_request.head.sha }}
|
|
34
|
+
persist-credentials: false
|
|
27
35
|
|
|
28
36
|
{{#IF_RUST}}
|
|
29
37
|
- uses: dtolnay/rust-toolchain@stable
|
|
@@ -69,26 +77,184 @@ jobs:
|
|
|
69
77
|
run: ./scripts/style.sh format
|
|
70
78
|
|
|
71
79
|
- name: Apply auto-fixable lint
|
|
72
|
-
# Unfixable violations are reported by the check workflow (lint.yml); do not block the
|
|
80
|
+
# Unfixable violations are reported by the check workflow (lint.yml); do not block the autofix here.
|
|
73
81
|
run: ./scripts/style.sh lint --fix
|
|
74
82
|
continue-on-error: true
|
|
75
83
|
|
|
76
|
-
- name:
|
|
84
|
+
- name: Export autofix patch
|
|
85
|
+
id: patch
|
|
86
|
+
run: |
|
|
87
|
+
# The push job refuses changes under .github/ (workflows, local actions and repo
|
|
88
|
+
# settings; its App token has no Workflows permission), so leave them out here.
|
|
89
|
+
# lint.yml still reports them. Customize exclusions here, e.g.:
|
|
90
|
+
# git add -u -- . ':(exclude).github' ':(exclude)CHANGELOG.md' ':(exclude)docs/internal/**'
|
|
91
|
+
git add -u -- . ':(exclude).github'
|
|
92
|
+
if ! git diff --quiet -- .github; then
|
|
93
|
+
echo "::notice title=Lint autofix skipped .github/ files::Format .github/ locally; autofix does not push files under .github/."
|
|
94
|
+
fi
|
|
95
|
+
if git diff --cached --quiet; then
|
|
96
|
+
echo "No autofix changes."
|
|
97
|
+
echo "has_patch=false" >> "$GITHUB_OUTPUT"
|
|
98
|
+
exit 0
|
|
99
|
+
fi
|
|
100
|
+
git diff --cached --stat
|
|
101
|
+
git diff --cached --no-color --no-ext-diff --no-textconv --no-renames --full-index > "$RUNNER_TEMP/autofix.patch"
|
|
102
|
+
echo "has_patch=true" >> "$GITHUB_OUTPUT"
|
|
103
|
+
|
|
104
|
+
- name: Upload autofix patch
|
|
105
|
+
if: steps.patch.outputs.has_patch == 'true'
|
|
106
|
+
uses: actions/upload-artifact@v4
|
|
107
|
+
with:
|
|
108
|
+
name: lint-autofix-patch
|
|
109
|
+
path: ${{ runner.temp }}/autofix.patch
|
|
110
|
+
if-no-files-found: error
|
|
111
|
+
retention-days: 1
|
|
112
|
+
overwrite: true
|
|
113
|
+
|
|
114
|
+
push:
|
|
115
|
+
name: Push autofix commit
|
|
116
|
+
needs: format
|
|
117
|
+
if: github.event.pull_request.head.repo.full_name == github.repository && needs.format.outputs.has_patch == 'true'
|
|
118
|
+
# This job holds the App key and token. It never checks out or runs PR code: no
|
|
119
|
+
# ./scripts/style.sh, no package installs, no hooks, and no PR files written to disk.
|
|
120
|
+
# Keep it on GitHub-hosted (or ephemeral self-hosted) runners so nothing the format
|
|
121
|
+
# job started on a runner can outlive that job and reach this one.
|
|
122
|
+
runs-on: ubuntu-latest
|
|
123
|
+
permissions:
|
|
124
|
+
contents: read
|
|
125
|
+
env:
|
|
126
|
+
# 'true' once the autofix App is configured for this repository (see the mint step).
|
|
127
|
+
AUTOFIX_APP_CONFIGURED: ${{ vars.AUTOFIX_APP_CLIENT_ID != '' && secrets.AUTOFIX_APP_PRIVATE_KEY != '' }}
|
|
128
|
+
steps:
|
|
129
|
+
- name: Download autofix patch
|
|
130
|
+
uses: actions/download-artifact@v4
|
|
131
|
+
with:
|
|
132
|
+
name: lint-autofix-patch
|
|
133
|
+
path: ${{ runner.temp }}/autofix-artifact
|
|
134
|
+
|
|
135
|
+
- name: Validate autofix patch
|
|
136
|
+
# The patch comes from a job that ran PR code, so it is untrusted: copy only the
|
|
137
|
+
# patch file out of the artifact, run git from an empty directory, and accept only
|
|
138
|
+
# in-place text edits to existing files outside .github/. Anything else fails
|
|
139
|
+
# without pushing. The push step re-checks the applied result.
|
|
140
|
+
run: |
|
|
141
|
+
refuse() {
|
|
142
|
+
echo "::error title=Lint autofix refused::$1"
|
|
143
|
+
exit 1
|
|
144
|
+
}
|
|
145
|
+
artifact="$RUNNER_TEMP/autofix-artifact/autofix.patch"
|
|
146
|
+
patch="$RUNNER_TEMP/autofix.patch"
|
|
147
|
+
[[ -f "$artifact" && ! -L "$artifact" ]] || refuse "The autofix patch is missing."
|
|
148
|
+
cp -- "$artifact" "$patch"
|
|
149
|
+
rm -rf -- "$RUNNER_TEMP/autofix-artifact"
|
|
150
|
+
[[ -s "$patch" ]] || refuse "The autofix patch is empty."
|
|
151
|
+
scratch="$(mktemp -d)"
|
|
152
|
+
cd "$scratch"
|
|
153
|
+
export GIT_CEILING_DIRECTORIES="${scratch%/*}"
|
|
154
|
+
summary="$(git apply --summary "$patch")" || refuse "The autofix patch could not be parsed."
|
|
155
|
+
if [[ -n "$summary" ]]; then
|
|
156
|
+
refuse "The autofix patch creates, deletes, renames, or changes the mode of a file."
|
|
157
|
+
fi
|
|
158
|
+
git apply --numstat -z "$patch" > "$scratch/numstat" || refuse "The autofix patch could not be parsed."
|
|
159
|
+
files=0
|
|
160
|
+
while IFS= read -r -d '' record; do
|
|
161
|
+
added="${record%%$'\t'*}"
|
|
162
|
+
path="${record#*$'\t'*$'\t'}"
|
|
163
|
+
[[ -n "$path" && "$path" != "$record" ]] || refuse "The autofix patch has an unexpected file entry."
|
|
164
|
+
[[ "$path" != *[[:cntrl:]]* ]] || refuse "The autofix patch has a file name with control characters."
|
|
165
|
+
[[ "$added" != "-" ]] || refuse "The autofix patch changes a binary file: $path"
|
|
166
|
+
case "/${path,,}/" in
|
|
167
|
+
/.github/*) refuse "The autofix patch changes a file under .github/: $path" ;;
|
|
168
|
+
//* | */../* | */./*) refuse "The autofix patch has an unsafe path: $path" ;;
|
|
169
|
+
esac
|
|
170
|
+
files=$((files + 1))
|
|
171
|
+
done < "$scratch/numstat"
|
|
172
|
+
(( files > 0 )) || refuse "The autofix patch changes no files."
|
|
173
|
+
echo "Autofix patch accepted: $files file(s)."
|
|
174
|
+
|
|
175
|
+
- name: Mint autofix App token
|
|
176
|
+
id: app-token
|
|
177
|
+
# A push made with GITHUB_TOKEN leaves every check on the autofix commit waiting for
|
|
178
|
+
# approval, so the push uses a GitHub App token with Contents write only.
|
|
179
|
+
# Without the App variable and secret (or if minting fails) the job reports, not pushes.
|
|
180
|
+
if: env.AUTOFIX_APP_CONFIGURED == 'true'
|
|
181
|
+
continue-on-error: true
|
|
182
|
+
uses: actions/create-github-app-token@v3
|
|
183
|
+
with:
|
|
184
|
+
client-id: ${{ vars.AUTOFIX_APP_CLIENT_ID }}
|
|
185
|
+
private-key: ${{ secrets.AUTOFIX_APP_PRIVATE_KEY }}
|
|
186
|
+
permission-contents: write
|
|
187
|
+
|
|
188
|
+
- name: Report fixes without pushing
|
|
189
|
+
if: steps.app-token.outputs.token == ''
|
|
190
|
+
run: |
|
|
191
|
+
patch="$RUNNER_TEMP/autofix.patch"
|
|
192
|
+
echo "::warning title=Lint autofix not pushed::Fixes found but not pushed: set the AUTOFIX_APP_CLIENT_ID variable and AUTOFIX_APP_PRIVATE_KEY secret (or check the App installation)."
|
|
193
|
+
{
|
|
194
|
+
echo "### Lint autofix: fixes found, not pushed"
|
|
195
|
+
echo
|
|
196
|
+
echo "This workflow pushes with a GitHub App token. Set the \`AUTOFIX_APP_CLIENT_ID\` variable and \`AUTOFIX_APP_PRIVATE_KEY\` secret, or run the formatters locally."
|
|
197
|
+
echo
|
|
198
|
+
echo '```'
|
|
199
|
+
(cd "$(mktemp -d)" && git apply --stat "$patch")
|
|
200
|
+
echo '```'
|
|
201
|
+
} >> "$GITHUB_STEP_SUMMARY"
|
|
202
|
+
|
|
203
|
+
- name: Commit and push autofix patch
|
|
204
|
+
if: steps.app-token.outputs.token != ''
|
|
77
205
|
env:
|
|
78
206
|
PR_HEAD_REF: ${{ github.head_ref }}
|
|
207
|
+
PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
|
|
208
|
+
AUTOFIX_SUBJECT: "chore: apply format + lint --fix (autofix workflow)"
|
|
209
|
+
AUTOFIX_TOKEN: ${{ steps.app-token.outputs.token }}
|
|
79
210
|
run: |
|
|
211
|
+
patch="$RUNNER_TEMP/autofix.patch"
|
|
212
|
+
remote="https://x-access-token:${AUTOFIX_TOKEN}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git"
|
|
213
|
+
# Work in a fresh repository with only the PR head commit in its object store and
|
|
214
|
+
# index: the PR tree is never written to disk, and hooks are disabled, so nothing
|
|
215
|
+
# from the PR runs. Only git fetch, apply, commit, and push run here.
|
|
216
|
+
repo="$RUNNER_TEMP/autofix-repo"
|
|
217
|
+
git -c core.hooksPath=/dev/null init -q --template= "$repo"
|
|
218
|
+
cd "$repo"
|
|
219
|
+
git config core.hooksPath /dev/null
|
|
80
220
|
git config user.name "github-actions[bot]"
|
|
81
221
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
82
|
-
|
|
83
|
-
|
|
222
|
+
git fetch -q --depth=1 --no-tags "$remote" "$PR_HEAD_SHA"
|
|
223
|
+
git update-ref HEAD "$PR_HEAD_SHA"
|
|
224
|
+
git read-tree HEAD
|
|
225
|
+
# Loop guard: the App push starts a new run on the autofix commit. If HEAD is already
|
|
226
|
+
# that commit and the fixers still change files, they are not idempotent; stop here.
|
|
227
|
+
if [[ "$(git log -1 --format=%s HEAD)" == "$AUTOFIX_SUBJECT" ]]; then
|
|
228
|
+
echo "::warning title=Lint autofix stopped::HEAD is already an autofix commit and the fixers still change files; not pushing again."
|
|
229
|
+
git apply --stat "$patch"
|
|
84
230
|
exit 0
|
|
85
231
|
fi
|
|
86
|
-
|
|
87
|
-
#
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
232
|
+
git apply --cached "$patch"
|
|
233
|
+
# Re-check what actually landed in the index: in-place edits to regular text files
|
|
234
|
+
# only (a forced-text diff can hide binary content from the validate step), nothing
|
|
235
|
+
# under .github/.
|
|
236
|
+
git diff --cached --raw -z --no-renames HEAD > "$RUNNER_TEMP/autofix.raw"
|
|
237
|
+
while IFS= read -r -d '' meta && IFS= read -r -d '' path; do
|
|
238
|
+
read -r old_mode new_mode old_blob new_blob status <<< "${meta#:}"
|
|
239
|
+
case "$old_mode:$new_mode:$status" in
|
|
240
|
+
100644:100644:M | 100755:100755:M) ;;
|
|
241
|
+
*) echo "::error title=Lint autofix refused::The autofix patch changes something other than a regular file's contents."; exit 1 ;;
|
|
242
|
+
esac
|
|
243
|
+
case "${path,,}" in
|
|
244
|
+
.github/*) echo "::error title=Lint autofix refused::The autofix patch changes a file under .github/."; exit 1 ;;
|
|
245
|
+
esac
|
|
246
|
+
for blob in "$old_blob" "$new_blob"; do
|
|
247
|
+
nul_bytes="$(git cat-file blob "$blob" | tr -dc '\000' | wc -c)"
|
|
248
|
+
if (( nul_bytes > 0 )); then
|
|
249
|
+
echo "::error title=Lint autofix refused::The autofix patch changes a binary file."
|
|
250
|
+
exit 1
|
|
251
|
+
fi
|
|
252
|
+
done
|
|
253
|
+
done < "$RUNNER_TEMP/autofix.raw"
|
|
254
|
+
if git diff --cached --quiet HEAD; then
|
|
255
|
+
echo "No autofix changes after applying the patch."
|
|
91
256
|
exit 0
|
|
92
257
|
fi
|
|
93
|
-
git commit -
|
|
94
|
-
git
|
|
258
|
+
git commit -q --no-verify -m "$AUTOFIX_SUBJECT"
|
|
259
|
+
git show --stat --format='%h %s' HEAD
|
|
260
|
+
git push -q --no-verify "$remote" "HEAD:refs/heads/${PR_HEAD_REF}"
|
|
@@ -96,7 +96,7 @@ just format-unstaged
|
|
|
96
96
|
### CI
|
|
97
97
|
|
|
98
98
|
{{#IF_CI_INSTALLED}}
|
|
99
|
-
Lint runs automatically on every pull request via `.github/workflows/lint.yml`. If `.github/workflows/lint-autofix.yml` is also present, it applies `./scripts/style.sh format` + `lint --fix` on same-repo PRs and pushes fixes back
|
|
99
|
+
Lint runs automatically on every pull request via `.github/workflows/lint.yml`. If `.github/workflows/lint-autofix.yml` is also present, it applies `./scripts/style.sh format` + `lint --fix` on same-repo PRs. When the `AUTOFIX_APP_CLIENT_ID` variable and `AUTOFIX_APP_PRIVATE_KEY` secret are set, it pushes the fixes back with a GitHub App token; without them it lists the fixes in the job summary and does not push. Fork PRs are skipped.
|
|
100
100
|
{{/IF_CI_INSTALLED}}
|
|
101
101
|
{{#IF_CI_NOT_INSTALLED}}
|
|
102
102
|
To wire lint into CI, run `formatters --ci` (installs both `lint.yml` and `lint-autofix.yml`) or pair it with `--no-autofix` to skip the autofix workflow.
|
|
@@ -12,9 +12,9 @@ while [[ -L "$SCRIPT_PATH" ]]; do
|
|
|
12
12
|
done
|
|
13
13
|
SCRIPT_DIR="$(cd -P "$(dirname "$SCRIPT_PATH")" >/dev/null 2>&1 && pwd)"
|
|
14
14
|
|
|
15
|
-
# shellcheck source=
|
|
15
|
+
# shellcheck source=lib/modified-files.sh
|
|
16
16
|
source "$SCRIPT_DIR/lib/modified-files.sh"
|
|
17
|
-
# shellcheck source=
|
|
17
|
+
# shellcheck source=lib/shellcheck-resolve.sh
|
|
18
18
|
source "$SCRIPT_DIR/lib/shellcheck-resolve.sh"
|
|
19
19
|
|
|
20
20
|
PROJECT_ROOT="$(detect_project_root)"
|
|
@@ -86,8 +86,8 @@ flags that emit machine-readable output.
|
|
|
86
86
|
|
|
87
87
|
|
|
88
88
|
- **Worktrees**: `git worktree list --porcelain`. Flag entries whose `worktree`
|
|
89
|
-
path no longer exists
|
|
90
|
-
|
|
89
|
+
path no longer exists or whose branch is `[gone]`; legacy roots are classified
|
|
90
|
+
per `active-code-rules.md`.
|
|
91
91
|
The managed roots under the repo root are `.claude/worktrees/`,
|
|
92
92
|
`.opencode/worktrees/`, `.codex/worktrees/`, `.cursor/worktrees/`,
|
|
93
93
|
`.omp/worktrees/` and `.agents/worktrees/`; every runtime checks all of them.
|
|
@@ -291,9 +291,8 @@ release-model rules (a malformed state has already stopped the run in Phase 0).
|
|
|
291
291
|
|
|
292
292
|
- **Worktrees under any repo-local managed root** (`.claude/`, `.opencode/`,
|
|
293
293
|
`.codex/`, `.cursor/`, `.omp/` or `.agents/` followed by `worktrees/`) are fair
|
|
294
|
-
game per this repo's convention.
|
|
295
|
-
|
|
296
|
-
worktrees under `~/.omp/wt`; OMP manages them (`omp worktree clear`).
|
|
294
|
+
game per this repo's convention. Never delete worktrees under `~/.omp/wt`; OMP
|
|
295
|
+
manages them (`omp worktree clear`).
|
|
297
296
|
|
|
298
297
|
- **Respect the repo's label taxonomy**. Do not invent stale/wontfix labels.
|
|
299
298
|
- **No secrets**. Do not log tokens or API responses containing credentials.
|
|
@@ -17,7 +17,7 @@ Condensed Conventional Commits 1.0.0 spec. The generated `AGENTS.md` carries a o
|
|
|
17
17
|
|
|
18
18
|
| Type | Purpose | Semver bump (release tooling) |
|
|
19
19
|
| ---------- | ----------------------------------------------- | ----------------------------- |
|
|
20
|
-
| `feat` | New user-facing feature | **minor**
|
|
20
|
+
| `feat` | New user-facing feature | **minor** once its set ships |
|
|
21
21
|
| `fix` | Bug fix | **patch** |
|
|
22
22
|
| `docs` | Documentation only | none |
|
|
23
23
|
| `refactor` | Code change that is neither a fix nor a feature | none |
|
|
@@ -71,6 +71,13 @@ Both forms trigger a **major** version bump in release tooling.
|
|
|
71
71
|
- Footers follow `Token: value` syntax (`BREAKING CHANGE`, `Closes`, `Co-authored-by`).
|
|
72
72
|
- `BREAKING CHANGE` footer MUST be uppercase — `breaking change` is not spec-compliant.
|
|
73
73
|
|
|
74
|
+
### Feature sets
|
|
75
|
+
|
|
76
|
+
Several `feat` commits often build one feature. Release tooling groups them into a
|
|
77
|
+
**feature set** (the commit scope by default, so `feat(sync): …` commits form the `sync`
|
|
78
|
+
set) and requires a minor only when a set is complete and user-visible; an in-progress
|
|
79
|
+
set ships in a patch. Add a `Feature-Set: <name>` footer when a feature spans scopes.
|
|
80
|
+
|
|
74
81
|
---
|
|
75
82
|
|
|
76
83
|
## Internal Docs Convention
|
|
@@ -37,7 +37,7 @@ Every template the skill can render, its target path, and the variables it subst
|
|
|
37
37
|
|
|
38
38
|
---
|
|
39
39
|
|
|
40
|
-
The `templates/CLAUDE.md.tmpl` row combines three mechanisms in one Placeholders cell on purpose: `CLAUDE_MD_SHIM` is the canonical shim token rendered by the shared helper (
|
|
40
|
+
The `templates/CLAUDE.md.tmpl` row combines three mechanisms in one Placeholders cell on purpose: `CLAUDE_MD_SHIM` is the canonical shim token rendered by the shared helper (`.opencode-plugin/shared/scripts/rules_pointer.py` via `rules_pointer.py`), so the pointer line is not user-overridable policy; `CLAUDE_ONLY_NOTES` is user/Phase 2 text substituted into that same template; and `IF_CLAUDE_ONLY` is the conditional block that gates the notes section. All three are aspects of the single default `CLAUDE.md` shim, so they share one row.
|
|
41
41
|
|
|
42
42
|
## Placeholder Reference
|
|
43
43
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
#
|
|
9
9
|
# ─────────────────────────────────────────────────────────────────────────────
|
|
10
10
|
# Types (Conventional Commits 1.0.0):
|
|
11
|
-
# feat new user-facing feature (minor
|
|
11
|
+
# feat new user-facing feature (minor bump once its feature set is complete)
|
|
12
12
|
# fix user-facing bug fix (patch version bump)
|
|
13
13
|
# docs documentation changes
|
|
14
14
|
# refactor code change that neither fixes a bug nor adds a feature
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
#
|
|
23
23
|
# Scope: lowercase area/module, e.g. feat(auth): …
|
|
24
24
|
# Breaking change: append `!` after type OR add `BREAKING CHANGE:` footer.
|
|
25
|
+
# Feature spanning scopes: add a `Feature-Set: <name>` footer to group its commits.
|
|
25
26
|
# Internal docs (not for release notes): use `docs(internal): …`.
|
|
26
27
|
#
|
|
27
28
|
# {{PROJECT_NAME}} • generated by the init workflow
|