cli — community community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for Automation Agents needing to interact with the Prefect MCP server via command-line interface Prefect MCP server

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

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

Perfect for Automation Agents needing to interact with the Prefect MCP server via command-line interface

Core Value

Empowers agents to execute Prefect CLI commands with structured JSON output, utilizing flags like --no-prompt for non-interactive use, and leveraging tools like get_flow_runs and get_deployments for read operations

Capabilities Granted for cli

Deleting flow runs by UUID
Retrieving deployment information
Automating Prefect workflow management

! Prerequisites & Limits

  • Requires Prefect MCP server setup
  • Designed for non-interactive use with --no-prompt flag
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

cli

Install cli, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

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?

Perfect for Automation Agents needing to interact with the Prefect MCP server via command-line interface Prefect MCP server

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: Deleting flow runs by UUID, Retrieving deployment information, Automating Prefect workflow management.

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 setup. Designed for non-interactive use with --no-prompt flag.

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

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI