Logo Openpencil Setup

Openpencil Setup

Tổ chức
ZSeven-W
openpencil-setup

Connect and diagnose the local Rust OpenPencil editor for the Codex OpenPencil plugin. Use for initial setup, missing tools, or a disconnected local canvas.

Add to TypingMind

Tổng quan

Nhà phát hànhZSeven-W
Kho mãcodex-openpencil
Tên kỹ năngopenpencil-setup
Sao
140
Bản fork
17
Tệp đi kèm
1
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được ZSeven-W công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Openpencil Setup trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/ZSeven-W/codex-openpencil/tree/main/plugins/openpencil/skills/openpencil-setup
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ZSeven-W/codex-openpencil.git /tmp/codex-openpencil
mkdir -p .claude/skills
cp -r /tmp/codex-openpencil/plugins/openpencil/skills/openpencil-setup .claude/skills/openpencil-setup
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Openpencil Setup trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Openpencil Setup ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Openpencil Setup với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Connect OpenPencil

The plugin opens a managed interactive Rust canvas or connects to an existing desktop editor. First canvas use automatically downloads the matching complete runtime from pinned public GitHub Release assets and validates its SHA-256, payload manifest, version and platform before configuring or starting it.

Interactive canvas

  1. In Codex, call canvas_open_browser, optionally with the user's existing absolute .op path, then open its panelUrl in the Codex browser panel (open_in_codex, browser target) or @Browser. Use an external browser only when the user explicitly requests one. The source is copied into a recovery draft. If only open_canvas is available, its returned panelUrl works the same way. Codex currently filters local HTTP iframe origins, so its MCP Apps entrypoint shows a browser launcher. Do not request weaker browser security or claim an embedded canvas was verified. Its button prepares the same canvas URL and, where host text messaging is supported, sends one opening request to the current chat through ui/message. Open the supplied exact URL with open_in_codex (browser target) or @Browser; preserve its theme/launch fragment so the panel can confirm editor readiness. Do not create a second canvas, launch an OS browser or use a deep-link workaround. Without host messaging, the user copies an opening instruction into the current chat. A message acknowledgment is not a connected canvas. ui/open-link acknowledgments also do not prove navigation: the current bridge drops HTTP URLs.
  2. Missing runtime configuration triggers installation automatically. Allow the initial download to finish; do not repeatedly call either opener after a host timeout. For preflight or a slow connection, run node scripts/runtime-install.mjs from the installed plugin directory, then call canvas_open_browser. Failed downloads do not configure partial runtimes. Existing invalid configurations are reported without switching runtimes. Configuration stays private in ~/.codex-openpencil/runtime.json. A complete custom package can be selected with OPENPENCIL_EDITOR_RUNTIME_DIR; it needs a matching native server, editable WASM, CanvasKit and integrity manifest. A desktop binary alone is insufficient.
  3. Use the UI resource/thread entrypoint, or show the returned local panelUrl in hosts without MCP Apps. Verify canvas_status and get_editor_state: they must describe the same managed document before editing.
  4. Each conversation keeps one canvas. Use another chat for a different document. Recovery drafts survive in ~/.codex-openpencil/sessions/. A stopped session's URL is temporary; reopen its recovery file in a new session.
  5. Reconnect or open a new chat after upgrading the plugin. Resource loading and visibly displayed embedded host UI are separate verification steps.

For a new install, follow the public repository's INSTALL.md. Its npm run setup verifies an isolated native edit/save/reopen before installing the plugin, registers the current Node executable privately, and verifies canvas tools through Codex's actual plugin loader. For a desktop startup error such as No such file or directory despite a working terminal, rerun setup and npm run host-check from that repository. Do not rewrite unrelated MCP settings. A successful fresh host check does not prove this existing chat has reloaded. If this chat has not loaded newly installed MCP tools yet, npm run canvas in the repository provides the same editable canvas and accepts native tool requests through a persistent terminal's stdin. Use that entry point to complete the design now, then explain that reconnect loads the installed tools. Never mistake a successful install for a verified live canvas.

Existing desktop editor

  1. Try get_editor_state through this plugin's OpenPencil tools. A response proves the actual connection; an installed package alone does not.
  2. If unavailable, run node scripts/mcp-bridge.mjs --doctor from the installed plugin directory (two levels above this file). The doctor reads the editor's ~/.openpencil/.op-mcp-port and verifies the instance identity. The plugin's launcher uses the Node.js 22+ executable registered by setup, then known local Node locations if needed; it never downloads a runtime to solve discovery.
  3. For a missing editor, use the official OpenPencil installation instructions. When launch is within the user's request, run op start, then enable MCP in the editor's Agent Settings. An old op binary may not discover the current Rust editor; trust the bridge doctor and editor state over that binary's status.
  4. For an intentional headless/web endpoint without a live discovery record, set OPENPENCIL_MCP_PORT in the MCP process environment or append --port PORT to the bundled server args. Only local loopback ports are accepted. Do not guess a port or rewrite unrelated Codex server configuration.
  5. If MCP discovery failed at session startup, reconnect/reload the plugin or start a new chat after the editor is reachable. Verify get_editor_state again and report the active document/page before editing.

A stale identity error requires reopening the intended editor or fixing its MCP setting. The bridge refuses to silently fall back to a different canvas. Keep discovery tokens out of chat, logs, committed files, and reports.

After either canvas opener, all native tools target that managed session instead of the discovered desktop editor. Report the target before edits; never silently take over a different document.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Openpencil Setup làm được gì?

Connect and diagnose the local Rust OpenPencil editor for the Codex OpenPencil plugin. Use for initial setup, missing tools, or a disconnected local canvas.

Vì sao nên dùng Openpencil Setup trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Openpencil Setup là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Openpencil Setup trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/ZSeven-W/codex-openpencil/tree/main/plugins/openpencil/skills/openpencil-setup. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Openpencil Setup?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Openpencil Setup với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Openpencil Setup với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Openpencil Setup có miễn phí không?

Có. Kỹ năng này được ZSeven-W phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