Le SKILL.md ci-dessous est reproduit depuis
chenshuke/geo-skills (commit
b704ea7) sous licence
MIT. Le texte est inchangé ; seules les métadonnées d’en-tête du fichier sont omises, les images sont affichées sous forme de liens et les fichiers très longs sont tronqués. Copyright 2026 chenshuke. Licence :
LICENSE. Seul le fichier d’instructions est affiché ; consultez le dépôt d’origine pour les éventuels scripts.
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 转存流程均不得再使用。
Voir le texte intégral de la licence (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.