Skip to main content

codex

Provides a CLI wrapper for OpenAI Codex with modes for code review, challenge, and consultation, enhancing coding efficiency.

Install this skill

or
0/100

Security score

The codex skill was audited on May 12, 2026 and we found 100 security issues across 4 threat categories, including 1 high-severity. Review the findings below before installing.

Categories Tested

Security Issues

medium line 29

Template literal with variable interpolation in command context

SourceSKILL.md
29```bash
medium line 262

Template literal with variable interpolation in command context

SourceSKILL.md
262```bash
medium line 358

Template literal with variable interpolation in command context

SourceSKILL.md
358```bash
medium line 392

Template literal with variable interpolation in command context

SourceSKILL.md
392echo "before relying on \`gbrain search\` for code questions in this worktree."
medium line 520

Template literal with variable interpolation in command context

SourceSKILL.md
520```bash
high line 858

Template literal with variable interpolation in command context

SourceSKILL.md
858set, or `${CODEX_HOME:-~/.codex}/auth.json` exists. Avoids false-negatives for
medium line 1143

Template literal with variable interpolation in command context

SourceSKILL.md
1143```bash
medium line 1294

Template literal with variable interpolation in command context

SourceSKILL.md
1294```bash
medium line 1341

Template literal with variable interpolation in command context

