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.