harness-adapters
Skill này làm gì
Skill này bao quát cách Firstmate khởi động và quản lý các công cụ lập trình AI khác nhau, gọi là harness, cho các agent trợ giúp. Skill dành cho người chạy nhiều agent lập trình và muốn mỗi agent được xử lý đúng.
Khi nào nên dùng
- ✓Khi bạn muốn khởi động một agent trợ giúp mới bằng một công cụ lập trình AI cụ thể.
- ✓Khi một agent trợ giúp hiện một lời nhắc tin cậy cần được trả lời.
- ✓Khi bạn cần dừng, ngắt hoặc tiếp tục một agent đã thoát.
Liên kết skill
https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/harness-adapters/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
“Khởi động một agent trợ giúp mới bằng công cụ Codex, và đảm bảo công cụ đó đã được xác minh trước.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent tải một hướng dẫn chung cùng ghi chú riêng cho công cụ đang dùng. Nó từ chối khởi động trợ giúp trên các công cụ chưa được xác minh, và hỏi bạn trước khi đưa ra lựa chọn làm thay đổi chúng.
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.
harness-adapters
This is the one skill, trigger, and routing owner for harness-specific Firstmate operations.
Load this router first, then exactly the common reference and one harness reference selected below.
When an action spans rows, load the union once rather than every reference.
Files under references/ are resources of this skill, not additional catalogued skills.
Path contract
The skill directory is the directory containing this SKILL.md.
Resolve on-demand reference links and relative links to their executable, documentation, or sibling-skill owners against the skill directory, including links named by a nested reference.
Operational paths keep the context named by their owner: config/ and active-home settings belong to the active Firstmate home, state/ belongs to that home, and project settings such as .claude/settings.json belong to the target project.
Non-negotiable safety
Never dispatch a crewmate or secondmate on an unverified adapter.
If config/crew-harness or config/secondmate-harness names one, tell the captain under ../../../AGENTS.md section 9 that the requested worker runtime is not verified, use firstmate's own verified runtime for current work, and ask only whether to verify the requested runtime for future work.
Do not pause current work for that choice.
On unknown, ask the captain instead of guessing.
A current captain override beats detection, while a per-task override governs only that dispatch.
For recovery and control, use the exact harness= in state/<id>.meta; never infer it from a model or provider.
Deliver lifecycle actions only through ../../../bin/fm-control.sh <task-id> interrupt|exit|relaunch.
Never type an interrupt key or exit command through fm-send, where routing-marked lifecycle text becomes chat.
Trust handling is complete only when inspection proves the target started processing its instructions; delivery success alone is not proof.
Muse, Gemini, Devin, Command Code, Polytoken, Cortex, and Kiro are verified only for crewmate and scout work, never a secondmate or primary.
Detection
../../../bin/fm-harness.sh prints firstmate's own harness from verified environment markers and process ancestry, and owns how they combine.
A marker names its harness, but a structural ancestor of a different harness outranks it, because a marker is ordinary environment state a child or a multiplexer can retain while ancestry is what proves who owns the process tree.
Only FM_PI_HARNESS=pi-signed at the launch boundary together with PI_CODING_AGENT=true selects Pi-signed; shared unmarked launcher ancestry remains Pi.
omp publishes no marker of its own; FM_OMP_HARNESS=omp is Firstmate's launch marker and the anchored process name omp is its ancestry evidence, as references/harness/omp.md records.
../../../bin/fm-spawn.sh owns worker marker establishment, while the README launch command owns the signed-primary boundary.
../../../bin/fm-harness.sh crew resolves config/crew-harness, where absent or default means firstmate's own harness.
docs/configuration.md owns secondmate pin resolution, including per-mate overrides; bin/fm-harness.sh owns the resolver commands.
../../../bin/fm-spawn.sh re-resolves on every spawn, and an explicit per-spawn argument wins for that spawn.
A new adapter's verified marker and command name must land in ../../../bin/fm-harness.sh.
Operation-to-reference matrix
Every emitted plan appends the selected or recorded harness reference after the named common references.
The harness-adapter-routing-v1 object is the machine-readable and human-visible selection contract: choose the operation, choose the scenario within it, then append the selected harness reference.
default is the normal scenario when no narrower scenario applies.
Kimi establishes its unsupported primary boundary in its selected harness reference; Muse and Gemini follow Non-negotiable safety above.
A new tool remains undispatchable until the verify plan, its harness entry, every named owner, and the live checks land.
{
"operations": {
"start": {
"default": ["references/common/dispatch.md", "references/common/model-and-effort.md"],
"trust-dialog": ["references/common/control-and-recovery.md"]
},
"trust": {"default": ["references/common/control-and-recovery.md"]},
"skill": {"defaul
Câu hỏi thường gặp
Nó có dùng được công cụ chưa xác minh không?
Không. Nó nói cho bạn biết công cụ chưa được xác minh và dùng một công cụ đã xác minh cho công việc hiện tại.
Nó xử lý những loại hành động nào?
Khởi động agent, trả lời lời nhắc tin cậy, gửi lệnh skill, và ngắt, thoát hoặc tiếp tục agent.
Nó có đoán khi có điều chưa rõ không?
Không. Nếu công cụ chưa rõ, nó hỏi bạn thay vì đoán.
Chi tiết
Mô tả gốc của tác giả
Load before spawning or recovering a crewmate or secondmate, handling a trust dialog, sending a harness-specific skill invocation, interrupting or exiting an agent, resuming an exited agent, or verifying a new harness adapter.
repo: kunchenguid/firstmate
Độ phổ biến
- Sao GitHub
- 8.5k
- Vị trí xếp hạng
- #12437
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
afk
8.5kGiúp agent của bạn tiếp tục làm việc khi bạn vắng mặt, giữ các quyết định cho lúc bạn quay lại và gửi bạn một bản tóm tắt rõ ràng khi bạn về.
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.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.