portal
Skill này làm gì
Skill này giải thích cách tiếp tục một phiên lập trình trên một máy tính đã ghép đôi luôn bật. Skill dành cho lập trình viên cần công việc chạy lâu hoặc kiểm thử từ xa tiếp tục chạy.
Khi nào nên dùng
- ✓Khi công việc phải tiếp tục chạy sau khi bạn đóng laptop chính.
- ✓Khi bạn cần kiểm thử từ xa trên một máy riêng.
- ✓Khi một tác vụ định kỳ nên chạy trên một máy tự host thay vì máy của bạn.
Liên kết skill
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/portal/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
“Chuyển phiên lập trình hiện tại của tôi sang máy tính luôn bật để nó tiếp tục chạy khi tôi đi vắng.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent lưu một snapshot code hiện tại vào một nhánh mới, và máy đã ghép đôi lấy đúng phiên bản đó rồi tiếp tục ở đó. Các giá trị bí mật được tải cục bộ và không bao giờ được gửi trong tin nhắn.
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.
Portal
Portal moves a local coding session to a paired computer while keeping the relay as the control plane and the paired computer as the execution residence. The Code Agents chat list supports moving one local chat or all eligible local and worktree chats in one handoff.
Workflow
- Select
Portalfor the coding session and keep the source folder as a Git repository with anoriginremote. - Snapshot the current working tree, including dirty tracked and untracked
code, into a unique
portal/<timestamp>-<id>branch. Do not switch, reset, stash, or overwrite the source checkout. - Queue the run for a paired active host. The run metadata must identify the
host, handoff id, branch, commit, and
envPolicy: "load-local". - On the paired host, fetch the exact commit into a detached Portal worktree under its local Agent-Native store. Preserve an existing dirty worktree and create a new one instead of overwriting it.
- Load the paired host's current local environment files immediately before starting the runner. Never put environment values, tokens, or secrets in relay metadata, prompts, transcripts, or status messages.
Existing chat transfer
Use Move to Portal for one chat or Move local chats to Portal for the bulk
handoff. The transfer stops a local runner before snapshotting, pushes the
current worktree without changing the source checkout, and imports the full
text transcript into the same run id on the paired computer. The target gets a
continuation turn rather than replaying the original prompt. Chats waiting for
local approval are skipped because approval state is computer-local and cannot
be reconstructed safely.
Binary attachment bodies are not relayed. Their names, text, and an explicit omission marker remain in the transcript context. Oversized or otherwise unsafe context fails visibly so the source chat can be retried instead of being silently truncated.
Execution residence
Treat metadata.executionResidence as authoritative for where the run is
executing. It should report kind: "portal", host id and label, handoff id,
source commit, remote workspace path once prepared, and environment file names
without values. Follow-ups and stops must target the same host and remote run.
Verification
Before saying Portal is ready, verify the relay has a paired host, the host is heartbeating, the exact handoff commit was fetched, the detached worktree is clean, and the run metadata reports the remote workspace. For an existing chat, also verify the target transcript contains the imported event count and the continuation turn. A queued command is not proof that the remote runner started; inspect the remote result or event readback.
Operator recovery
When a host is present but a handoff stalls:
- Confirm the connector's
relayUrlis the same deployment origin used for pairing. A device paired against another origin can return401with a fresh-looking token because the row is in a different database. - After repairing a pairing, restart the connector. It reads
remote-device.jsononce at startup and will not adopt a new token or relay URL in an existing process. - Confirm the host is heartbeating and connected, then retry one bounded run. Read the remote result and transcript; enqueue success alone is not proof.
- Keep tokens and environment values out of logs, prompts, metadata, and transcripts. Report source, published-runtime, and live-relay evidence separately.
Don't
- Do not copy
.envcontents or credentials to the source branch or relay. - Do not treat the primary laptop's cwd or environment as the remote cwd.
- Do not report Portal complete from a local push alone; confirm remote execution residence and runner state.
Related skills
external-agents- relay and external-agent boundaries.a2a-protocol- idempotent cross-agent task lifecycle.concurrent-agents- preserve shared checkouts and peer work.reliable-mutations- verify durable handoff state.
Câu hỏi thường gặp
Việc chuyển phiên có thay đổi thư mục gốc của tôi không?
Không. Skill nói bản checkout nguồn không bị chuyển, đặt lại hay ghi đè.
Giá trị bí mật của tôi có được gửi sang máy kia không?
Không. Biến môi trường được tải trên máy đã ghép đôi và không bao giờ được đặt trong metadata relay hoặc prompt.
Dự án cần có gì?
Một kho Git có remote origin.
Chi tiết
Mô tả gốc của tác giả
Continue a coding session on a paired always-on computer. Use when work must survive closing the primary laptop, needs remote computer-use testing, or should run on a scheduled/self-hosted execution host.
repo: BuilderIO/agent-native
Độ phổ biến
- Sao GitHub
- 7.6k
- Vị trí xếp hạng
- #13173
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
design-exploration
7.6kGiúp agent của bạn khám phá nhiều hướng thiết kế giao diện song song, để bạn chọn một hướng rồi tinh chỉnh thiết kế đã chọn.
visual-edit
7.6kGiúp agent của bạn mở một ứng dụng cục bộ đang chạy trong trình chỉnh sửa trực quan, để bạn xem và sửa các màn hình thật cùng nhau.
turn-into-app
7.6kBiến quy trình, bảng tính hoặc dự án thành ứng dụng trực quan có màn hình đầy đủ dữ liệu, với agent làm việc phía sau các điều khiển.
visual-plan
7.6kBiến một kế hoạch viết bằng văn bản thuần thành kế hoạch trực quan tương tác, có sơ đồ, bản đồ file, đoạn code và các câu hỏi còn mở.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.