File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Copyright 2026 Google LLC
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
15+ name : lint
16+
17+ on :
18+ push :
19+ paths-ignore :
20+ - " skills/**"
21+ pull_request :
22+ paths-ignore :
23+ - " skills/**"
24+ pull_request_target :
25+ types : [labeled]
26+ paths-ignore :
27+ - " skills/**"
28+ workflow_dispatch :
29+
30+ jobs :
31+ skills-validate :
32+ runs-on : ubuntu-latest
33+ steps :
34+ - name : Skip Skill Validation
35+ run : |
36+ echo "No changes detected in 'skills/' directory. Skipping validation."
37+ echo "This job ensures the required 'skills-validate' status check passes."
Original file line number Diff line number Diff line change 1+ # Copyright 2026 Google LLC
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
15+ name : Validate Skills
16+
17+ on :
18+ push :
19+ paths :
20+ - " skills/**"
21+ pull_request :
22+ paths :
23+ - " skills/**"
24+ pull_request_target :
25+ types : [labeled]
26+ paths :
27+ - " skills/**"
28+
29+ jobs :
30+ skills-validate :
31+ runs-on : ubuntu-latest
32+ steps :
33+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
34+
35+ - name : Set up Python
36+ uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
37+ with :
38+ python-version : " 3.11"
39+
40+ - name : Install skills-ref
41+ run : |
42+ pip install "git+https://github.com/agentskills/agentskills.git#subdirectory=skills-ref"
43+
44+ - name : Validate Skills
45+ run : |
46+ failed=0
47+ for skill_dir in skills/*/; do
48+ if [ -d "$skill_dir" ]; then
49+ echo "Validating $skill_dir..."
50+ if ! skills-ref validate "$skill_dir"; then
51+ echo "Validation failed for $skill_dir"
52+ failed=1
53+ fi
54+ fi
55+ done
56+ exit $failed
You can’t perform that action at this time.
0 commit comments