Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

kestra

БесплатноБез исполняемых скриптовНе проверен

Kestra is an open-source workflow orchestrator where pipelines are declarative YAML flows with tasks, schedules, webhooks, retries and a web UI. Use when…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

Kestra — Declarative workflow orchestration in YAML

Overview

Kestra runs workflows ("flows") described in YAML. A flow has an id, a namespace (a dot-separated group such as company.team) and a list of tasks; each task has a type that names a plugin class, for example io.kestra.plugin.core.log.Log. Flows can also declare inputs, variables, triggers (schedule, webhook, flow, polling), retry and errors handlers. The server provides a UI, a REST API and a CLI (kestractl), and runs scripts in Docker or local processes through task runners.

The flows below follow the Kestra 2.0 documentation and plugin pages. Run kestractl flows validate on a flow before deploying it.

Instructions

Run a local server

docker run --pull=always --rm -it -p 127.0.0.1:8080:8080 --user=root \
  --name kestra \
  -v kestra_data:/app/storage \
  -v kestra_db:/app/data \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v /tmp:/tmp \
  kestra/kestra:latest-slim server local

Open http://localhost:8080. The -slim image ships without plugins and installs each plugin the first time a flow needs it (this is on by default for server local); use kestra/kestra:latest to have them bundled. The command uses an embedded H2 database, which is for trying things out; production needs a real database (the docs show Postgres) and a Docker Compose or Kubernetes install. Mounting the Docker socket and running as root gives the container control of the host's Docker; drop -v /var/run/docker.sock... and --user=root if no flow needs the Docker task runner, and never expose port 8080 beyond localhost without authentication.

Write a flow

Required keys are id, namespace and tasks.

id: nightly_orders_report
namespace: company.analytics

description: Fetch order totals and log them.

inputs:
  - id: region
    type: STRING
    defaults: "emea"

tasks:
  - id: fetch_totals
    type: io.kestra.plugin.core.http.Request
    uri: "https://api.shop-internal.net/orders/summary?region={{ inputs.region }}"
    method: GET

  - id: log_status
    type: io.kestra.plugin.core.log.Log
    message: "Fetched summary for {{ inputs.region }} in flow {{ flow.id }}"

triggers:
  - id: nightly
    type: io.kestra.plugin.core.trigger.Schedule
    cron: "0 2 * * *"
    timezone: Europe/Berlin

Values inside {{ }} are Pebble expressions: inputs.<id>, vars.<name>, outputs.<taskId>.<property>, flow.id, flow.namespace, taskrun.startDate, and secret('NAME') for secrets.

Verified task and trigger types

These type strings appear in the official docs and plugin pages:

Purpose type
Log a message io.kestra.plugin.core.log.Log
Emit values as outputs io.kestra.plugin.core.output.OutputValues
Fail on purpose io.kestra.plugin.core.execution.Fail
HTTP call io.kestra.plugin.core.http.Request (uri, method, options.auth)
Run a Python script io.kestra.plugin.scripts.python.Script (script, dependencies)
Run shell commands io.kestra.plugin.scripts.shell.Commands (commands)
Group tasks sequentially io.kestra.plugin.core.flow.Sequential
Cron trigger io.kestra.plugin.core.trigger.Schedule (cron, timezone, when)
Webhook trigger io.kestra.plugin.core.trigger.Webhook (key, fetchType)
Slack alert io.kestra.plugin.slack.notifications.SlackIncomingWebhook (url, messageText)
Process task runner io.kestra.plugin.core.runner.Process
Docker task runner io.kestra.plugin.scripts.runner.docker.Docker

Look up any other task on https://kestra.io/plugins before using it: type names are long and a wrong one only fails at validation or run time. The Kestra 2.0 migration guide lists breaking changes (among them ForEach replaced by Loop and a redesign of trigger conditions), so do not copy 1.x snippets from old blog posts without checking them.

Python, shell and retries

id: refresh_customer_scores
namespace: company.analytics

tasks:
  - id: score
    type: io.kestra.plugin.scripts.python.Script
    dependencies:
      - requests
      - kestra
    script: |
      from kestra import Kestra
      import requests
      status = requests.get("https://status.shop-internal.net/health", timeout=10).status_code
      Kestra.outputs({"status": status})
    retry:
      type: constant
      interval: PT30S
      maxAttempts: 3
    timeout: PT10M

errors:
  - id: alert_team
    type: io.kestra.plugin.slack.notifications.SlackIncomingWebhook
    url: "{{ secret('SLACK_WEBHOOK') }}"
    messageText: "Flow {{ flow.namespace }}.{{ flow.id }} failed, execution {{ execution.id }}"

maxAttempts counts the first run, so 3 means two retries. Durations are ISO 8601 (PT30S, PT10M); weeks, months and years are not supported. The Python task runs in a container image (documented default python:3.13-slim) and installs dependencies before the script. `Kestra.outputs({...})

Полный SKILL.md на GitHub

Установить kestra в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл kestra?

Kestra is an open-source workflow orchestrator where pipelines are declarative YAML flows with tasks, schedules, webhooks, retries and a web UI. Use when asked to "orchestrate a data pipeline with Kestra", "write a Kestra flow", "schedule a job with cron in Kestra", "run a Python script on a schedule", "trigger a flow from a webhook", or "deploy flows with kestractl".

Как установить скилл kestra?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл kestra запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить kestra с