技能 runcomfy-cli
📦

runcomfy-cli

低风险 ⚙️ 外部命令🌐 网络访问📁 文件系统访问

RunComfy CLIでAIメディアを生成する

也可从以下获取: doany-ai,runcomfy-com

AI生成の画像や動画を作成するには、通常、複雑なAPIを操作したりボイラープレートコードを書いたりする必要があります。RunComfy CLIスキルを使えば、ターミナルから簡単なコマンドを実行するだけでメディアの生成、編集、変換ができ、自動ポーリングとダウンロード処理も行われます。

支持: Claude Codex Code(CC)
⚠️ 68
1

下载技能 ZIP

2

在 Claude 中上传

前往 设置 → 功能 → 技能 → 上传技能

3

开启并开始使用

测试它

正在使用“runcomfy-cli”。 GPT Image 2を使って猫の photorealistic 画像を生成する

预期结果:

エージェントは runcomfy run openai/gpt-image-2/text-to-image --input '{"prompt": "a photorealistic cat sitting on a windowsill"}' を実行します。2秒ごとにステータスをポーリングし、完了後に result.png を現在のディレクトリにダウンロードします。

正在使用“runcomfy-cli”。 プロンプトファイルから5枚の画像をバッチ生成する

预期结果:

エージェントは、prompts.txt を読み込み、各行に対して runcomfy を一意の出力ディレクトリで呼び出すシェルループを作成し、ダウンロードされた各ファイルのパスを完了時に報告します。

正在使用“runcomfy-cli”。 待機せずに動画生成ジョブを送信する

预期结果:

エージェントは runcomfy --output json run bytedance/seedance-v2/pro --input '{"prompt": "a robot walking through a forest"}' --no-wait を実行します。JSONから request_id を抽出して保存し、後で runcomfy status <request_id> でステータスを確認します。

安全审计

低风险
v1 • 5/16/2026

All 174 static findings are false positives from parsing a markdown documentation file. External command detections are bash code blocks showing CLI usage examples. Network detections are documentation links to runcomfy.com. Filesystem detections are references to the CLI token storage path. The skill declares a narrow tool scope of Bash(runcomfy *) for a legitimate media generation CLI.

1
已扫描文件
272
分析行数
7
发现项
1
审计总数
低风险问题 (4)
False positive: markdown code blocks flagged as shell execution
All 123 external_commands detections are bash code blocks and inline code formatting in documentation. The skill only executes runcomfy commands via its declared Bash(runcomfy *) tool scope. No arbitrary shell execution is performed.
False positive: documentation URLs flagged as hardcoded network endpoints
All 40 network detections are markdown links to runcomfy.com, docs.runcomfy.com, and skills.sh in documentation. The CLI only connects to model-api.runcomfy.net and *.runcomfy.net / *.runcomfy.com for downloads.
False positive: token path references flagged as filesystem access
The filesystem detections are documentation references to ~/.config/runcomfy/token.json, explaining where the CLI stores authentication tokens. The skill does not directly access this file; the runcomfy CLI binary handles token storage internally.
False positive: CLI subcommand and table formatting triggered blocker alerts
The 'whoami' subcommand is a legitimate part of the runcomfy CLI for verifying authentication identity, not system reconnaissance. The 'weak cryptographic algorithm' detections are artifacts from markdown table formatting (pipe characters) in the exit codes table.
审计者: claude

质量评分

38
架构
100
可维护性
87
内容
35
社区
82
安全
83
规范符合性

你能构建什么

マーケティングビジュアルの生成

自然言語で欲しいものを記述することで、商品画像、ソーシャルメディア用グラフィック、プロモーション動画を作成する。

クリエイティブコンセプトのプロトタイピング

異なるモデル、プロンプト、パラメータでバリエーションを生成し、アイデアを迅速に反復改良する。

メディアパイプラインの自動化

画像や動画をバッチ生成し、処理して、結果をCI/CDやデータワークフローに統合するスクリプトを構築する。

试试这些提示

単一画像の生成
RunComfyを使って、プロンプト「a serene mountain landscape at golden hour, photorealistic, 8k」で画像を生成する。モデルは openai/gpt-image-2/text-to-image を使用し、./output に保存する。
ファイルからのバッチ処理
prompts.txt を1行ずつ読み込み、flux-2-klein モデルを使ってプロンプトごとに1枚の画像を生成する。すべての出力を ./batch-output/ に保存し、実行ごとにタイムスタンプのサブフォルダを作成する。
非同期ジョブのステータス確認
--no-wait を付けて動画生成ジョブを送信し、request_id を取得した後、30秒ごとにステータスを確認して完了するまで待つ。完了したら最終動画をダウンロードする。
JSON出力を処理にパイプする
--output json と --no-download を付けて画像を生成し、jq で最初の画像URLを抽出して、curl で特定のフォルダにダウンロードする。

最佳实践

  • スクリプト化する場合や他のツールに結果をパイプする場合は、常に --output json を使用する
  • CIやコンテナ環境では、RunComfyトークンを RUNCOMFY_TOKEN 環境変数に保存する
  • 実行時間の長い動画生成ジョブには --no-wait を使用し、後で runcomfy status でポーリングする

避免

  • curl のインストールスクリプトを事前に確認せずにシェルに直接パイプしない
  • シェル変数を適切なJSONエスケープなしに --input に直接渡さない
  • 終了コード77を無視しない。これは認証に失敗し、再ログインが必要であることを意味する

常见问题

RunComfy CLIをインストールするにはどうすればよいですか?
グローバルインストールする場合は npm i -g @runcomfy/cli を実行するか、インストールなしで一度だけ実行する場合は npx -y @runcomfy/cli を使用してください。
APIトークンはどこに保存されますか?
トークンは ~/.config/runcomfy/token.json にファイルパーミッション0600で保存されます。環境変数 RUNCOMFY_TOKEN を設定して、ファイルを上書きすることもできます。
実行中のジョブをキャンセルできますか?
はい。CLIがポーリング中にCtrl-Cを押してください。リモートジョブをキャンセルするDELETEリクエストを送信してから終了します。
生成に失敗した場合はどうなりますか?
CLIは0以外の終了コードを返します。コード69はアップストリームサーバーエラーを意味し、再試行可能です。コード65は入力JSONが無効であることを意味します。コード77は認証に失敗したことを意味します。
出力を特定のフォルダにダウンロードするにはどうすればよいですか?
--output-dir フラグの後にターゲットパスを指定してください。--no-download を使用すると、ダウンロードを完全にスキップして結果のJSONのみを返します。
何もインストールせずにこのスキルを使用できますか?
いいえ。このスキルにはRunComfy CLIがシステムにインストールされている必要があります。スキルはインストール手順を案内しますが、CLIがないとruncomfyコマンドを実行することはできません。

开发者详情

文件结构

📄 SKILL.md