Writing Skills
writing-skills
效率与协作技能,来自 obra/superpowers,查看原文获取完整用途和操作说明。
prefect【部署与运维】Route Prefect SDK, CLI, server, deployment, event, client, settings, and repository-development tasks to focused self-contained guidance.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill for Prefect, the Python workflow orchestration platform. It helps future agents author workflows, operate the CLI/server, create deployments and workers, use Python clients/settings, work with events/blocks/assets, and safely modify the Prefect repository.
pip install -U prefect or uv add prefect; for repository development use the repo's uv/just workflows from repo-development.python scripts/check_prefect_environment.py --check-cli --json
| Task | Read |
|---|---|
Write or debug @flow / @task code, states, futures, retries, caching, results, hooks, transactions, local tests | flow-task-authoring |
Create deployments, prefect.yaml, schedules, flow.serve, prefect deploy, work pools, work queues, workers, deployment runs | deployments-workers |
| Operate CLI profiles/config/server/Cloud, variables, artifacts, shell command flows, dashboard, server/database diagnostics | cli-server-operations |
Use get_client, PrefectClient, schemas, settings/profile APIs, temporary_settings, or the prefect-client package split | api-client-settings |
| Use events, automations, blocks, variables, assets, notification blocks, and concurrency limits | events-blocks-assets |
Modify the Prefect repository itself, choose focused tests, follow AGENTS.md, update generated artifacts, handle prefect-client sync | repo-development |
prefect; import: prefect; console command: prefect.3.6.24 on Python 3.11, with package metadata declaring Python >=3.10,<3.15.prefect package includes SDK, CLI, server, and database dependencies; the separate prefect-client distribution ships a lightweight client-facing subset.prefect COMMAND [OPTIONS] with session flags such as --profile and --prompt/--no-prompt.python -c "import prefect; print(prefect.__version__)", prefect version, prefect --help, and the bundled environment checker.prefect server start, prefect worker start, prefect flow serve, or event streams unless the user asks for them and has a stop plan.prefect-aws, prefect-dbt, Kubernetes, Docker extras, etc.) shallow here; use or create dedicated integration skills for deep integration package work.scripts/check_prefect_environment.py checks import, version, CLI availability, selected command help, and setting/profile signals without contacting a live API unless --check-server is requested.sub-skills/flow-task-authoring/scripts/flow_task_smoke.py runs deterministic local SDK smoke examples.sub-skills/deployments-workers/scripts/validate_prefect_yaml.py validates common prefect.yaml shape; deployment_command_builder.py prints commands without executing them.sub-skills/cli-server-operations/scripts/prefect_cli_doctor.py runs read-only CLI and server-readiness diagnostics.sub-skills/api-client-settings/scripts/inspect_prefect_settings.py summarizes settings and validates profiles TOML.sub-skills/events-blocks-assets/scripts/validate_automation.py validates automation JSON/YAML locally.sub-skills/repo-development/scripts/select_prefect_tests.py suggests focused validation commands for changed paths.Read references/troubleshooting.md for cross-cutting failures: install/import issues, optional extras, prefect-client omissions, API URL/profile confusion, server/database readiness, credentials, command side effects, and stale repo evidence.
refresh-repo-skill before trusting version-specific guidance.