skills/codex-spark-delegation/SKILL.md
Delegate coding tasks to Codex (gpt-5.3-codex-spark) via `codex exec` while acting as PM: write work-order prompts, dispatch, verify results from the working tree, and iterate with `codex exec resume`.
npx skillsauth add lilpacy/dotfiles codex-spark-delegationInstall 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.
Act as the PM: plan and review in this session, and delegate the actual
code editing to Codex's fast implementation model (gpt-5.3-codex-spark)
via codex exec. Unlike cursor-composer-delegation (UI automation,
fire-and-poll), codex exec is a synchronous CLI: it blocks until the
task finishes, returns the agent's final message on stdout, and edits the
working tree directly. No IDE, no Accessibility API, no polling.
Use codex-exec-review for reviews (read-only). This skill is for
implementation (writes).
command codex exec \
-m gpt-5.3-codex-spark \
--sandbox workspace-write \
-C /path/to/repo \
-o /tmp/codex-spark-last-message.txt \
"<work-order prompt>"
-m gpt-5.3-codex-spark — the fast implementation model. Do NOT
omit it; the config default is a different (slower, pricier) model.--sandbox workspace-write — real containment, verified empirically:
under --sandbox read-only a file-write attempt failed with
Operation not permitted, and the run header showed
sandbox: read-only.alias codex='codex --yolo'
(common.sh). That alias silently overrides --sandbox/approval
flags — a run through the alias showed sandbox: danger-full-access
even with --sandbox read-only passed explicitly. Always invoke as
command codex exec ... (bypasses the alias) when running this
skill's commands from an interactive shell, and check the run
header's sandbox: line to confirm the mode actually took effect.
trust_level in ~/.codex/config.toml is unrelated to sandbox
enforcement — it only gates loading project-local .codex/ config.-C <repo> — sets the agent's working root. Prefer this over cd.-o <file> — writes the final message to a file so you can re-read
the result without scraping stdout.timeout (implementation
runs commonly take 1-10 min) or run_in_background: true and check
the output file when notified.git-commit-workflow).Example:
command codex exec -m gpt-5.3-codex-spark --sandbox workspace-write -C ~/repo \
-o /tmp/spark-out.txt \
"src/foo.ts の parseConfig にバリデーションを追加して。
受け入れ条件: 不正な port で Error を throw、既存テスト npm test が全て通る。
テストは tests/foo.test.ts に追加。実装後に npm test を自分で実行して確認して。
コミットはしないで。無関係なファイルやフォーマットだけの変更もしないで。"
codex exec returning is not acceptance. After it exits:
git -C /path/to/repo status --porcelain
git -C /path/to/repo diff
Read the diff yourself and run the project's tests/linters yourself to
accept or reject — do not trust the agent's claim that tests passed.
Then commit via git-commit-workflow.
The run header prints session id: <UUID> — capture it from stdout.
If the result is wrong, resume the same session so context is retained:
command codex exec resume <SESSION_ID> \
"npm test が X で落ちる。エラー: <paste>. Z には触らずに修正して。"
Cap the loop at ~3 rounds; if it still fails, take over in this session
or re-plan. To discard a rejected attempt before retrying from scratch,
capture the baseline BEFORE dispatch (git stash the user's dirty
state, or note the pre-dispatch git status --porcelain), then revert
only the files the agent touched: git -C <repo> checkout -- <files>
and delete its new files individually. Never bulk git clean -fd — it
destroys the user's untracked files too.
One repo checkout = one task at a time (both agents write the same
tree). For parallel delegation, give each codex exec its own git
worktree via -C. Never switch branches in a tree while a run is in
flight.
rmcp::transport::worker ... http://127.0.0.1:...)
are noise from unreachable local MCP servers. If a final codex
answer arrives, the run succeeded (degraded); report the sidecar
failure separately.codex exec exits without a final
answer. Then try command codex exec resume <SESSION_ID> once
before rerunning from scratch.codex-spark-delegation (this): synchronous and scriptable; best
default for well-specified implementation tasks. Sandbox is real
containment as long as it's invoked via command codex (see caveat
above) — but still verify the diff yourself, same as any delegate.cursor-composer-delegation: when the user wants work visible in the
Cursor IDE, or wants to keep working while tasks run fire-and-forget.data-ai
ユーザー向けの回答、要件整理、説明、計画、レビュー、仕様、要約を作成するときに使う。自然言語だけでは条件、状態、多重度、期間、時刻、境界値、制約、推論、計算が曖昧になりうる場合、表、デシジョンテーブル、Mermaid 図、計算式、境界値表で一意化する。推測で補った図表要素は必ず明示する。
tools
Cross-agent messaging via SQLite. Send messages between Claude Code, Codex, Gemini CLI, and other agents. No daemon, no network, no dependencies beyond bash and sqlite3.
development
Anti-AI-slop design skill for greenfield pages, audits, redesigns, and design extraction from URLs or screenshots. Use when the user asks to build a new app or landing page, wants to redesign something, invokes Hallmark by name, or uses audit/redesign/study.
development
Reviews animation and motion code against a high craft bar derived from Emil Kowalski's design engineering philosophy. Default to flagging; approval is earned.