← スキル一覧に戻る

backend-api-foundation
by Zaibunis
⭐ 0🍴 0📅 2026年1月16日
SKILL.md
name: backend-api-foundation description: Generate backend routes, handle request/response logic, and connect applications to databases. Use for building scalable APIs.
Backend API Development
Instructions
-
Route Creation
- Define RESTful routes (GET, POST, PUT, DELETE)
- Group routes by resource
- Use clear and consistent URL patterns
-
Request & Response Handling
- Parse request bodies, params, and query strings
- Validate incoming data
- Send structured JSON responses
- Handle errors with proper HTTP status codes
-
Database Connectivity
- Connect to a database (SQL or NoSQL)
- Implement CRUD operations
- Use environment variables for credentials
- Handle connection errors gracefully
Best Practices
- Follow REST conventions
- Keep controllers thin and logic modular
- Use async/await for database operations
- Never expose sensitive data in responses
- Centralize error handling
Example Structure
// routes/user.routes.js
import express from "express";
import { getUsers, createUser } from "../controllers/user.controller.js";
const router = express.Router();
router.get("/users", getUsers);
router.post("/users", createUser);
export default router;
スコア
総合スコア
40/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です