afk
Skill này làm gì
Skill này đưa agent vào chế độ vắng mặt cho công cụ Firstmate, để nó tiếp tục giám sát công việc khi bạn không ở máy tính. Skill dành cho người chạy Firstmate và muốn rời đi.
Khi nào nên dùng
- ✓Khi bạn rời bàn làm việc và muốn agent giữ công việc tiếp tục mà không cần bạn.
- ✓Khi bạn quay lại sau một thời gian vắng và muốn một bản tóm tắt ngắn về những gì đã xảy ra.
- ✓Khi bạn muốn agent giữ các quyết định lớn cho đến khi bạn về.
Liên kết skill
https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/afk/SKILL.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tôi sẽ offline vài giờ. Đưa agent vào chế độ vắng mặt và giữ mọi quyết định lớn cho tôi.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Bạn bắt đầu chế độ vắng mặt bằng cách gõ lệnh, và agent ghi lại bản ghi về lựa chọn đó trước. Sau đó nó làm theo quy tắc của chế độ vắng mặt, giữ mọi quyết định thuộc về bạn cho đến khi bạn quay lạ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.
afk
Away mode is a POSTURE of the one supervision session, not a second architecture.
Being away changes exactly two things: how the captain is informed, and what happens at a captain-owned decision point (hold for return, or the answer the captain's away words already gave).
It never changes the authority set.
The posture is a file, state/.afk-contract, written only by bin/fm-afk-contract.sh in the same turn as /afk; nothing infers the posture from chat.
A record carrying quiet mode (bin/fm-afk-contract.sh mode) is not this posture: the captain is present, so none of this skill's holds for a return apply to it (the quiet skill owns it).
Typing /afk is itself the go: the captain may not look at the screen again, so entry never waits for a further human response, and no read-back gates it or asks for a go.
Hold-for-return is the default and the only reach profile this release records: there is no phone channel, and the entry announcement says so aloud every time.
Entering: /afk [words]
- Write the record first, in this same turn.
Before any other work, run
bin/fm-afk-launch.sh enter --words-file <path> [--expected-return <UTC ISO 8601>] [--spend <n>](or--words <text>). It writesstate/.afk-contractat once, with no separate confirmation step, then prints the entry announcement and the record's read-back. The words are the whole mandate:bin/fm-afk-contract.shrecords them exactly as given, with no clause fields, verbs, ids, or merge-grant list, and by the captain's mandate no parser, tokenizer, classifier, or grammar reads them anywhere. Readbin/fm-afk-contract.sh --helpfor the flags rather than memorizing them. Plain/afkwith no words is a valid entry with no mandate; the announcement says no instructions were recorded. Re-invoking/afkwhile already away with no new words is a refresh and leaves the standing record untouched; new words replace the mandate at once, preserve the original session entry, and archive the superseded words for the return brief. - Per harness, after the record exists:
- Pi and pi-signed: nothing to launch; go on to the announcement.
The away daemon is no longer launched on Pi; the ordinary supervision session (
docs/pi-supervision-branch.md) keeps running with the record present, andbin/fm-afk-launch.sh startrefuses on these harnesses. With the record present main is parked: the supervision branch takes every safe actionable wake, captain outcomes accumulate for the return brief, and main's standing authority relocates to the branch through the guarded scripts (docs/pi-supervision-branch.md"Postures"); only a wake the branch declines (including a broken branch or unsafe scan) or a watcher failure wakes main./quietneeds nothing extra on Pi: the attended branch already keeps routine wakes out of this conversation, so quiet-while-present is the attended posture's own shape there. - A home that runs the supervision host (a Claude home unless
config/supervision-host-offopts it out, or a Cursor, OpenCode, omp, Grok, or Codex home withconfig/supervision-hostand no opt-out;docs/configuration.md"Supervision host"): nothing to launch for/afk; go on to the announcement. The supervision host (docs/supervision-host.md) is the away session there: it runs the branch's contract on a headless engine under the record while main is parked, andbin/fm-afk-launch.sh startandstart-nativerefuse the away daemon on that home. Ifenterprinted aSupervision host: no engine ...line, every away wake reaches this conversation instead; say so in the announcement./quietenters nothing there where the attended host runs, and otherwise still launches the daemon below (the quiet skill'squiet-checkdecides). - Harness WITH a native in-pane tracked-background tool (claude's and grok's, on a home that does not run the supervision host): run
bin/fm-afk-launch.sh start-native, then runFM_AFK_STATE_PREPARED=1 bin/fm-afk-start.shthrough that native tool. This is a deliberate no-separate-terminal exception because the harness-hosted job creates no terminal or layout mutation, and a shell launcher cannot invoke a harness-native background tool. If the native launch fails, runbin/fm-afk-launch.sh stopto roll back the prepared lifecycle. Do not wrap it innohup ... &(Codex/herdr can reap fire-and-forget shell children after a tool call returns)
- Pi and pi-signed: nothing to launch; go on to the announcement.
The away daemon is no longer launched on Pi; the ordinary supervision session (
Câu hỏi thường gặp
Chế độ vắng mặt có cho agent tự quyết định không?
Nó chỉ hành động trong phạm vi thẩm quyền bạn đã giao, và giữ lại cho lúc bạn về khi không chắc.
Agent kể cho tôi chuyện gì đã xảy ra bằng cách nào?
Khi bạn quay lại, nó đưa bạn một bản tóm tắt khi trở về, nêu những gì đã xảy ra trong lúc bạn vắng.
Tôi có thể được liên lạc qua điện thoại không?
Không trong phiên bản này. Không có kênh điện thoại, nên agent không thể liên lạc với bạn khi bạn rời máy tính.
Chi tiết
Mô tả gốc của tác giả
Enter the away posture when the captain invokes /afk, says they are going afk, `state/.afk-contract` or `state/.afk` exists, an incoming message starts with `FM_INJECT_MARK`, or any `state/.subsuper-*` marker is involved. Load it at once in the /afk turn, before any other work, and on the first unmarked message while away to render the return brief.
repo: kunchenguid/firstmate
Độ phổ biến
- Sao GitHub
- 8.5k
- Vị trí xếp hạng
- #12426
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
ahoy
8.5kGiúp agent của bạn tóm tắt ngắn những gì đã xảy ra trong phiên và hướng dẫn bạn qua các quyết định vẫn đang chờ bạn.
ask-user-authority
8.5kGiúp agent của bạn tự quyết các câu hỏi rà soát khi chúng khớp rõ với kế hoạch đã thống nhất, chỉ hỏi bạn khi câu hỏi mơ hồ hoặc có rủi ro.
away-quiet-supervision
8.5kĐặt các quy tắc an toàn khi giám sát công việc ở chế độ vắng mặt hoặc im lặng, để agent giữ tin nhắn rõ ràng và giữ các quyết định cần bạn.
bearings
8.5kGiúp agent của bạn viết bản chụp rõ ràng về mọi công việc hiện tại, để bạn tiếp tục từ chỗ đã dừng sau một lần nghỉ hoặc một đêm vắng.
Skill tương tự
knowledge-automation
394kGiúp agent của bạn thiết lập tác vụ định kỳ đưa nội dung mới vào kho Knowledge theo lịch, rồi kiểm tra tác vụ có chạy không.
knowledge-source-ingest
394kGiúp agent của bạn cập nhật Knowledge vault với các mục mới từ kênh chat, nguồn tin hoặc hộp thư, mà không thêm lại những gì đã có.
benchmark
280kGiúp agent của bạn đo tốc độ và hiệu suất của code, hữu ích để đảm bảo mọi thứ nhanh và tìm ra những chỗ chậm.