call-codex

Installation
SKILL.md

Call Codex

Invoke OpenAI Codex CLI non-interactively to get a second opinion or critique, then present the result.

Command Pattern

cat <<'PROMPT' | codex exec --full-auto --skip-git-repo-check -o /tmp/codex_output.md -
<your prompt here>
Do NOT modify any files. Do NOT run any shell commands. Only output your analysis as text.
PROMPT

Then read /tmp/codex_output.md for the clean response.

Workflow

  1. Construct the prompt. Combine the user's request with relevant context (file contents, code snippets, error messages). Always append: Do NOT modify any files. Do NOT run any shell commands. Only output your analysis as text.
  2. Run the command. Use cat <<'PROMPT' | codex exec --full-auto --skip-git-repo-check -o /tmp/codex_output.md - with the constructed prompt. Use single-quoted heredoc delimiter ('PROMPT') to prevent shell expansion.
Related skills

More from touricks/fanshi_personal_skills

Installs
1
GitHub Stars
2
First Seen
Mar 30, 2026