用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/RainyGao-GitHub/DocSys --skill lock-doc命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | lock_doc |
| description | Lock a document to prevent editing by others |
| category | document |
| version | 1.1.0 |
| author | DocSys Team |
| permissions | ["write:document"] |
| tags | ["document","lock","protect","editing"] |
Lock a document to prevent concurrent editing by other users.
Lock doc, lock document, lock file, 锁定文档, 锁定文件, protect doc, 文档锁定, 文件锁定, lock for editing, prevent edits, 加锁
docsys repos list. If docId missing → call docsys docs list <vid>.docsys lock <vid> <docId> [type]docsys lock <vid> <docId> 2 (shared) to take a shared lock instead.docsys lock <vid> <docId> [type]
| Parameter | Type | Required | Description |
|---|---|---|---|
| vid | number | yes | Repository ID |
| docId | number | yes | Document ID |
| type | number | no | Lock type: 1=exclusive (default), 2=shared |
User: "lock document 123 in repo 1"
Skill triggers → calls: docsys lock 1 123
Output: Lock confirmation
User: "锁定文档 456 in repo 2"
Skill triggers → Step 1: vid=2, docId=456 → Step 3: confirm → calls: docsys lock 2 456
Output: 锁定结果
User: "lock doc 789 exclusively in repo 3"
Skill triggers → Step 1: vid=3, docId=789, type=1 (exclusive) → Step 3: confirm "Exclusive lock prevents ALL other users" → calls: docsys lock 3 789 1
Output: Lock result
| Field | Type | Description |
|---|---|---|
| docId | number | Document ID |
| vid | number | Repository ID |
| lockType | number | Lock type: 1=exclusive, 2=shared |
| locked_by | string | Username of lock holder |
Success (EN): 🔒 Document {docId} in repo {vid} locked ({type: exclusive/shared}). Locked by: {username}
Success (中文): 🔒 文档 {docId}(仓库 {vid})已锁定(类型: {独占/共享})。锁定者: {username}
Already locked (EN): 🔒 Document {docId} is already locked by {username}. Contact them or use shared lock (type 2).
Already locked (中文): 🔒 文档 {docId} 已被 {username} 锁定。请联系对方或使用共享锁(type 2)。
Error (EN): ❌ Lock failed: {reason}
Error (中文): ❌ 锁定失败:{原因}
lockDoc.do API uses reposId as the parameter name (not vid)reposId={vid} — ensure any direct API calls also use reposIdlockDoc.do always returns docId=0 in the response regardless of input — the lock operation succeeds but the response does not reflect the locked document's ID| Error | Cause |
|---|---|
| Usage: lock | Missing arguments |
| Document not found | Invalid vid or docId |
| Already locked | Locked by another user |
| Permission denied | No write access |
See references/ for related skills and API docs.