cos-upload — скилл для Claude Code: что делает и как установить
Скилл cos-upload загружает локальные файлы в CDN AceData Cloud и возвращает публичную ссылку для передачи в другие API.
Apache-2.0 211 установок ★ 17 обновлён 2026-10-25
npx skills add AceDataCloud/Skills --skill cos-upload -a claude-codeЧто делает cos-upload
Загружает картинки, видео или документы через синхронный multipart POST-запрос к https://platform.acedata.cloud/api/v1/files/. Сервер сохраняет файл по пути uploads/<uuid> с безопасным расширением и возвращает готовую ссылку file_url.
По умолчанию лимит на один файл составляет 100 MB, при этом за один запрос отправляется ровно один файл. Для работы нужен токен платформы ACEDATACLOUD_PLATFORM_TOKEN, а не токен отдельных сервисов.
Все сгенерированные ссылки публичны и не защищены авторизацией, поэтому конфиденциальные данные отправлять сюда нельзя. Для долгосрочного архива сервис не предназначен: хранение файлов подчиняется текущей политике платформы.
Какие задачи решает
- Загрузить локальный файл в CDN для передачи ссылки во внешние API
- Передать сгенерированную картинку в модель генерации видео вроде Seedance или Kling
- Сохранить промежуточный артефакт между шагами конвейера
- Опубликовать готовое видео или изображение с получением публичного URL
Примеры запросов агенту
- Загрузи сгенерированное превью
cover.pngв CDN и дай ссылку - Отправь
video.mp4в AceData Cloud, чтобы передать URL в следующий шаг - Залей локальный файл
audio.mp3на платформу и верни публичныйfile_url
Как установить cos-upload
1Через Skills CLI (Vercel)
npx skills add AceDataCloud/Skills --skill cos-upload -a claude-code2Вручную: положить файлы
~/.claude/skills/cos-upload/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/cos-upload/
1Через Skills CLI (Vercel)
npx skills add AceDataCloud/Skills --skill cos-upload -a codex2Вручную: положить файлы
.agents/skills/cos-upload/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add AceDataCloud/Skills --skill cos-upload -a cursor2Вручную: положить файлы
.cursor/skills/cos-upload/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install AceDataCloud/Skills skills/cos-upload2Вручную: положить файлы
.github/skills/cos-upload/SKILL.md1Через Skills CLI (Vercel)
npx skills add AceDataCloud/Skills --skill cos-upload -a gemini-cli2Командой платформы
gemini skills install https://github.com/AceDataCloud/Skills --path skills/cos-uploadВручную: положить файлы
.devin/skills/cos-upload/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add AceDataCloud/Skills --skill cos-upload -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о cos-upload
Как установить cos-upload в Claude Code?
Выполните в терминале команду npx skills add AceDataCloud/Skills --skill cos-upload -a claude-code.
Что делает cos-upload?
Скилл загружает локальный файл в хранилище AceData Cloud через multipart POST-запрос и отдаёт публичную ссылку вида https://cdn.acedata.cloud/....
Какие требования и ограничения действуют при загрузке?
Требуется переменная окружения ACEDATACLOUD_PLATFORM_TOKEN, лимит размера файла по умолчанию составляет 100 MB, а полученная ссылка становится общедоступной.
Исходный текст
SKILL.md · Apache-2.0
--- name: cos-upload description: Upload a local file to AceData Cloud CDN and get back a public URL. Use whenever you produce a local artifact (image, audio, video, doc) that another API needs as a URL, or that you need to return/persist (e.g. feed a generated image into an image-to-video API, or publish a finished video). license: Apache-2.0 metadata: author: acedatacloud version: "1.0" compatibility: Requires ACEDATACLOUD_PLATFORM_TOKEN (see _shared/authentication.md). Some runtimes instead provide a bundled uploader — prefer that when present. --- # Upload a file → AceData CDN URL Turn a local file into a public `https://cdn.acedata.cloud/...` URL. ## Upload (multipart, synchronous) ```bash curl -s -X POST https://platform.acedata.cloud/api/v1/files/ \ -H "Authorization: Bearer $ACEDATACLOUD_PLATFORM_TOKEN" \ -F "file=@/path/to/video.mp4" ``` On HTTP 200, use the returned `file_url` rather than constructing a URL. The platform generates a unique `uploads/<uuid>` path and preserves the uploaded filename's safe extension. The returned `mime` is the MIME type written to object-storage metadata. One file per request (loop for several); the default limit is 100 MB per file. Use a filename whose extension matches the actual content. The upload part's MIME type is stored as supplied; if omitted or `application/octet-stream`, the platform infers it from the filename using standard MIME mappings. Neither extension handling nor MIME inference converts the file's bytes. ## When to use - **Feed a generated asset into another API by URL** — e.g. upload a gpt-image-2 still, then pass its URL to `seedance` / `kling` image-to-video. - **Publish/return a finished artifact** (final video, cover image). - **Persist intermediate artifacts** so a later run can re-download and continue. ## Notes - Auth uses the **platform token** (`ACEDATACLOUD_PLATFORM_TOKEN`), not the per-service API token — the files endpoint is on `platform.acedata.cloud`, not `api.acedata.cloud`. - If your runtime ships a bundled uploader (e.g. a worker that owns the storage creds), prefer it — it avoids handling the platform token directly. - The returned URL is publicly accessible without authentication; do not upload sensitive data. Retention follows the platform's current storage policy, not a permanent-archive guarantee; use your own object storage for long-term archiving.
© acedatacloud · Apache-2.0 · AceDataCloud/Skills