ask-codex — скилл для Claude Code: запрос GPT-5 и установка
Скилл ask-codex для Claude Code отправляет вопрос о текущем репозитории OpenAI Codex (GPT-5) и возвращает ответ без запуска субагента. Для разовых вопросов, второго мнения и поиска багов.
MIT ★ 195 обновлён 2026-08-10
/plugin marketplace add Sateezg/codex-bridge
/plugin install codex-bridge@codex-bridgeЧто делает ask-codex
Скилл вызывает команду codex-run, которая отправляет вопрос Codex, читает репозиторий и возвращает финальный ответ на stdout. По умолчанию Codex работает в режиме только для чтения, изменять файлы он не может.
Вопрос должен быть самодостаточным: Codex не видит текущий диалог. Укажи файлы или директории, что уже проверено, какой формат ответа нужен (да/нет, строка с ошибкой, краткая причина). Пример: `codex-run -C /path/to/repo "В src/auth/session.ts функция refreshToken() иногда возвращает токен, который сразу падает на валидации. Подозреваю расхождение часов в сравнении exp. Прочитай этот файл плюс src/auth/jwt.ts, назови самую вероятную причину и точную строку. Кратко."`
Флаг -s workspace-write разрешает Codex менять файлы, -r продолжает предыдущую сессию для follow-up вопроса, --timeout 1800 увеличивает лимит ожидания для больших репозиториев. Каждый вызов тратит квоту плана ChatGPT пользователя: один вопрос — один вызов. Ответ Codex может ссылаться на несуществующие файлы или строки: проверяй перед применением.
Какие задачи решает
- получить второе мнение по архитектурному решению
- найти причину бага в незнакомой части кодовой базы
- задать разовый вопрос GPT-5 про репозиторий без запуска субагента
Примеры запросов агенту
- Спроси Codex, почему
refreshToken()возвращает невалидный токен - Узнай у GPT, какой файл отвечает за кеширование сессий
- Получи второе мнение по дизайну модуля аутентификации
Как установить ask-codex
1Через маркетплейс плагинов
/plugin marketplace add Sateezg/codex-bridge/plugin install codex-bridge@codex-bridgeКоманда ставит плагин codex-bridge целиком, со всеми его скиллами
2Вручную: положить файлы
~/.claude/skills/ask-codex/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/ask-codex/
Вручную: положить файлы
.agents/skills/ask-codex/SKILL.mdДля всех проектов — ~/.agents/skills/
Вручную: положить файлы
.cursor/skills/ask-codex/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install Sateezg/codex-bridge skills/ask-codex2Вручную: положить файлы
.github/skills/ask-codex/SKILL.mdКомандой платформы
gemini skills install https://github.com/Sateezg/codex-bridge --path skills/ask-codexВручную: положить файлы
.devin/skills/ask-codex/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы об ask-codex
Как установить ask-codex в Claude Code?
Выполни /plugin marketplace add Sateezg/codex-bridge, затем /plugin install codex-bridge@codex-bridge. Для Codex используй npx skills add Sateezg/codex-bridge --skill ask-codex -a codex.
Что делает ask-codex?
Скилл отправляет вопрос OpenAI Codex (GPT-5) про текущий репозиторий и возвращает ответ без создания субагента. По умолчанию Codex читает код, но не изменяет его.
Можно ли задать несколько вопросов подряд?
Да, используй флаг -r для продолжения предыдущей сессии: codex-run -C /path/to/repo -r "Теперь покажи минимальный патч". Это сохраняет контекст Codex и не читает репозиторий заново.
Исходный текст
SKILL.md · MIT
---
description: Ask OpenAI Codex (GPT-5) a one-off question about the current repo and get its answer back, without spinning up a subagent. Use when the user says "ask codex", "what does GPT think", "get a second opinion on this", or when you want an independent read on a design call, a tricky bug, or an unfamiliar area of the codebase.
---
# Ask Codex a question
For a single question with a single answer. Anything multi-step or long-running
belongs to a subagent (`codex-second-opinion`, `codex-reviewer`, `codex-debugger`).
```bash
codex-run -C <repo-dir> "<self-contained question>"
```
`codex-run` prints **only Codex's final answer** on stdout (it captures the final
message via `codex exec -o` rather than dumping the whole event log). It defaults
to a read-only sandbox, so Codex can read the repo but cannot change anything.
## Writing the question
Codex has zero knowledge of this conversation. Every question must stand alone:
- Name the files or directories it should look at.
- State what you already know or already tried.
- Say what shape of answer you want ("name the single most likely cause and the
line to look at", "answer yes/no then justify in three sentences").
```bash
codex-run -C /path/to/repo \
"In src/auth/session.ts, refreshToken() occasionally returns a token that fails validation immediately. I suspect a clock-skew issue in the exp comparison. Read that file plus src/auth/jwt.ts and tell me the single most likely root cause and the exact line. Be concise."
```
## Useful options
```
-s workspace-write let Codex modify files (only when the user asked for that)
-m gpt-5-codex model override
-r continue the previous codex session (follow-up question)
--timeout 1800 raise the 900s default for a big repo sweep
--raw also print Codex's full event log to stderr, for debugging
```
Use `-r` for a genuine follow-up — it keeps Codex's own context and avoids paying
to re-read the repo:
```bash
codex-run -C /path/to/repo -r "Now show me the minimal patch for that."
```
## Rules
1. **Bash timeout ≥ 600000 ms** (10 min) — Codex explores the repo before answering.
2. **Report its answer as Codex's**, not as your own conclusion. Quote it, then add
your own take separately if you disagree — the value here is having two
independent opinions, and blending them destroys that.
3. **Sanity-check it.** Codex can confidently cite files or lines that don't exist.
Verify any specific claim against the repo before acting on it.
4. **Read-only unless told otherwise.** Don't pass `-s workspace-write` on your own
initiative.
5. Each call spends the user's ChatGPT plan quota. One question, one call.
© Sateezg · MIT · Sateezg/codex-bridge