๐Ÿ”Œ
AI EngineeringJavaScript

API Conventions

by huangjia2019

API Conventions is an AI Engineering skill for Claude Code, published by huangjia2019 in claude-code-engineering.

1.1K stars379 forkson huangjia2019/claude-code-engineeringAdded 2026/08/21Repository updated 2026/07/23
agentagentic-aiaiclaudeclaude-codeclaude-skills
Install in seconds
Install API Conventions
Copy API Conventions into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/huangjia2019/claude-code-engineering/tree/main/04-Skills/projects/01-reference-skill/.claude/skills/api-conventions ~/.claude/skills/api-conventions

Requires Node.js. Downloads this skill only โ€” not the rest of the repository โ€” into your Claude Code skills folder.

Without Node.js

git clone https://github.com/huangjia2019/claude-code-engineering.git

Clones the whole repository, then copy the skillโ€™s own directory into your skills folder yourself.

In this catalog

Source file
04-Skills/projects/01-reference-skill/.claude/skills/api-conventions/SKILL.md in huangjia2019/claude-code-engineering
Installs to
~/.claude/skills/api-conventions
Collection
One of 13 skills cataloged from this repository
Category
AI Engineering โ€” 2451 skills

What API Conventions does

API Conventions defines REST URL naming, response shapes, status codes, and authentication rules for this project. Use it when designing or reviewing endpoints and request or response formats.

API Conventions is cataloged under AI Engineering on DirSkills. API Conventions comes from a repository tagged agent, agentic-ai, ai, claude and claude-code.

Documentation

README

API Design Conventions

These are the API design standards for our project. Apply these conventions whenever working with API endpoints.

URL Naming

  • Use plural nouns for resources: /users, /orders, /products
  • Use kebab-case for multi-word resources: /order-items, /user-profiles
  • Nested resources for belongsTo relationships: /users/{id}/orders
  • Maximum two levels of nesting; beyond that, use query parameters
  • Use query parameters for filtering: /orders?status=active&limit=20

Response Format

All API responses must follow this structure:

{
  "data": {},
  "error": null,
  "meta": {
    "page": 1,
    "limit": 20,
    "total": 100
  }
}
  • data: ๆˆๅŠŸๆ—ถ่ฟ”ๅ›ž็š„ไธšๅŠกๆ•ฐๆฎ
  • error: ้”™่ฏฏๆ—ถ่ฟ”ๅ›ž้”™่ฏฏๅฏน่ฑก { code, message, details }๏ผŒๆˆๅŠŸๆ—ถไธบ null
  • meta: ๅˆ†้กตๅ’Œๅ…ƒไฟกๆฏ๏ผŒๅˆ—่กจๆŽฅๅฃๅฟ…้กป่ฟ”ๅ›ž

This is the opening of the README. Read the full README on GitHub.

Commands API Conventions provides

Slash commands named in this skillโ€™s SKILL.md, listed in the order they first appear.

  • /users
  • /orders
  • /products
  • /order-items
  • /user-profiles

Frequently asked about API Conventions

  • What else does huangjia2019 publish alongside API Conventions?

    API Conventions is one of 13 skills that DirSkills catalogs from huangjia2019/claude-code-engineering, the repository it ships in. Its siblings there include API Documentation, API Documentation Generator and API Documentation Generator. Each one is a separate skill with its own page in this directory, installs the same way API Conventions does, and is maintained by huangjia2019 in that same repository. The rest of the collection is listed on the huangjia2019/claude-code-engineering page.

  • How does API Conventions compare to other AI Engineering skills?

    API Conventions ranks #1302 by stars among the 2451 AI Engineering skills in this catalog. The most-starred ones next to it are Architecture Decision Records, AI-First Engineering and Agentic OS. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of API Conventions against them. Open each page to compare what they document and how they install.

More from huangjia2019/claude-code-engineering

API Conventions is one of 13 skills cataloged on DirSkills from huangjia2019/claude-code-engineering.

See all 13 skills โ†’