superkit-mcp-server 1.0.2 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ARCHITECTURE.md +102 -102
- package/README.md +67 -63
- package/SUPERKIT.md +168 -168
- package/agents/code-archaeologist.md +106 -0
- package/agents/coder.md +90 -90
- package/agents/data-engineer.md +28 -28
- package/agents/devops-engineer.md +242 -0
- package/agents/git-manager.md +203 -203
- package/agents/orchestrator.md +4 -0
- package/agents/penetration-tester.md +188 -0
- package/agents/performance-optimizer.md +187 -0
- package/agents/planner.md +270 -270
- package/agents/qa-automation-engineer.md +103 -0
- package/agents/quant-developer.md +32 -28
- package/agents/reviewer.md +100 -100
- package/agents/scout.md +222 -222
- package/agents/tester.md +274 -274
- package/agents/ui-designer.md +208 -208
- package/build/index.js +53 -1
- package/build/tools/validators/__tests__/apiSchema.test.js +23 -23
- package/build/tools/validators/__tests__/convertRules.test.js +5 -5
- package/build/tools/validators/__tests__/frontendDesign.test.js +12 -12
- package/build/tools/validators/__tests__/geoChecker.test.js +19 -19
- package/build/tools/validators/__tests__/mobileAudit.test.js +12 -12
- package/build/tools/validators/__tests__/reactPerformanceChecker.test.js +17 -17
- package/build/tools/validators/__tests__/securityScan.test.js +6 -6
- package/build/tools/validators/__tests__/seoChecker.test.js +16 -16
- package/build/tools/validators/__tests__/typeCoverage.test.js +14 -14
- package/package.json +33 -33
- package/skills/meta/README.md +30 -30
- package/skills/meta/api-design/SKILL.md +134 -134
- package/skills/meta/code-review/SKILL.md +44 -37
- package/skills/meta/code-review/checklists/pre-merge.md +25 -25
- package/skills/meta/code-review/workflows/architecture-pass.md +26 -26
- package/skills/meta/code-review/workflows/performance-pass.md +27 -27
- package/skills/meta/code-review/workflows/security-pass.md +29 -29
- package/skills/meta/compound-docs/SKILL.md +133 -133
- package/skills/meta/debug/SKILL.md +40 -40
- package/skills/meta/debug/templates/bug-report.template.md +31 -31
- package/skills/meta/debug/workflows/reproduce-issue.md +20 -20
- package/skills/meta/docker/SKILL.md +126 -126
- package/skills/meta/examples/supabase/SKILL.md +46 -46
- package/skills/meta/examples/supabase/references/best-practices.md +319 -319
- package/skills/meta/examples/supabase/references/common-patterns.md +373 -373
- package/skills/meta/examples/supabase/templates/migration-template.sql +49 -49
- package/skills/meta/examples/supabase/templates/rls-policy-template.sql +77 -77
- package/skills/meta/examples/supabase/workflows/debugging.md +260 -260
- package/skills/meta/examples/supabase/workflows/migration-workflow.md +211 -211
- package/skills/meta/examples/supabase/workflows/rls-policies.md +244 -244
- package/skills/meta/examples/supabase/workflows/schema-design.md +321 -321
- package/skills/meta/file-todos/SKILL.md +88 -88
- package/skills/meta/mobile/SKILL.md +140 -140
- package/skills/meta/nextjs/SKILL.md +101 -101
- package/skills/meta/performance/SKILL.md +130 -130
- package/skills/meta/react-patterns/SKILL.md +83 -83
- package/skills/meta/security/SKILL.md +114 -114
- package/skills/meta/session-resume/SKILL.md +96 -96
- package/skills/meta/tailwind/SKILL.md +139 -139
- package/skills/meta/testing/SKILL.md +43 -43
- package/skills/meta/testing/references/vitest-patterns.md +45 -45
- package/skills/meta/testing/templates/component-test.template.tsx +37 -37
- package/skills/tech/alpha-vantage/SKILL.md +142 -0
- package/skills/tech/alpha-vantage/references/commodities.md +153 -0
- package/skills/tech/alpha-vantage/references/economic-indicators.md +158 -0
- package/skills/tech/alpha-vantage/references/forex-crypto.md +154 -0
- package/skills/tech/alpha-vantage/references/fundamentals.md +223 -0
- package/skills/tech/alpha-vantage/references/intelligence.md +138 -0
- package/skills/tech/alpha-vantage/references/options.md +93 -0
- package/skills/tech/alpha-vantage/references/technical-indicators.md +374 -0
- package/skills/tech/alpha-vantage/references/time-series.md +157 -0
- package/skills/tech/financial-modeling/SKILL.md +18 -0
- package/skills/tech/financial-modeling/skills/3-statements/SKILL.md +368 -0
- package/skills/tech/financial-modeling/skills/3-statements/references/formatting.md +118 -0
- package/skills/tech/financial-modeling/skills/3-statements/references/formulas.md +292 -0
- package/skills/tech/financial-modeling/skills/3-statements/references/sec-filings.md +125 -0
- package/skills/tech/financial-modeling/skills/dcf-model/SKILL.md +1211 -0
- package/skills/tech/financial-modeling/skills/dcf-model/TROUBLESHOOTING.md +40 -0
- package/skills/tech/financial-modeling/skills/dcf-model/requirements.txt +8 -0
- package/skills/tech/financial-modeling/skills/dcf-model/scripts/validate_dcf.py +292 -0
- package/skills/tech/financial-modeling/skills/lbo-model/SKILL.md +236 -0
- package/skills/tech/financial-modeling/skills/merger-model/SKILL.md +108 -0
- package/skills/tech/intelligent-routing/SKILL.md +5 -5
- package/workflows/README.md +191 -191
- package/workflows/adr.md +174 -174
- package/workflows/changelog.md +74 -74
- package/workflows/compound.md +323 -323
- package/workflows/compound_health.md +74 -74
- package/workflows/create-agent-skill.md +139 -139
- package/workflows/cycle.md +144 -144
- package/workflows/deploy-docs.md +84 -84
- package/workflows/development-rules.md +37 -37
- package/workflows/doc.md +95 -95
- package/workflows/documentation-management.md +29 -29
- package/workflows/explore.md +146 -146
- package/workflows/generate_command.md +106 -106
- package/workflows/heal-skill.md +97 -97
- package/workflows/housekeeping.md +229 -229
- package/workflows/kit-setup.md +102 -102
- package/workflows/map-codebase.md +78 -0
- package/workflows/orchestration-protocol.md +38 -38
- package/workflows/plan-compound.md +439 -433
- package/workflows/plan_review.md +269 -248
- package/workflows/primary-workflow.md +32 -32
- package/workflows/promote_pattern.md +86 -86
- package/workflows/release-docs.md +82 -82
- package/workflows/report-bug.md +135 -135
- package/workflows/reproduce-bug.md +118 -118
- package/workflows/resolve_pr.md +133 -133
- package/workflows/resolve_todo.md +128 -128
- package/workflows/review-compound.md +376 -359
- package/workflows/skill-review.md +127 -127
- package/workflows/specs.md +257 -257
- package/workflows/triage-sprint.md +102 -102
- package/workflows/triage.md +152 -152
- package/workflows/work.md +399 -399
- package/workflows/xcode-test.md +93 -93
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
# Bug Report: {Short Description}
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
- **Impact**: {High/Medium/Low}
|
|
5
|
-
- **Frequency**: {Always/Intermittent/Once}
|
|
6
|
-
- **Component**: {Part of the system}
|
|
7
|
-
|
|
8
|
-
## Reproduction Steps
|
|
9
|
-
1. Navigate to '...'
|
|
10
|
-
2. Click on '...'
|
|
11
|
-
3. See error '...'
|
|
12
|
-
|
|
13
|
-
## Expected Behavior
|
|
14
|
-
{What should happen?}
|
|
15
|
-
|
|
16
|
-
## Actual Behavior
|
|
17
|
-
{What actually happens?}
|
|
18
|
-
|
|
19
|
-
## Environment
|
|
20
|
-
- **Browser**: {e.g. Chrome 120}
|
|
21
|
-
- **OS**: {e.g. macOS Sonoma}
|
|
22
|
-
- **User Role**: {e.g. Admin/User}
|
|
23
|
-
|
|
24
|
-
## Logs / Errors
|
|
25
|
-
```
|
|
26
|
-
{Paste logs here}
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
## Possible Root Cause
|
|
30
|
-
- {Hypothesis 1}
|
|
31
|
-
- {Hypothesis 2}
|
|
1
|
+
# Bug Report: {Short Description}
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
- **Impact**: {High/Medium/Low}
|
|
5
|
+
- **Frequency**: {Always/Intermittent/Once}
|
|
6
|
+
- **Component**: {Part of the system}
|
|
7
|
+
|
|
8
|
+
## Reproduction Steps
|
|
9
|
+
1. Navigate to '...'
|
|
10
|
+
2. Click on '...'
|
|
11
|
+
3. See error '...'
|
|
12
|
+
|
|
13
|
+
## Expected Behavior
|
|
14
|
+
{What should happen?}
|
|
15
|
+
|
|
16
|
+
## Actual Behavior
|
|
17
|
+
{What actually happens?}
|
|
18
|
+
|
|
19
|
+
## Environment
|
|
20
|
+
- **Browser**: {e.g. Chrome 120}
|
|
21
|
+
- **OS**: {e.g. macOS Sonoma}
|
|
22
|
+
- **User Role**: {e.g. Admin/User}
|
|
23
|
+
|
|
24
|
+
## Logs / Errors
|
|
25
|
+
```
|
|
26
|
+
{Paste logs here}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Possible Root Cause
|
|
30
|
+
- {Hypothesis 1}
|
|
31
|
+
- {Hypothesis 2}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
# Reproduction Workflow
|
|
2
|
-
|
|
3
|
-
## 1. Isolate the Variable
|
|
4
|
-
- Can you reproduce it in a different browser?
|
|
5
|
-
- Can you reproduce it with a different user?
|
|
6
|
-
- Can you reproduce it locally vs prod?
|
|
7
|
-
|
|
8
|
-
## 2. Create Minimal Reproduction
|
|
9
|
-
Try to strip away all unnecessary complexity.
|
|
10
|
-
|
|
11
|
-
**Frontend:**
|
|
12
|
-
- Create a test case in a relevant `.test.tsx` file that mimics the user interaction.
|
|
13
|
-
|
|
14
|
-
**Backend:**
|
|
15
|
-
- Create a script in `scripts/repro/` that triggers the API call.
|
|
16
|
-
|
|
17
|
-
## 3. Scripts
|
|
18
|
-
Use these scripts to help:
|
|
19
|
-
- `./scripts/push-env.sh` (Sync environment variables)
|
|
20
|
-
- `npm run test` (Run unit tests)
|
|
1
|
+
# Reproduction Workflow
|
|
2
|
+
|
|
3
|
+
## 1. Isolate the Variable
|
|
4
|
+
- Can you reproduce it in a different browser?
|
|
5
|
+
- Can you reproduce it with a different user?
|
|
6
|
+
- Can you reproduce it locally vs prod?
|
|
7
|
+
|
|
8
|
+
## 2. Create Minimal Reproduction
|
|
9
|
+
Try to strip away all unnecessary complexity.
|
|
10
|
+
|
|
11
|
+
**Frontend:**
|
|
12
|
+
- Create a test case in a relevant `.test.tsx` file that mimics the user interaction.
|
|
13
|
+
|
|
14
|
+
**Backend:**
|
|
15
|
+
- Create a script in `scripts/repro/` that triggers the API call.
|
|
16
|
+
|
|
17
|
+
## 3. Scripts
|
|
18
|
+
Use these scripts to help:
|
|
19
|
+
- `./scripts/push-env.sh` (Sync environment variables)
|
|
20
|
+
- `npm run test` (Run unit tests)
|
|
@@ -1,126 +1,126 @@
|
|
|
1
|
-
# Docker Skill
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
Container optimization, multi-stage builds, and Docker best practices.
|
|
5
|
-
|
|
6
|
-
## Multi-Stage Build
|
|
7
|
-
|
|
8
|
-
```dockerfile
|
|
9
|
-
# Stage 1: Build
|
|
10
|
-
FROM node:20-alpine AS builder
|
|
11
|
-
WORKDIR /app
|
|
12
|
-
|
|
13
|
-
# Install dependencies first (cache layer)
|
|
14
|
-
COPY package*.json ./
|
|
15
|
-
RUN npm ci
|
|
16
|
-
|
|
17
|
-
# Build application
|
|
18
|
-
COPY . .
|
|
19
|
-
RUN npm run build
|
|
20
|
-
|
|
21
|
-
# Stage 2: Production
|
|
22
|
-
FROM node:20-alpine AS production
|
|
23
|
-
WORKDIR /app
|
|
24
|
-
|
|
25
|
-
# Create non-root user
|
|
26
|
-
RUN addgroup -g 1001 -S nodejs && \
|
|
27
|
-
adduser -S nextjs -u 1001
|
|
28
|
-
|
|
29
|
-
# Copy only production dependencies
|
|
30
|
-
COPY --from=builder /app/node_modules ./node_modules
|
|
31
|
-
COPY --from=builder /app/dist ./dist
|
|
32
|
-
COPY --from=builder /app/package.json ./
|
|
33
|
-
|
|
34
|
-
# Run as non-root
|
|
35
|
-
USER nextjs
|
|
36
|
-
|
|
37
|
-
# Health check
|
|
38
|
-
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
|
39
|
-
CMD wget --no-verbose --tries=1 --spider http://localhost:3000/health || exit 1
|
|
40
|
-
|
|
41
|
-
EXPOSE 3000
|
|
42
|
-
CMD ["node", "dist/server.js"]
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
## Docker Compose
|
|
46
|
-
|
|
47
|
-
```yaml
|
|
48
|
-
version: '3.8'
|
|
49
|
-
|
|
50
|
-
services:
|
|
51
|
-
app:
|
|
52
|
-
build:
|
|
53
|
-
context: .
|
|
54
|
-
target: production
|
|
55
|
-
ports:
|
|
56
|
-
- "3000:3000"
|
|
57
|
-
environment:
|
|
58
|
-
- NODE_ENV=production
|
|
59
|
-
- DATABASE_URL=postgres://db:5432/myapp
|
|
60
|
-
depends_on:
|
|
61
|
-
db:
|
|
62
|
-
condition: service_healthy
|
|
63
|
-
restart: unless-stopped
|
|
64
|
-
|
|
65
|
-
db:
|
|
66
|
-
image: postgres:16-alpine
|
|
67
|
-
volumes:
|
|
68
|
-
- postgres_data:/var/lib/postgresql/data
|
|
69
|
-
environment:
|
|
70
|
-
POSTGRES_DB: myapp
|
|
71
|
-
POSTGRES_USER: user
|
|
72
|
-
POSTGRES_PASSWORD_FILE: /run/secrets/db_password
|
|
73
|
-
secrets:
|
|
74
|
-
- db_password
|
|
75
|
-
healthcheck:
|
|
76
|
-
test: ["CMD-SHELL", "pg_isready -U user -d myapp"]
|
|
77
|
-
interval: 5s
|
|
78
|
-
timeout: 5s
|
|
79
|
-
retries: 5
|
|
80
|
-
|
|
81
|
-
redis:
|
|
82
|
-
image: redis:7-alpine
|
|
83
|
-
volumes:
|
|
84
|
-
- redis_data:/data
|
|
85
|
-
command: redis-server --appendonly yes
|
|
86
|
-
|
|
87
|
-
volumes:
|
|
88
|
-
postgres_data:
|
|
89
|
-
redis_data:
|
|
90
|
-
|
|
91
|
-
secrets:
|
|
92
|
-
db_password:
|
|
93
|
-
file: ./secrets/db_password.txt
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
## Best Practices
|
|
97
|
-
|
|
98
|
-
### Image Size Optimization
|
|
99
|
-
```dockerfile
|
|
100
|
-
# Use alpine base
|
|
101
|
-
FROM node:20-alpine
|
|
102
|
-
|
|
103
|
-
# Install only production deps
|
|
104
|
-
RUN npm ci --only=production
|
|
105
|
-
|
|
106
|
-
# Remove unnecessary files
|
|
107
|
-
RUN rm -rf /var/cache/apk/*
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
### .dockerignore
|
|
111
|
-
```
|
|
112
|
-
node_modules
|
|
113
|
-
.git
|
|
114
|
-
.gitignore
|
|
115
|
-
*.md
|
|
116
|
-
.env*
|
|
117
|
-
coverage
|
|
118
|
-
.nyc_output
|
|
119
|
-
dist
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
### Security
|
|
123
|
-
- Run as non-root user
|
|
124
|
-
- Use secrets for sensitive data
|
|
125
|
-
- Scan images: `docker scout cves myimage`
|
|
126
|
-
- Keep base images updated
|
|
1
|
+
# Docker Skill
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
Container optimization, multi-stage builds, and Docker best practices.
|
|
5
|
+
|
|
6
|
+
## Multi-Stage Build
|
|
7
|
+
|
|
8
|
+
```dockerfile
|
|
9
|
+
# Stage 1: Build
|
|
10
|
+
FROM node:20-alpine AS builder
|
|
11
|
+
WORKDIR /app
|
|
12
|
+
|
|
13
|
+
# Install dependencies first (cache layer)
|
|
14
|
+
COPY package*.json ./
|
|
15
|
+
RUN npm ci
|
|
16
|
+
|
|
17
|
+
# Build application
|
|
18
|
+
COPY . .
|
|
19
|
+
RUN npm run build
|
|
20
|
+
|
|
21
|
+
# Stage 2: Production
|
|
22
|
+
FROM node:20-alpine AS production
|
|
23
|
+
WORKDIR /app
|
|
24
|
+
|
|
25
|
+
# Create non-root user
|
|
26
|
+
RUN addgroup -g 1001 -S nodejs && \
|
|
27
|
+
adduser -S nextjs -u 1001
|
|
28
|
+
|
|
29
|
+
# Copy only production dependencies
|
|
30
|
+
COPY --from=builder /app/node_modules ./node_modules
|
|
31
|
+
COPY --from=builder /app/dist ./dist
|
|
32
|
+
COPY --from=builder /app/package.json ./
|
|
33
|
+
|
|
34
|
+
# Run as non-root
|
|
35
|
+
USER nextjs
|
|
36
|
+
|
|
37
|
+
# Health check
|
|
38
|
+
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
|
39
|
+
CMD wget --no-verbose --tries=1 --spider http://localhost:3000/health || exit 1
|
|
40
|
+
|
|
41
|
+
EXPOSE 3000
|
|
42
|
+
CMD ["node", "dist/server.js"]
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Docker Compose
|
|
46
|
+
|
|
47
|
+
```yaml
|
|
48
|
+
version: '3.8'
|
|
49
|
+
|
|
50
|
+
services:
|
|
51
|
+
app:
|
|
52
|
+
build:
|
|
53
|
+
context: .
|
|
54
|
+
target: production
|
|
55
|
+
ports:
|
|
56
|
+
- "3000:3000"
|
|
57
|
+
environment:
|
|
58
|
+
- NODE_ENV=production
|
|
59
|
+
- DATABASE_URL=postgres://db:5432/myapp
|
|
60
|
+
depends_on:
|
|
61
|
+
db:
|
|
62
|
+
condition: service_healthy
|
|
63
|
+
restart: unless-stopped
|
|
64
|
+
|
|
65
|
+
db:
|
|
66
|
+
image: postgres:16-alpine
|
|
67
|
+
volumes:
|
|
68
|
+
- postgres_data:/var/lib/postgresql/data
|
|
69
|
+
environment:
|
|
70
|
+
POSTGRES_DB: myapp
|
|
71
|
+
POSTGRES_USER: user
|
|
72
|
+
POSTGRES_PASSWORD_FILE: /run/secrets/db_password
|
|
73
|
+
secrets:
|
|
74
|
+
- db_password
|
|
75
|
+
healthcheck:
|
|
76
|
+
test: ["CMD-SHELL", "pg_isready -U user -d myapp"]
|
|
77
|
+
interval: 5s
|
|
78
|
+
timeout: 5s
|
|
79
|
+
retries: 5
|
|
80
|
+
|
|
81
|
+
redis:
|
|
82
|
+
image: redis:7-alpine
|
|
83
|
+
volumes:
|
|
84
|
+
- redis_data:/data
|
|
85
|
+
command: redis-server --appendonly yes
|
|
86
|
+
|
|
87
|
+
volumes:
|
|
88
|
+
postgres_data:
|
|
89
|
+
redis_data:
|
|
90
|
+
|
|
91
|
+
secrets:
|
|
92
|
+
db_password:
|
|
93
|
+
file: ./secrets/db_password.txt
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## Best Practices
|
|
97
|
+
|
|
98
|
+
### Image Size Optimization
|
|
99
|
+
```dockerfile
|
|
100
|
+
# Use alpine base
|
|
101
|
+
FROM node:20-alpine
|
|
102
|
+
|
|
103
|
+
# Install only production deps
|
|
104
|
+
RUN npm ci --only=production
|
|
105
|
+
|
|
106
|
+
# Remove unnecessary files
|
|
107
|
+
RUN rm -rf /var/cache/apk/*
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### .dockerignore
|
|
111
|
+
```
|
|
112
|
+
node_modules
|
|
113
|
+
.git
|
|
114
|
+
.gitignore
|
|
115
|
+
*.md
|
|
116
|
+
.env*
|
|
117
|
+
coverage
|
|
118
|
+
.nyc_output
|
|
119
|
+
dist
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### Security
|
|
123
|
+
- Run as non-root user
|
|
124
|
+
- Use secrets for sensitive data
|
|
125
|
+
- Scan images: `docker scout cves myimage`
|
|
126
|
+
- Keep base images updated
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: supabase
|
|
3
|
-
description: Database, auth, and backend expertise for Supabase operations in [PROJECT_NAME]
|
|
4
|
-
last_updated: 2025-12-21
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Supabase Skill
|
|
8
|
-
|
|
9
|
-
## Overview
|
|
10
|
-
|
|
11
|
-
Provides comprehensive expertise for Supabase development in [PROJECT_NAME] including:
|
|
12
|
-
- Database schema design and migrations
|
|
13
|
-
- Row Level Security (RLS) policy implementation
|
|
14
|
-
- Auth integration debugging
|
|
15
|
-
- Performance optimization
|
|
16
|
-
|
|
17
|
-
## When To Use
|
|
18
|
-
|
|
19
|
-
- Creating or modifying database schemas
|
|
20
|
-
- Writing database migrations
|
|
21
|
-
- Implementing RLS policies
|
|
22
|
-
- Debugging Supabase auth or query issues
|
|
23
|
-
- Optimizing database performance
|
|
24
|
-
|
|
25
|
-
## Instrumentation
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
# Log usage when using this skill
|
|
29
|
-
./scripts/log-skill.sh "supabase" "manual" "$$"
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
## What do you want to do?
|
|
33
|
-
|
|
34
|
-
1. **Create Database Migration** → Read `workflows/migration-workflow.md`
|
|
35
|
-
2. **Design RLS Policies** → Read `workflows/rls-policies.md`
|
|
36
|
-
3. **Debug Supabase Issues** → Read `workflows/debugging.md`
|
|
37
|
-
4. **Design Database Schema** → Read `workflows/schema-design.md`
|
|
38
|
-
5. **Review Best Practices** → Read `references/best-practices.md`
|
|
39
|
-
6. **See Common Patterns** → Read `references/common-patterns.md`
|
|
40
|
-
|
|
41
|
-
## Quick Reference
|
|
42
|
-
|
|
43
|
-
**Migration Template:** `templates/migration-template.sql`
|
|
44
|
-
**RLS Template:** `templates/rls-policy-template.sql`
|
|
45
|
-
**Existing Migrations:** `backend/migrations/`
|
|
46
|
-
**Supabase Client:** `lib/supabaseClient.ts`
|
|
1
|
+
---
|
|
2
|
+
name: supabase
|
|
3
|
+
description: Database, auth, and backend expertise for Supabase operations in [PROJECT_NAME]
|
|
4
|
+
last_updated: 2025-12-21
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Supabase Skill
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
|
|
11
|
+
Provides comprehensive expertise for Supabase development in [PROJECT_NAME] including:
|
|
12
|
+
- Database schema design and migrations
|
|
13
|
+
- Row Level Security (RLS) policy implementation
|
|
14
|
+
- Auth integration debugging
|
|
15
|
+
- Performance optimization
|
|
16
|
+
|
|
17
|
+
## When To Use
|
|
18
|
+
|
|
19
|
+
- Creating or modifying database schemas
|
|
20
|
+
- Writing database migrations
|
|
21
|
+
- Implementing RLS policies
|
|
22
|
+
- Debugging Supabase auth or query issues
|
|
23
|
+
- Optimizing database performance
|
|
24
|
+
|
|
25
|
+
## Instrumentation
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
# Log usage when using this skill
|
|
29
|
+
./scripts/log-skill.sh "supabase" "manual" "$$"
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## What do you want to do?
|
|
33
|
+
|
|
34
|
+
1. **Create Database Migration** → Read `workflows/migration-workflow.md`
|
|
35
|
+
2. **Design RLS Policies** → Read `workflows/rls-policies.md`
|
|
36
|
+
3. **Debug Supabase Issues** → Read `workflows/debugging.md`
|
|
37
|
+
4. **Design Database Schema** → Read `workflows/schema-design.md`
|
|
38
|
+
5. **Review Best Practices** → Read `references/best-practices.md`
|
|
39
|
+
6. **See Common Patterns** → Read `references/common-patterns.md`
|
|
40
|
+
|
|
41
|
+
## Quick Reference
|
|
42
|
+
|
|
43
|
+
**Migration Template:** `templates/migration-template.sql`
|
|
44
|
+
**RLS Template:** `templates/rls-policy-template.sql`
|
|
45
|
+
**Existing Migrations:** `backend/migrations/`
|
|
46
|
+
**Supabase Client:** `lib/supabaseClient.ts`
|