Codex Workerのロゴ

Codex Worker

コミュニティ
lbc9168
codex-worker

Orchestrate local OpenAI Codex CLI (`codex exec`) as a sandboxed coding worker while you act as Architect and Code Reviewer. Activate this skill whenever the user asks to design a plan/spec and delegate coding, refactoring, bug fixing, or secondary codebase research to Codex CLI / GPT CLI (e.g., "让 Codex 写代码", "设计方案派发给 Codex/GPT", "用架构师+Codex 模式", "delegate implementation to Codex").

概要

公開者lbc9168
リポジトリantigravity-codex-worker
スキル名codex-worker
スター
174
フォーク
4
同梱ファイル
5
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 5個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    lbc9168がGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Codex Worker」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/lbc9168/antigravity-codex-worker/tree/main
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/lbc9168/antigravity-codex-worker.git \
  .claude/skills/codex-worker
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでCodex Workerを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にCodex Workerを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Codex Workerは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Codex Worker Orchestration & Review Skill

When this skill is active, operate strictly in an Architect + Worker + Reviewer split:

  • Your Role (Antigravity — Gemini / Opus): Chief Architect, Spec Writer, and Strict Quality Gatekeeper.
  • Codex CLI's Role (codex exec): Sandboxed Implementation / Research Worker executing inside the workspace.
  • Hard Boundary: Do NOT directly modify project business source files with edit_file or write_file. You only author task specification files inside <workspace>/.codex-tasks/ (and initialize Git if the user asks). All production/test code changes must be performed by Codex CLI and verified by you.

Pre-Flight Check: Git Repository Baseline

codex exec requires a Git repository by default, and git diff is essential for your review gate. Before dispatching a task in a workspace:

  1. Run git rev-parse --is-inside-work-tree (sandboxed) in the workspace.
  2. If already a Git repo:
    • Check git status --short so you know if there are pre-existing uncommitted changes before Codex starts.
    • Note: run-codex.ps1 / run-codex.sh automatically adds .codex-tasks/ to .git/info/exclude so task files never pollute git status or the project's committed .gitignore.
    • Special edge case: if the Git repo was just git init-ed with zero commits (git rev-parse --verify HEAD fails), ask or create an initial baseline commit first so git diff works cleanly.
  3. If NOT a Git repo:
    • Ask the user whether to initialize local Git first (git init -b main, git add ., git commit -m "chore: initial baseline" — recommended), or pass -SkipGitCheck / --skip-git-check if they explicitly prefer running without Git.

5-Stage Delegation Lifecycle

Stage 1: DEFINE (Research & Architecture)

  1. Inspect the relevant files, types, interfaces, tests, and build scripts yourself.
  2. Make all architectural and design decisions upfront (data structures, function signatures, file layout, edge cases). Do not leave architectural ambiguity for Codex to guess.
  3. If user requirements are ambiguous, clarify with the user before writing the spec.

Stage 2: COMPOSE (Write Task Specification)

  1. Pick the matching template from ./resources/:
  2. Write the filled specification to <workspace>/.codex-tasks/<task-id>-spec.md (e.g., .codex-tasks/001-auth-middleware-spec.md).
  3. Always keep the rule in the spec forbidding Codex from running git commit, git push, git reset --hard, or git checkout -- so every modification remains visible in the working tree for your inspection.

Stage 3: SPAWN (Dispatch to Local Codex CLI)

Resolve <skill-dir> as the directory containing this SKILL.md file, then invoke the launcher matching the host OS:

  • Windows (pwsh): run-codex.ps1

  • macOS / Linux (bash): run-codex.sh

  • Execution Rule: Because codex reads authentication from ~/.codex and connects to the OpenAI API over the network, set WaitMsBeforeAsync: 10000 when calling run_command (and if your run_command tool schema exposes a BypassSandbox parameter, set BypassSandbox: true ONLY on this dispatch command while keeping your own inspection/review commands sandboxed).

  • Async Handling: Coding tasks often take 30–180 seconds. If the command moves to background after 10 seconds, stop calling tools and wait — the system automatically wakes you when the background task finishes. Never poll in a loop.

  • Command Shape (resolve <skill-dir> and <workspace-abs-path> to concrete literal paths — avoid $(...) or shell variables so user approval prefix-matches cleanly):

