Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)8.5k · #12449

updatefirstmate

Skill này làm gì

Skill này cập nhật một Firstmate đang chạy và các helper phụ của nó lên phiên bản mới nhất. Skill dành cho người muốn có các tính năng và bản sửa lỗi mới nhất của Firstmate.

Khi nào nên dùng

  • ✓Khi bạn muốn cập nhật Firstmate lên phiên bản mới nhất.
  • ✓Khi bạn nghe nói một phiên bản Firstmate mới đã được phát hành và muốn bản của bạn khớp với nó.
  • ✓Khi một helper vẫn dùng hướng dẫn cũ sau khi Firstmate được cập nhật.

Liên kết skill

https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/updatefirstmate/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/updatefirstmate/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Cập nhật Firstmate lên phiên bản mới nhất mà không làm gián đoạn các tác vụ hiện tại của tôi.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent kéo các file mới nhất từ nguồn về cho helper chính và từng helper phụ. Nó cũng giải thích rằng một helper cần một cuộc trò chuyện mới để đọc hướng dẫn mới.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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

  1. Run the updater:
    bin/fm-update.sh
    
    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 a self-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> /
Câu hỏi thường gặp

Nó có làm gián đoạn công việc hiện tại không?

Không. Skill nói nó cập nhật mà không làm xáo trộn công việc đang tiến hành.

Vì sao helper cần khởi động lại?

Các helper đang chạy giữ hướng dẫn gốc trong bộ nhớ, nên các file mới chỉ có hiệu lực trong một cuộc trò chuyện mới.

Tôi có cần là người dùng nâng cao không?

Không. Skill chạy các bước cập nhật và giải thích kết quả.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
8.5k
Vị trí xếp hạng
#12449
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự