feat(skills): 内置技能支持版本号管理,更新时自动覆盖旧版本

SKILL.md frontmatter新增version字段,同步时比较版本号,
内置版本更高时直接覆盖用户目录中的旧版本。
This commit is contained in:
jxxghp
2026-04-09 07:17:04 +08:00
parent 0c51d79be7
commit dc428e7de0
7 changed files with 86 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
---
name: command-dispatch
version: 1
description: >-
Use this skill when the user's intent is to execute a system or plugin function. Applicable scenarios include:
1) The user sends a slash command starting with / (e.g. /cookiecloud, /sites, /subscribes, etc.);

View File

@@ -1,5 +1,6 @@
---
name: database-operation
version: 1
description: >-
Use this skill when you need to execute SQL against the MoviePilot database.
This skill guides you through connecting to the database and executing SQL statements.

View File

@@ -1,5 +1,6 @@
---
name: generate-identifiers
version: 1
description: >-
Use this skill when a user provides a torrent name or file name and wants to fix recognition issues,
or asks to add/manage custom identifiers (自定义识别词).

View File

@@ -1,5 +1,6 @@
---
name: moviepilot-api
version: 1
description: Use this skill when you need to call MoviePilot REST API endpoints directly. Covers all 237 API endpoints across 27 categories including media search, downloads, subscriptions, library management, site management, system administration, plugins, workflows, and more. Use this skill whenever the user asks to interact with MoviePilot via its HTTP API, or when the moviepilot-cli skill cannot cover a specific operation.
---

View File

@@ -1,5 +1,6 @@
---
name: moviepilot-cli
version: 1
description: Use this skill for any request involving movies, TV shows, or anime, including searching, downloads, subscriptions, library management. Also use this skill whenever the user explicitly mentions MoviePilot.
---

View File

@@ -1,5 +1,6 @@
---
name: moviepilot-update
version: 1
description: Use this skill when you need to restart or upgrade MoviePilot. This skill covers system restart, version check, and manual upgrade procedures.
---