一键导入
backend-dev
Backend development guide — API design, data modeling, business logic, security, performance
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Backend development guide — API design, data modeling, business logic, security, performance
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | backend-dev |
| version | 1.0.0 |
| description | Backend development guide — API design, data modeling, business logic, security, performance |
| requires | [] |
| task_types | ["feature-implementation","backend","api","database"] |
| applies_to_tags | ["backend","api","database","server","service"] |
{
"data": { ... },
"error": null,
"meta": { "total": 100, "page": 1, "limit": 20 }
}
| Tình huống | Code |
|---|---|
| Thành công có data | 200 |
| Tạo mới thành công | 201 |
| Không có nội dung | 204 |
| Validation error | 400 |
| Chưa auth | 401 |
| Không có quyền | 403 |
| Không tìm thấy | 404 |
| Conflict (duplicate) | 409 |
| Server error | 500 |
/api/v1/ prefixDeprecated: true trước khi removelimit max 100, default 20deleted_at timestamp thay hard delete với data quan trọng// Wrap multi-step mutations trong transaction
await db.transaction(async (tx) => {
await tx.update(tasks).set({ status: 'done' })
await tx.insert(auditNotes).values({ ... })
})
api_key_ref phải dạng env:VAR, secret:name — không raw value// Service throws typed errors
class NotFoundError extends Error {
constructor(resource: string, id: string) {
super(`${resource} ${id} not found`)
}
}
// Route handler catches và map sang HTTP
try {
const result = await service.getTask(id)
return { data: result }
} catch (e) {
if (e instanceof NotFoundError) return sendError(event, 404, e.message)
throw e // let global handler deal with unexpected errors
}
Backend testing guide — unit, integration, API contract, database, load testing
Codebase second brain workflow for AI agents — use repo maps and capability maps before deep code reads
Multi-agent coordination skill — task decomposition, dependency tracking, handoff protocol, conflict resolution
Frontend development guide — UI implementation, component architecture, state management, performance
Frontend testing guide — unit, integration, visual regression, accessibility, E2E for UI
Project management skill — sprint planning, backlog grooming, risk management, reporting, stakeholder communication