用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/RainyGao-GitHub/DocSys --skill user-login命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | user_login |
| description | Login to DocSystem with username and password |
| category | user |
| version | 1.1.0 |
| author | DocSys Team |
| permissions | ["auth"] |
| tags | ["auth","login","session","security","credential"] |
Login to DocSystem with username and password.
Login, 登录, 用户登录, sign in, 登入, 登录系统, log in, authenticate, 账号登录, 进入系统, log me in
username and password from user input.docsys login <username> <password>docsys login <username> <password>
| Parameter | Type | Required | Description |
|---|---|---|---|
| username | string | yes | Username |
| password | string | yes | Password |
User: "login as admin with password password123"
Skill triggers → calls: docsys login admin password123
Output: Login success with user info
User: "登录 zhangsan mypassword"
Skill triggers → calls: docsys login zhangsan mypassword
Output: 登录结果
User: "log me in as admin"
Skill triggers → Step 1 extracts username=admin; Step 2 detects password is missing → prompts user: "Please enter your password:" → user supplies password → calls: docsys login admin <password>
Output: Login success with username, role, session status. Password never echoed.
| Field | Type | Description |
|---|---|---|
| username | string | Authenticated username |
| role | string | User role (e.g., admin, user) |
| session | string | Session status: active / expired |
| logged_in_at | string | Login timestamp |
Success (EN): ✅ Logged in as {username} (role: {role}) | Session: active | Logged in at: {timestamp}
Success (中文): ✅ 登录成功: {username}(角色: {role})| 会话: active | 登录时间: {timestamp}
Error (EN): ❌ Login failed: Invalid credentials. Check your username and password.
Error (中文): ❌ 登录失败:用户名或密码错误。
Account locked (EN): ❌ Account locked due to too many failed attempts. Try again in 15 minutes or contact admin.
Account locked (中文): ❌ 账户因多次登录失败已被锁定。请 15 分钟后再试,或联系管理员。
Account disabled (EN): ❌ Account disabled. Contact admin to re-enable.
Account disabled (中文): ❌ 账户已被禁用。请联系管理员重新启用。
Connection failed (EN): ❌ Cannot connect to DocSystem server. Check network and try again.
Connection failed (中文): ❌ 无法连接到 DocSystem 服务器。请检查网络连接。
Missing args (EN): Usage: login <username> <password>
Missing args (中文): 用法: login <用户名> <密码>
⚠️ Security: Never display the password in the response. Never distinguish "wrong username" vs "wrong password" — use generic "Invalid credentials".
| Error | Cause |
|---|---|
| Usage: login | Missing arguments |
| Invalid credentials | Wrong username or password |
| Account locked | Too many failed attempts |
| Account disabled | User deactivated |
| Connection failed | Server unreachable |
See references/ for related skills and API docs.