Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
27 changes: 27 additions & 0 deletions .github/workflows/skill-frontmatter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@ on:
pull_request:
paths:
- "plugins/**/SKILL.md"
- ".agents/skills/**/SKILL.md"
- "mise.toml"
- ".github/workflows/skill-frontmatter.yml"
push:
branches:
- main
paths:
- "plugins/**/SKILL.md"
- ".agents/skills/**/SKILL.md"
- "mise.toml"
- ".github/workflows/skill-frontmatter.yml"

permissions:
contents: read
Expand Down Expand Up @@ -36,3 +42,24 @@ jobs:
exit 1
fi
echo "All SKILL.md descriptions are single-line."

validate-spec:
name: Validate skills against the Agent Skills spec
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- uses: jdx/mise-action@7a4e45a543138629540c9a1616d08632b893e492 # v5.0.1
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Validate every skill with trg
run: |
status=0
Comment thread
yordis marked this conversation as resolved.
while IFS= read -r skill; do
dir=$(dirname "$skill")
echo "::group::$dir"
trg ai skills validate "$dir" || { echo "::error file=$skill::trg ai skills validate failed"; status=1; }
echo "::endgroup::"
done < <(find plugins .agents/skills -name SKILL.md -type f | sort)
exit $status
2 changes: 2 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[tools]
"github:TrogonStack/rusty-monorepo" = { version = "trg@v0.11.0", exe = "trg" }
Loading