用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/RainyGao-GitHub/DocSys --skill move-doc命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | move_doc |
| description | Move a document to another folder within the same repository |
| category | document |
| version | 1.1.0 |
| author | DocSys Team |
| permissions | ["write:document"] |
| tags | ["document","move","relocate","folder"] |
Move a document or folder to another location within the same repository.
Move doc, move document, move file, 移动文档, 移动文件, 移动到, relocate doc, transfer doc, move to folder, 移动这个文件, 文件移动, mv
docsys docs list <vid> to find folder names and map to targetPid. If vid missing → call docsys repos list to resolve.docsys doc move <vid> <docId> <targetPid>docsys doc move <vid> <docId> <originalPid>docsys doc move <vid> <docId> <targetPid>
| Parameter | Type | Required | Description |
|---|---|---|---|
| vid | number | yes | Repository ID |
| docId | number | yes | Document ID to move |
| targetPid | number | yes | Target folder ID (0 = root) |
User: "move document 123 to folder 5 in repo 1"
Skill triggers → calls: docsys doc move 1 123 5
Output: Move result
User: "把文档 456 移动到根目录,仓库是 2"
Skill triggers → calls: docsys doc move 2 456 0
Output: 移动到根目录结果
User: "move file 789 to folder Archive"
Skill triggers → Step 1: docId=789, targetPid=missing → Step 2: calls docsys docs list <vid> to find folder named "Archive" → resolve targetPid=6 → Step 3: confirm → calls: docsys doc move <vid> 789 6
Output: Move result
| Field | Type | Description |
|---|---|---|
| docId | number | Document ID moved |
| vid | number | Repository ID |
| from_pid | number | Original folder ID |
| to_pid | number | Target folder ID |
Success (EN): ✅ Document {docId} moved | repo {vid} | from folder {from_pid} → {to_pid}
Success (中文): ✅ 文档 {docId} 已移动 | 仓库 {vid} | 从 {from_pid} → {to_pid}
Rollback: To undo: docsys doc move {vid} {docId} {from_pid}
Error: "Document not found" | "Target folder not found" | "Permission denied"
| Error | Cause |
|---|---|
| Usage: doc move | Missing arguments |
| Document not found | Invalid vid or docId |
| Target folder not found | Invalid targetPid |
| Already in this folder | source == target |
| Permission denied | No write access |
See references/ for related skills and API docs.