Back to skills
SKILL.md
Codex
ASecurityCodex app-serverへ相談、独立レビュー、または範囲を決めた実装を委譲する。Codexを指名した相談・実装・第二意見で使う。Codexを指名しない別アプローチや熟考には deepthink を使う。
- 8 stars
- 0 votes
- 0 copies
- 3 views
- Added September 23, 2026
Works with
Security analysis
100/100npx -y skills add coil398/dotfiles --skill codex --agent claude-codeAre you the author of Codex?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/coil398-codex-238423b3)---
name: "codex"
description: "Codex app-serverへ相談、独立レビュー、または範囲を決めた実装を委譲する。Codexを指名した相談・実装・第二意見で使う。Codexを指名しない別アプローチや熟考には deepthink を使う。"
---
<!-- Cursor native overlay: Codex app-server runner -->
# /codex:Codex app-serverへの委任
`/codex <内容>` でCodexへ相談または実装を依頼します。問い・確認済み事実・対象範囲・禁止範囲・受入条件を具体化し、model / effort と相談・実装のsandbox境界は共有原本 [../../../.agents/skills/codex/SKILL.md](../../../.agents/skills/codex/SKILL.md) に従います。
## runner の起動
共有runner [../../../.agents/skills/codex/scripts/codex-run.py](../../../.agents/skills/codex/scripts/codex-run.py) の絶対pathをこのSkillの実体から解決します。runnerはblocking scriptなので、`generalPurpose` Taskをbackgroundで起動し、そのTaskにはscriptの起動とJSON結果の返却だけを任せます。Cursor Taskにはvendor modelを固定しません。
```text
Task({ subagent_type: "generalPurpose", run_in_background: true, description: "codex runner", prompt: "Run only: python3 <script-path> <runner-arguments>; return its JSON line and process exit code." })
```
`PROMPT` は非空本文または既存prompt fileのどちらか、`CWD` と `WORK_DIR` と `SESSION_FILE` は必要に応じて絶対pathで渡します。`WORK_DIR` は [sanitized-cwd.md](../../../.agents/skills/pir2/references/sanitized-cwd.md) に従い、親の `RUN_DIR` があればそれをそのまま使い、単発呼び出し時は `../../../.agents/skills/pir2/scripts/reserve-run-dir.sh` で確保します。相談・レビューは `--sandbox read-only`、実装では `--sandbox` を省略します。`RUN_ID` は `[A-Za-z0-9._-]+` の一意な値です。新規sessionは未作成の `SESSION_FILE`、続行は同じ `SESSION_FILE` と新しい `RUN_ID` を使います。同じ `SESSION_FILE` を使うjobは同時に1つだけで、前のjobの `DONE_FILE` を確認してから続行します。
Background Taskの完了通知を受けるまで別作業を進め、通知後にJSON要約と実在するartifactを確認します。jobの終了状態、`DONE_FILE` の有無、復旧可否は共有 [runner reference](../../../.agents/skills/codex/references/runner.md) の終了契約に従います。
## app-serverと結果
共有runner scriptはCodex app-server helperを親プロセスから切り離して実行し、終了後に公開完了markerとmachine-readable summaryを作ります。出力path、requested / observed値、usage、最終応答、session検証の詳細は共有 [runner reference](../../../.agents/skills/codex/references/runner.md) を正本とします。
Codexの自己申告やexit codeだけを成功とみなしません。呼び出し元が最終応答、stderr、git diff、変更ファイル、要求した確認結果を検証します。CodexにMCP、外部送信、権限昇格、破壊的操作、本番変更を許可しません。
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.