From eb4a38c7a6c27d24ec60a00842bc0ea95c5cf25d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?oliver=20k=C3=B6nig?= Date: Tue, 14 Apr 2026 17:31:26 +0000 Subject: [PATCH 1/2] ci: add sync-skills workflow and rename CLAUDE.md to AGENTS.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: oliver könig --- .github/workflows/sync-skills.yml | 56 +++++++++++++++++++++++++++++++ CLAUDE.md => AGENTS.md | 0 2 files changed, 56 insertions(+) create mode 100644 .github/workflows/sync-skills.yml rename CLAUDE.md => AGENTS.md (100%) diff --git a/.github/workflows/sync-skills.yml b/.github/workflows/sync-skills.yml new file mode 100644 index 00000000..7e0383e1 --- /dev/null +++ b/.github/workflows/sync-skills.yml @@ -0,0 +1,56 @@ +# Copyright (c) 2026, NVIDIA CORPORATION. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +name: Sync skills → agent dirs + +on: + workflow_dispatch: + push: + branches: + - main + paths: + - "skills/**" + - "AGENTS.md" + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + token: ${{ secrets.PAT }} + ref: ${{ github.head_ref || github.ref_name }} + + - name: Symlink skills/ into agent dirs + run: | + for dir in .claude .agents; do + mkdir -p "$dir" + ln -sfn ../skills "$dir/skills" + done + + - name: Symlink AGENTS.md → CLAUDE.md + run: '[ -f AGENTS.md ] && ln -sf AGENTS.md CLAUDE.md || true' + + - name: Commit and push if changed + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git add .claude/skills .agents/skills CLAUDE.md + if git diff --cached --quiet; then + echo "No changes to commit" + exit 0 + fi + BRANCH="${{ github.head_ref || github.ref_name }}" + git commit -m "chore(beep boop 🤖): symlink skills/ → .claude/skills, .agents/skills and AGENTS.md → CLAUDE.md" + git push origin HEAD:"$BRANCH" diff --git a/CLAUDE.md b/AGENTS.md similarity index 100% rename from CLAUDE.md rename to AGENTS.md From 446d31cfe64ddad778c5fb34f73e4c60e6ee3079 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?oliver=20k=C3=B6nig?= Date: Wed, 15 Apr 2026 22:10:40 +0000 Subject: [PATCH 2/2] ci: use _sync_skills.yml@v0.91.0 reusable workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: oliver könig --- .github/workflows/sync-skills.yml | 33 +++---------------------------- 1 file changed, 3 insertions(+), 30 deletions(-) diff --git a/.github/workflows/sync-skills.yml b/.github/workflows/sync-skills.yml index 7e0383e1..75b8c20d 100644 --- a/.github/workflows/sync-skills.yml +++ b/.github/workflows/sync-skills.yml @@ -24,33 +24,6 @@ on: jobs: sync: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - token: ${{ secrets.PAT }} - ref: ${{ github.head_ref || github.ref_name }} - - - name: Symlink skills/ into agent dirs - run: | - for dir in .claude .agents; do - mkdir -p "$dir" - ln -sfn ../skills "$dir/skills" - done - - - name: Symlink AGENTS.md → CLAUDE.md - run: '[ -f AGENTS.md ] && ln -sf AGENTS.md CLAUDE.md || true' - - - name: Commit and push if changed - run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - git add .claude/skills .agents/skills CLAUDE.md - if git diff --cached --quiet; then - echo "No changes to commit" - exit 0 - fi - BRANCH="${{ github.head_ref || github.ref_name }}" - git commit -m "chore(beep boop 🤖): symlink skills/ → .claude/skills, .agents/skills and AGENTS.md → CLAUDE.md" - git push origin HEAD:"$BRANCH" + uses: NVIDIA-NeMo/FW-CI-templates/.github/workflows/_sync_skills.yml@v0.91.0 + secrets: + PAT: ${{ secrets.PAT }}