revfactory/claude-code-harness/express-api-design

Claude Code and agent skill by revfactory/claude-code-harness

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Express.js REST API design and implementation guide. Use when implementing REST API endpoints, creating Express routes, or setting up API project structure with MVC pattern.

Install

npx vskill@latest install revfactory/claude-code-harness/express-api-design

SKILL.md

The same SKILL.md was published earlier as revfactory/claude-code-harness/express-api-design.

Express API Design

프로젝트 구조

src/
app.js - Express 앱 설정, 미들웨어 등록, 라우트 마운트
routes/
{resource}Routes.js - 라우트 정의 (HTTP 메서드 + 경로)
controllers/
{resource}Controller.js - 비즈니스 로직
models/
{resource}Store.js - 데이터 모델 및 CRUD 연산
middleware/
validate.js - 입력 유효성 검사 미들웨어
errorHandler.js - 글로벌 에러 핸들링

REST 규칙

  • GET /resources - 목록 조회 -> 200
  • GET /resources/:id - 단건 조회 -> 200 / 404
  • POST /resources - 생성 -> 201 / 400
  • PUT /resources/:id - 수정 -> 200 / 400 / 404
  • DELETE /resources/:id - 삭제 -> 200 / 404

핵심 원칙

  1. 모든 라우트는 controllers를 통해 처리
  2. 에러는 글로벌 에러 핸들러로 전파 (컨트롤러에서 throw)
  3. 입력 유효성 검사는 미들웨어에서 처리하여 재사용
  4. 일관된 에러 응답 형식: { error: "메시지" }
  5. JSON 파싱 에러 별도 처리
  6. 데이터 모델은 클래스 기반 싱글턴 스토어로 구현
  7. 반환 시 스프레드 복사본 사용하여 불변성 보장
  8. 자동 ID 생성 (auto-increment) 및 createdAt 자동 설정

상세 코드 패턴은 references/patterns.md 참조.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/revfactory/claude-code-harness/express-api-design/badge)](https://verified-skill.com/skills/revfactory/claude-code-harness/express-api-design)

Something wrong with this skill or its page? Tell us.