OpenClaw PolarDB Supabase Skill
OpenClaw 的 PolarDB Supabase 数据库管理技能,基于 TypeScript + Supabase JS SDK + Commander 开发。
polardb-supabase-skill/ ├── skill/ # 📦 部署产物(可直接复制到 OpenClaw) │ ├── SKILL.md # 技能描述文档 │ ├── .env.example # 环境变量示例 │ ├── scripts/ # 构建后的零依赖 JS 脚本 │ └── references/ # Supabase AI Prompt 最佳实践文档 ├── src/ # 🔧 TypeScript 源码 │ ├── lib/ │ │ └── supabase-client.ts │ └── scripts/ │ ├── database.ts │ ├── storage.ts │ ├── edge-functions.ts │ ├── secrets.ts │ ├── auth.ts │ └── profile.ts ├── tests/ # 🧪 集成测试 ├── package.json ├── tsconfig.json └── build.mjs # 构建脚本
npm install
npm run build # 构建到 skill/scripts/ npm run build:watch # 监听模式
# 配置环境变量 cp skill/.env.example .env # 编辑 .env 填入实际配置 # 运行所有测试 npm test # 监听模式(开发时使用) npm run test:watch
node skill/scripts/database.js --help node skill/scripts/database.js list-tables # 多环境支持 node skill/scripts/database.js list-tables --profile project-a
cp -r skill/ ~/.openclaw/skills/polardb-supabase/
database.js
storage.js
edge-functions.js
secrets.js
auth.js
profile.js
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
PolarDB Supabase Skill
OpenClaw 的 PolarDB Supabase 数据库管理技能,基于 TypeScript + Supabase JS SDK + Commander 开发。
项目结构
开发
安装依赖
构建
测试
本地测试脚本
部署到 OpenClaw
功能模块
database.jsstorage.jsedge-functions.jssecrets.jsauth.jsprofile.js技术栈