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에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.