byted-skillhub-upload
byted-skillhub-upload
用途
- 将本地 Skill(文件夹或 zip 包)上传到 SkillHub,并创建一个新的 Skill 及版本。
- 上传成功后输出
Id与SkillVersionId。
何时调用
- 当用户需求涉及将本地技能上传/发布到 企业 SkillHub 或 私有技能空间 时触发。常见语义包括:
- 明确要求“上传到 SkillHub / 发布到 SkillHub”。
- 提到“企业专属技能空间 / 私有技能空间 / 内部技能”。
- 需要将一个本地目录打包后上传为 Skill。
环境说明 (Agent 必读)
- 无需向用户索要环境变量:当前环境已自动注入以下变量:
ARK_SKILL_API_BASE: SkillHub API 服务地址ARK_SKILL_API_KEY: 企业 SkillHub 访问密钥SKILLHUB_SKILL_SPACE_ID: 企业专属技能空间 ID
- 严禁向用户询问参数值:Agent 在触发此技能时,应直接从环境中读取这些变量并执行脚本,不得中断流程向用户确认这些信息。
上传步骤
- 确定待上传目标
- 目标必须是一个目录,或一个以
.zip结尾的文件 - 若目标是目录,脚本会先将其内容压缩为 zip 包再上传
- 目标必须是一个目录,或一个以
- 执行脚本(路径相对于本 SKILL.md 所在目录)
- 上传目录:
python ./scripts/upload_to_skillhub.py --path "./my-skill" --name "my-skill" --description "demo" - 上传 zip:
python ./scripts/upload_to_skillhub.py --path "./my-skill.zip" --name "my-skill" --description "demo"
- 上传目录:
- 观察输出
- 成功时会打印两行:
Id: <skill_id>SkillVersionId: <skill_version_id>
- 成功时会打印两行:
示例
- 将
./skills/my-private-skill/上传到 SkillHub:python ./scripts/upload_to_skillhub.py --path "./skills/my-private-skill" --name "my-private-skill" --description "internal"
故障排查
- 如提示缺少环境变量,请确认在环境中运行或联系管理员
- 参数错误:确认
--path指向目录或.zip文件 - 网络或鉴权错误:检查网络连通性与 API Key 是否有效
More from bytedance/agentkit-samples
byted-web-search
火山引擎联网搜索 API,返回网页/图片结果。联网搜索场景优先使用本 skill。触发词包括:查/搜/找、真的吗/靠谱吗/确认/核实、最近/今天/最新/近期、出处/来源/链接、有什么/有哪些/推荐、价格/政策/汇率/行情、对比/区别/哪个好、听说/据说/不太确定、热搜/热门/火、帮我看/了解一下、求证/辟谣、值不值得/该不该。任务依赖在线事实或时效性时优先使用。若回答可能依赖外部事实,优先调用本 skill 再作答。支持 API Key / AK/SK。
374byted-seedream-image-generate
Generate high-quality images from text prompts using Volcano Engine Seedream models. Supports multiple artistic styles and aspect ratios. Use this skill when users want to create images from text descriptions, generate artwork in various styles, create visual content for creative projects, or need AI-powered image generation capabilities.
188byted-las-video-edit
Extracts and clips video segments from long videos using natural language descriptions. AI-powered smart video editing, video trimming, and video cutting powered by Volcengine LAS. Describe what you want — scenes, people, objects, actions, events — and get trimmed clips automatically. Video search and video content retrieval: find and locate specific people, objects, or scenes in footage. Supports reference images for person matching and object matching (search video by image). Two modes: simple (fast) and detail (thorough, optional ASR). Use this skill when the user wants to edit/clip/cut videos using natural language descriptions, extract highlights or key moments from videos, find specific people/objects/scenes in video footage (by text or reference image), compile highlight reels from long videos, trim video segments, or do AI-powered smart video editing.
164byted-las-pdf-parse-doubao
Parses and reads PDF documents into structured Markdown text using Volcengine LAS Doubao AI models. PDF parsing, PDF OCR, and document recognition — extracts text, headings, paragraphs, tables, charts, and layout structure from PDF files with high fidelity. Performs layout analysis including multi-column recognition and complex table extraction. Two modes: normal (fast, cost-effective everyday parsing) and detail (deep analysis for complex tables, charts, and multi-column layouts). Converts PDF to Markdown, PDF to text, and structured data. Digitizes scanned PDF documents and scanned images via OCR. Supports TOS paths, HTTP URLs, and local file upload. Async submit-poll workflow with batch processing support. Use this skill when the user wants to parse PDF files into Markdown/text, extract text/tables/charts from PDFs, convert PDF to Markdown format, do OCR on scanned documents, recognize PDF layout structure, digitize paper documents, process PDFs in batch, or extract structured data from PDF documents.
130byted-seedance-video-generate
Generate videos using Seedance models. Invoke when user wants to create videos from text prompts, images, or reference materials.
112byted-data-search
|
107