firstmate-codexapp
できること
このスキルは、Firstmateのタスクに、Codex Desktopのスレッドを使う方法を説明します。Firstmateを、Codex Desktopの中で動かしている人向けです。作業が見えるスレッドに表示されてほしい人に役立ちます。
使う場面
- ✓Firstmateのタスクを、Codex Desktopの見えるスレッドとして表示させたいとき。
- ✓既存のCodexのスレッドに、Firstmateの作業のメッセージを送りたいとき。
- ✓Firstmate用に使った終わったCodexのスレッドを、アーカイブしたいとき。
スキルのリンク
https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/firstmate-codexapp/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このFirstmateのタスクのために、私のプロジェクトで見えるCodex Desktopのスレッドを開始してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、Codex Desktopの中で動いていること、そしてプロジェクトがそこに存在することを確認します。その後、Desktopのスレッドツールを使ってスレッドを作成、読み取り、またはメッセージを送ります。プロジェクトがない場合は止まります。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
firstmate-codexapp
Overview
Use this playbook when Firstmate work needs a visible Codex Desktop thread.
The current supported shape is Desktop host-tool choreography plus an explicit status-file return-channel check, not a codex-app value in FM_BACKEND.
Boundary
Codex Desktop visible threads are companion host-tool workflows, not a selectable Firstmate backend.
Read docs/codex-app-backend.md when it exists in this checkout; that document owns the acceptance contract, bridge requirement, status-return requirement, and staged rollout.
If local helper scripts exist for Codex App work, use only helpers explicitly provided by the operator or maintained by Firstmate.
For helpers outside bin/, inspect the source or header before running --help.
Preflight
- Confirm this session is running inside Codex Desktop and that the host tools are exposed.
Search exact names when needed:
create_thread,list_threads,read_thread,send_message_to_thread,archive, andset_thread_archived. - Confirm the target repository is already saved as a Codex Desktop project. No host tool currently creates Codex App projects for an agent, so the human must add the project in Desktop before a created thread can reliably land there.
- Do not create projectless threads for repo work. If the project is absent, stop and ask for the project to be added or use a normal Firstmate backend instead.
- Decide whether this is a real Firstmate-managed task or a visible companion thread.
A real task needs a task id, an isolated worktree or Desktop-owned cwd, a branch plan, and a writable
state/<id>.statuspath.
Create And Send
When creating a visible thread, use the Desktop host tool, not shell imitation. Target the saved project and ask the worker to start by reporting:
pwd
git rev-parse --show-toplevel
git branch --show-current
git log --oneline --max-count=3
For writable repo work, instruct the worker to use the Codex-created current directory.
Do not tell it to cd into the saved project checkout for edits, commits, no-mistakes, pushes, or PR work.
When sending follow-up instructions, use send_message_to_thread.
If the user types directly into the visible thread, treat that as authoritative and reconcile from read_thread instead of undoing it.
Status Return Channel
A Desktop-owned Codex thread can append to Firstmate status files only when the prompt gives an absolute path and the Desktop permission context can write that checkout. That makes status writes a verified return-channel requirement, not a fact to assume.
For a Firstmate-managed task, include an explicit status instruction:
Append supervisor-visible status lines to <absolute-firstmate-home>/state/<task-id>.status.
Use only these prefixes for status changes: working:, needs-decision:, blocked:, paused:, done:, failed:.
Follow the task brief's status-reporting rule for declaring and resolving waits; bin/fm-brief.sh owns that rule.
Before doing substantive work, append "working: Codex Desktop thread started".
Verify the return channel before treating the thread as supervised:
read_threadshows the worker attempted the status write.- The local
state/<task-id>.statusfile contains the expected line. - If available, the transcript includes a file-change entry for that status file.
If the thread cannot write the status file, keep it as a visible companion thread only. Do not claim it is a complete Firstmate backend.
Observe And Reconcile
Use read_thread for thread truth.
Use list_threads only to find or recover a visible thread id, not as a replacement for reading the transcript.
For Firstmate reconciliation, prefer concrete evidence:
- thread id and project
- current Desktop-owned cwd
- branch name
- last meaningful thread state
- latest status file line
- PR URL when one exists
Avoid repeating long transcripts into Firstmate docs or PR bodies.
Summarize only the host-tool calls, the status-file result, and the archive result.
When reporting a Desktop-thread result to the captain, translate status prefixes and return-channel evidence through AGENTS.md section 9.
Archive
Archive through the Desktop host tool: archive when that is the exposed primitive, or set_thread_archived(threadId=<id>, archived=true) when that is the exposed tool name.
Archiving can remove the thread from normal sidebar/project views, but it should not erase the transcript or landed work.
For companion
よくある質問
Codex Desktopの外でも動きますか?
いいえ。セッションがCodex Desktopの中で、必要なツールとともに動いている場合にだけ動きます。
エージェントが新しいプロジェクトを作れますか?
いいえ。プロジェクトはCodex Desktopで先に追加されている必要があり、なければエージェントは止まって尋ねます。
これはバックエンドの設定ですか?
いいえ。設定画面でのバックエンドの選択ではなく、Desktopのホストツールのための手順です。
詳細
作者による元の説明
Load before creating, reading, steering, archiving, debugging, or reviewing a Codex App visible thread for Firstmate work, and before responding to requests to make Codex App native to Firstmate.
repo: kunchenguid/firstmate
人気
- GitHubのスター
- 8.5k
- ランキング
- #12434
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
afk
8.5kエージェントが、あなたが離れている間も作業を見守り、あなたの判断が必要なものを保留し、戻ったときに明確な報告を送れるよう支援します。
ahoy
8.5kエージェントが、セッションで何が起きたかの短い振り返りを示し、まだあなたの答えを待っている判断を一緒に確認できるよう支援します。
ask-user-authority
8.5kエージェントが、検証の中で出た質問を、合意された計画に明らかに合う場合は自分で判断し、不明確または危険な場合にだけあなたに尋ねるよう支援します。
away-quiet-supervision
8.5kエージェントが、不在またはおとなしいモードで作業を監督するときの安全ルールに従い、メッセージを明確に保ち、あなたが必要な判断を保留できるよう支援します。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。