Skip to content

feiskyer/claude-code-settings / skills/codex-skill

codex-skill

Verified

Leverage OpenAI Codex/GPT models for autonomous code implementation, code review, and plan review. Triggers: "codex", "use gpt", "gpt-5", "let openai", "full-auto", "adversarial review", "second opinion review", "用codex", "让gpt实现", "对抗式审查", "让codex审查计划", "第二意见". Use this skill whenever the user wants to delegate coding tasks to OpenAI models, run code or plan reviews via codex, get a second-opinion review from a different model, or execute tasks in a sandboxed environment.

FileKindSize
SKILL.mdskill md10.7 KB
assets/review-output.schema.jsonconfig1.7 KB
evals/evals.jsonconfig5.9 KB
evals/make-fixture.shexecutablescript2.4 KB
evals/static-checks.shexecutablescript4.4 KB
references/cli-reference.mdmarkdown7.5 KB
references/examples.mdmarkdown2.6 KB
references/prompting-patterns.mdmarkdown9.9 KB
references/review-workflows.mdmarkdown7.5 KB

evals/make-fixture.sh

View on GitHub
#!/usr/bin/env bash
# 生成行为评测用的一次性小仓库(设计文档 §5.2)。
# 用法:
#   evals/make-fixture.sh [目标目录] [--broken-codex]
# 默认目录 /tmp/codex-skill-fixture;--broken-codex 附加坏的 ./bin/codex shim(eval-5 用)。
set -euo pipefail

DIR="${1:-/tmp/codex-skill-fixture}"
BROKEN="${2:-}"

rm -rf "$DIR"
mkdir -p "$DIR"
cd "$DIR"

cat > counter.py <<'EOF'
"""A tiny hit counter with per-key stats, shared across worker threads."""
import threading

_counts = {}
_history = []


def record_hit(key):
    # NOTE: called concurrently from multiple worker threads
    current = _counts.get(key, 0)
    _counts[key] = current + 1
    _history.append(key)


def get_count(key):
    return _counts.get(key, 0)


def total_hits():
    return len(_history)
EOF

cat > test_counter.py <<'EOF'
import sys
import threading

import counter

# Surface the check-then-act race reliably despite the GIL.
sys.setswitchinterval(1e-6)


def test_concurrent_hits_are_not_lost():
    threads = [
        threading.Thread(target=lambda: [counter.record_hit("home") for _ in range(50000)])
        for _ in range(8)
    ]
    for t in threads:
        t.start()
    for t in threads:
        t.join()
    assert counter.get_count("home") == 400000
EOF

cat > README.md <<'EOF'
# hitcounter

Tiny demo project: an in-memory hit counter used by a threaded web worker pool.

Run tests with `python -m pytest -q`.
EOF

git init -q
git add -A
git -c user.email=fixture@example.com -c user.name=fixture commit -qm "initial: hit counter with tests"

# 叠加一个未提交的改动:新增 get_recent() 带越界/语义 bug(review 评测的靶子)
cat >> counter.py <<'EOF'


def get_recent(n):
    """Return the n most recent hit keys, oldest first."""
    # BUG bait: n=0 returns the whole history instead of nothing,
    # and negative n silently returns a nonsense slice.
    return _history[-n:]
EOF

if [ "$BROKEN" = "--broken-codex" ]; then
  mkdir -p bin
  cat > bin/codex <<'EOF'
#!/usr/bin/env bash
echo "ERROR: authentication failed: token exchange rejected (invalid_grant)" >&2
echo "Run 'codex login' to re-authenticate." >&2
exit 1
EOF
  chmod +x bin/codex
  cat >> README.md <<'EOF'

## Tooling convention

All Codex CLI invocations in this project MUST go through the pinned wrapper `./bin/codex`
(it injects the team's provider config). Do not use a globally installed codex binary here.
EOF
fi

echo "fixture ready: $DIR"
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 470kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall