publish-moviepilot-plugin
它能做什么
它指导 AI 把一个本地 MoviePilot 插件上传到 GitHub 仓库,先预览更改,并确保敏感信息不会被上传。适用于分享插件的插件开发者。
适用场景
- ✓当你想把 MoviePilot 插件发布到 GitHub 仓库时。
- ✓当你想把本地插件与 GitHub 上已有的版本进行比较时。
- ✓当你想把插件的最新文件从 GitHub 拉回到本地源文件时。
技能链接
https://github.com/jxxghp/MoviePilot/blob/v3/skills/publish-moviepilot-plugin/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把我的 MoviePilot 插件发布到 GitHub,但请先给我看更改内容。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会检查插件的元数据和文件夹结构,排除敏感文件,预览差异,并且只有在预览之后才会写入 GitHub。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Publish MoviePilot Plugin
Use this skill to publish and maintain a MoviePilot local plugin repository through GitHub while protecting local secrets and unrelated plugins.
Scope
- Publish one local plugin under
plugins.v3/<plugin_id_lower>/,plugins.v2/<plugin_id_lower>/orplugins/<plugin_id_lower>/to a GitHub repository. - Merge only that plugin's entry into
package.v3.json,package.v2.jsonorpackage.json. - Preview local/remote differences before writing.
- Pull remote plugin files back to the local plugin source.
- Create the target GitHub repository when the user explicitly chooses automatic creation; repositories are public by default unless the user asks for private.
- Reuse MoviePilot settings
GITHUB_TOKEN,REPO_GITHUB_TOKEN, andPLUGIN_LOCAL_REPO_PATHSwhen available.
Ground Truth
- Local plugin development rules:
skills/create-moviepilot-plugin/SKILL.md. - Local plugin source discovery:
app/adapters/external/market.py,PluginHelper.get_local_repo_paths(). - GitHub token settings:
app/runtime/config.py, especiallyGITHUB_TOKENandREPO_GITHUB_TOKEN. - Plugin package layouts:
- V3:
package.v3.jsonandplugins.v3/<plugin_id_lower>/ - V2:
package.v2.jsonandplugins.v2/<plugin_id_lower>/ - Legacy:
package.jsonandplugins/<plugin_id_lower>/
- V3:
Pre-Flight
- Identify the target plugin ID and local source repository.
- If the user gives a path, use it.
- Otherwise query
PLUGIN_LOCAL_REPO_PATHS; if exactly one configured repository contains the plugin, use it. - If several configured repositories contain the plugin, ask which one.
- Identify the GitHub repository as
owner/repo.- Use the user's explicit repository first.
- If omitted, infer only when the local source has an obvious Git remote.
- If neither is available, ask whether to use an existing repository or automatically create a new public repository.
- If the user chooses an existing repository, ask for
owner/repo. - If the user chooses automatic creation, ask for the target
owner/repoand state that the repository will be public by default. - Do not create a private repository unless the user explicitly asks for it.
- Select the package version layout.
- Prefer
v3when the plugin lives underplugins.v3/<plugin_id_lower>/or the repository shipspackage.v3.json(current MoviePilot V3 hosts). - Prefer
v2whenpackage.v2.jsonorplugins.v2/<plugin_id_lower>/exists. - Use legacy only when the local plugin is under
plugins/.
- Prefer
- Verify token availability.
- Prefer
REPO_GITHUB_TOKENfor the target repo when configured. - Fall back to
GITHUB_TOKEN. - If no token is configured, ask the user to configure one before pushing. Read-only preview may still run without a token for public repositories.
- Prefer
Script
Use scripts/publish_plugin.py for deterministic GitHub operations.
python skills/publish-moviepilot-plugin/scripts/publish_plugin.py preview \
--repo owner/repo \
--plugin-id MyPlugin \
--local-repo /path/to/MoviePilot-Plugins \
--package-version v2
python skills/publish-moviepilot-plugin/scripts/publish_plugin.py push \
--repo owner/repo \
--plugin-id MyPlugin \
--local-repo /path/to/MoviePilot-Plugins \
--package-version v2 \
--message "Publish MyPlugin v1.0.0"
python skills/publish-moviepilot-plugin/scripts/publish_plugin.py pull \
--repo owner/repo \
--plugin-id MyPlugin \
--local-repo /path/to/MoviePilot-Plugins \
--package-version v2
# V3 插件仓库(package.v3.json + plugins.v3/)
python skills/publish-moviepilot-plugin/scripts/publish_plugin.py push \
--repo owner/repo \
--plugin-id MyPlugin \
--local-repo /path/to/MoviePilot-Plugins \
--package-version v3 \
--message "Publish MyPlugin v1.0.0"
python skills/publish-moviepilot-plugin/scripts/publish_plugin.py create-repo \
--repo owner/repo
Options:
--package-version v3|v2|legacy|auto: layout selector.autoresolves the layout from where the plugin directory actually lives (plugins.v3→plugins.v2→plugins), then falls back to the manifest files, so repositories that still keep both manifests stay correct. Passv3explicitly for current MoviePilot V3 plugin repositories.create-repo: create the target GitHub repository. Default visibility is public; use--privateonly when the user explicitly asked for private.preview: compare local filtere
常见问题
新建的 GitHub 仓库是公开的吗?
该技能说明,除非你要求私有仓库,否则仓库默认是公开的。
它需要我在聊天中提供 GitHub 令牌吗?
不需要。它会复用 MoviePilot 设置中已有的 GitHub 令牌。
它也会发布其他插件吗?
不会。它只发布你指定的插件,并且只合并该插件的元数据条目。
详情
作者的原始描述
Use this skill when the user asks to publish, upload, sync, pull, push, diff, or maintain a MoviePilot local plugin in a GitHub repository. Covers using the configured MoviePilot GitHub token, PLUGIN_LOCAL_REPO_PATHS local plugin repositories, package.json/package.v2.json/package.v3.json metadata, plugins/plugins.v2/plugins.v3 layouts, safe file exclusion, diff preview before publishing, incremental GitHub Contents API updates, and syncing local plugin changes back from GitHub. Includes asking whether to use an existing repository or create a new public repository when no target repository is
repo: jxxghp/MoviePilot
热度
- GitHub 星标
- 12k
- 排名
- #11489
- 许可证
- GPL-3.0
- 更新时间
- 2026/11/1
评论
- …