SourceSKILL.md
1341```bash
low line 30

Access to hidden dotfiles in home directory

SourceSKILL.md
30_UPD=$(~/.claude/skills/gstack/bin/gstack-update-check 2>/dev/null || .claude/skills/gstack/bin/gstack-update-check 2>/dev/null || true)
low line 32

Access to hidden dotfiles in home directory

SourceSKILL.md
32mkdir -p ~/.gstack/sessions
low line 33

Access to hidden dotfiles in home directory

SourceSKILL.md
33touch ~/.gstack/sessions/"$PPID"
low line 34

Access to hidden dotfiles in home directory

SourceSKILL.md
34_SESSIONS=$(find ~/.gstack/sessions -mmin -120 -type f 2>/dev/null | wc -l | tr -d ' ')
low line 35

Access to hidden dotfiles in home directory

SourceSKILL.md
35find ~/.gstack/sessions -mmin +120 -type f -exec rm {} + 2>/dev/null || true
low line 36

Access to hidden dotfiles in home directory

SourceSKILL.md
36_PROACTIVE=$(~/.claude/skills/gstack/bin/gstack-config get proactive 2>/dev/null || echo "true")
low line 37

Access to hidden dotfiles in home directory

SourceSKILL.md
37_PROACTIVE_PROMPTED=$([ -f ~/.gstack/.proactive-prompted ] && echo "yes" || echo "no")
low line 40

Access to hidden dotfiles in home directory

SourceSKILL.md
40_SKILL_PREFIX=$(~/.claude/skills/gstack/bin/gstack-config get skill_prefix 2>/dev/null || echo "false")
low line 44

Access to hidden dotfiles in home directory

SourceSKILL.md
44source <(~/.claude/skills/gstack/bin/gstack-repo-mode 2>/dev/null) || true
low line 47

Access to hidden dotfiles in home directory

SourceSKILL.md
47_LAKE_SEEN=$([ -f ~/.gstack/.completeness-intro-seen ] && echo "yes" || echo "no")
low line 49

Access to hidden dotfiles in home directory

SourceSKILL.md
49_TEL=$(~/.claude/skills/gstack/bin/gstack-config get telemetry 2>/dev/null || true)
low line 50

Access to hidden dotfiles in home directory

SourceSKILL.md
50_TEL_PROMPTED=$([ -f ~/.gstack/.telemetry-prompted ] && echo "yes" || echo "no")
low line 55

Access to hidden dotfiles in home directory

SourceSKILL.md
55_EXPLAIN_LEVEL=$(~/.claude/skills/gstack/bin/gstack-config get explain_level 2>/dev/null || echo "default")
low line 58

Access to hidden dotfiles in home directory

SourceSKILL.md
58_QUESTION_TUNING=$(~/.claude/skills/gstack/bin/gstack-config get question_tuning 2>/dev/null || echo "false")
low line 60

Access to hidden dotfiles in home directory

SourceSKILL.md
60mkdir -p ~/.gstack/analytics
low line 62

Access to hidden dotfiles in home directory

SourceSKILL.md
62echo '{"skill":"codex","ts":"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'","repo":"'$(basename "$(git rev-parse --show-toplevel 2>/dev/null)" 2>/dev/null || echo "unknown")'"}' >> ~/.gstack/analytics/skill-usage
low line 64

Access to hidden dotfiles in home directory

SourceSKILL.md
64for _PF in $(find ~/.gstack/analytics -maxdepth 1 -name '.pending-*' 2>/dev/null); do
low line 66

Access to hidden dotfiles in home directory

SourceSKILL.md
66if [ "$_TEL" != "off" ] && [ -x "~/.claude/skills/gstack/bin/gstack-telemetry-log" ]; then
low line 67

Access to hidden dotfiles in home directory

SourceSKILL.md
67~/.claude/skills/gstack/bin/gstack-telemetry-log --event-type skill_run --skill _pending_finalize --outcome unknown --session-id "$_SESSION_ID" 2>/dev/null || true
low line 73

Access to hidden dotfiles in home directory

SourceSKILL.md
73eval "$(~/.claude/skills/gstack/bin/gstack-slug 2>/dev/null)" 2>/dev/null || true
low line 79

Access to hidden dotfiles in home directory

SourceSKILL.md
79~/.claude/skills/gstack/bin/gstack-learnings-search --limit 3 2>/dev/null || true
low line 84

Access to hidden dotfiles in home directory

SourceSKILL.md
84~/.claude/skills/gstack/bin/gstack-timeline-log '{"skill":"codex","event":"started","branch":"'"$_BRANCH"'","session":"'"$_SESSION_ID"'"}' 2>/dev/null &
low line 89

Access to hidden dotfiles in home directory

SourceSKILL.md
89_ROUTING_DECLINED=$(~/.claude/skills/gstack/bin/gstack-config get routing_declined 2>/dev/null || echo "false")
low line 100

Access to hidden dotfiles in home directory

SourceSKILL.md
100_CHECKPOINT_MODE=$(~/.claude/skills/gstack/bin/gstack-config get checkpoint_mode 2>/dev/null || echo "explicit")
low line 101

Access to hidden dotfiles in home directory

SourceSKILL.md
101_CHECKPOINT_PUSH=$(~/.claude/skills/gstack/bin/gstack-config get checkpoint_push 2>/dev/null || echo "false")
medium line 109

Access to hidden dotfiles in home directory

SourceSKILL.md
109In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`codex review`, writes to `~/.gstack/`, writes to the plan file, and `open` for generated artifacts.
medium line 117

Access to hidden dotfiles in home directory

SourceSKILL.md
117If `SKILL_PREFIX` is `"true"`, suggest/invoke `/gstack-*` names. Disk paths stay `~/.claude/skills/gstack/[skill-name]/SKILL.md`.
medium line 119

Access to hidden dotfiles in home directory

SourceSKILL.md
119If output shows `UPGRADE_AVAILABLE <old> <new>`: read `~/.claude/skills/gstack/gstack-upgrade/SKILL.md` and follow the "Inline upgrade flow" (auto-upgrade if configured, otherwise AskUserQuestion with
medium line 124

Access to hidden dotfiles in home directory

SourceSKILL.md
124- Missing `~/.claude/skills/gstack/.feature-prompted-continuous-checkpoint`: AskUserQuestion for Continuous checkpoint auto-commits. If accepted, run `~/.claude/skills/gstack/bin/gstack-config set che
medium line 125

Access to hidden dotfiles in home directory

SourceSKILL.md
125- Missing `~/.claude/skills/gstack/.feature-prompted-model-overlay`: inform "Model overlays are active. MODEL_OVERLAY shows the patch." Always touch marker.
medium line 138

Access to hidden dotfiles in home directory

SourceSKILL.md
138If B: run `~/.claude/skills/gstack/bin/gstack-config set explain_level terse`.
low line 142

Access to hidden dotfiles in home directory

SourceSKILL.md
142rm -f ~/.gstack/.writing-style-prompt-pending
low line 143

Access to hidden dotfiles in home directory

SourceSKILL.md
143touch ~/.gstack/.writing-style-prompted
low line 152

Access to hidden dotfiles in home directory

SourceSKILL.md
152touch ~/.gstack/.completeness-intro-seen
medium line 165

