بنقرة واحدة
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 المهني
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
| 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
}