algorithmic-art
Generate deterministic SVG algorithmic artwork. Invoke when the user asks for geometric, generative, or algorithmic visual art.
在火山引擎或 BytePlus 持续交付(CP)的生产环境管理 CI/CD 全生命周期,包括工作区、CI 流水线与运行日志、触发器、自定义步骤、服务连接、部署资源和 CD 托管应用。支持生产地域 cn-beijing 与 ap-southeast-1。当用户明确要求操作线上、生产或 prod 的 CP CI/CD、流水线、构建、部署、工作区、Webhook、触发器、自定义步骤、服务连接、部署资源、托管应用、运行状态或日志时使用。仅支持生产环境;不得用于 pre、预发或测试环境。
Claude Code
$ npx -y skills add bytedance/agentkit-samples --skill byted-volcengine-cp --agent claude-code
Codex
$ npx skills add bytedance/agentkit-samples --skill byted-volcengine-cp -a codex -y
Cursor
$ npx skills add bytedance/agentkit-samples --skill byted-volcengine-cp -a cursor -y
Gemini CLI
$ npx skills add bytedance/agentkit-samples --skill byted-volcengine-cp -a gemini-cli -y
GitHub Copilot
$ npx skills add bytedance/agentkit-samples --skill byted-volcengine-cp -a github-copilot -y
OpenCode
$ npx skills add bytedance/agentkit-samples --skill byted-volcengine-cp -a opencode -y
Windsurf
$ npx skills add bytedance/agentkit-samples --skill byted-volcengine-cp -a windsurf -y
name: byted-volcengine-cp description: 在火山引擎或 BytePlus 持续交付(CP)的生产环境管理 CI/CD 全生命周期,包括工作区、CI 流水线与运行日志、触发器、自定义步骤、服务连接、部署资源和 CD 托管应用。支持生产地域 cn-beijing 与 ap-southeast-1。当用户明确要求操作线上、生产或 prod 的 CP CI/CD、流水线、构建、部署、工作区、Webhook、触发器、自定义步骤、服务连接、部署资源、托管应用、运行状态或日志时使用。仅支持生产环境;不得用于 pre、预发或测试环境。
仅通过 `cp_api.client_from_env` 访问固定白名单中的生产 endpoint。API 版本为 `2023-05-01`,签名为 HMAC-SHA256 Signature V4,签名 service 固定为 `cp`。 拒绝 pre 地域或 pre 工作区引用,不允许通过环境变量覆盖 endpoint、签名 region 或 service。
| 领域 | CLI | Action | |---|---|---| | 工作区 | `create_workspace.py` / `workspace.py` / `cleanup.py workspace` | `CreateWorkspace`, `ListWorkspaces`, `UpdateWorkspace`, `DeleteWorkspace` | | 流水线 | `create_pipeline.py` / `list_pipelines.py` / `update_pipeline.py` / `bulk_update_pipelines.py` / `cleanup.py pipeline` | `CreatePipeline`, `ListPipelines`, `UpdatePipeline`, `DeletePipeline` | | 运行 | `run_pipeline.py` / `get_status.py` / `cancel_run.py` | `RunPipeline`, `ListPipelineRuns`, `ListStages`, `CancelPipelineRun` | | taskRun 与日志 | `task_run.py` / `get_logs.py` | `ListTaskRuns`, `GetTaskRunLog`, `GetTaskRunLogDownloadURI` | | 人工卡点 | `approve_task.py` | `DoTaskAction` | | 构建集群 | `cp_api.list_agent_pools` | `ListAgentPools` | | 触发器 | `trigger.py` | `CreatePipelineWebhookURL`, `CreateTrigger`, `ListTriggers`, `UpdateTrigger`, `DeleteTrigger` | | 自定义步骤 | `component_step.py` | `ListComponentStep`, `CreateComponentStep`, `UpdateComponentStep`, `UpgradeComponentStep`, `DeleteComponentStep` | | 服务连接 | `service_connection.py` | `CreateServiceConnection`, `UpdateServiceConnection`, `GetServiceConnection`, `ListServiceConnections`, `DeleteServiceConnection` | | 部署资源 | `deploy_resource.py` | `CreateDeployResource`, `ListDeployResources`, `UpdateDeployResource`, `DeleteDeployResource` | | 托管应用 | `managed_app.py` | 十个已审核的托管应用 Action,详见参考文件 |
| `--region` | 平台 | endpoint | 签名 region | service | 公共 agentPool | |---|---|---|---|---|---| | `cn-beijing` | 火山引擎 | `cp.cn-beijing.volcengineapi.com` | `cn-beijing` | `cp` | `public/prod-v2-public` | | `ap-southeast-1` | BytePlus | `cp.ap-southeast-1.byteplusapi.com` | `ap-southeast-1` | `cp` | `public/prod-v2-public` |
北京优先读取官方 SDK 约定的 `VOLC_ACCESSKEY` / `VOLC_SECRETKEY`,柔佛优先读取 `BYTEPLUS_ACCESSKEY` / `BYTEPLUS_SECRETKEY`。两个地域也都支持专用的 `CP_ACCESS_KEY` / `CP_SECRET_KEY`。每次只设置一组完整凭证;不要把凭证写入请求文件、命令参数、 Skill 目录、日志或共享文档。
只做只读连通性检查:
python3 scripts/cp_api.py ping cn-beijing python3 scripts/cp_api.py ping ap-southeast-1
1. 默认只读。用户明确授权生产写操作后,先运行对应命令的 `--dry-run`,核对 Action、Region、目标 ID、范围和脱敏请求。对于非删除类生产 mutation,若 dry-run 与用户意图完全一致,在同一轮自动增加 `--yes` 执行,无需再次确认;任一项不一致时停止执行并说明差异。 2. 删除操作必须在 dry-run 后展示 Action、Region 和精确目标 ID,等待用户再次确认后才能增加 `--yes`。delete 命令还要求原样输入目标 ID;仅用户明确要求的非交互删除流程使用 `--force`。 用户最初提出删除不等同于看到 dry-run 后的再次确认。 3. 写请求超时后结果不明确,禁止自动重试;先调用对应 list/get API 或控制台确认实际状态。 4. JSON/YAML 请求体中的显式目标必须由 CLI 注入或与 CLI 一致;冲突时在网络调用前拒绝。 5. 始终验证 TLS。不要增加跳过证书验证、任意 endpoint 或签名 service 的覆盖入口。 6. 默认递归脱敏 Credential、token、password、AK/SK、kubeconfig、脚本/YAML、Webhook URL 和日志 URI。日志没有原文输出开关;敏感 URL 仅可用 `--output-file` 写入 mode `0600` 文件。 7. `ListDeployResources` 固定发送 `HideKubeconfig=true`。删除账号级服务连接或部署资源前,检查其他 工作区、流水线和应用的引用。 8. mutation 返回 ID 只表示请求已接受。必须继续查询资源或运行状态,不能把 API `Code=0` 当成 最终成功。
python3 scripts/workspace.py list --region cn-beijing --all --json python3 scripts/create_workspace.py --region cn-beijing --name <NAME> --dry-run python3 scripts/create_pipeline.py --region cn-beijing --workspace-id <WS_ID> \ --name <NAME> --spec-file examples/exec-cmd.yaml --auto-agent-pool --dry-run python3 scripts/list_pipelines.py --region cn-beijing --workspace-id <WS_ID> --all --json python3 scripts/update_pipeline.py --region cn-beijing --workspace-id <WS_ID> \ --pipeline-id <PID> --spec-file <SPEC.yaml> --dry-run python3 scripts/run_pipeline.py --region cn-beijing --workspace-id <WS_ID> \ --pipeline-id <PID> --dry-run
上述非删除命令的 dry-run 完全匹配用户授权时,在同一轮给原命令增加 `--yes` 执行。`--workspace-id` 支持纯 32 位 ID、 `北京prod<32hex>` 或 `柔佛prod<32hex>`;任何明确的 pre 引用都会被拒绝。
python3 scripts/get_status.py --region cn-beijing --workspace-id <WS_ID> \ --pipeline-id <PID> --max 10 python3 scripts/task_run.py list --region cn-beijing --workspace-id <WS_ID> \ --pipeline-id <PID> --run-id <RUN_ID> --task-id <TASK_ID> --all --json python3 scripts/get_logs.py --region cn-beijing --workspace-id <WS_ID> \ --pipeline-id <PID> --run-id <RUN_ID> python3 scripts/task_run.py download-uri --region cn-beijing --workspace-id <WS_ID> \ --pipeline-id <PID> --run-id <RUN_ID> --task-id <TASK_ID> \ --task-run-id <TASK_RUN_ID> --step-name <STEP> --output-file /secure/path/log-uri.txt
状态 `InProgress` 等同 `Running`;`Canceling` 只证明取消请求已生效。长时间 `Queued` 且无日志通常 表示调度或资源等待,不得当作成功证据。
首次构造请求时按任务阅读:
python3 scripts/trigger.py list --region cn-beijing --workspace-id <WS_ID> \ --pipeline-id <PID> --all --json python3 scripts/component_step.py list --region cn-beijing --custom --all --json python3 scripts/service_connection.py list --region cn-beijing --all --json python3 scripts/deploy_resource.py list --region cn-beijing --workspace-id <WS_ID> --all --json
执行前阅读 [managed-app-cd.md](references/managed-app-cd.md)。create/deploy/scale/rollback/delete 均先 使用 `--dry-run`;create/deploy/scale/rollback 完全匹配用户授权时同轮增加 `--yes`,delete 等待用户 再次确认后才增加 `--yes`。mutation 后依次验证:
已审核 Action:`CreateManagedApp`、`TriggerManagedAppDeploy`、`TriggerManagedAppScaling`、 `TriggerManagedAppRollback`、`ListManagedAppChangeRecords`、`CancelManagedAppChangeRecord`、 `ListManagedAppChangeSteps`、`ListManagedAppPods`、`GetManagedAppPodLog`、`DeleteApp`。
records 终态 Succeeded -> steps 无 Failed/Cancelling -> pods 数量与状态符合预期 -> logs 可读取且关键业务行
欢迎来到 AgentKit 代码工坊(Samples)仓库! AgentKit 是火山引擎推出的企业级 AI Agent 开发平台,为开发者提供完整的 Agent 构建、部署和运维解决方案。平台通过标准化的开发工具链和云原生基础设施,显著降低复杂智能体应用的开发部署门槛。 本代码库包含了一系列示例和教程,帮助您理解、实现和集成 AgentKit 的各项功能到您的应用中。
Generate deterministic SVG algorithmic artwork. Invoke when the user asks for geometric, generative, or algorithmic visual art.
Optimize code performance through iterative improvements (max 2 rounds). Benchmark execution time and memory usage, compare…
根据文字描述生成视频,一个生成图片和视频的工作流技能。依赖 skills: byted-web-search, image-generate, video-generate。注意:此 workflow 没有执行脚本,只是一个描述性的文档。
Manage AgentKit skills, SkillHub/skillhub, skill centers, and skill spaces. Use this skill whenever the user has a management…
Upload files or directories to TOS-compatible object storage for Volcano Engine or BytePlus and download files from URLs. Use…
根据用户的功能需求,完成与 VeADK-Go 相关的功能; 包括:直接根据需求生成 Agent;将Enio Agent转换为VeADK-Go Agent。
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid…
Design and build AI agents for any domain. Use when users: (1) ask to "create an agent", "build an assistant", or "design an AI…