From 5b895930c1e4a8d90f26c41add8abf2465fcf703 Mon Sep 17 00:00:00 2001 From: Tomas Grosup Date: Thu, 30 Apr 2026 14:49:32 +0200 Subject: [PATCH 1/2] Add skill-validation workflow for structural checks on skills and agents Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/skill-validation.yml | 93 ++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 .github/workflows/skill-validation.yml diff --git a/.github/workflows/skill-validation.yml b/.github/workflows/skill-validation.yml new file mode 100644 index 0000000000..d28ebf6c5a --- /dev/null +++ b/.github/workflows/skill-validation.yml @@ -0,0 +1,93 @@ +name: Skill Validation + +on: + pull_request: + paths: + - '.github/skills/**' + - '.github/agents/**' + - '.github/workflows/skill-validation.yml' + push: + branches: [main] + paths: + - '.github/skills/**' + - '.github/agents/**' + - '.github/workflows/skill-validation.yml' + workflow_dispatch: + +concurrency: + group: skill-validation-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + validate: + name: Validate skills and agents + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + sparse-checkout: | + .github/skills + .github/agents + persist-credentials: false + + - name: Download skill-validator + shell: bash + run: | + curl -fsSL --retry 3 --retry-all-errors -o skill-validator.tar.gz \ + https://github.com/dotnet/skills/releases/download/skill-validator-nightly/skill-validator-linux-x64.tar.gz + mkdir -p skill-validator-bin + tar -xzf skill-validator.tar.gz -C skill-validator-bin + if [ ! -f skill-validator-bin/skill-validator ]; then + echo "::error::skill-validator binary not found after extraction" + exit 1 + fi + chmod +x skill-validator-bin/skill-validator + + - name: Run skill-validator check + shell: bash + run: | + rc=0 + + if [ -d .github/skills ]; then + echo "::group::Validate skills" + set +e + skill-validator-bin/skill-validator check --skills .github/skills --allow-repo-traversal --verbose 2>&1 | tee skill-check-skills.txt + skills_rc=${PIPESTATUS[0]} + set -e + echo "::endgroup::" + if [ "$skills_rc" -ne 0 ]; then rc=1; fi + fi + + if [ -d .github/agents ]; then + echo "::group::Validate agents" + set +e + skill-validator-bin/skill-validator check --agents .github/agents --allow-repo-traversal --verbose 2>&1 | tee skill-check-agents.txt + agents_rc=${PIPESTATUS[0]} + set -e + echo "::endgroup::" + if [ "$agents_rc" -ne 0 ]; then rc=1; fi + fi + + # Write to step summary + { + echo "## skill-validator check" + echo "" + if [ "$rc" -eq 0 ]; then + echo "All checks passed." + else + for f in skill-check-skills.txt skill-check-agents.txt; do + if [ -f "$f" ]; then + echo "### ${f}" + echo '```' + head -n 200 "$f" + echo '```' + echo "" + fi + done + fi + } >> "$GITHUB_STEP_SUMMARY" + exit "$rc" From 3700eb7000e9b10bea5ca1156a990c3952d1083b Mon Sep 17 00:00:00 2001 From: Tomas Grosup Date: Thu, 30 Apr 2026 15:09:21 +0200 Subject: [PATCH 2/2] Fix skill-validator errors: rename skill dir, add agent name field - Rename .github/skills/expert-review/ to reviewing-compiler-prs/ to match frontmatter name (validator requires directory/name match) - Add missing name field to agentic-workflows.agent.md frontmatter Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/agents/agentic-workflows.agent.md | 1 + .../skills/{expert-review => reviewing-compiler-prs}/SKILL.md | 0 2 files changed, 1 insertion(+) rename .github/skills/{expert-review => reviewing-compiler-prs}/SKILL.md (100%) diff --git a/.github/agents/agentic-workflows.agent.md b/.github/agents/agentic-workflows.agent.md index 7532f4e39e..c7ab589fd2 100644 --- a/.github/agents/agentic-workflows.agent.md +++ b/.github/agents/agentic-workflows.agent.md @@ -1,4 +1,5 @@ --- +name: agentic-workflows description: GitHub Agentic Workflows (gh-aw) - Create, debug, and upgrade AI-powered workflows with intelligent prompt routing disable-model-invocation: true --- diff --git a/.github/skills/expert-review/SKILL.md b/.github/skills/reviewing-compiler-prs/SKILL.md similarity index 100% rename from .github/skills/expert-review/SKILL.md rename to .github/skills/reviewing-compiler-prs/SKILL.md