Access to hidden dotfiles in home directory

SourceSKILL.md
165If A: run `~/.claude/skills/gstack/bin/gstack-config set telemetry community`
medium line 175

Access to hidden dotfiles in home directory

SourceSKILL.md
175If B→A: run `~/.claude/skills/gstack/bin/gstack-config set telemetry anonymous`
medium line 176

Access to hidden dotfiles in home directory

SourceSKILL.md
176If B→B: run `~/.claude/skills/gstack/bin/gstack-config set telemetry off`
low line 180

Access to hidden dotfiles in home directory

SourceSKILL.md
180touch ~/.gstack/.telemetry-prompted
medium line 193

Access to hidden dotfiles in home directory

SourceSKILL.md
193If A: run `~/.claude/skills/gstack/bin/gstack-config set proactive true`
medium line 194

Access to hidden dotfiles in home directory

SourceSKILL.md
194If B: run `~/.claude/skills/gstack/bin/gstack-config set proactive false`
low line 198

Access to hidden dotfiles in home directory

SourceSKILL.md
198touch ~/.gstack/.proactive-prompted
medium line 239

Access to hidden dotfiles in home directory

SourceSKILL.md
239If B: run `~/.claude/skills/gstack/bin/gstack-config set routing_declined true` and say they can re-enable with `gstack-config set routing_declined false`.
medium line 243

Access to hidden dotfiles in home directory

SourceSKILL.md
243If `VENDORED_GSTACK` is `yes`, warn once via AskUserQuestion unless `~/.gstack/.vendoring-warned-$SLUG` exists:
medium line 255

Access to hidden dotfiles in home directory

SourceSKILL.md
2553. Run `~/.claude/skills/gstack/bin/gstack-team-init required` (or `optional`)
medium line 257

Access to hidden dotfiles in home directory

SourceSKILL.md
2575. Tell the user: "Done. Each developer now runs: `cd ~/.claude/skills/gstack && ./setup --team`"
low line 263

Access to hidden dotfiles in home directory

SourceSKILL.md
263eval "$(~/.claude/skills/gstack/bin/gstack-slug 2>/dev/null)" 2>/dev/null || true
low line 264

Access to hidden dotfiles in home directory

SourceSKILL.md
264touch ~/.gstack/.vendoring-warned-${SLUG:-unknown}
low line 367

Access to hidden dotfiles in home directory

SourceSKILL.md
367_BRAIN_SYNC_BIN="~/.claude/skills/gstack/bin/gstack-brain-sync"
low line 368

Access to hidden dotfiles in home directory

SourceSKILL.md
368_BRAIN_CONFIG_BIN="~/.claude/skills/gstack/bin/gstack-config"
medium line 472

Access to hidden dotfiles in home directory

SourceSKILL.md
472If A/B and `~/.gstack/.git` is missing, ask whether to run `gstack-artifacts-init`. Do not block the skill.
low line 477

Access to hidden dotfiles in home directory

SourceSKILL.md
477"~/.claude/skills/gstack/bin/gstack-brain-sync" --discover-new 2>/dev/null || true
low line 478

Access to hidden dotfiles in home directory

SourceSKILL.md
478"~/.claude/skills/gstack/bin/gstack-brain-sync" --once 2>/dev/null || true
low line 521

Access to hidden dotfiles in home directory

SourceSKILL.md
521eval "$(~/.claude/skills/gstack/bin/gstack-slug 2>/dev/null)"
medium line 676

Access to hidden dotfiles in home directory

