← MCP server and skill grades

runcomfy-agent-skills

prime-skills/runcomfy-agent-skills

B
Type
Skill
Scanned
Nov 13, 2026
Version
fca19ae084c2
Files read
32

This project is a collection of 30 Markdown skills that teach AI coding agents how to generate and edit images, videos, music, and Codex desktop pets through the RunComfy CLI. Its biggest risk is that 16 skills pre-approve all runcomfy CLI commands without user confirmation, which could let a prompt-injected agent silently spend paid RunComfy API credits, download large files locally, or leak workspace data through external media URLs fetched by RunComfy's servers.

What it can reach

Shell commands
Executes the runcomfy CLI (pre-approved without confirmation in 16 skills), runs ImageMagick and file copy commands in codex-pet, and provides npm/npx installation commands.
Network
Sends prompts and media URLs to model-api.runcomfy.net, downloads generated media from *.runcomfy.net and *.runcomfy.com, and instructs RunComfy's servers to fetch caller-supplied HTTPS asset URLs.
Files
Downloads generated image, video, and audio files (up to 2 GiB each) to local directories, can read local JSON or YAML payloads via --input-file, and writes custom pet files into ~/.codex/pets/.
Secrets
Uses the RunComfy API token stored in ~/.config/runcomfy/token.json or the RUNCOMFY_TOKEN environment variable to authenticate paid API requests.
Browser
Opens a browser window during runcomfy login for interactive device-code authentication.

Findings

2 medium1 low
  1. MediumPre-approved runcomfy CLI commands allow unprompted API charges, file writes, and URL fetches

    runcomfy-cli/SKILL.md:4

    Sixteen skills in this repository set allowed-tools: Bash(runcomfy *) in their frontmatter, which lets agents like Claude Code run any runcomfy subcommand without asking for user confirmation. If the agent reads untrusted content containing prompt injection, it can silently run expensive paid models on the user's RunComfy account, write downloaded outputs up to 2 GiB into arbitrary local folders via --output-dir, or leak sensitive workspace text by embedding it into an external image_url, audio_url, or video_url parameter that RunComfy's servers will fetch. Although the skills claim there are no callbacks to third parties, RunComfy's backend fetches caller-supplied asset URLs.

    Fix: Remove allowed-tools: Bash(runcomfy *) or narrow it to read-only commands such as Bash(runcomfy status *) and Bash(runcomfy whoami) so paid model runs, local downloads, and external asset fetches require user confirmation.

  2. MediumUnsafe shell expansion and unescaped variables in codex-pet bash pipeline

    codex-pet/SKILL.md:229

    Unlike the other skills that pass single-quoted JSON or construct payloads with jq, codex-pet interpolates variables inside a double-quoted --input string and an unquoted <<EOF heredoc when writing pet.json, and appends PET_NAME directly to the ~/.codex/pets/ path. In Bash, double-quoted strings and unquoted heredocs expand $(...) and backtick expressions before running the command. If an agent populates PET_NAME, PET_DESC, or SOURCE_URL from untrusted text such as a webpage or image caption, embedded shell expressions can run arbitrary commands on the user's computer despite the skill claiming there is no shell-injection surface.

    Fix: Build the --input JSON and pet.json safely using jq -n --arg instead of double-quoted strings or unquoted heredocs, and validate that PET_NAME only contains lowercase letters, numbers, and hyphens.

  3. LowUnpinned npm package installation and automatic npx -y execution

    runcomfy-cli/SKILL.md:45

    The runcomfy-cli skill (which triggers on install requests) and sibling skills instruct installing or running @runcomfy/cli without pinning a version, including npx -y @runcomfy/cli which skips confirmation and automatically downloads and executes the latest release from npm. If the @runcomfy/cli npm package or maintainer account were compromised, running this command would execute malicious code locally with access to user files and ~/.config/runcomfy/token.json.

    Fix: Pin @runcomfy/cli to a reviewed version number and omit the -y flag from npx commands.