henrydiaosi/ai-framework/user
Claude Code and agent skill by henrydiaosi/ai-framework
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install henrydiaosi/ai-framework/userSKILL.md
User 用户模块
层级:第 3 层(子模块文档)上层:src/SKILL.md
<!-- @index
| key | tags | desc | |
|---|---|---|---|
| overview | 概述,架构 | 模块概述 | |
| api:getById | 查询,ID,获取 | 根据ID获取用户 | |
| api:getByEmail | 查询,邮箱,获取 | 根据邮箱获取用户 | |
| api:update | 更新,修改,编辑 | 更新用户信息 | |
| api:delete | 删除,移除 | 删除用户 | |
| deps | 依赖,引用 | 依赖关系 |
-->
<!-- @key:overview -->
模块概述
- 职责:用户信息的增删改查
- 位置:src/modules/user/
- 依赖:core/database, core/logger, core/error
模块架构
<!-- @/key:overview -->
API 文档
UserService
<!-- @key:api:getById -->
getById(id: string): Promise<User>
功能说明:根据 ID 获取用户信息
参数:
id(string): 用户 ID
返回值:
- (Promise<User>): 用户对象
抛出异常:
NotFoundError: 当用户不存在时
使用示例:
<!-- @/key:api:getById -->
<!-- @key:api:getByEmail -->
getByEmail(email: string): Promise<User | null>
功能说明:根据邮箱获取用户信息
参数:
email(string): 用户邮箱
返回值:
- (Promise<User | null>): 用户对象,不存在时返回 null
使用示例:
<!-- @/key:api:getByEmail -->
<!-- @key:api:update -->
update(id: string, dto: UpdateUserDto): Promise<User>
功能说明:更新用户信息
参数:
id(string): 用户 IDdto(UpdateUserDto): 更新数据name(string, 可选): 用户名称avatar(string, 可选): 头像 URL
返回值:
- (Promise<User>): 更新后的用户对象
抛出异常:
NotFoundError: 当用户不存在时ValidationError: 当参数验证失败时
使用示例:
<!-- @/key:api:update -->
<!-- @key:api:delete -->
delete(id: string): Promise<void>
功能说明:删除用户(软删除)
参数:
id(string): 用户 ID
返回值:
- (Promise<void>)
抛出异常:
NotFoundError: 当用户不存在时
<!-- @/key:api:delete -->
<!-- @key:deps -->
依赖关系
内部依赖
@/core/database: 数据库操作@/core/logger: 日志记录@/core/error: 错误处理
相关文档
<!-- @/key:deps -->
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingexample-project/src/modules/user/SKILL.md
Popularity
- Repository stars
- 54
- Repository forks
- 11
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/henrydiaosi/ai-framework/user)