技能图谱SKILLSGROVE
技能图谱/视频制作/chenshuke/geo-skills/geo-oss-upload

geo-oss-upload

安装

$npx skills add https://github.com/chenshuke/geo-skills --skill geo-oss-upload
$git clone --depth 1 https://github.com/chenshuke/geo-skills.git /tmp/geo-skills && mkdir -p ~/.claude/skills && cp -r /tmp/geo-skills/geo-oss-upload ~/.claude/skills/geo-oss-upload
请帮我安装这个 Agent Skill:https://github.com/chenshuke/geo-skills/tree/b704ea73d6f30fc5b61e0c90b58b8a5cbc283864/geo-oss-upload ,先阅读它的 SKILL.md 和脚本,确认安全后再安装到我的技能目录。

简介

原文描述 · MIT通过 Best GEO CLI 将本地图片或 MP4 视频上传到 GEO 素材库并获取 URL;支持 Markdown 本地图片映射。Use when the user asks to upload an image, video, cover, screenshot, or local media file to GEO.
以下 SKILL.md 内容转载自 chenshuke/geo-skills(提交 b704ea7),依据 MIT 许可证转载正文(文字未改动;仅省略文件头元数据、将图片显示为链接,超长内容会截断);版权归 2026 chenshuke 所有。许可证:LICENSE。仅展示说明文件,附带脚本请在原仓库查看。

CLI 2 平台操作优先规则(2026-10-17):本技能负责业务流程;平台读写先读取同级 ../best-geo/SKILL.md 和 ../best-geo/references/cli-compatibility.md,以当前 capability/schema 为准。CLI 2 显式使用 projectId,不要执行下文仍带 companyId/productId 的旧参数示例或包装脚本。

GEO 素材上传

本技能不使用预签名上传流程,也不读取平台认证材料。素材上传统一通过 Best GEO CLI:

  • 图片:images.create → images.get
  • 视频:videos.create → videos.get

写入必须遵循 CLI 的 plan → 用户确认 → apply。脚本中使用 --dry-run 预览,确认后使用 --force 执行。

图片

node geo-oss-upload/scripts/upload_geo_oss.js \
  --file ./assets/cover.png \
  --product-id 93 \
  --tags GEO,封面 \
  --dry-run

执行后结果中的 url 即可用于 Markdown、文章或网页。

视频

视频必须同时提供本地封面和时长:

node geo-oss-upload/scripts/upload_geo_oss.js \
  --file ./assets/video.mp4 \
  --thumbnail ./assets/video.jpg \
  --duration 45 \
  --product-id 93 \
  --dry-run

Markdown 图片映射

Markdown 中的本地图片可以先提取路径,逐张调用图片上传能力,再把返回的 url 写回 Markdown。已有 http:// 或 https:// 图片不需要重复上传。

旧版凭证文件、环境变量、预签名上传和 URL 转存流程均不得再使用。

查看许可证全文(MIT)
MIT License

Copyright (c) 2026 chenshuke

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.