AGENT SKILL

consult-codex

Consults OpenAI Codex CLI for an independent perspective on any question. Shells out to the codex CLI in read-only sandbox mode and relays the response. Use when you want a second opinion from Codex, or when asked to "consult codex", "ask codex", or "codex oracle".

License 许可
MIT
最近更新
2026-10-27
Stars
★ 5
Forks
2

01 前言 Front Matter

name
consult-codex
description
Consults OpenAI Codex CLI for an independent perspective on any question. Shells out to the codex CLI in read-only sandbox mode and relays the response. Use when you want a second opinion from Codex, or when asked to "consult codex", "ask codex", or "codex oracle".
allowed-tools
Bash

02 资源文件 1

03 SKILL.md 正文

Consult Codex

You are a proxy. Your ONLY job is to shell out to the Codex CLI and relay its response.

Rules

  • DO NOT read files, explore the codebase, or answer the question yourself
  • DO NOT use Read, Grep, Glob, ctx_execute, ctx_batch_execute, or any other tool
  • Your ONLY tool is Bash. Use it ONLY to invoke the codex CLI
  • If you catch yourself doing anything other than constructing a prompt and running codex exec: STOP

Steps

  1. Read the user's question and any context provided
  2. Check dependency: bash skills/consult-codex/deps.sh
  3. Construct a prompt string that includes:
    • The question or topic
    • Relevant context from the conversation
    • Instruction: "Validate all claims and cite verifiable sources (official docs, specs, RFCs, papers). Prefer primary sources."
  4. Run via Bash (set timeout: 600000):
OUTFILE=$(mktemp /tmp/codex-oracle-XXXXXX.txt) && codex exec -s read-only -o "$OUTFILE" -- "<prompt>" > /dev/null 2>&1; cat "$OUTFILE"; rm -f "$OUTFILE"

The -o flag writes ONLY the final agent message to a file. Redirecting stdout/stderr to /dev/null suppresses trace output. Then cat reads the clean result.

  1. Relay the response faithfully. Add a brief synthesis of key insights at the end.

Model & Effort Preferences

If the user specifies a model or effort level ("most powerful", "cheap", "high effort"):

  • Run codex --help to discover current flags
  • Add appropriate flags to the command
  • If no preference: omit, use local defaults

If CLI Is Missing

Report: "codex CLI not found. Install: npm install -g @openai/codex — https://github.com/openai/codex"

Do NOT answer the question yourself as a fallback.

04 同仓库更多 Skills

shousper
shousper/clanker-kit

writing-docs

Use when creating or editing documentation of any kind, including Markdown, RST, or HTML pages, READMEs, design docs, ADRs, changelogs, docstrings, and comment blocks. Covers document purpose, headings, paragraphs, lists, procedures, notices, cross-references, code samples, placeholders, example data, and word choice for technical writing.

★ 5
shousper
shousper/clanker-kit

work

Runs the story worker loop in a story-workflow project — claim ready stories, implement each in its own worktree, close through verification gates, repeat until the goal is met or the loop stalls. Use when asked to "work the board", "complete all stories", "work on epic st-XXXX", "pick up the next story", "start a worker", or to resume or continue a story run — and when a loop re-prompt names the next story in a session that started the loop. DO NOT TRIGGER without .agents/shousper-stories/config.json (use stories:setup first), for decomposing a spec into stories (stories:plan), or to stop a run (stories:cancel).

★ 5
shousper
shousper/clanker-kit

using-stories

Compressed story-workflow rulebook, injected automatically at session start (including after compaction) in projects with .agents/shousper-stories/config.json. Use when unsure of the workflow rules mid-session, when asked "how does the story workflow work here", or for a story CLI quick reference. DO NOT TRIGGER in projects without .agents/shousper-stories/config.json, to set up the workflow (stories:setup), to file stories (stories:plan), or to run the loop (stories:work).

★ 5
shousper
shousper/clanker-kit

setup

Interactive onboarding that turns a repo into a story-workflow project — merge-mode choice, verification gates with test-runner detection, gitignore wiring, optional project-specific reviewer personas. Use when asked to "set up the story workflow", "adopt stories", "story init", "install the story board", or when stories:plan / stories:work is wanted but .agents/shousper-stories/config.json does not exist yet. DO NOT TRIGGER when .agents/shousper-stories/config.json already exists (use stories:plan to file work, stories:work to execute it), for creating individual stories, or for project scaffolding unrelated to the story workflow.

★ 5
shousper
shousper/clanker-kit

plan

Decomposes a spec or approved design into epics and stories on the story board — sized, dependency-ordered, gated, human-approved, then filed via the story CLI. Use in a project with .agents/shousper-stories/config.json when there is a design doc (often from kit:brainstorming), spec, requirements file, or feature request to break down; it replaces kit:writing-plans in the workflow chain for story-based projects. Also use for "file stories", "break this into stories", "populate the board". DO NOT TRIGGER in projects without .agents/shousper-stories/config.json (use kit:writing-plans), for executing stories (stories:work), or for filing a single discovered-work story mid-loop (plain story create).

★ 5
shousper
shousper/clanker-kit

cancel

Stops an active story loop and reports where the board stands. Use when asked to "stop the loop", "cancel the story run", "halt autonomous story work", "kill the worker loop", or when a runaway run must be shut down. DO NOT TRIGGER for closing a single story (that is story done inside stories:work), for deleting or archiving stories, or for removing the story workflow from a project.

★ 5