mirror of
https://github.com/supabase/agent-skills.git
synced 2026-01-26 19:09:51 +08:00
Initial setup: PostgreSQL best practices repository
Skeleton structure for Supabase PostgreSQL experts to add performance optimization rules. Modeled after Vercel's react-best-practices-build. Includes: - Build system (parser, validator, builder) - Skill manifest and metadata - Rule templates and writing guidelines - CI workflow for validation - Getting started guide for Postgres team Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
43
.github/workflows/ci.yml
vendored
Normal file
43
.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
name: PostgreSQL Best Practices CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- 'skills/postgresql-best-practices/**'
|
||||
- 'packages/postgresql-best-practices-build/**'
|
||||
pull_request:
|
||||
paths:
|
||||
- 'skills/postgresql-best-practices/**'
|
||||
- 'packages/postgresql-best-practices-build/**'
|
||||
|
||||
jobs:
|
||||
validate-and-build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: packages/postgresql-best-practices-build
|
||||
run: npm install
|
||||
|
||||
- name: Validate rule files
|
||||
working-directory: packages/postgresql-best-practices-build
|
||||
run: npm run validate
|
||||
|
||||
- name: Build AGENTS.md
|
||||
working-directory: packages/postgresql-best-practices-build
|
||||
run: npm run build
|
||||
|
||||
- name: Check for uncommitted changes
|
||||
run: |
|
||||
if [[ -n $(git status --porcelain skills/postgresql-best-practices/AGENTS.md) ]]; then
|
||||
echo "Error: AGENTS.md is not up to date"
|
||||
echo "Run 'npm run build' and commit the changes"
|
||||
git diff skills/postgresql-best-practices/AGENTS.md
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user