跳到正文
Skillpedia
网站与界面(前端)21k · #10369

write-voyager-plugin

它能做什么

这项技能帮助 AI 编写 Voyager 插件。插件是一个小型的 JSON 和 CSS 文件,用于重新设计或重排 AI 聊天页面,关闭后即可撤销。适合希望 AI 聊天网站以自己喜欢的样式或方式运行的人。

适用场景

  • ✓你想在 Voyager 中改变 Gemini、ChatGPT、Claude 或其他 AI 聊天网站外观的时候。
  • ✓你想为 AI 聊天网站添加小功能,例如复制按钮或字数统计的时候。
  • ✓你想在导入前检查现有 Voyager 插件是否有错误的时候。

技能链接

https://github.com/voyager-crew/voyager/blob/main/docs/public/skills/write-voyager-plugin/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/voyager-crew/voyager/blob/main/docs/public/skills/write-voyager-plugin/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请为 ChatGPT 制作一个 Voyager 插件,隐藏侧边栏并加宽聊天区域。”

每周 5 个新技能,1 分钟读完。

工作原理

AI 会为你指定的网站编写插件清单和 CSS。它会先阅读每个网站的说明,以确保选择器和 URL 匹配;关闭插件时,Voyager 会移除所有更改。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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:
  • 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

  1. 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.
  2. Edit plugin.json and style.css for the request. Give the plugin its own "id", "name" and class names.
  3. 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 every path: message line it prints and run it again. --json prints the issues as a JSON array of { path, message }, empty when it imports.
  4. 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).
  5. 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; check is 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
常见问题

插件会运行自己的代码吗?

不会。本地插件只是 JSON 清单和 CSS。Voyager 会在导入时进行检查,并在关闭插件时移除其更改。

它支持哪些网站?

涵盖 Gemini、AI Studio、ChatGPT、Claude、DeepSeek 和 Kimi,每个网站都有一份说明文件。

如果我需要样式之外的功能呢?

技能还提到了用于复制按钮、折叠区块和草稿保存等功能的内置原语。

详情

作者的原始描述

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

热度

GitHub 星标
21k
排名
#10369
许可证
GPL-3.0
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

相似技能