スキル codex-pet
🦀

codex-pet

中リスク ⚙️ 外部コマンド🌐 ネットワークアクセス📁 ファイルシステムへのアクセス🔑 環境変数

あらゆる画像からカスタムCodexペットを作成

こちらからも入手できます: agentspace-so

単一の参照画像からカスタムアニメーションCodexペットスプライトシートを作成します。このスキルは、RunComfy GPT Image 2 APIとImageMagickを使用して、9つのアニメーション状態を持つピクセルアートスタイルのコンパニオンを生成します。結果をCodexペットフォルダにドロップすると、パーソナライズされたデスクトップコンパニオンとして使用できます。

対応: Claude Codex Code(CC)
⚠️ 64 貧弱
1

スキルZIPをダウンロード

2

Claudeでアップロード

設定 → 機能 → スキル → スキルをアップロードへ移動

3

オンにして利用開始

テストする

「codex-pet」を使用しています。 Create a codex pet from https://example.com/photo.jpg

期待される結果:

Generated pet 'my-pet' installed at ~/.codex/pets/my-pet/ with spritesheet.webp (1536x1872, 9 animation rows) and pet.json manifest. Restart Codex to see the new pet in your selection.

「codex-pet」を使用しています。 Make a codex pet named ninja-cat from https://example.com/cat.png with description 'A stealthy feline companion'

期待される結果:

Codex Pet 'ninja-cat' created and installed. Spritesheet includes idle, running-right, running-left, waving, jumping, failed, waiting, running, and review animation states. All cells follow required frame counts per Codex specification.

「codex-pet」を使用しています。 Adjust my-pet animation to have bigger idle movement

期待される結果:

Idle row modified: shift changed from shift:0:-1 to shift:0:-2 for stronger breathing effect. Updated spritesheet.webp written to ~/.codex/pets/my-pet/. Reload Codex to preview changes.

セキュリティ監査

中リスク
v1 • 5/28/2026

This is a legitimate Codex Pet generator that uses RunComfy CLI and ImageMagick to create animated pet spritesheets. The static analysis flagged many patterns (97 command usages, filesystem access) but these are all legitimate tool invocations. The external commands (`runcomfy run`, `magick`) use hardcoded arguments derived from skill logic, not user-controlled shell input. Network calls go only to runcomfy.net endpoints. Path traversal in PET_NAME is a low concern as writes are scoped to the ~/.codex/pets sandbox. Environment variable access is explicit and documented (RUNCOMFY_TOKEN). No credential exfiltration, no data theft patterns, no command injection vectors confirmed. Skill performs exactly what it claims: generates pet spritesheets via API + ImageMagick transforms.

1
スキャンされたファイル
348
解析された行数
7
検出結果
1
総監査数
中リスクの問題 (1)
Path Injection via PET_NAME in mkdir/cp Commands
PET_NAME user input is interpolated into mkdir and cp paths without sanitization. A malicious PET_NAME like '../../etc' could escape the intended ~/.codex/pets/ directory. This is a LOW-to-MEDIUM risk because: (1) writes are scoped to local filesystem only, (2) no privilege escalation apparent, (3) Codex pet directories are user-controlled workspace. However, the shell commands at lines 242-245 concatenate PET_NAME directly into mkdir/cp with no validation.
低リスクの問題 (2)
Hidden File in Home Directory Access
Skill accesses ~/.config/runcomfy/token.json to store API credentials. This is standard configuration file access for authenticated CLI tools, documented openly in the Security & Privacy section. Not a security vulnerability but worth noting for transparency.
External URL fetch in Image Processing Pipeline
The skill accepts a SOURCE_URL parameter and fetches external images. This is standard for image generation workflows but introduces a data boundary concern: external images are processed by RunComfy's servers. Documented as a known risk.

リスク要因

⚙️ 外部コマンド (6)
🌐 ネットワークアクセス (2)
📁 ファイルシステムへのアクセス (2)
🔑 環境変数 (2)
監査者: claude

