codex-implement
Skill0 starsChanged 54 days agoMITView on GitHub
Codex CLIを実装担当として明示的に起動し、cleanなGitリポジトリ内を最小権限で編集させて変更を独立検収する。ユーザーが「codex-implement」「Codexに実装させて」など実装委任を明示した場合に限って使う。
- Reads credentials
3 other projects use a version of this.
Adopted by
Most recently taken up by
- aarontzeng/dev-leadtheir own version, first seen Nov 5, 2026
- sd0xdev/sd0x-dev-flowtheir own version, first seen Oct 8, 2026
- sd0xdev/sd0x-harnesstheir own version, first seen Oct 6, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- sd0xdev/sd0x-dev-flow★ 192same name
- sd0xdev/sd0x-harness★ 192same name
- aarontzeng/dev-lead★ 3same 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 repository10 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ask-codexSkill
- ask-codex-with-contextSkill
- list-codex-modelsSkill
- set-codex-modelSkill
- ask-codexSkill
- ask-codex-with-contextSkill
- codex-implementSkill
- list-codex-modelsSkill
- set-codex-modelSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 46
check の出力で行頭 [CODEX_VERIFY_VIOLATION] があれば禁止操作(コミット・branch切替・保護対象改変等)が発生している。最優先で警告する。行頭 [CODEX_VERIFY_ERROR] …
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Codex CLIへ実装を委任する
外部エージェントへ書き込み権限を渡す高リスク操作として扱う。ユーザーの明示指定なしに起動しない。
実行前チェック
- 対象がGitリポジトリであることを確認する。
git status --shortでclean treeを確認する。既存変更があれば停止し、勝手にstash、破棄、上書きしない。- この
SKILL.mdのディレクトリ直下のscripts/を絶対パスへ解決し、同梱されたcodex-verifyのsnapshotサブコマンドで実行前状態を記録する。HEAD、ブランチ、status、保護対象ファイル(.env、.env.*、*.pem、*.key、*.p12、*.pfx、.git/config、.git/hooks)のハッシュがスナップショットファイルへ記録される。成功時は最終行にSNAPSHOT: <path>が出る。この<path>を後の検収で使う。 - リポジトリの絶対パスがASCIIのみであることを確認する。含む場合は停止し、ASCIIパスのworktreeへ移るよう案内する。
- タスク、変更可能範囲、変更禁止範囲、受け入れ条件、実行すべきテストをUTF-8の一時仕様ファイルへ具体的に記述する。
- コミット、push、PR作成、依存追加、破壊的操作を許可しない。dangerous flagや承認回避フラグは既定で禁止する。必要なら個別にユーザー承認を得る。
実行
同梱の codex-wrapper を、SandboxMode workspace-write と -Cd に対象リポジトリの絶対パスを渡して単独コマンドで呼ぶ。現在の作業ディレクトリや共通 $HOME/scripts を前提にしない。
powershell -ExecutionPolicy Bypass -NoProfile -File "<解決したscripts>\codex-wrapper.ps1" -Prompt "タスク仕様書に従って実装してください" -ContextFile "C:/absolute/spec.txt" -Cd "C:/absolute/repo" -SandboxMode workspace-write -Timeout 600bash "<解決したscripts>/codex-wrapper.sh" --prompt "タスク仕様書に従って実装してください" --context-file "/absolute/spec.txt" --cd "/absolute/repo" --sandbox workspace-write --timeout 600-SandboxMode workspace-write は必須(既定の read-only ではCodexが編集できない)。権限拡大や対話承認の自動化を行わない。
独立検収
- Codexの成功申告を根拠に完了扱いしない。
- 実行前snapshotに対して
codex-verifyのcheckサブコマンドを実行する。HEAD/ ブランチの一致、保護対象ファイルのハッシュ比較、git status --porcelain=v1 --untracked-files=allとgit diff HEAD --statのサマリがこの1コマンドで返る。
powershell -ExecutionPolicy Bypass -NoProfile -File "<解決したscripts>\codex-verify.ps1" -Check -SnapshotFile "<snapshotパス>" -Repo "C:/absolute/repo"bash "<解決したscripts>/codex-verify.sh" check --snapshot "<snapshotパス>" --repo "/absolute/repo"- check の出力で行頭
[CODEX_VERIFY_VIOLATION]があれば禁止操作(コミット・branch切替・保護対象改変等)が発生している。最優先で警告する。行頭[CODEX_VERIFY_ERROR]は検収自体の失敗。[CODEX_VERIFY_ALLOWED]は事前承認済み変更のINFO。 - Codexが応答末尾に列挙した変更ファイル一覧とcheckの実態を照合する。不一致なら明示的に警告する。
- 依頼外変更、秘密情報、生成物、依存追加、危険なコマンド、テスト弱体化を検査する。
- 既存環境で受け入れ条件に対応するテストを実行する。新しいテスト依存を勝手に追加しない。
- 問題があれば、変更内容を保持したまま具体的に報告する。無断でresetやcheckoutを行わない。検収結果と検収結果に応じたロールバック手順(unstaged / staged / commit・branch切替の各分岐)をユーザーへ添える。
- 自分が作成した一時仕様ファイルだけを、絶対パスと対象範囲を確認して削除する。
画像アセットの生成・編集
Codex CLIは画像生成を内包しており、このスキルのフローのまま画像の生成・編集を委任できる。仕様書を書く前に、この SKILL.md のディレクトリ直下の references/image-generation.md を読む。
- 画像タスクの仕様書作成前に、同梱の
references/image-generation.mdを読む。 - 用途、保存先、内容、スタイル、必須条件、補完してよい項目、検収条件を整理する。
- 編集では入力画像、変更点、保持条件、出力先を明示する。変更条件と保持条件を矛盾させない。
- API仕様とCodex CLI経由の利用可否を区別する。未公開の引数や推測の画像モデル名を記載しない。
- 透明背景は旧世代の制約で一律に諦めず、利用経路の対応を確認し、出力のアルファ値を検収する。
- 反復編集では採用済み画像を入力にし、重要な保持条件を再掲する。
- 出力先をリポジトリ内に限定し、原画像は原則として別名保存で保持する。
- magic bytesとgit差分に加え、画像のデコード、寸法、内容、透過、文字、意図しない変更を確認する。
ファイルパス指定と画像添付の違い
仕様書にファイルパスを書くことは、そのファイルの内容をモデルへ直接添付することとは異なる。Codexが必要に応じて、実行環境のツールでファイルを読み取り・解析する。
画像生成・編集では、仕様書に編集元画像のパスを書くことで、Codexが利用可能な画像ツールへの参照入力を組み立てる。この経路と、wrapperのAttachmentからCodex CLIの-iへ渡すVLM入力(ask-codex-with-context用)は区別する。
PDFやOffice文書等の解析では、利用可能なライブラリ・ツールとアクセス権に依存する。音声・動画についても、文字起こしやフレーム抽出等の処理が必要になる場合がある。パスを示しただけでネイティブなマルチモーダル入力が成立したとは報告しない。
変換ファイルを作る場合も、既存の作業範囲・保存先・検収規約を守り、元の入力ファイルを無断で上書きしない。
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.

