algorithmic-art
Generate deterministic SVG algorithmic artwork. Invoke when the user asks for geometric,…
通过火山引擎 CLI 管理 CDN 域名。支持新增域名和刷新预热, 使用时会先检查并安装 CLI(如需要)。
$ npx -y skills add bytedance/agentkit-samples --skill byted-volc-cdn-manage --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/byted-volc-cdn-manageContext preview
The summary Claude sees to decide when to auto-load this skill.
通过火山引擎 CLI 管理 CDN 域名。支持新增域名和刷新预热, 使用时会先检查并安装 CLI(如需要)。
name: byted-volc-cdn-manage description: 通过火山引擎 CLI 管理 CDN 域名。支持新增域名和刷新预热, 使用时会先检查并安装 CLI(如需要)。 license: MIT compatibility: Requires Volcengine CLI >= 1.0.39, access to Volcengine API metadata: version: "2.0" author: ByteDance
本 Skill 帮助您通过火山引擎 CLI 管理 CDN 加速域名,包括新增域名、刷新和预热。
---
本 Skill 提供以下功能:
---
本 Skill 会自动执行以下流程:
**第一阶段:环境检查** 1. **检查 CLI 是否已安装** 2. **如果未安装**:引导您安装并配置火山引擎 CLI 3. **如果已安装**:检查 CLI 版本(需 >= 1.0.39)
**第二阶段:需求收集** 1. **检查必填项**:加速域名、区域、源站信息、业务类型 2. **使用默认值**:
3. **推荐配置**:根据业务类型自动应用推荐配置规则:
4. **询问用户**:必填项找不到默认值时,引导用户输入
**第三阶段:添加域名** 1. 收集完整信息后,执行 `ve cdn AddCdnDomain` 命令 2. 展示执行结果和后续步骤
---
**提交预热任务**: 1. 选择预热操作 2. 输入要预热的 URL 列表 3. 确认并提交任务
**提交刷新任务**: 1. 选择刷新操作 2. 选择刷新类型(文件/目录) 3. 输入要刷新的 URL 列表 4. 确认并提交任务
---
1. **火山引擎 CLI 版本 >= 1.0.39**(此版本及以上才支持 CDN 服务) 2. **已配置好 AK/SK 和 Region**
# 检查 CLI 版本 ve version # 查看当前配置 ve configure list
bash scripts/add-cdn-domain.sh
# 格式: bash scripts/add-domain-quick.sh <域名> <源站> [源站2] [源站3] [权重1] [权重2] [权重3] [业务类型] [服务区域] # 业务类型: web / download / video # 服务区域: chinese_mainland (默认) / global # 示例:添加网页加速域名(中国内地) bash scripts/add-domain-quick.sh www.example.com 1.1.1.1 "" "" 100 "" "" web chinese_mainland # 示例:添加网页加速域名(全球) bash scripts/add-domain-quick.sh www.example.com 1.1.1.1 "" "" 100 "" "" web global # 示例:添加视频点播域名 bash scripts/add-domain-quick.sh video.example.com 1.1.1.1 "" "" 100 "" "" video
BODY='{
"Domain": "www.example.com",
"Origin": [
{
"OriginAction": {
"OriginLines": [
{
"Address": "1.1.1.1",
"InstanceType": "ip",
"OriginType": "primary"
}
]
}
}
],
"Project": "default",
"ServiceRegion": "chinese_mainland",
"ServiceType": "download"
}'
ve cdn AddCdnDomain --body "$BODY"**网页加速示例**:
BODY='{
"Domain": "www.example.com",
"Origin": [
{
"OriginAction": {
"OriginLines": [
{
"Address": "1.1.1.1",
"InstanceType": "ip",
"OriginType": "primary"
}
]
}
}
],
"Project": "default",
"ServiceRegion": "chinese_mainland",
"ServiceType": "web",
"Cache": [
{
"CacheAction": {
"Action": "cache",
"IgnoreCase": false,
"Ttl": 0,
"DefaultPolicy": "no_cache"
},
"Condition": {
"ConditionRule": [
{
"Object": "filetype",
"Operator": "match",
"Type": "url",
"Value": "php;jsp;asp;aspx"
}
]
}
},
{
"CacheAction": {
"Action": "cache",
"IgnoreCase": false,
"Ttl": 2592000,
"DefaultPolicy": "default"
},
"Condition": {
"ConditionRule": [
{
"Object": "path",
"Operator": "match",
"Type": "url",
"Value": "/*"
}
]
}
}
],
"Compression": {
"Switch": true,
"CompressionRules": [
{
"CompressionAction": {
"CompressionType": ["gzip"],
"CompressionFormat": "default",
"CompressionTarget": "*",
"MinFileSizeKB": 0
}
}
]
},
"PageOptimization": {
"PageOptimizationAction": "on"
}
}'
ve cdn AddCdnDomain --body "$BODY"更多业务类型的推荐配置请参考 [参数说明](references/parameters.md)。
---
| 文档 | 说明 | |------|------| | [参数说明](references/parameters.md) | 完整的 API 参数说明 | | [使用场景示例](references/examples.md) | 9 个常见使用场景示例 | | [常见问题](references/faq.md) | FAQ 常见问题解答 | | [CLI 安装指南](references/install-guide.md) | 火山引擎 CLI 安装和配置指南 |
---
{
"ResponseMetadata": {
"Action": "AddCdnDomain",
"Region": "cn-guangzhou",
"RequestId": "20260415170258108D89026C070556E439",
"Service": "cdn",
"Version": "2021-03-01"
},
"Result": {
"ResourceIds": [
"www.example.com"
]
}
}---
bash scripts/cdn-refresh-preload.sh # 选择 1. 提交预热任务
# 格式: bash scripts/submit-preload.sh <url1> <url2> ... # 示例:预热多个URL bash scripts/submit-preload.sh https://www.example.com/1.jpg https://www.example.com/2.jpg
BODY='{
"UrlList": [
"https://www.example.com/1.jpg",
"https://www.example.com/2.jpg"
]
}'
ve cdn SubmitPreloadTask --body "$BODY"bash scripts/cdn-refresh-preload.sh # 选择 2. 提交刷新任务
# 格式: bash scripts/submit-refresh.sh [--type <file|directory>] <url1> <url2> ... # 示例:刷新文件(默认) bash scripts/submit-refresh.sh https://www.example.com/1.jpg https://www.example.com/2.jpg # 示例:刷新目录 bash scripts/submit-refresh.sh --type directory https://www.example.com/path/
**刷新文件:**
BODY='{
"Type": "file",
"UrlList": [
"https://www.example.com/1.jpg",
"https://www.example.com/2.jpg"
]
}'
ve cdn SubmitRefreshTask --body "$BODY"**刷新目录:**
BODY='{
"Type": "directory",
"UrlList": [
"https://www.example.com/path/"
]
}'
ve cdn SubmitRefreshTask --body "$BODY"---
1. **等待生效**:创建成功后,域名状态会从「配置中」变为「正常运行」(通常需要 1-5 分钟)
2. **获取 CNAME**:
# 可以通过控制台查看,或使用 CLI 查询 ve cdn DescribeCdnConfig --Domai
欢迎来到 AgentKit 代码工坊(Samples)仓库! AgentKit 是火山引擎推出的企业级 AI Agent 开发平台,为开发者提供完整的 Agent 构建、部署和运维解决方案。平台通过标准化的开发工具链和云原生基础设施,显著降低复杂智能体应用的开发部署门槛。 本代码库包含了一系列示例和教程,帮助您理解、实现和集成 AgentKit 的各项功能到您的应用中。
Generate deterministic SVG algorithmic artwork. Invoke when the user asks for geometric,…
Optimize code performance through iterative improvements (max 2 rounds). Benchmark execution…
根据文字描述生成视频,一个生成图片和视频的工作流技能。依赖 skills: byted-web-search, image-generate, video-generate。注意:此…
Manage AgentKit skills, SkillHub/skillhub, skill centers, and skill spaces. Use this skill…
Upload files or directories to TOS-compatible object storage for Volcano Engine or BytePlus…
根据用户的功能需求,完成与 VeADK-Go 相关的功能; 包括:直接根据需求生成 Agent;将Enio Agent转换为VeADK-Go Agent。