Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Api Design 27

ASecurity

RESTful API 설계 시 따라야 할 원칙과 베스트 프랙티스를 정의합니다

2 stars
0 votes
0 copies
1 views
Added 9/27/2026
ai-agentsgoapi

Works with

cursorapi

Security Analysis

A100/100

Scanned 9/27/2026

$npx -y skills add David-Li0406/meta-skill-evloving --skill api-design-27 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Api Design 27?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Api Design 27
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-api-design-27/badge)](https://www.skillsdirectory.com/skills/david-li0406-api-design-27)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: api-design
description: RESTful API 설계 시 따라야 할 원칙과 베스트 프랙티스를 정의합니다
license: MIT
compatibility: opencode
metadata:
  category: architecture
  type: rest-api
---

# API 설계 가이드라인

RESTful API를 설계할 때 다음 원칙과 패턴을 따릅니다.

## 1. URL 설계 원칙

### 리소스 중심
```
# Good - 명사 사용
GET /users
GET /users/123
GET /users/123/orders

# Bad - 동사 사용
GET /getUsers
GET /getUserById/123
POST /createUser
```

### 복수형 사용
```
# Good
GET /users
GET /products
GET /orders

# Bad
GET /user
GET /product
```

### 계층 구조
```
# 리소스 간 관계 표현
GET /users/123/orders          # 특정 사용자의 주문 목록
GET /users/123/orders/456      # 특정 사용자의 특정 주문
POST /users/123/orders         # 특정 사용자에게 주문 생성
```

## 2. HTTP 메서드

| 메서드 | 용도 | 멱등성 | 안전성 |
|-------|------|-------|-------|
| GET | 리소스 조회 | ✅ | ✅ |
| POST | 리소스 생성 | ❌ | ❌ |
| PUT | 리소스 전체 수정 | ✅ | ❌ |
| PATCH | 리소스 부분 수정 | ❌ | ❌ |
| DELETE | 리소스 삭제 | ✅ | ❌ |

### 사용 예시
```
GET    /users          # 목록 조회
GET    /users/123      # 단일 조회
POST   /users          # 생성
PUT    /users/123      # 전체 수정
PATCH  /users/123      # 부분 수정
DELETE /users/123      # 삭제
```

## 3. HTTP 상태 코드

### 성공 (2xx)
| 코드 | 의미 | 사용 상황 |
|-----|------|---------|
| 200 | OK | 일반적인 성공 |
| 201 | Created | 리소스 생성 성공 |
| 204 | No Content | 성공, 반환 데이터 없음 (DELETE) |

### 클라이언트 에러 (4xx)
| 코드 | 의미 | 사용 상황 |
|-----|------|---------|
| 400 | Bad Request | 잘못된 요청 형식 |
| 401 | Unauthorized | 인증 필요 |
| 403 | Forbidden | 권한 없음 |
| 404 | Not Found | 리소스 없음 |
| 409 | Conflict | 충돌 (중복 등) |
| 422 | Unprocessable Entity | 유효성 검증 실패 |

### 서버 에러 (5xx)
| 코드 | 의미 | 사용 상황 |
|-----|------|---------|
| 500 | Internal Server Error | 서버 내부 에러 |
| 503 | Service Unavailable | 서비스 일시 중단 |

## 4. 요청/응답 형식

### 요청 본문
```json
POST /users
Content-Type: application/json

{
  "name": "홍길동",
  "email": "hong@example.com"
}
```

### 성공 응답
```json
HTTP/1.1 201 Created
Content-Type: application/json

{
  "id": "123",
  "name": "홍길동",
  "email": "hong@example.com",
  "createdAt": "2024-01-01T00:00:00Z"
}
```

### 에러 응답
```json
HTTP/1.1 400 Bad Request
Content-Type: application/json

{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "유효성 검증에 실패했습니다",
    "details": [
      {
        "field": "email",
        "message": "올바른 이메일 형식이 아닙니다"
      }
    ]
  }
}
```

## 5. 페이지네이션

### 쿼리 파라미터
```
GET /users?page=1&limit=20
GET /users?offset=0&limit=20
GET /users?cursor=abc123&limit=20
```

### 응답 형식
```json
{
  "data": [...],
  "pagination": {
    "page": 1,
    "limit": 20,
    "total": 100,
    "totalPages": 5
  }
}
```

## 6. 필터링 및 정렬

### 필터링
```
GET /users?status=active
GET /users?role=admin&status=active
GET /products?minPrice=1000&maxPrice=5000
```

### 정렬
```
GET /users?sort=createdAt:desc
GET /users?sort=name:asc,createdAt:desc
```

### 필드 선택
```
GET /users?fields=id,name,email
```

## 7. 버전 관리

### URL 버전
```
GET /v1/users
GET /v2/users
```

### 헤더 버전
```
GET /users
Accept: application/vnd.api+json;version=1
```

## 8. 보안 체크리스트

- [ ] HTTPS 사용
- [ ] 인증 (JWT, OAuth)
- [ ] 입력값 검증
- [ ] Rate Limiting
- [ ] CORS 설정
- [ ] 민감 정보 로깅 금지

Attribution

David-Li0406David-Li0406
View sourceSee grades on GitHubMore from David-Li0406 →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698621 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →