| # Licensed to the Apache Software Foundation (ASF) under one |
| # or more contributor license agreements. See the NOTICE file |
| # distributed with this work for additional information |
| # regarding copyright ownership. The ASF licenses this file |
| # to you 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: skill-and-tool-validator |
| |
| on: # yamllint disable-line rule:truthy |
| pull_request: |
| paths: |
| - "skills/**" |
| - ".claude/skills/**" |
| - "tools/skill-and-tool-validator/**" |
| - ".github/workflows/skill-and-tool-validator.yml" |
| push: |
| branches: [main] |
| paths: |
| - "skills/**" |
| - ".claude/skills/**" |
| - "tools/skill-and-tool-validator/**" |
| - ".github/workflows/skill-and-tool-validator.yml" |
| |
| permissions: {} |
| |
| jobs: |
| skill-and-tool-validator: |
| name: validate skills and tool contracts |
| runs-on: ubuntu-latest |
| permissions: |
| contents: read |
| env: |
| FORCE_COLOR: "1" |
| steps: |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 |
| with: |
| persist-credentials: false |
| - uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0 |
| with: |
| enable-cache: true |
| # Sync every workspace member so the validator's |
| # `[project.scripts]` entry point is available from the repo root. |
| - name: Sync workspace |
| run: uv sync --all-packages --group dev |
| - name: Run skill-and-tool-validator |
| run: uv run skill-and-tool-validate |