Przejdź do treści
Biblioteka skilli
AI i agenci · Integracja z narzędziem

codex

/codex

Deleguje zadania programistyczne agentowi OpenAI Codex CLI: budowa funkcji, refaktoryzacja, przeglądy pull requestów i masowe naprawianie zgłoszeń, w repozytorium git.

Repozytorium
runbookhermes ↗
Licencja
MIT
Ostatnia zmiana repozytorium
18.05.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
2
Przestarzałość

Brak sygnałów. Repozytorium zmienione 18.05.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Deleguje zadania programistyczne agentowi OpenAI Codex CLI: budowa funkcji, refaktoryzacja, przeglądy pull requestów i masowe naprawianie zgłoszeń, w repozytorium git.

Oryginalny opis (EN)

Delegate coding tasks to OpenAI Codex CLI agent. Use for building features, refactoring, PR reviews, and batch issue fixing. Requires the codex CLI and a git repository.

Jak działa

  1. Prerequisites
  2. One-Shot Tasks
  3. Background Mode (Long Tasks)
  4. Key Flags
  5. PR Reviews
  6. Parallel Issue Fixing with Worktrees
  7. Batch PR Reviews
  8. Rules
Sekcje z nagłówków SKILL.md, w oryginale · 103 linii, 475 słów
Podgląd SKILL.md
---
name: codex
description: Delegate coding tasks to OpenAI Codex CLI agent. Use for building features, refactoring, PR reviews, and batch issue fixing. Requires the codex CLI and a git repository.
version: 1.0.0
author: Hermes Agent
license: MIT
metadata:
  hermes:
    tags: [Coding-Agent, Codex, OpenAI, Code-Review, Refactoring]
    related_skills: [claude-code, hermes-agent]
---

# Codex CLI

Delegate coding tasks to [Codex](https://github.com/openai/codex) via the Hermes terminal. Codex is OpenAI's autonomous coding agent CLI.

## Prerequisites

- Codex installed: `npm install -g @openai/codex`
- OpenAI API key configured
- **Must run inside a git repository** — Codex refuses to run outside one
- Use `pty=true` in terminal calls — Codex is an interactive terminal app

## One-Shot Tasks

```
terminal(command="codex exec 'Add dark mode toggle to settings'", workdir="~/project", pty=true)
```

For scratch work (Codex needs a git repo):
```
terminal(command="cd $(mktemp -d) && git init && codex exec 'Build a snake game in Python'", pty=true)
```

## Background Mode (Long Tasks)

```
# Start in background with PTY
terminal(command="codex exec --full-auto 'Refactor the auth module'", workdir="~/project", background=true, pty=true)
# Returns session_id

# Monitor progress
process(action="poll", session_id="<id>")
process(action="log", session_id="<id>")

# Send input if Codex asks a question
process(action="submit", session_id="<id>", data="yes")

# Kill if needed
process(action="kill", session_id="<id>")
```

## Key Flags

| Flag | Effect |
|------|--------|
| `exec "prompt"` | One-shot execution, exits when done |
| `--full-auto` | Sandboxed but auto-approves file changes in workspace |
| `--yolo` | No sandbox, no approvals (fastest, most dangerous) |

## PR Reviews

Clone to a temp directory for safe review:

```
terminal(command="REVIEW=$(mktemp -d) && git clone https://github.com/user/repo.git $REVIEW && cd $REVIEW && gh pr checkout 42 && codex review --base origin/main", pty=true)
```

## Parallel Issue Fixing with Worktrees

```
# Create worktrees
terminal(command="git worktree add -b fix/issue-78 /tmp/issue-78 main", workdir="~/project")
terminal(command="git worktree add -b fix/issue-99 /tmp/issue-99 main", workdir="~/project")

# Launch Codex in each
terminal(command="codex --yolo exec 'Fix issue #78: <description>. Commit when done.'", workdir="/tmp/issue-78", background=true, pty=true)
terminal(command="codex --yolo exec 'Fix issue #99: <description>. Commit when done.'", workdir="/tmp/issue-99", background=true, pty=true)

# Monitor
process(action="list")

# After completion, push and create PRs
terminal(command="cd /tmp/issue-78 && git push -u origin fix/issue-78")
terminal(command="gh pr create --repo user/repo --head fix/issue-78 --title 'fix: ...' --body '...'")

# Cleanup
terminal(command="git worktree remove /tmp/issue-78", workdir="~/project")
```

## Batch PR Reviews

```
# Fetch all PR refs
terminal(command="git fetch origin '+refs/pull/*/head:refs/remotes/origin/pr/*'", workdir="~/project")

# Review multiple PRs in parallel
terminal(command="codex exec 'Review PR #86. git diff origin/main...origin/pr/86'", workdir="~/project", background=true, pty=true)
terminal(command="codex exec 'Review PR #87. git diff origin/main...origin/pr/87'", workdir="~/project", background=true, pty=true)

# Post results
terminal(command="gh pr comment 86 --body '<review>'", workdir="~/project")
```

## Rules

1. **Always use `pty=true`** — Codex is an interactive terminal app and hangs without a PTY
2. **Git repo required** — Codex won't run outside a git directory. Use `mktemp -d && git init` for scratch
3. **Use `exec` for one-shots** — `codex exec "prompt"` runs and exits cleanly
4. **`--full-auto` for building** — auto-approves changes within the sandbox
5. **Background for long tasks** — use `background=true` and monitor with `process` tool
6. **Don't interfere** — monitor with `poll`/`log`, be patient with long-running tasks
7. **Parallel is fine** — run multiple Codex processes at once for batch work

Wersje

RepozytoriumWynikLicencja
Ta strona · tommy-yw/runbookhermes100MIT
davila7/claude-code-templates100MIT
tigercosmos/japanese-podcast-learner100MIT
puck-muling/peer-agent100MIT
ispc/ispc100BSD-3-Clause
dzhng/skills100MIT
majiayu000/spellbook100MIT
onlypfachi/chief100MIT
dzhng/skills100MIT

Migawka bazy z 13.11.2026 · wersja paczki c0ef178e0f7a (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 95argentos-codex
    Zleca agentowi OpenAI Codex CLI budowanie funkcji, refaktoryzację, przeglądy PR i seryjne naprawy zgłoszeń w repozytorium git.
  • 95community-codex
    Zleca zadania kodowe agentowi Codex CLI: budowę funkcji, refaktoryzację, przeglądy PR i seryjne naprawy zgłoszeń.
  • 100claude-code
    Deleguje zadania programistyczne do Claude Code (agent CLI Anthropic): budowa funkcji, refaktoryzacja, przeglądy PR i iteracyjne kodowanie, wymaga zainstalowanego CLI claude.
  • 100codex-delegate
    Deleguje zadania programistyczne do OpenAI Codex CLI wyłącznie na wyraźną prośbę użytkownika, a orkiestrator zachowuje odpowiedzialność za przegląd i włączenie zmian.
  • 100codex-delegate
    Deleguje zadania programistyczne do OpenAI Codex CLI wyłącznie na wyraźną prośbę użytkownika, a orkiestrator zachowuje odpowiedzialność za przegląd i włączenie zmian.
  • 90Codex Integration
    Deleguje złożone zadania kodowe do Codex CLI i koordynuje pracę między Claude a Codex.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.