Agent Skillsdifferent-ai/openwork › upload-photo

upload-photo

GitHub

将本地图片上传至 Vercel Blob 并返回公开 URL,支持 PR 评论、文档嵌入及分享。需配置存储令牌,提供确定性或随机 URL 选项,强调不上传敏感数据。

.opencode/skills/upload-photo/SKILL.md different-ai/openwork

触发场景

需要将截图或图片生成公开链接用于 PR 评论 需要在文档中嵌入图片资源

安装

npx skills add different-ai/openwork --skill upload-photo -g -y
更多选项

非标准路径

npx skills add https://github.com/different-ai/openwork/tree/dev/.opencode/skills/upload-photo -g -y

不安装直接使用

npx skills use different-ai/openwork@upload-photo

指定 Agent (Claude Code)

npx skills add different-ai/openwork --skill upload-photo -a claude-code -g -y

安装 repo 全部 skill

npx skills add different-ai/openwork --all -g -y

预览 repo 内 skill

npx skills add different-ai/openwork --list

SKILL.md

Frontmatter
{
    "name": "upload-photo",
    "description": "upload a photo\/image\/screenshot, host an image, get a public image URL, put images on Vercel Blob, embed images in a PR\/comment\/doc. Upload local images to Vercel Blob and print public URLs."
}

Skill: upload-photo

Upload local image files to Vercel Blob and return public URLs for sharing.

When to use

Use whenever an image or screenshot needs a public URL, including PR comments, docs, and sharing.

Requires

BLOB_READ_WRITE_TOKEN must be set in the environment. If it is missing, use the get-env-var skill to fetch it from Infisical:

export BLOB_READ_WRITE_TOKEN="$(infisical secrets get BLOB_READ_WRITE_TOKEN --plain --silent)"

Upload

Run the bundled script from the repo root:

node .opencode/skills/upload-photo/scripts/upload.mjs <file.png> [more files...] [--prefix <path/prefix>] [--stable]

It prints one public URL per line (https://<store>.public.blob.vercel-storage.com/...). --prefix defaults to uploads/<YYYY-MM-DD>. By default Vercel Blob appends a random suffix to the pathname for collision safety; --stable disables that (x-add-random-suffix: 0) for deterministic URLs, so overwrites are possible.

Embed

Use Markdown:

![alt](url)

Or HTML for size control in GitHub comments:

<img src="url" width="700">

Rules

  • Never log BLOB_READ_WRITE_TOKEN.
  • The store is public; do not upload anything sensitive.
  • Prefer PNG, JPEG, or WebP images.

版本历史

  • ff5d298 当前 2026-08-20 11:36

同 Skill 集合

.opencode/skills/agent-first-screenshots/SKILL.md
.opencode/skills/browser-automation/SKILL.md
.opencode/skills/build-a-witness/SKILL.md
.opencode/skills/cloud-dashboard-walkthrough/SKILL.md
.opencode/skills/create-plugin/SKILL.md
.opencode/skills/daytona-chrome-cdp/SKILL.md
.opencode/skills/daytona-cloud-instance/SKILL.md
.opencode/skills/daytona-cloud-server/SKILL.md
.opencode/skills/daytona-dev/SKILL.md
.opencode/skills/daytona-electron-den/SKILL.md
.opencode/skills/daytona-electron-test/SKILL.md
.opencode/skills/daytona-flow-validator/SKILL.md
.opencode/skills/daytona-recording-artifacts/SKILL.md
.opencode/skills/daytona-secrets-volume/SKILL.md
.opencode/skills/daytona-seeded-cloud-demo/SKILL.md
.opencode/skills/daytona-windows-cert/SKILL.md
.opencode/skills/diagnose-a-red-run/SKILL.md
.opencode/skills/fraimz/SKILL.md
.opencode/skills/get-env-var/SKILL.md
.opencode/skills/openwork-models/SKILL.md
.opencode/skills/product-tutorial-pipeline/SKILL.md
.opencode/skills/prove-a-pr/SKILL.md
.opencode/skills/publish-evidence/SKILL.md
.opencode/skills/run-evals/SKILL.md
.opencode/skills/run-tests/SKILL.md
.opencode/skills/shadcn/SKILL.md
.opencode/skills/write-a-spec/SKILL.md
.warden/skills/desktop-den-sync-review/SKILL.md
.warden/skills/diff-security-review/SKILL.md

元信息

文件数
0
版本
757601b
Hash
39dccdfe
收录时间
2026-08-20 11:36

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-16 23:35
浙ICP备14020137号-1