用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/boshu2/agentops --skill codex-exec命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Use Agent Mail as an optional messaging and file-reservation adapter for explicitly coordinated writers. Triggers: "coordinate writers", "reserve files".
Operate explicit orchestrator, implementer, validator, and scribe roles through a caller-selected agent runtime. Triggers: "agent-native factory", "role-shaped agent panes", "persistent workers".
Initialize minimal AgentOps documentation and verdict storage without taking over repository workflow. Triggers: "bootstrap AgentOps", "initialize AgentOps docs".
正在显示 SKILL.md
基于 SOC 职业分类
| name | codex-exec |
| description | Run one caller-supplied Codex command |
Run exactly one caller-supplied Codex prompt and capture its result. This skill does not choose work, retry failures, validate by itself, or control continuation.
One prompt, one process, one captured artifact is what makes the run auditable: when nothing loops, every byte of output traces to exactly one invocation, and a disagreement about what happened is settled by the artifact.
Named failure mode — stdin hang: a non-TTY run left waiting forever on an open stdin nobody will write to; always pipe the prompt or close the stream.
Anti-pattern: granting workspace-write or network access "in case the prompt needs it". Corrective: match the sandbox to the declared effects; a review prompt runs read-only, full stop.
codex login status for the intended profile.-C.setsid (own process group) +
kill -KILL -<pgid> on the group; --kill-after only escalates TERM→KILL
and plain timeout <secs> codex … signals only the direct child. If the
wrapper cannot guarantee process-group reaping, do not execute — that
host lacks the cleanup capability this skill requires (capability
unavailable, fail closed). Deadline expiry is
fail-closed: the run is killed and reported as timed-out / not proven,
partial output preserved — never a completed review.-o, JSONL, or an output schema.codex binary was present at all. Cancellation is the caller's; this
skill neither retries nor continues on its own.Terminal outcomes are explicit: binary absent (no codex on PATH) → report
unavailable and stop; deadline expiry → fail-closed, report the kill and
preserved partial output, never a completed review; nonzero exit → runtime
evidence, not a semantic verdict. The caller decides whether to launch another
invocation.
# Deadline mandatory; default 600s. `setsid` puts codex in its own process
# group so expiry kills the whole tree, with `--kill-after` escalating
# TERM->KILL. No setsid (or equivalent group kill) available -> do not run:
# fail closed as capability-unavailable.
printf '%s\n' "$PROMPT" | setsid timeout --kill-after=10s "${CODEX_TIMEOUT:-600}" \
codex exec -C "$WORKSPACE" -s read-only -o "$OUTPUT" -
For a validator, the prompt must name the acceptance digest, exact subject
manifest digest, author context ID, evidence, and required checked/not-checked
report. The validator context ID must be distinct from the author's before a
PASS verdict is possible. When the caller elects a cross-model fresh
validator, record model identities per
the agent-native model-dispatch recipe and match the sandbox to
declared effects.