mirror of
https://github.com/supabase/agent-skills.git
synced 2026-03-27 10:09:26 +08:00
1.9 KiB
1.9 KiB
Getting Started
Contributor guide for adding content to the Supabase Agent Skills.
Quick Start
- Create a reference file in
skills/supabase/references/ - Use
skills/supabase/references/_template.mdas your starting point - Update
skills/supabase/SKILL.mdto reference your new file - Run
npm run build && npm run check
Creating Reference Files
# Main topic
skills/supabase/references/{feature}.md
# Sub-topics (optional)
skills/supabase/references/{feature}/{subtopic}.md
Examples:
references/auth.md- Authentication overviewreferences/auth/nextjs.md- Auth setup for Next.jsreferences/storage.md- Storage overview
Writing Guidelines
Follow the Agent Skills Open Standard best practices:
- Concise is key - Only include what Claude doesn't already know
- Show, don't tell - Prefer code examples over explanations
- Progressive disclosure - Keep SKILL.md lean, put details in reference files
- Concrete examples - Include runnable code with real values
- Common mistakes first - Help agents avoid pitfalls
Good example (~50 tokens):
// Get user session
const { data: { session } } = await supabase.auth.getSession();
Avoid (~150 tokens):
Sessions are a way to track authenticated users. When a user logs in,
a session is created. You can get the current session using the
getSession method which returns a promise...
Update SKILL.md
Add your reference to the resources table:
| Area | Resource | When to Use |
| ------------ | ----------------------- | ------------------------------ |
| Your Feature | `references/feature.md` | Brief description of use cases |
Validate
npm run validate -- supabase # Check files
npm run build -- supabase # Generate AGENTS.md
npm run check # Format and lint