技能圖譜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.