codex
Get an independent Codex review of the last commit, the worktree, the branch or the codebase, one reviewer child per objective, or ask Codex a question. Reserve ask for consequential decisions.
- License 许可
- GPL-3.0
- 所属仓库
- bendusz/bstack
- 最近更新
- 2026-11-15
- Stars
- ★ 3
- Forks
- 1
01 前言 Front Matter
- name
- codex
- description
- Get an independent Codex review of the last commit, the worktree, the branch or the codebase, one reviewer child per objective, or ask Codex a question. Reserve ask for consequential decisions.
- argument-hint
- [review [last-commit|worktree|branch|codebase] [objective…] | ask <question>]
03 SKILL.md 正文
If you were dispatched as a child agent (your task begins 'You are a bstack … child'), do not use this skill.
references/… below means ${CLAUDE_PLUGIN_ROOT}/skills/project-manager/references/…, and
<plugin> in any reference means ${CLAUDE_PLUGIN_ROOT}. Neither is a shell variable: write the
path out in every command.
Use the bstack:project-manager skill's host rules: probe as references/host.md ## Probe says
(without T3 Code, say "bstack requires T3 Code" and stop), and dispatch as its ## Dispatch
says. Never review the code or answer the question yourself, and never run the codex CLI.
Arguments: $ARGUMENTS
review
/bstack:codex review [last-commit|worktree|branch|codebase] [objective…]
- Scope, default
worktree:last-commit:git diff HEAD~1..HEAD.worktree: the uncommitted changes,git diff HEADplus the untracked filesgit ls-files --others --exclude-standardlists.branch:git diff <base>...HEAD,<base>the plan'sIntegration branch:, elsemain.codebase: the whole tracked tree, no diff.
- Objectives: every remaining word or quoted phrase, such as
security,performance,designor"error handling in the parser". None means one general review. - Model: Codex
gpt-6-astra,reasoningEffort: high, the reviewer default for Claude's work. Use another only when the user names one (model=<id>,effort=<level>) andorchestrator_capabilitieslists it. A Codex target always setsreasoningEffort.
Take one stamp now, YYYYMMDDHHMMSS. Dispatch one delegate_task per objective, all in one
message so they run in parallel:
task:references/roles.md## Commonwith<role>asreviewer, the## reviewersoul, then the brief: the repository root (git rev-parse --show-toplevel), the scope and the exact diff command to run (or "review the codebase"), and the objective, as afocus:line when it isdesign,securityorperformance, elseObjective: <text>. When the review targets a story, add its story file (with its acceptance criteria) and its recordedpm-exec.worktree, and run the diff there. With no story, add: "No story: CRITERIA is n/a."target:{"providerInstanceId":"codex","model":"gpt-6-astra","options":{"reasoningEffort":"high"}}.isolation: "shared", so the child sees the checkout as it is, uncommitted changes included.title:codex review <scope> <objective>.clientRequestId:codex-review-<stamp>, fresh per call; with several objectives, append-<k>per child (codex-review-<stamp>-2), since T3 answers a reused key with the first child.
Wait without polling. Save each result verbatim to
tmp/codex-reviews/<stamp>-<scope>-<objective-slug>.md, headed by one line naming the model,
effort, scope, objective and childThreadId. tmp/ is scratch and must be gitignored: if
.gitignore does not ignore it, show the one-line addition and ask before appending it.
Relay each verdict and the most severe findings across the reports, attributed ("Codex
(gpt-6-astra) found …"), with the report paths. On a story, triage them as references/loop.md
step 6 does before anything goes to a builder.
ask
/bstack:codex ask <question>
- An empty question: ask the user what they want Codex's opinion on.
- Codex knows nothing of this conversation, so make the question a self-contained brief: the
question, the relevant file paths, the options being weighed with their trade-offs, and the
constraints. End it with:
Read the referenced files before answering. Give a concrete recommendation and your reasoning, in your reply. task:references/roles.md## Commonwith<role>asresearcher, the## researchersoul, then the brief.- Dispatch one
delegate_taskon the researcher's default,target{"providerInstanceId":"codex","model":"gpt-6.1-sol","options":{"reasoningEffort":"high"}}(another model only when the user names one),isolation: "shared",titlecodex ask,clientRequestIdcodex-ask-<YYYYMMDDHHMMSS>, fresh per call. - Relay the answer attributed to the model, "Codex (gpt-6.1-sol) recommends …", then your own
take: where you agree, where you differ, and why. The decision stays yours; when it settles one,
log it with
bash "${CLAUDE_PLUGIN_ROOT}/scripts/log.sh" "<message>".
04 同仓库更多 Skills
why
Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Discovers available MCPs and queries each evidence category (source control, issue tracker, long-form docs, real-time chat, infrastructure observability, error tracking, product analytics warehouse) in parallel, then returns a cited read on decisions and tradeoffs. Use how for runtime behavior.
unslop
Cut AI tells from any writing. Must always apply.
typescript-best-practices
TypeScript best practices. Use when reading or editing any .ts or .tsx file.
technical-writing
Layered technical-writing standard: Diátaxis structure, Google developer style sentences, STE instruction rules, Global English syntax. Use for /poteto:technical-writing or when writing or reviewing docs, RFCs, readmes, PR descriptions, or commit messages.
teach
Explain a body of work plainly so a person actually understands it. Runs the `how` and `why` skills and weaves what they find into one clear explanation. Use for 'teach me this', 'help me really understand X', 'explain this change or subsystem to me'.
reflect
Spawn three parallel review subagents over the active transcript, surface learnings, and route each to a concrete edit on an existing skill. Use when the user says reflect.