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

session-start-recovery

Skill này làm gì

Skill này giải thích cách Firstmate xử lý bản tóm tắt khởi động, gồm các kiểm tra chưa hoàn tất và bước khôi phục. Skill dành cho người khởi động lại Firstmate và muốn hiểu báo cáo khởi động nghĩa là gì.

Khi nào nên dùng

  • ✓Khi bản tóm tắt khởi động liệt kê các kiểm tra chưa xong cần chú ý.
  • ✓Khi báo cáo khởi động có dòng chẩn đoán hoặc chi tiết khôi phục.
  • ✓Khi bạn muốn hiểu chuỗi khởi động làm gì, theo thứ tự.

Liên kết skill

https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/session-start-recovery/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/session-start-recovery/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

“Báo cáo khởi động Firstmate của tôi liệt kê một số kiểm tra chưa xong. Chúng nghĩa là gì và tôi nên làm gì?”

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

Cách hoạt động

Agent đọc bản tóm tắt khởi động và đi qua từng bước theo thứ tự, như khóa phiên và kiểm tra công cụ. Các kiểm tra mạng chạy ở nền để không làm chậm bản tóm tắt.

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.

Session-start recovery

The digest itself makes no external-network call and never waits for one. Every network check a session start owes - GitHub auth, secondmate recovery, secondmate convergence, pending handoff delivery, and project clone refresh - runs off the digest's blocking path in a bounded worker owned by bin/fm-startup-network.sh and is reported in the digest's own NETWORK CHECKS section. The locked startup inactive-outcome scan joins that worker so a slow local current-state read cannot block the digest; its findings use the ordinary durable wake queue.

  1. Lock - acquires the per-home session lock first, before anything mutates shared state, then starts the deferred startup stage above.
  2. Bootstrap - detect-only checks (tool/version problems, the worktree-tangle check, harness override, dispatch-profile validation, backlog-backend status) always run, but routine confirmations stay silent by default. When the lock could not be acquired, the worktree-tangle check uses read-only advisory wording without a checkout repair command. Home-local stale Herdr projection cleanup and the six bootstrap MUTATING sweeps - same-home backlog reconciliation, fleet sync, secondmate convergence, secondmate liveness, pending remote handoff retry, and Relay artifact writes - run only when this session actually holds the lock from step 1; the four network ones among them run in the deferred stage rather than in this section. The secondmate liveness sweep accounts for every registered secondmate and reports skipped or failed recovery as SECONDMATE_LIVENESS: lines. The sweep and the watcher's cadence-gated tick share the recovery contract; for T3 threads, follow the native recovery guide.
  3. Wake queue - when locked, drains and presents the durable wake queue without running the inactive-outcome scan inline, and prints the raw records prominently as this turn's first work queue; a clearly labeled status-event annotation may follow a valid signal record and includes every status line still unread at the presentation cursor, but never replaces the raw record or current-state reconciliation, and a lapsed watcher chain still surfaces here via the same guard alarm. Presented records remain durable until the handling turn runs the generation-bound acknowledgement printed by the drain. Every locked drain also prints a bounded fleet-wide OPEN DECISIONS section when durable decision records remain open, including when the queue itself is empty; reconcile those entries before continuing. A main drain may also print a bounded, one-shot STATUS OUTCOME BACKSTOP when a task's newest captain-facing status event has no covering supervision-branch outcome; handle it as a recovered wake even when no queue row remains. The same drain prints every still-unread note: line and pending-reply resolution since the last presentation in an unbounded UNREAD STATUS section, so an answer buried under a later routine line is not dropped; those lines are not re-printed after that presentation. It also prints a bounded RECORD DIVERGENCE section naming every captain call the status log reads as resolved while its backlog task is still held; nothing is closed for you, and captain-hold-lifecycle owns the reconciliation. When the lock could not be acquired and verified, the queue is left untouched because no session mutation is authorized, and the guard's tangle/watcher-liveness alarms still print in read-only advisory mode without drain, supervision repair, or checkout repair commands.
  4. Supervision operating instructions - after the wake queue and before both digests, the digest emits exactly one operating block for the detected primary harness, followed by the read-once contract that governs them. The script itself never starts supervision; the emitted harness protocol owns the exact wait or wake mechanism.
  5. Fleet-state digest - after that read-once contract and ahead of the context digest, the compact backlog listing owned by bin/fm-session-start.sh; every state/<id>.meta; a bounded tail of each task's state/<id>.status (labeled as wake-EVENT history, not current state, with the full log path printed for a deeper read); the away or quiet posture (state/.afk-contract, plus the state/.afk daemon flag where a daemon runs); and one cheap alive/dead read of each task's
Câu hỏi thường gặp

Bản tóm tắt khởi động có chờ mạng không?

Không. Bản tóm tắt không chờ các kiểm tra mạng, vì chúng được báo cáo riêng.

Nó có thay đổi gì mà không hỏi không?

Không. Việc cài đặt và nâng cấp chỉ diễn ra sau khi bạn đồng ý.

Khóa phiên dùng để làm gì?

Nó ngăn hai phiên cùng thay đổi trạng thái dùng chung một lúc.

Chi tiết

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

Load when the session-start digest reports unfinished checks, actionable diagnostics, recovery inputs, or output requiring interpretation.

repo: kunchenguid/firstmate

Độ phổ biến

Sao GitHub
8.5k
Vị trí xếp hạng
#12445
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ự