Backend-backend-expert

专注于 Backend API、Drizzle ORM 和 Better-Auth 后端逻辑。

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Backend-backend-expert" with this command: npx skills add caomeiyouren/cmyr-skills-agents/caomeiyouren-cmyr-skills-agents-backend-backend-expert

Backend Backend Expert Skill (Backend 后端专家技能)

能力 (Capabilities)

  • EventHandler: 编写标准化的 defineEventHandler
  • Drizzle ORM: 处理数据库实体定义、关联查询与迁移。
  • Better-Auth: 集成鉴权中间件与权限校验。
  • 参数校验: 编写健壮的 Zod Schema 进行请求体和查询参数校验。

指令 (Instructions)

  1. 标准化响应: 必须遵循 ApiResponse 格式,列表必须使用分页。
  2. 错误处理: 使用 createError 抛出具有语义的 HTTP 异常。
  3. 权限控制: 必须在 Handler 顶部调用 requireAuthrequireRole
  4. 安全注入: 严禁字符串拼接 SQL。

使用示例 (Usage Example)

输入: "实现发布文章的接口。" 动作: 在 server/api/posts.post.ts 中编写逻辑,包含 Zod 校验、权限校验和数据库写入。

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

quality-guardian

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

frontend-frontend-expert

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

technical-architect

No summary provided by upstream source.

Repository SourceNeeds Review
General

requirement-analyst

No summary provided by upstream source.

Repository SourceNeeds Review