Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .github/workflows/sync-skills.yml
Original file line number Diff line number Diff line change
@@ -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"
File renamed without changes.
Loading