Back to list
Zaibunis

backend-api-foundation

by Zaibunis

0🍴 0📅 Jan 16, 2026

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

  1. Route Creation

    • Define RESTful routes (GET, POST, PUT, DELETE)
    • Group routes by resource
    • Use clear and consistent URL patterns
  2. Request & Response Handling

    • Parse request bodies, params, and query strings
    • Validate incoming data
    • Send structured JSON responses
    • Handle errors with proper HTTP status codes
  3. 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;

Score

Total Score

40/100

Based on repository quality metrics

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

Reviews

💬

Reviews coming soon