AgentSkillsCN

supabase-edge-functions

管理和部署 Supabase Edge Functions。当用户输入“部署函数”、“创建新函数”、“在本地运行函数”或“列出函数”等短语时,可触发此技能。

SKILL.md
--- frontmatter
name: supabase-edge-functions
description: Manage and deploy Supabase Edge Functions. Triggered by phrases like "deploy function", "create new function", "serve function locally", or "list functions".

Supabase Edge Functions Skill

Goal

Develop and deploy serverless functions to the edge.

Instructions

  1. Open the relevant rule file:
  2. Use functions new to create a boilerplate.
  3. Test locally using functions serve before deploying.
  4. Ensure SUPABASE_ACCESS_TOKEN is set if deploying via CI.

Examples

  • "Deploy the 'hello' function" -> Use supabase functions deploy hello
  • "Create a new edge function" -> Use supabase functions new my-func
  • "Run functions locally" -> Use supabase functions serve