henrydiaosi/ai-framework/src

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/src

SKILL.md

源代码模块

层级:第 2 层(模块文档)
上层:根 SKILL.md

模块概述

本目录包含项目的所有源代码,按功能模块组织。

模块架构

src/
├── modules/ # 功能模块
│ ├── auth/ # 认证模块
│ └── user/ # 用户模块
├── core/ # 核心模块
│ ├── database/ # 数据库连接
│ ├── logger/ # 日志服务
│ └── error/ # 错误处理
├── shared/ # 共享代码
│ ├── utils/ # 工具函数
│ └── types/ # 类型定义
└── index.ts # 入口文件

目录结构

modules/ - 功能模块

业务功能模块,每个模块独立负责一个业务领域。

auth/ - 认证模块

用户登录、注册、Token 管理等认证相关功能。

user/ - 用户模块

用户信息管理、用户查询等功能。

core/ - 核心模块

框架级别的核心功能,被所有业务模块依赖。

  • database/ - 数据库连接和操作封装
  • logger/ - 统一日志服务
  • error/ - 错误处理和自定义错误类型
shared/ - 共享代码

跨模块共享的工具和类型定义。

  • utils/ - 通用工具函数
  • types/ - TypeScript 类型定义

模块开发规范

模块结构标准

每个功能模块应遵循以下结构:

module-name/
├── SKILL.md # 模块文档
├── index.ts # 模块入口,导出公共 API
├── controllers/ # 控制器层
├── services/ # 服务层
├── models/ # 数据模型
├── types/ # 类型定义
└── __tests__/ # 测试文件
导入规范
typescript
// ✅ 正确:使用模块入口导入
import { AuthService, LoginDto } from '@/modules/auth';
// ❌ 错误:直接导入内部文件
import { AuthService } from '@/modules/auth/services/auth.service';
错误处理
typescript
// ✅ 正确:使用统一的错误类型
import { ValidationError, NotFoundError } from '@/core/error';
throw new ValidationError('Invalid email format');
// ❌ 错误:使用通用 Error
throw new Error('Invalid email format');

依赖关系

modules/auth ──────┐
├──> core/database
modules/user ──────┤
├──> core/logger
└──> core/error

相关文档

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/henrydiaosi/ai-framework/src/badge)](https://verified-skill.com/skills/henrydiaosi/ai-framework/src)

Something wrong with this skill or its page? Tell us.