write-voyager-plugin
Skill này làm gì
Skill này giúp AI viết một plugin Voyager, tức là một file JSON và CSS nhỏ để đổi kiểu dáng hoặc sắp xếp lại trang chat AI, và có thể tắt để hoàn tác. Skill dành cho người muốn các trang chat AI hiển thị hoặc hoạt động theo cách họ thích.
Khi nào nên dùng
- ✓Khi bạn muốn đổi cách Gemini, ChatGPT, Claude hoặc trang chat AI khác hiển thị trong Voyager.
- ✓Khi bạn muốn thêm một tính năng nhỏ như nút sao chép hoặc đếm từ cho trang chat AI.
- ✓Khi bạn muốn kiểm tra một plugin Voyager hiện có để tìm lỗi trước khi nhập.
Liên kết skill
https://github.com/voyager-crew/voyager/blob/main/docs/public/skills/write-voyager-plugin/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ạo một plugin Voyager ẩn thanh bên của ChatGPT và làm vùng chat rộng hơn.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI viết một manifest và CSS cho các trang bạn chỉ định. AI đọc ghi chú của từng trang trước để selector và mẫu URL khớp, và Voyager sẽ gỡ mọi thay đổi khi plugin bị 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.
Write a Voyager plugin
Voyager is a browser extension for AI chat sites. A local plugin is a declarative JSON manifest (plugin.json) plus CSS that restyles or rearranges a chat page through reversible page changes. It runs no code of its own: Voyager checks it strictly on import, applies it, and removes every change when the plugin is turned off.
This skill is generated from Voyager’s plugin engine 1.11.0. The latest copy is at https://voyager.nagi.fun/skills/write-voyager-plugin/SKILL.md.
Files to read
This skill is split into files. The links below are relative to this SKILL.md; when a file is not beside it (you read this over the web, or only SKILL.md was saved), fetch it from https://voyager.nagi.fun/skills/write-voyager-plugin/<path>.
- Before you write or fix a plugin, read the site file of every site it targets. It has the URL patterns "matches" must use, the semantic anchors the site declares, which primitives run there and the site’s caveats:
- Gemini: sites/gemini.md
- AI Studio: sites/aistudio.md
- ChatGPT: sites/chatgpt.md
- Claude: sites/claude.md
- DeepSeek: sites/deepseek.md
- Kimi: sites/kimi.md
- Read primitives.md when the request needs behavior that CSS and the four page changes cannot give: copy buttons, counters, collapsing long content, diagrams (Mermaid, ECharts, WaveDrom), saving drafts, send shortcuts, a conversation timeline, formula copy, Vim input or rendering the user’s own LaTeX. Always read it before answering NOT POSSIBLE.
Workflow
- Find out which site the change is for and what should change. Then scaffold a folder:
npx create-voyager-plugin@latest init my-plugin --site <site>(site: gemini, aistudio, chatgpt, claude, deepseek, kimi) writes plugin.json, style.css and an AGENTS.md with this contract for that site. Without Node, write the two files by hand from the examples below. - Edit plugin.json and style.css for the request. Give the plugin its own "id", "name" and class names.
- Run
npx create-voyager-plugin@latest check my-plugin. It runs the same checks as Voyager’s popup import, offline, and exits 0 only when the plugin would import. Fix everypath: messageline it prints and run it again.--jsonprints the issues as a JSON array of { path, message }, empty when it imports. - Hand over to the user: open the target site, open the Voyager popup, find the "Local plugins" card (on Gemini and AI Studio it sits right below Cloud Sync, and the "Jump to" links at the top lead to it), choose Import files and pick plugin.json together with style.css. The plugin lands switched off; the user turns it on in the plugin list. Re-importing the same "id" replaces the installed version (raise "version" when you change it).
- Ask the user to look at the page in both light and dark theme. If a selector matches nothing, see "Finding selectors".
Manifest contract
- Required non-empty string fields: id, name, version, description, author, category, license, engine. Also "tier": "declarative", "matches" (see the site files, sites/<site>.md) and "contributes".
- "id": a short lowercase reverse-dotted slug such as "me.short-name" (a-z, 0-9, ".", "_", "-"). Voyager stores it as "local.<id>"; you do not add that prefix.
- "version": "1.0.0"; raise it when you change the plugin. "author": "me". "license": "MIT".
- "engine": ">=1.0.0", or ">=" the sinceEngine of every primitive the plugin uses. This build's plugin engine is 1.11.0.
- "category": one of render-fix, theme, layout, readability, productivity, integration, other.
- Write "name" and "description" in the language of the user. "i18n" translations are optional for a local plugin.
- Optional: "$schema": "https://voyager.nagi.fun/plugin.schema.json" lets an editor check the file as you type. The import gate is stricter than the schema;
checkis the authority.
Styles
- "contributes.styles": [{ "file": "style.css" }] with the CSS in style.css beside plugin.json. The popup’s Import files takes exactly one .json file: the user picks plugin.json and its .css files, nothing else. Paste JSON only takes inlined CSS ([{ "css": "..." }]).
- CSS may not load anything, not even from the same site: no @import, image-set(), image(), cross-fade() or src(), and url() only with a #fragment or a png, jpeg, gif, webp or avif data: URI (never SVG). No web fonts, no remote images.
- Sc
Câu hỏi thường gặp
Plugin có tự chạy mã của nó không?
Không. Plugin cục bộ chỉ là manifest JSON và CSS. Voyager kiểm tra khi nhập và gỡ các thay đổi khi plugin bị tắt.
Những trang nào được hỗ trợ?
Gemini, AI Studio, ChatGPT, Claude, DeepSeek và Kimi, mỗi trang có một file ghi chú.
Nếu tôi cần thứ gì đó ngoài việc đổi kiểu dáng thì sao?
Skill cũng đề cập tới các primitive có sẵn cho những tính năng như nút sao chép, thu gọn phần nội dung và lưu bản nháp.
Chi tiết
Mô tả gốc của tác giả
Voyager plugin authoring: write and check a local plugin (a JSON manifest plus CSS) for the Voyager browser extension. Use when the user wants to change how Gemini, AI Studio, ChatGPT, Claude, DeepSeek or Kimi looks or is laid out through Voyager; to add a small feature Voyager ships as a primitive (copy button, word count, collapse, diagrams, draft save, Ctrl+Enter send, timeline); or to check or fix a plugin that fails to import.
repo: voyager-crew/voyager
Độ phổ biến
- Sao GitHub
- 21k
- Vị trí xếp hạng
- #10369
- Giấy phép
- GPL-3.0
- Cập nhật
- 1/11/2026
Bình luận
- …
Skill tương tự
angular-developer
280kGiúp agent của bạn viết code Angular và tư vấn cấu trúc dự án, hữu ích khi bắt đầu dự án mới hoặc cải thiện hiệu suất.
frontend-a11y
280kGiúp agent của bạn làm cho giao diện web dễ tiếp cận với mọi người. Đảm bảo website và ứng dụng hoạt động tốt với trình đọc màn hình và điều hướng bằng bàn phím.
frontend-patterns
280kGiúp agent của bạn áp dụng các mẫu hiện đại trong phát triển frontend. Tối ưu hiệu năng, quản lý trạng thái và tuân theo thực hành tốt nhất với React và Next.js.