mirror of
https://github.com/supabase/agent-skills.git
synced 2026-01-26 19:09:51 +08:00
Add installation command (#3)
This commit is contained in:
43
.github/workflows/ci.yml
vendored
43
.github/workflows/ci.yml
vendored
@@ -1,43 +0,0 @@
|
|||||||
name: Postgres Best Practices CI
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
paths:
|
|
||||||
- 'skills/postgres-best-practices/**'
|
|
||||||
- 'packages/postgres-best-practices-build/**'
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- 'skills/postgres-best-practices/**'
|
|
||||||
- 'packages/postgres-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/postgres-best-practices-build
|
|
||||||
run: npm install
|
|
||||||
|
|
||||||
- name: Validate rule files
|
|
||||||
working-directory: packages/postgres-best-practices-build
|
|
||||||
run: npm run validate
|
|
||||||
|
|
||||||
- name: Build AGENTS.md
|
|
||||||
working-directory: packages/postgres-best-practices-build
|
|
||||||
run: npm run build
|
|
||||||
|
|
||||||
- name: Check for uncommitted changes
|
|
||||||
run: |
|
|
||||||
if [[ -n $(git status --porcelain skills/postgres-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/postgres-best-practices/AGENTS.md
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
10
AGENTS.md
10
AGENTS.md
@@ -9,6 +9,12 @@ A collection of Postgres best practices skills for Claude.ai and Claude Code,
|
|||||||
maintained by Supabase. Skills are packaged instructions that extend agent
|
maintained by Supabase. Skills are packaged instructions that extend agent
|
||||||
capabilities for database optimization.
|
capabilities for database optimization.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npx skills add supabase/agent-skills
|
||||||
|
```
|
||||||
|
|
||||||
## Creating a New Rule
|
## Creating a New Rule
|
||||||
|
|
||||||
### Directory Structure
|
### Directory Structure
|
||||||
@@ -118,7 +124,3 @@ npm run build # Generate AGENTS.md
|
|||||||
| `monitor-` | Monitoring & Diagnostics | 7 (LOW-MEDIUM) |
|
| `monitor-` | Monitoring & Diagnostics | 7 (LOW-MEDIUM) |
|
||||||
| `advanced-` | Advanced Features | 8 (LOW) |
|
| `advanced-` | Advanced Features | 8 (LOW) |
|
||||||
|
|
||||||
### End-User Installation
|
|
||||||
|
|
||||||
**claude.ai:** Add the skill to project knowledge or paste SKILL.md contents
|
|
||||||
into the conversation.
|
|
||||||
|
|||||||
@@ -31,6 +31,12 @@ across 8 categories, prioritized by impact.
|
|||||||
- Monitoring & Diagnostics (Low-Medium)
|
- Monitoring & Diagnostics (Low-Medium)
|
||||||
- Advanced Features (Low)
|
- Advanced Features (Low)
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npx skills add supabase/agent-skills
|
||||||
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Skills are automatically available once installed. The agent will use them when
|
Skills are automatically available once installed. The agent will use them when
|
||||||
|
|||||||
Reference in New Issue
Block a user