Files
supabase-postgres-best-prac…/.github/workflows/ci.yml
Pedro Rodrigues bbde7ff5f8 refactor: generic skills build system with auto-discovery (#8)
* refactor: generic skills build system with auto-discovery

- Rename postgres-best-practices-build → skills-build
- Add auto-discovery: scans skills/ for subdirectories with metadata.json
- Build/validate all skills or specific skill with -- argument
- Update root AGENTS.md and CONTRIBUTING.md with new structure
- No configuration needed to add new skills

Usage:
  npm run build                    # Build all skills
  npm run build -- skill-name      # Build specific skill
  npm run validate                 # Validate all skills

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix ci

* more generic impact levels

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 15:56:11 +00:00

55 lines
1.2 KiB
YAML

name: Skills CI
on:
push:
branches: [main]
pull_request:
jobs:
biome:
name: Format and Lint (Biome)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Run Biome CI
run: npm run ci:check
validate-and-build:
name: Validate and Build Skills
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
working-directory: packages/skills-build
run: npm install
- name: Validate all skills
working-directory: packages/skills-build
run: npm run validate
- name: Build all skills
working-directory: packages/skills-build
run: npm run build
- name: Check for uncommitted changes
run: |
if [[ -n $(git status --porcelain 'skills/*/AGENTS.md') ]]; then
echo "Error: AGENTS.md files are not up to date"
echo "Run 'npm run build' and commit the changes"
git diff skills/*/AGENTS.md
exit 1
fi