claude/skills/magi/SKILL.md
Multi-AI (Claude/Codex/Gemini) deliberation skill with strict availability checks and structured outputs.
npx skillsauth add kazuph/dotfiles magiInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
MAGIを使う場合は、現在のコンテキストで直接実行しないでください。
必ず Task ツールで magi-system-orchestrator エージェントを起動してください:
Task(subagent_type="magi-system-orchestrator", prompt="<依頼内容>")
理由:
magi-system-orchestratorエージェントとして起動された場合、このスキルの内容に従って実行すること。
スキルを読まずに実行すると、CLIパターンやトークン削減手法が適用されず、非効率な実行になる。
MAGIは複雑な意思決定や多視点レビューのための標準オペレーションです。このSkillを参照し、長文のエージェント定義の代わりにここで定義された手順とテンプレートを読み込んでください。
docs/PLAYBOOK.md参照)。exec モード(codex)やワンショットモード(gemini)では script ラッパー不要。Claude CLIは CLAUDECODE= で環境変数をクリアして実行。docs/CHECKLIST.mdに沿って検証し、満たせない場合は理由を報告。詳細手順・CLIルールは docs/PLAYBOOK.md を参照。
| Persona | コマンド例 |
| --- | --- |
| Codex/GPT-5 | outfile=$(mktemp -t codex); command codex --sandbox workspace-write --config sandbox_workspace_write.network_access=true --dangerously-bypass-approvals-and-sandbox exec --skip-git-repo-check --full-auto -o "$outfile" "<prompt>" >/dev/null 2>&1; cat "$outfile" |
| Gemini | outfile="/tmp/gemini_$$"; /opt/homebrew/bin/mise exec -- gemini --approval-mode=yolo -o json "<prompt>" 2>/dev/null \| jq -r '.response' > "$outfile"; cat "$outfile" |
| Claude (ゴール整備) | CLAUDECODE= command claude --dangerously-skip-permissions --print "<prompt>" |
※ script -q /dev/null は不要。exec/ワンショットモードではTTYラッパーなしで動作する。標準出力モードで実行し、会話状態は期待しないこと。
各CLIから最終メッセージのみ取得するパターン。script -q /dev/null は不要(exec/ワンショットモードではTTY不要)。
-o オプションで最終メッセージのみファイルに出力outfile=$(mktemp -t codex)
command codex \
--sandbox workspace-write \
--config sandbox_workspace_write.network_access=true \
--dangerously-bypass-approvals-and-sandbox \
exec --skip-git-repo-check --full-auto -o "$outfile" "<prompt>" >/dev/null 2>&1
cat "$outfile"
command codex でエイリアスをバイパス(エイリアスとフラグが重複すると失敗する)>/dev/null 2>&1 でstdoutのログを抑制しつつ -o のファイル出力は維持される--full-auto で書き込み権限を付与(読み取り専用にする場合は外す)-o json + jq で最終応答のみ抽出outfile="/tmp/gemini_$$"
/opt/homebrew/bin/mise exec -- gemini \
--approval-mode=yolo -o json "<prompt>" 2>/dev/null \
| jq -r '.response' > "$outfile"
cat "$outfile"
-o json で構造化出力。.response フィールドに最終応答のみ格納される-p フラグは非推奨。位置引数(positional prompt)を使うjq で除外される--print で最終応答のみ出力CLAUDECODE= command claude --dangerously-skip-permissions --print "<prompt>"
CLAUDECODE= でネストセッション検出をバイパス(サブエージェント内から呼ぶ場合に必須)mktemp -t でユニークなファイル名を生成するため並列実行でも安全/tmp 配下のファイルはmacOSが自動クリーンアップするため明示的削除不要必ず docs/OUTPUT_TEMPLATE.md の雛形を使い、以下を満たしてください。
メインセッションへの返却は最小限に。生ログは返さない。
runtime/ に保存し、返却メッセージには含めないruntime/ 以下に magi-<timestamp>-<persona>.log などの形で各出力を保存しておくと後から参照しやすい。ps で確認し、必要なら安全に終了。runtime/ 以下に残したログで不要なものがあれば明示的に削除。
docs/OUTPUT_TEMPLATE.mdを再参照し、不足要素を追記。このSkillを読み込むことで、エージェント定義に過度なテキストを持ち込まずにMAGI運用を再現できます。
tools
X (Twitter) API read-only CLI. Bookmarks retrieval, tweet search, engagement analytics (likes/RT aggregation), mentions, user lookup. Use when: reading X bookmarks, searching tweets, aggregating likes/retweets, checking mentions, looking up users. Triggers: bookmark, bookmarks, X search, Twitter search, likes count, RT count, engagement, tweet analytics.
testing
単体テスト方針の要約。Kiro流で使うときは本文を必ず参照・展開する。
tools
Send prompts to other AI CLIs (Codex, Claude Code) running in sibling tmux panes and receive results back. Use this skill when the user asks to send a question or task to Codex or another Claude Code instance in a tmux pane. Handles pane discovery, CLI startup if needed, prompt delivery with proper Enter timing, delivery verification, and result return via tmux send-keys.
data-ai
TAKT ピースエンジン。Agent Team を使ったマルチエージェントオーケストレーション。ピースYAMLワークフローに従ってマルチエージェントを実行する。