updatefirstmate
できること
このスキルは、動作中のFirstmateとその副ヘルパーを最新版に更新します。Firstmateの新機能や修正を使いたい人向けです。
使う場面
- ✓Firstmateを最新版に更新したいとき。
- ✓新しいFirstmateのバージョンが公開されたと聞き、自分の環境を合わせたいとき。
- ✓Firstmateの更新後も、ヘルパーが古い指示を使っているとき。
スキルのリンク
https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/updatefirstmate/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“現在のタスクを中断せずに、Firstmateを最新版に更新してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、メインのヘルパーと各副ヘルパーのために、ソースから最新のファイルを取得します。また、ヘルパーが新しい指示を読むには、新しい会話を始める必要があることも説明します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
updatefirstmate
Self-update firstmate in place.
Firstmate is its own repo, behind the same no-mistakes gate as any project, so new tracked material (AGENTS.md, bin/, .agents/skills/, and public skills/) reaches main and then sits there until each running firstmate pulls it.
Only AGENTS.md, bin/, and .agents/skills/ are a running firstmate instruction surface; public skills/ is installer-facing and is not loaded by firstmate.
This skill performs that pull for the running main firstmate and every secondmate, without disturbing any in-flight work.
Updating is consumption, not publication: it only pulls from upstream, so every home runs it regardless of role, and the firstmate-repository publication boundary (firstmate-self-repo) never applies to it.
Pulling the files is only half of it.
A running agent holds AGENTS.md and every skill it has already loaded frozen from the moment it launched, and no verified harness offers a reload, so new bytes on disk change nothing for it until it starts a fresh conversation.
A re-read cannot substitute: it appends a second copy of the mate's own job description with no defined precedence, and it cannot reach a skill that is already loaded.
Replacing the agent is also the only thing that re-resolves the launch-time wiring - turn-end hooks, harness flags, per-harness feature switches - which the mate froze when it started and which nothing on disk describes.
That is why every live second mate is restarted after a successful update, including one that was already on the target commit. Launch-time wiring is not derivable from a file diff, so an unchanged tracked surface is not evidence the running agent is already on the current behavior. The only live mates that do not restart are the ones whose home the update pass had to skip, and the ones whose runtime cannot prove a restart; the updater keeps both cases honest and neither is reported as a reload.
One-time rollout note: the update that carries this change is still executed by the previous release, which restarts only the mates whose AGENTS.md or .agents/skills/ moved on that pass. After it completes, run bin/fm-secondmate-restart.sh <fm-id>... once with every live second mate ID, not only the ones that release named; later updates follow the normal flow below.
The source is origin unless this home has config/self-update-source, which names one remote branch for the primary to follow instead, with local secondmates following the primary's resulting commit; docs/configuration.md owns that contract, including its remote-secondmate limit.
The primary update is fast-forward only, while each secondmate uses the same guarded convergence path plus one narrow recovery for squash-merged local history.
For a remote route, it updates the configured Firstmate code root on that host from its own origin, then guardedly fast-forwards the persistent home to that code-root commit.
It never forces, never creates a merge commit, and never stashes.
A clean secondmate divergence advances with reset --keep only when a three-way tree proof shows its complete local result is already present at the target, which recognizes squash-merged contributions without discarding unique content.
Every other dirty, diverged, offline, or wrong-branch target is skipped and reported, and a genuine divergence leaves a durable state/.secondmate-update-reconcile/<id>.pending record that future bootstrap and update passes surface until convergence clears it.
A tracked-files fast-forward leaves the gitignored operational dirs (data/, state/, config/, projects/, .no-mistakes/) untouched, so a secondmate's in-flight work is never disrupted.
This touches only the firstmate repo and its own worktrees, never anything under projects/.
What it does
- Run the updater:
It fast-forwards this firstmate repo's default branch from origin, or from the configured self-update source, then updates every registered local or remote secondmate home through its placement-specific guarded path. When a source is configured it prints abin/fm-update.shself-update source:line first, and an unusable config file stops the whole update before anything moves; report that file to the captain rather than editing or removing it. It prints one status line per target (updated <old>..<new>/reconciled redundant divergence <old>..<new>/
よくある質問
現在の作業を中断しますか?
いいえ。進行中の作業を乱さずに更新すると、スキルに記されています。
ヘルパーはなぜ新しく始め直す必要があるのですか?
動作中のヘルパーは元の指示をメモリに保持しているため、新しいファイルは新しい会話になって初めて反映されます。
上級者である必要はありますか?
いいえ。スキルが更新の手順を実行し、結果を説明します。
詳細
作者による元の説明
Self-update a running firstmate and its secondmates to the latest from origin, or from a configured self-update source. Use when the captain invokes /updatefirstmate (e.g. "/updatefirstmate", "update firstmate", "pull the latest firstmate").
repo: kunchenguid/firstmate
人気
- GitHubのスター
- 8.5k
- ランキング
- #12449
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
afk
8.5kエージェントが、あなたが離れている間も作業を見守り、あなたの判断が必要なものを保留し、戻ったときに明確な報告を送れるよう支援します。
ahoy
8.5kエージェントが、セッションで何が起きたかの短い振り返りを示し、まだあなたの答えを待っている判断を一緒に確認できるよう支援します。
ask-user-authority
8.5kエージェントが、検証の中で出た質問を、合意された計画に明らかに合う場合は自分で判断し、不明確または危険な場合にだけあなたに尋ねるよう支援します。
away-quiet-supervision
8.5kエージェントが、不在またはおとなしいモードで作業を監督するときの安全ルールに従い、メッセージを明確に保ち、あなたが必要な判断を保留できるよう支援します。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。