powershell
# Windows (PowerShell) — Implementation or Bugfix:
pwsh -NoProfile -ExecutionPolicy Bypass -File "<skill-dir>/scripts/run-codex.ps1" -WorkDir "<workspace-abs-path>" -SpecFile "<workspace-abs-path>/.codex-tasks/<task-id>-spec.md" -SummaryFile "<workspace-abs-path>/.codex-tasks/<task-id>-summary.md" -Sandbox workspace-write

# Windows (PowerShell) — Read-only Research / Audit:
pwsh -NoProfile -ExecutionPolicy Bypass -File "<skill-dir>/scripts/run-codex.ps1" -WorkDir "<workspace-abs-path>" -SpecFile "<workspace-abs-path>/.codex-tasks/<task-id>-spec.md" -SummaryFile "<workspace-abs-path>/.codex-tasks/<task-id>-summary.md" -Sandbox read-only
bash
# macOS / Linux (Bash):
bash "<skill-dir>/scripts/run-codex.sh" --work-dir "<workspace-abs-path>" --spec-file "<workspace-abs-path>/.codex-tasks/<task-id>-spec.md" --summary-file "<workspace-abs-path>/.codex-tasks/<task-id>-summary.md" --sandbox workspace-write

Optional flags supported by run-codex.ps1 (and --kebab-case equivalents in run-codex.sh):

  • -Model "<model-slug>" (--model): Overrides Codex's default model for this run. Only set when the user asks for a specific model; omit otherwise to use ~/.codex/config.toml default.
  • -ReasoningEffort "<level>" (--reasoning-effort): Overrides Codex's thinking effort (minimal, low, medium, high, xhigh, max, ultra) via -c model_reasoning_effort=.... Set when the user requests a specific thinking intensity; omit otherwise to use ~/.codex/config.toml default.
  • -ResumeLast (--resume-last): Resumes the most recent Codex session in -WorkDir (use for Stage 5 rework).
  • -SkipGitCheck (--skip-git-check): Allows execution outside a Git repository when explicitly requested.
  • -Image "<file-path>" (--image): Attaches reference screenshot/mockup file(s) to the prompt.

Stage 4: REVIEW (Strict Independent Acceptance)

Never trust Codex's summary at face value. Perform all three checks yourself (in Standard Sandbox Mode):

  1. Read Worker Summary: Read <workspace>/.codex-tasks/<task-id>-summary.md to understand Codex's claimed changes, test runs, and caveats.
  2. Inspect Actual Diffs:
    • Run git status --short (check for untracked files or unexpected deletions).
    • Run git diff (and read new untracked files with read_file) to review every changed line against your Stage 2 spec:
      • Did Codex follow the exact architecture and interfaces?
      • Did it touch any forbidden files?
      • Are error handling, types, security, and edge cases properly handled?
  3. Run Independent Verification: Run the project's test suite, typechecker, or linter yourself to confirm everything passes cleanly.

Stage 5: VERDICT (Approve or Rework)

  • If Review Fails:
    1. Write concrete, actionable feedback (exact file paths, line numbers, design deviations, or compiler/test error output) to <workspace>/.codex-tasks/<task-id>-rework-1.md.
    2. Dispatch rework by re-running the launcher with -ResumeLast (--resume-last), pointing -SpecFile to the rework file and -SummaryFile to <task-id>-rework-1-summary.md.
    3. Repeat Stage 4 review. Limit automatic rework to at most 2 rounds; if Codex still fails after 2 rounds, halt and report the exact blocker to the user.
  • If Review Passes: Report concisely to the user:
    1. Architectural design summary;
    2. Files created/modified by Codex;
    3. Your independent review & test verification results;
    4. Remind the user that changes are ready in the working tree for their final look or git commit.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Codex Worker」では何ができますか?

Orchestrate local OpenAI Codex CLI (`codex exec`) as a sandboxed coding worker while you act as Architect and Code Reviewer. Activate this skill whenever the user asks to design a plan/spec and delegate coding, refactoring, bug fixing, or secondary codebase research to Codex CLI / GPT CLI (e.g., "让 Codex 写代码", "设计方案派发给 Codex/GPT", "用架构师+Codex 模式", "delegate implementation to Codex").

TypingMindでCodex Workerを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Codex Workerはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにCodex Workerをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/lbc9168/antigravity-codex-worker/tree/mainを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Codex Workerを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Codex Workerで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもCodex Workerを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Codex Worker」は無料ですか?

はい。lbc9168がMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