SourceSKILL.md
676Before each AskUserQuestion, choose `question_id` from `scripts/question-registry.ts` or `{skill}-{slug}`, then run `~/.claude/skills/gstack/bin/gstack-question-preference --check "<id>"`. `AUTO_DECID
low line 680

Access to hidden dotfiles in home directory

SourceSKILL.md
680~/.claude/skills/gstack/bin/gstack-question-log '{"skill":"codex","question_id":"<id>","question_summary":"<short>","category":"<approval|clarification|routing|cherry-pick|feedback-loop>","door_type":
low line 689

Access to hidden dotfiles in home directory

SourceSKILL.md
689~/.claude/skills/gstack/bin/gstack-question-preference --write '{"question_id":"<id>","preference":"<pref>","source":"inline-user","free_text":"<optional original words>"}'
medium line 704

Access to hidden dotfiles in home directory

SourceSKILL.md
704Before building anything unfamiliar, **search first.** See `~/.claude/skills/gstack/ETHOS.md`.
low line 709

Access to hidden dotfiles in home directory

SourceSKILL.md
709jq -n --arg ts "$(date -u +%Y-%m-%dT%H:%M:%SZ)" --arg skill "SKILL_NAME" --arg branch "$(git branch --show-current 2>/dev/null)" --arg insight "ONE_LINE_SUMMARY" '{ts:$ts,skill:$skill,branch:$branch,i
low line 727

Access to hidden dotfiles in home directory

SourceSKILL.md
727~/.claude/skills/gstack/bin/gstack-learnings-log '{"skill":"SKILL_NAME","type":"operational","key":"SHORT_KEY","insight":"DESCRIPTION","confidence":N,"source":"observed"}'
medium line 737

Access to hidden dotfiles in home directory

SourceSKILL.md
737`~/.gstack/analytics/`, matching preamble analytics writes.
low line 744

Access to hidden dotfiles in home directory

SourceSKILL.md
744rm -f ~/.gstack/analytics/.pending-"$_SESSION_ID" 2>/dev/null || true
low line 746

Access to hidden dotfiles in home directory

SourceSKILL.md
746~/.claude/skills/gstack/bin/gstack-timeline-log '{"skill":"SKILL_NAME","event":"completed","branch":"'$(git branch --show-current 2>/dev/null || echo unknown)'","outcome":"OUTCOME","duration_s":"'"$_T
low line 749

Access to hidden dotfiles in home directory

SourceSKILL.md
749echo '{"skill":"SKILL_NAME","duration_s":"'"$_TEL_DUR"'","outcome":"OUTCOME","browse":"USED_BROWSE","session":"'"$_SESSION_ID"'","ts":"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'"}' >> ~/.gstack/analytics/skill-
low line 752

Access to hidden dotfiles in home directory

SourceSKILL.md
752if [ "$_TEL" != "off" ] && [ -x ~/.claude/skills/gstack/bin/gstack-telemetry-log ]; then
low line 753

Access to hidden dotfiles in home directory

SourceSKILL.md
753~/.claude/skills/gstack/bin/gstack-telemetry-log \
medium line 763

Access to hidden dotfiles in home directory

SourceSKILL.md
763In plan mode before ExitPlanMode: if the plan file lacks `## GSTACK REVIEW REPORT`, run `~/.claude/skills/gstack/bin/gstack-review-read` and append the standard runs/status/findings table. With `NO_RE
low line 828

Access to hidden dotfiles in home directory

SourceSKILL.md
828_TEL=$(~/.claude/skills/gstack/bin/gstack-config get telemetry 2>/dev/null || echo off)
low line 829

Access to hidden dotfiles in home directory

SourceSKILL.md
829source ~/.claude/skills/gstack/bin/gstack-codex-probe 2>/dev/null && _gstack_codex_log_event "codex_cli_missing" 2>/dev/null || true
low line 841

Access to hidden dotfiles in home directory

SourceSKILL.md
841_TEL=$(~/.claude/skills/gstack/bin/gstack-config get telemetry 2>/dev/null || echo off)
low line 842

Access to hidden dotfiles in home directory

SourceSKILL.md
842source ~/.claude/skills/gstack/bin/gstack-codex-probe
medium line 858

Access to hidden dotfiles in home directory

SourceSKILL.md
858set, or `${CODEX_HOME:-~/.codex}/auth.json` exists. Avoids false-negatives for
medium line 872

Access to hidden dotfiles in home directory

SourceSKILL.md
872(`CLAUDE_PLANS_DIR` set), a global `~/.claude/skills/gstack/` install, or a CI
low line 876

Access to hidden dotfiles in home directory

SourceSKILL.md
876eval "$(~/.claude/skills/gstack/bin/gstack-paths)"
medium line 880

Access to hidden dotfiles in home directory

SourceSKILL.md
880`"$TMP_ROOT"` rather than hardcoded `~/.claude/plans` or `/tmp/codex-*`.
medium line 922

Access to hidden dotfiles in home directory

