leoyishou/personal-ai-company/supabase-upload

Claude Code and agent skill by leoyishou/personal-ai-company

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Supabase Storage 文件上传工具,支持本地文件和Base64上传,返回公开URL

Install

npx vskill@latest install leoyishou/personal-ai-company/supabase-upload

SKILL.md

The same SKILL.md was published earlier as leoyishou/personal-ai-company/supabase-upload.

Supabase Upload Skill

使用 Supabase Storage 上传文件,获取公开访问 URL。

快速开始

环境配置

在项目根目录 .env 文件中添加:

bash
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_KEY=your-anon-or-service-key
SUPABASE_BUCKET=uploads # 可选,默认 uploads
上传文件
bash
cd .claude/skills/supabase-upload
uv run python scripts/upload.py upload /path/to/image.png

只输出 URL:

bash
uv run python scripts/upload.py upload /path/to/image.png --url-only

指定文件夹:

bash
uv run python scripts/upload.py upload /path/to/image.png --folder images
列出文件
bash
uv run python scripts/upload.py list --folder images
删除文件
bash
uv run python scripts/upload.py delete images/filename.png

命令行参数

upload
参数说明默认值
file本地文件路径必填
--folder, -f存储文件夹根目录
--name, -n自定义文件名自动生成 UUID
--url-only只输出 URLfalse
list
参数说明默认值
--folder, -f文件夹路径根目录
delete
参数说明
path存储路径

Python API

python
from supabase_client import upload_file, upload_base64, delete_file, list_files
# 上传本地文件
url = upload_file("/path/to/image.png", folder="images")
print(f"Uploaded: {url}")
# 上传 Base64 数据
url = upload_base64(base64_data, content_type="image/png", folder="images")
print(f"Uploaded: {url}")
# 删除文件
delete_file("images/filename.png")
# 列出文件
files = list_files("images")
for f in files:
print(f["name"])

与 digital-human 配合使用

上传图片和音频到 Supabase,获取 URL 后用于数字人视频生成:

bash
# 上传图片
IMAGE_URL=$(uv run python .claude/skills/supabase-upload/scripts/upload.py upload avatar.png --url-only)
# 上传音频
AUDIO_URL=$(uv run python .claude/skills/supabase-upload/scripts/upload.py upload speech.mp3 --url-only)
# 生成数字人视频
uv run python .claude/skills/digital-human/scripts/digital_human.py \
--image-url "$IMAGE_URL" \
--audio-url "$AUDIO_URL"

Supabase 配置说明

创建 Storage Bucket
  1. 登录 Supabase Dashboard
  2. 进入 Storage 页面
  3. 创建新 Bucket(如 uploads)
  4. 设置为 Public(公开访问)
获取 API Key
  1. 进入 Project Settings > API
  2. 复制 anon 或 service_role key
  3. 复制 Project URL

错误处理

错误原因解决方案
Missing SUPABASE_URL未设置环境变量设置 SUPABASE_URL
Missing SUPABASE_KEY未设置访问密钥设置 SUPABASE_KEY
File not found本地文件不存在检查文件路径
Upload failed上传失败检查 Bucket 权限和网络

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
31
Repository forks
8
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/leoyishou/personal-ai-company/supabase-upload/badge)](https://verified-skill.com/skills/leoyishou/personal-ai-company/supabase-upload)

Something wrong with this skill or its page? Tell us.