cli — community cli, prefect-mcp-server, PrefectHQ, community, ai agent skill, ide skills, agent automation, AI agent skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Ideal for DevOps Agents requiring advanced Prefect API interactions and automation via the command-line interface. Prefect CLI commands for mutations. The MCP server is read-only - use this skill when you need to trigger deployments, cancel flow runs, create automations, or modify Prefect resources.

PrefectHQ PrefectHQ
[0]
[0]
Updated: 3/12/2026

Quality Score

Top 5%
45
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
> npx killer-skills add PrefectHQ/prefect-mcp-server/cli
Supports 19+ Platforms
Cursor
Windsurf
VS Code
Trae
Claude
OpenClaw
+12 more

Agent Capability Analysis

The cli skill by PrefectHQ is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Ideal for DevOps Agents requiring advanced Prefect API interactions and automation via the command-line interface.

Core Value

Empowers agents to perform mutations using the Prefect CLI, providing structured JSON output with full UUIDs for seamless integration, and utilizing `prefect api` for operations not exposed by MCP tools, all while ensuring non-interactive use with the `--no-prompt` flag.

Capabilities Granted for cli

Automating flow run deletions using `prefect flow-run delete <uuid>`
Generating deployments and flow runs data using `prefect api` and MCP tools
Debugging Prefect workflows by leveraging the Prefect CLI for detailed output and error handling

! Prerequisites & Limits

  • Requires Prefect MCP server access
  • Designed for non-interactive use with `--no-prompt` flag
  • MCP tools preferred for read operations due to structured JSON output
Project
SKILL.md
2.8 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

Prefect CLI

The MCP server is read-only. For mutations, use the CLI.

Prefer MCP tools for reads (e.g., get_flow_runs, get_deployments). They return structured JSON with full UUIDs. Use prefect api only if MCP doesn't expose what you need.

Critical: Agent-Friendly Usage

The CLI is designed for interactive terminal use. For non-interactive (agent) use:

bash
1# ALWAYS use --no-prompt as a TOP-LEVEL flag to disable confirmations 2prefect --no-prompt flow-run delete <uuid> 3prefect --no-prompt deployment delete <name>

Avoiding Truncated Output

Rich table output truncates IDs and names, making them useless. Solutions:

bash
1# Use `prefect api` for raw JSON (preferred for agents) 2prefect api POST /flow_runs/filter --data '{"limit": 5}' 3 4# Use inspect with -o json for single resources 5prefect flow-run inspect <uuid> -o json 6prefect deployment inspect <name> -o json

IDs Must Be Complete UUIDs

Partial IDs don't work. Always get full UUIDs from JSON output:

bash
1# Get full flow run ID 2prefect api POST /flow_runs/filter --data '{"limit": 1}' | jq -r '.[0].id'

Common Mutations

TaskCommand
Trigger deploymentprefect deployment run 'flow-name/deployment-name'
Trigger by IDprefect deployment run --id <deployment-uuid>
Cancel flow runprefect --no-prompt flow-run cancel <uuid>
Delete flow runprefect --no-prompt flow-run delete <uuid>
Delete deploymentprefect --no-prompt deployment delete <name>

Direct API Access

prefect api gives full API access with JSON output:

bash
1# List flow runs (with filters) 2prefect api POST /flow_runs/filter --data '{"limit": 10}' 3 4# Filter by state 5prefect api POST /flow_runs/filter --data '{"flow_runs": {"state": {"type": {"any_": ["FAILED"]}}}}' 6 7# Delete a flow run 8prefect api DELETE /flow_runs/<uuid> 9 10# Cancel a flow run 11prefect api POST /flow_runs/<uuid>/set_state --data '{"state": {"type": "CANCELLING"}}'

Automation Creation

Create from JSON string (inline):

bash
1prefect automation create --from-json '{ 2 "name": "notify-on-failure", 3 "trigger": { 4 "posture": "Reactive", 5 "expect": ["prefect.flow-run.Failed"], 6 "match": {"prefect.resource.id": "prefect.flow-run.*"} 7 }, 8 "actions": [{"type": "send-notification", ...}] 9}'

Or from file:

bash
1prefect automation create --from-file automation.yaml

Use get_automations() from the MCP server to inspect existing automation schemas.

Efficient Inspection

The get_flow_runs tool returns summarized data to save tokens:

  • It omits full deployment and work pool schemas.
  • If you see a "Late" run or need concurrency details, follow up with:
    • get_work_pools(filter={"name": ...})
    • get_deployments(filter={"id": ...})
    • get_dashboard()
<!-- ref: https://github.com/pydantic/pydantic-ai/pull/3780 -->

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is cli?

Ideal for DevOps Agents requiring advanced Prefect API interactions and automation via the command-line interface. Prefect CLI commands for mutations. The MCP server is read-only - use this skill when you need to trigger deployments, cancel flow runs, create automations, or modify Prefect resources.

How do I install cli?

Run the command: npx killer-skills add PrefectHQ/prefect-mcp-server/cli. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for cli?

Key use cases include: Automating flow run deletions using `prefect flow-run delete <uuid>`, Generating deployments and flow runs data using `prefect api` and MCP tools, Debugging Prefect workflows by leveraging the Prefect CLI for detailed output and error handling.

Which IDEs are compatible with cli?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for cli?

Requires Prefect MCP server access. Designed for non-interactive use with `--no-prompt` flag. MCP tools preferred for read operations due to structured JSON output.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add PrefectHQ/prefect-mcp-server/cli. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use cli immediately in the current project.

Related Skills

Looking for an alternative to cli or another community skill for your workflow? Explore these related open-source skills.

View All

openclaw-release-maintainer

Logo of openclaw
openclaw

openclaw-release-maintainer is a specialized AI agent skill for automating release management workflows, designed to work seamlessly with Claude Code.

333.8k
0
Data

widget-generator

Logo of f
f

Generate customizable widget plugins for the prompts.chat feed system

149.6k
0
Design

flags

Logo of vercel
vercel

The React Framework

138.4k
0
Browser

pr-review

Logo of pytorch
pytorch

Tensors and Dynamic neural networks in Python with strong GPU acceleration

98.6k
0
AI