SourceSKILL.md
922> IMPORTANT: Do NOT read or execute any files under ~/.claude/, ~/.agents/, .claude/skills/, or agents/. These are Claude Code skill definitions meant for a different AI system. They contain bash scri
low line 946

Access to hidden dotfiles in home directory

SourceSKILL.md
946_gstack_codex_timeout_wrapper 330 codex review "IMPORTANT: Do NOT read or execute any files under ~/.claude/, ~/.agents/, .claude/skills/, or agents/. These are Claude Code skill definitions meant for
low line 951

Access to hidden dotfiles in home directory

SourceSKILL.md
951echo "Codex stalled past 5.5 minutes. Common causes: model API stall, long prompt, network issue. Try re-running. If persistent, split the prompt or check ~/.codex/logs/."
low line 962

Access to hidden dotfiles in home directory

SourceSKILL.md
962codex review "IMPORTANT: Do NOT read or execute any files under ~/.claude/, ~/.agents/, .claude/skills/, or agents/. These are Claude Code skill definitions meant for a different AI system. Do NOT mod
low line 1020

Access to hidden dotfiles in home directory

SourceSKILL.md
1020~/.claude/skills/gstack/bin/gstack-review-log '{"skill":"codex-review","timestamp":"TIMESTAMP","status":"STATUS","gate":"GATE","findings":N,"findings_fixed":N,"commit":"'"$(git rev-parse --short HEAD)
medium line 1130

Access to hidden dotfiles in home directory

SourceSKILL.md
1130"IMPORTANT: Do NOT read or execute any files under ~/.claude/, ~/.agents/, .claude/skills/, or agents/. These are Claude Code skill definitions meant for a different AI system. Do NOT modify agents/op
medium line 1135

Access to hidden dotfiles in home directory

SourceSKILL.md
1135"IMPORTANT: Do NOT read or execute any files under ~/.claude/, ~/.agents/, .claude/skills/, or agents/. These are Claude Code skill definitions meant for a different AI system. Do NOT modify agents/op
low line 1189

Access to hidden dotfiles in home directory

SourceSKILL.md
1189echo "Codex stalled past 10 minutes. Common causes: model API stall, long prompt, network issue. Try re-running. If persistent, split the prompt or check ~/.codex/logs/."
medium line 1259

Access to hidden dotfiles in home directory

SourceSKILL.md
1259root and cannot access `~/.claude/plans/` or any files outside the repo. You MUST
medium line 1273

Access to hidden dotfiles in home directory

SourceSKILL.md
1273"IMPORTANT: Do NOT read or execute any files under ~/.claude/, ~/.agents/, .claude/skills/, or agents/. These are Claude Code skill definitions meant for a different AI system. Do NOT modify agents/op
medium line 1285

Access to hidden dotfiles in home directory

SourceSKILL.md
1285"IMPORTANT: Do NOT read or execute any files under ~/.claude/, ~/.agents/, .claude/skills/, or agents/. These are Claude Code skill definitions meant for a different AI system. Do NOT modify agents/op
low line 1336

Access to hidden dotfiles in home directory

SourceSKILL.md
1336echo "Codex stalled past 10 minutes. Common causes: model API stall, long prompt, network issue. Try re-running. If persistent, split the prompt or check ~/.codex/logs/."
low line 1358

Access to hidden dotfiles in home directory

SourceSKILL.md
1358echo "Codex stalled past 10 minutes. Common causes: model API stall, long prompt, network issue. Try re-running. If persistent, split the prompt or check ~/.codex/logs/."
medium line 1441

Access to hidden dotfiles in home directory

SourceSKILL.md
1441- **Timeout (inner `timeout` wrapper, exit 124):** If the shell `timeout 600` wrapper fires first, the skill's hang-detection block auto-logs a telemetry event + operational learning and prints: "Code
low line 329

Unicode escape sequences

SourceSKILL.md
329writes `\u3103` thinking it is 管 U+7BA1, but `\u3103` is
low line 148

External URL reference

SourceSKILL.md
148If `LAKE_INTRO` is `no`: say "gstack follows the **Boil the Lake** principle — do the complete thing when AI makes marginal cost near-zero. Read more: https://garryslist.org/posts/boil-the-ocean" Offe
low line 151

External URL reference

SourceSKILL.md
151open https://garryslist.org/posts/boil-the-ocean
Scanned on May 12, 2026
View Security Dashboard
Installation guide →