codex-consult
Skill0 starsChanged 6 months agoApache-2.0View on GitHub
Codex CLIを使って設計相談やコードについての質問をする。プロンプト指示で codex 側に書き込み禁止を伝える consult 型(sandbox は full-access、bwrap 迂回が必要なため)。
1 other project uses a version of this.
Adopted by
Most recently taken up by
- sam-mountainman/codex-mcptheir own version, first seen Oct 22, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- sam-mountainman/codex-mcp★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository33 other files it gives its agents.
- add-mesh-peerSkill
- adrSkill
- analyze-logsSkill
- codex-reviewSkill
- config-analyzerSkill
- cross-reviewSkill
- drawioSkill
- empirical-prompt-tuningSkill
- git-historySkill
- github-writingSkill
- hard-task-playbookSkill
- inherit-wipSkill
- interviewSkill
- ja-natural-reviewSkill
- mcp-smoke-via-claude-pSkill
- meeting-minutesSkill
- memoSkill
- nerfstudio-trainerSkill
- obsidian-work-loggerSkill
- plan-with-qaSkill
- poll-sonnet-workersSkill
- post-merge-cleanupSkill
- release-applySkill
- ros2-inspectorSkill
- ros2-launch-debugSkill
- ros-analyzeSkill
- safe-pathspec-commitSkill
- setup-claude-localSkill
- split-advisorSkill
- surveySkill
- work-logSkill
- write-specSkill
- zenn-interviewSkill
The file
Files
Codex Consult Skill
Codex CLI を使って 外部 AI(OpenAI)に設計相談・コード質問 をするスラッシュコマンド。回答本体は必ず codex に書かせる(呼び出し側が自前で回答を書くのは禁止)。
絶対遵守ルール
codex execを 1 回だけ 実行する。失敗しても再試行せず、失敗として報告する。- リポジトリを改変しない。 プロンプトにも「これは consult、ファイル編集禁止」と明示する。codex が提案としてコードを示すのは可だが、実ファイルへの書き込みは不要。
- codex 出力が空・エラーなら、自前で回答を書かず「Codex 相談失敗」として報告する。
- sandbox オプション(
-c sandbox_mode=danger-full-access)を省略・変更しない。これがないと bwrap が user namespace を作れない環境で codex がファイル参照系の質問に答えられない。
使い方
/codex-consult <質問文>実行コマンド
codex exec -c sandbox_mode=danger-full-access "read-only consultation — do not modify any files. question: $ARGUMENTS" < /dev/null 2>&1-c sandbox_mode=danger-full-access: bwrap 迂回(必須)- プロンプト冒頭の
read-only consultation — do not modify any filesで codex 側に変更禁止を指示 < /dev/null: stdin ハング回避2>&1: エラー出力も取得
作業ディレクトリを指定したい場合:
codex exec -C <dir> -c sandbox_mode=danger-full-access "read-only consultation — do not modify any files. question: $ARGUMENTS" < /dev/null 2>&1実行手順
$ARGUMENTSを上記コマンドに埋め込んで 1 回実行。- タイムアウトは 120 秒程度見込む。
- 成功判定(下記)を行い、結果を報告。
成功判定(機械的に)
codex 出力が 下記のいずれかを含めば失敗:
- 空
unable to inspect/could not/sandbox/Denied/bwrapのいずれかError:で始まる行Not inside a trusted directory(codex の信頼ディレクトリ未登録)
該当しなければ成功。
報告フォーマット
成功時:
## Codex 相談結果
### 質問
[ユーザー質問をそのまま]
### Codex の回答
[codex 出力の本文]
### 推奨アクション
- [codex が提示した次のステップがあれば抽出]失敗時:
## Codex 相談失敗
### 原因
[codex 出力の該当部分を短く引用]
### 対処案
- `~/.codex/config.toml` で sandbox_mode / trusted projects を確認
- 未認証なら `codex login`
- 信頼ディレクトリ外なら該当パスを projects に追加、もしくは `-C <trusted-dir>` を付ける絶対にやってはいけない: 失敗時に自分が知識で答えて埋め合わせること。
注意
- 長い質問は引用符で囲む
- 作業ディレクトリが codex の trusted projects に登録されていないと弾かれることがある
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

