使用方法
- 复制安装命令,在自己的智能体环境安装前先检查源码包。
- 从原始文档核对所需工具、凭据和支持的宿主。
- 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/kestra-io/agent-skills --skill kestra-ops开始前需了解
- 安装不包含模型订阅、API 额度或访问文件的权限。
- 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。
Kestra Operations Skill
Use this skill to perform day-to-day Kestra operations with kestractl.
When to use
Use this skill when the request includes:
- Listing, inspecting, validating, or deploying flows
- Triggering executions and checking execution status
- Managing namespaces or namespace files (
nsfiles) - Configuring or switching Kestra CLI contexts
Kestra 2.0 migration — delegate. For Kestra 1.3 → 2.0 migration or upgrade requests (readiness checks, kestra-migrate warnings, flows failing to parse on 2.0): search the installed agent skills for one named migrate-kestra-2 — by name, wherever the user's skills are installed (project or user scope). If available, use it: it drives the migration and calls kestra-ops for kestractl sub-operations. If not installed, prompt the user to install it, then delegate:
npx skills add kestra-io/agent-skills@migrate-kestra-2Required inputs
- Target environment or context (
dev,staging,prod) - Host URL, tenant, and authentication method (usually token)
- Namespace, flow ID, execution ID, and/or local file paths
- Output preference (
tablefor human-readable,jsonfor automation)
Prerequisites
kestractlis installed and executable- Access token and tenant are available
- A valid context exists in
~/.kestractl/config.yamlor values are provided via env vars/flags
Configuration precedence
Resolve config from highest to lowest precedence:
- Command flags (
--host,--tenant,--token,--output) - Environment variables (
KESTRACTL_HOST,KESTRACTL_TENANT,KESTRACTL_TOKEN,KESTRACTL_OUTPUT) - Config file (
~/.kestractl/config.yaml) - Built-in defaults
Common setup:
kestractl config add dev http://localhost:8080 main --token DEV_TOKEN
kestractl config add prod https://prod.kestra.io production --token PROD_TOKEN
kestractl config use dev
kestractl config showStandard workflow
- Resolve and confirm the target context.
- Run read-only discovery first.
- Validate artifacts before any deployment.
- Execute the requested operation with explicit flags.
- Verify outcomes (
--waitfor run operations where needed). - Return a concise ops report with results and follow-up actions.
Command patterns
Flows:
kestractl flows list my.namespace
kestractl flows get my.namespace my-flow
kestractl flows validate ./flows/
kestractl flows deploy ./flows/ --namespace prod.namespace --override --fail-fastExecutions:
kestractl executions run my.namespace my-flow --wait
kestractl executions get 2TLGqHrXC9k8BczKJe5djXNamespaces:
kestractl namespaces list
kestractl namespaces list --query my.namespaceNamespace files:
kestractl nsfiles list my.namespace --path workflows/ --recursive
kestractl nsfiles get my.namespace workflows/example.yaml --revision 3
kestractl nsfiles upload my.namespace ./assets resources --override --fail-fast
kestractl nsfiles delete my.namespace workflows --recursiveGuardrails
- Confirm production context before write operations (
deploy,upload,delete). - Prefer
flows validatebeforeflows deploy. - Use
--output jsonfor scripting and automation reliability. - Avoid
--verbosein shared logs because it can expose credentials. - For destructive
nsfilesactions, confirm path scope and only use--forceintentionally.
Response format
- Context used (host, tenant, context name)
- Commands executed (grouped by read vs write)
- Results (success/failure and key IDs)
- Risks, rollback notes, and follow-up actions
Example prompts
- "Use
kestra-opsto validate and deploy all flows in./flowstoprod.namespacewith fail-fast enabled, then report what changed." - "Use
kestra-opsto runmy-flowinmy.namespace, wait for completion, and summarize execution status." - "Use
kestra-opsto upload./assetsto namespace files underresourceswith override enabled, then list uploaded files recursively."