品質スコア

38
アーキテクチャ
100
保守性
87
コンテンツ
42
コミュニティ
56
セキュリティ
83
仕様準拠

作れるもの

パーソナルのCodexコンパニオンを作成

自分自身やペット、キャラクターの写真を撮影して、Codexデスクトップコンパニオンに変身させます。このスキルは画像をチビスタイルのピクセルアートに変換し、コードエディタの上でフロートします。

ペットスプライトシートのバッチ生成

複数のソース画像を処理して、いくつかのCodexペットを作成します。各ペットはCodexの組み込みペットと一緒にインストールされるため、チーム全員が好きなお気に入りを選択できます。

新しいペットアニメーションのプロトタイピング

ペット行のカスタムアニメーションタイミングを素早く生成してテストします。ImageMagickのマイクロトランスフォーム値を調整して、スプライトシート全体を再生成せずにアニメーションの雰囲気を調整できます。

これらのプロンプトを試す

基本的なペット生成
Create a codex pet from this image: [SOURCE_IMAGE_URL]
名前と説明付きペット作成
Make me a codex pet named [PET_NAME] based on [IMAGE_URL]. Description: [PET_DESCRIPTION]
カスタムアニメーション調整
Adjust [PET_NAME] animation: change idle bob to shift:0:-2, make running cycle faster with shift:3:0
失敗した生成のデバッグ
Retry generating [PET_NAME] with tighter identity preservation: emphasize [SPECIFIC_FEATURES] from original image

ベストプラクティス

  • 192x208ピクセルのセルに最適てはめるため、正方形またはほぼ正方形のソース画像を使用
  • クリーンなクロマキー処理のため、明確なシルエットとシンプルなカラーパレットの画像を選択
  • アイデンティティの保存が重要な場合は、プロンプトリファインメントで具体的な機能を説明する

回避

  • マゼンタ背景のソース画像を使用しない(クロマキーペースホルダーと競合するため)
  • 複雑なマルチキャラクターシーンを単一のソース画像として入力しない
  • スキルCLIでインストールする際にバックティックコードブロックをスキップしない

よくある質問

OpenAIのhatch-petスキルとの違いは何ですか?
このスキルはCodex Proの$imagegenシステムではなく、GoogleのRunComfy CLIを使用します。RunComfy $tokenのみが必要で、Codex Proアクセスは不要です。出力形式は同一なので、Codexは両方を同じものとして扱います。
なぜアニメーションは個別のフレームを生成するのではなくImageMagickトランスフォームを使用するのですか?
Codexの組み込みペットも同じアプローチを使用しています。アニメーションは意図的にシンプルです。1つの標準ポーズ加上1-2ピクセルのトランスフォームで、72個の別々の画像を生成するのと同じ効果を生み出します。
ソース画像に近いマゼンタの色がある場合はどうなりますか?
クロマキーを#FF00FFからシアン(#00FFFF)またはグリーン(#00FF00)に変更します。プロンプトとポストプロセスのファズしきい値の両方を更新します。
RunComfyアカウントなしで使用できますか?
いいえ、RunComfyアカウントとAPIトークンが必要です。このスキルは画像生成バックエンドとしてRunComfy GPT Image 2編集エンドポイントを呼び出します。
ペットはどこにインストールされますか?
ファイルは${CODEX_HOME:-$HOME/.codex}/pets/<pet-name>/に書き込まれます。Codexを再起動するか、ペットリストをリロードして新しいカスタムペットを表示します。
なぜスキルは弱い暗号アルゴリズムを使用すると述べていますか?
これはアニメーションに使用される意図的にシンプルなImageMagickトランスフォーム(トランスレート、ローテート)を参照しています。これらは暗号アルゴリズムではありません。ImageMagickは画像処理ツールであり、暗号ライブラリではありません。

開発者の詳細

作成者

runcomfy-com

ライセンス

MIT

参照

main

ファイル構成

📄 SKILL.md