publish-moviepilot-plugin
Skill này làm gì
Skill hướng dẫn AI tải một plugin MoviePilot trên máy lên kho GitHub, xem trước thay đổi và không đưa thông tin bí mật vào bản tải lên. Dành cho nhà phát triển plugin muốn chia sẻ plugin của mình.
Khi nào nên dùng
- ✓Khi bạn muốn xuất bản plugin MoviePilot lên kho GitHub.
- ✓Khi bạn muốn so sánh plugin trên máy với phiên bản đã có trên GitHub.
- ✓Khi bạn muốn kéo các file mới nhất của plugin từ GitHub về mã nguồn trên máy.
Liên kết skill
https://github.com/jxxghp/MoviePilot/blob/v3/skills/publish-moviepilot-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
“Hãy xuất bản plugin MoviePilot của tôi lên GitHub, nhưng cho tôi xem các thay đổi trước.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI kiểm tra metadata và cấu trúc thư mục của plugin, loại trừ các file nhạy cảm, xem trước phần khác biệt và chỉ ghi lên GitHub sau khi bạn đã xem bản xem trước.
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.
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
Câu hỏi thường gặp
Kho GitHub mới có công khai không?
Skill ghi rõ kho mặc định là công khai, trừ khi bạn yêu cầu kho riêng tư.
Có cần đưa token GitHub vào khung chat không?
Không. Skill dùng lại token GitHub đã được cài trong phần cài đặt của MoviePilot.
Skill có xuất bản các plugin khác không?
Không. Skill chỉ xuất bản plugin bạn nêu tên và chỉ gộp mục metadata của plugin đó.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 12k
- Vị trí xếp hạng
- #11489
- Giấy phép
- GPL-3.0
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
anysearch
12kGiúp agent của bạn tìm kiếm web theo thời gian thực, truy vấn các nguồn chuyên biệt như tài chính hoặc học thuật và đọc toàn văn trang web.
browser-use
12kGiúp agent của bạn mở trang web, đọc nội dung, nhấp nút, điền biểu mẫu và chụp màn hình để kiểm tra kết quả.
command-dispatch
12kGiúp agent của bạn tìm và chạy các lệnh hệ thống hoặc plugin của MoviePilot từ một yêu cầu, sau khi kiểm tra lệnh nào tồn tại.
create-moviepilot-plugin
12kGiúp agent của bạn tạo hoặc sửa plugin MoviePilot, dùng đúng bố cục file và thiết lập cho phiên bản MoviePilot.
Skill tương tự
api-connector-builder
280kGiúp agent của bạn xây dựng kết nối API mới theo đúng mẫu đã có, dùng khi bạn cần thêm một tích hợp mà không tạo cách làm mới.
api-design
280kGiúp agent của bạn thiết kế REST API theo các thực hành tốt nhất, hữu ích để định nghĩa cách API giao tiếp, hiển thị lỗi và tổ chức dữ liệu.
backend-patterns
280kGiúp agent của bạn với các mẫu kiến trúc phía máy chủ và tối ưu cơ sở dữ liệu, hữu ích khi xây dựng hoặc rà soát code chạy trên máy chủ.