From f6b9e0e4dc7facb52bcad16aab40569b52332ea1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Tue, 10 Nov 2026 15:35:21 +0100 Subject: [PATCH] chore(skills): follow the AI guideline in the bump skills MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The bumping-web and bumping-reva skills asked for a commit with an empty body, which leaves no room for the Assisted-by trailer the org's AI guideline asks for. The commit now carries that trailer, and the PR body ends with a line on which AI did the bump. The PRs also get Status:Needs-Review and their author as assignee, as the other PRs in this repository do. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Jörn Friedrich Dreyer --- .agents/skills/bumping-reva/SKILL.md | 12 ++++++++---- .agents/skills/bumping-web/SKILL.md | 12 ++++++++---- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/.agents/skills/bumping-reva/SKILL.md b/.agents/skills/bumping-reva/SKILL.md index e6997c4520..105a1879c4 100644 --- a/.agents/skills/bumping-reva/SKILL.md +++ b/.agents/skills/bumping-reva/SKILL.md @@ -112,19 +112,23 @@ Confirm the reva line in `go.mod` is exactly `github.com/opencloud-eu/reva/v2 RE - Create a branch (do not commit on `main`), e.g. `reva-bump-2.48.0`. - Stage everything the bump touched: `git add go.mod go.sum vendor pkg/version/version.go`. -- One commit, conventional-commits format, **empty body**: +- One commit, conventional-commits format, with no body other than the `Assisted-by:` trailer that the org's [AI guideline](https://github.com/opencloud-eu/.github/blob/main/profile/AI_GUIDELINE.md) asks for. Name the agent and the model actually used, and never add a `Co-authored-by` trailer for an AI tool: ``` chore: bump reva to 2.48.0 + + Assisted-by: Claude Code:claude-opus-5-5 ``` - PR base: **`main`** (reva bumps always target main). - PR title: `[full-ci] chore: bump reva to 2.48.0` (the commit message prefixed with `[full-ci] `). - PR body: the file from step 4. -- Add the label `Type:Maintenance`. +- End the PR body with one line saying which AI did the bump, e.g. `AI assistance: Claude Code (claude-opus-5-5) did the bump.` +- Add the labels `Type:Maintenance` and `Status:Needs-Review`, and assign the PR to yourself. ```bash gh pr create --base main \ --title "[full-ci] chore: bump reva to $REVA_VERSION_NO_V" \ - --label "Type:Maintenance" \ + --label "Type:Maintenance,Status:Needs-Review" \ + --assignee @me \ --body-file ``` @@ -148,6 +152,6 @@ gh api "repos/opencloud-eu/reva/contents/CHANGELOG.md?ref=$REVA_VERSION" --jq '. - Forgetting to re-run `go mod vendor` after `go mod tidy`, leaving `vendor/` out of sync with `go.mod`. - Asking for or hardcoding `OC_VERSION` — always derive it from the open `next-release/main` release PR (step 3); it can even be a new major after a breaking change. - Reading the changelog from reva `main` instead of the tag (`?ref=$REVA_VERSION`). Always pin to the tag. -- Missing the `[full-ci] ` prefix in the PR title, the `Type:Maintenance` label, or the two summary bullets at the top of the body. +- Missing the `[full-ci] ` prefix in the PR title, the `Type:Maintenance` and `Status:Needs-Review` labels, or the two summary bullets at the top of the body. - Dumping the full `vendor/` diff at the confirmation step instead of `go.mod` + `version.go` + a `--stat` summary. - Committing before the user confirms the diff. diff --git a/.agents/skills/bumping-web/SKILL.md b/.agents/skills/bumping-web/SKILL.md index 959fdad4e8..a54bd12b5a 100644 --- a/.agents/skills/bumping-web/SKILL.md +++ b/.agents/skills/bumping-web/SKILL.md @@ -83,19 +83,23 @@ Show the user the diff of both files and the target branch, and ask them to conf ### 7. Commit, push, open PR - Create a branch (do not commit on `main`). -- One commit, conventional-commits format, **empty body**: +- One commit, conventional-commits format, with no body other than the `Assisted-by:` trailer that the org's [AI guideline](https://github.com/opencloud-eu/.github/blob/main/profile/AI_GUIDELINE.md) asks for. Name the agent and the model actually used, and never add a `Co-authored-by` trailer for an AI tool: ``` chore: bump web to v7.0.0 + + Assisted-by: Claude Code:claude-opus-5-5 ``` - PR title: `[full-ci] chore: bump web to v7.0.0` (the commit message prefixed with `[full-ci] `). - PR base: the branch chosen in step 5. - PR body: the trimmed changelog from step 3. -- Add the label `Type:Dependencies`. +- End the PR body with one line saying which AI did the bump, e.g. `AI assistance: Claude Code (claude-opus-5-5) did the bump.` +- Add the labels `Type:Dependencies` and `Status:Needs-Review`, and assign the PR to yourself. ```bash gh pr create --base \ --title "[full-ci] chore: bump web to $VERSION" \ - --label "Type:Dependencies" \ + --label "Type:Dependencies,Status:Needs-Review" \ + --assignee @me \ --body-file ``` @@ -114,5 +118,5 @@ gh api "repos/opencloud-eu/web/contents/CHANGELOG.md?ref=$VERSION" --jq '.conten - Reading `WEB_COMMITID` or the changelog from web `main` instead of from the version tag (`?ref=$VERSION`). Always pin to the tag. - Leaving `WEB_ASSETS_BRANCH`/`WEB_BRANCH` on `main` for a patch that belongs on a stable line. -- Forgetting `[full-ci] ` in the PR title or adding a commit body. +- Forgetting `[full-ci] ` in the PR title, or adding a commit body beyond the `Assisted-by:` trailer. - Committing before the user confirms the diff and target branch.