skill-lint.yml
.codex/skills/compose-kotlin-agent-skills/.github/workflows/skill-lint.yml
1name: Skill Lint23on:4 push:5 branches: [main, master]6 paths-ignore:7 - "assets/**"8 - "**/*.png"9 - "**/*.jpg"10 - "**/*.svg"11 pull_request:12 branches: [main, master]13 paths-ignore:14 - "assets/**"15 - "**/*.png"16 - "**/*.jpg"17 - "**/*.svg"18 workflow_dispatch: {}1920concurrency:21 group: skill-lint-${{ github.workflow }}-${{ github.ref }}22 cancel-in-progress: true2324permissions:25 contents: read2627jobs:28 validate-skills:29 name: Validate SKILL.md files30 runs-on: ubuntu-latest31 timeout-minutes: 532 steps:33 - name: Checkout34 uses: actions/checkout@v43536 - name: Set up Python37 uses: actions/setup-python@v538 with:39 python-version: "3.12"4041 - name: Validate frontmatter, links, and lock parity42 run: |43 python3 scripts/validate_skills.py \44 --strict \45 --lock-check api/skills.lock \46 --junit junit-results.xml4748 - name: Lock file fix hint49 if: failure()50 run: |51 echo "::error::api/skills.lock is out of date. After editing any SKILL.md, run:"52 echo "::error:: ./scripts/update_lock.sh"53 echo "::error::Then commit api/skills.lock in the same PR."5455 - name: Upload JUnit results56 if: always()57 uses: actions/upload-artifact@v458 with:59 name: skill-lint-junit60 path: junit-results.xml61 if-no-files-found: warn6263 - name: Summary64 if: success()65 run: |66 echo "### Skill Lint OK" >> "$GITHUB_STEP_SUMMARY"67 echo "" >> "$GITHUB_STEP_SUMMARY"68 echo "All SKILL.md files passed frontmatter + link + lock validation." >> "$GITHUB_STEP_SUMMARY"69 echo "" >> "$GITHUB_STEP_SUMMARY"70 echo "**Discovered skills:**" >> "$GITHUB_STEP_SUMMARY"71 echo '```' >> "$GITHUB_STEP_SUMMARY"72 find . -name 'SKILL.md' -not -path './.git/*' | sort >> "$GITHUB_STEP_SUMMARY"73 echo '```' >> "$GITHUB_STEP_SUMMARY"74