/major-ai-skills:prefectfrom major-ai-skills
Build Prefect flows and tasks, configure deployments and work pools, and troubleshoot retries or pipeline observability.
Ships in major-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Prefect 2/3 wraps Python functions as @task / @flow with state tracking in Prefect API/Cloud. Deployments schedule flows onto work pools/workers. Agents keep tasks pure and idempotent, configure retries/caching deliberately, and pass artifact URIs instead of giant in-memory payloads between tasks.
@flow / @task code
-> Prefect API (runs, states)
-> work pool / worker
-> infrastructure (process, Docker, K8s)
retries and retry_delay_seconds on flaky I/O tasks.cache_key_fn / cache policies only when inputs are stable and outputs cheap to reuse.from prefect import flow, task
from prefect.tasks import task_input_hash
from datetime import timedelta
from pathlib import Path
@task(retries=3, retry_delay_seconds=30)
def extract(run_date: str) -> Path:
out = Path(f"/data/raw/orders_{run_date}.parquet")
# ... write parquet ...
return out
@task
def transform(path: Path) -> Path:
out = path.with_name(path.name.replace("raw", "curated"))
# ... polars/duckdb transform ...
return out
@flow(name="orders-daily")
def orders_daily(run_date: str = "2026-08-26"):
raw = extract(run_date)
return transform(raw)
if __name__ == "__main__":
orders_daily()
prefect flow serve flows/orders.py:orders_daily --name orders-daily-local
prefect deployment run 'orders-daily/orders-daily-local' --param run_date=2026-08-26
prefect worker start --pool default-agent-pool
| Symptom | Cause | Fix |
|---|---|---|
| Late runs | worker offline / wrong pool | check worker logs; pool binding |
| Retry storm | non-idempotent task | make upserts; fix side effects |
| Crashed after success | client timeout vs long task | heartbeats; infra timeouts |
| Param mismatch | schema drift | type the flow signature; validate |
create_markdown_artifact) for run summaries.prefect major version; APIs differ between 2.x lineages and Cloud features.@airflow - DAG-centric alternative common in enterprises@dbt / @spark - systems often invoked from Prefect tasks@pandas / @polars - in-task computeWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization.Other plugins' skills for the same job
/act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.