Service structure conventions for this codebase: routing, layering, and where code lives.

MITAuto-check passed

Install API Conventions

skills CLI
$ npx skills add TheDecipherist/claude-code-mastery-project-starter-kit --skill api-conventions -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install TheDecipherist/claude-code-mastery-project-starter-kit api-conventions --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/TheDecipherist/claude-code-mastery-project-starter-kit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/api-conventions .claude/skills/api-conventions && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
api-conventions
GitHub stars
338
Token cost
~512 tokens
SKILL.md length
257 words
Files
1
Skills in repo
24
Repo updated
First seen
Licence
MIT

At a glance

Service structure conventions for this codebase: routing, layering, and where code lives.

  • Modifying a services server entry
  • SKILL.md covers Versioning, server.ts is thin, handlers/ hold the logic and adapters/ wrap everything…, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Route definitions

What it does

API Conventions is an agent skill from TheDecipherist/claude-code-mastery-project-starter-kit. Service structure conventions for this codebase: routing, layering, and where code lives. Use whenever writing or modifying a service's server entry, route definitions, handlers, or adapters. Loads inline so it shapes structure as code is written.

Its SKILL.md is about 510 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: The definitive starting point for Claude Code projects. Based on Claude Code Mastery Guides V1-V5. The licence is MIT.

When your agent uses it

  • Modifying a services server entry
  • Route definitions

Example prompts

  • “/api-conventions”

What it can do on your machine

Read from SKILL.md and the folder at commit 61fbb99. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

API Conventions loads about 512 tokens when it runs. Until then it costs about 66 tokens; SKILL.md has 257 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~66
When it runs · the whole SKILL.md, loaded when a task matches
~512

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from TheDecipherist/claude-code-mastery-project-starter-kit at commit 61fbb99, republished under its MIT licence (© TheDecipherist). 257 words, ~512 tokens.

Download SKILL.mdSave it as .claude/skills/api-conventions/SKILL.md (or your agent's skills folder).
name
api-conventions
description
Service structure conventions for this codebase: routing, layering, and where code lives. Use whenever writing or modifying a service's server entry, route definitions, handlers, or adapters. Loads inline so it shapes structure as code is written.

Service Architecture Conventions

Every service is three layers, one direction: server.ts → handlers/ → adapters/. Apply while writing, not after.

Versioning

  • All routes live under /api/v1/. New endpoints are versioned from the first line. No unversioned routes "for now."

server.ts is thin

  • server.ts defines routes and delegates. Nothing else.
  • No business logic in server.ts or in a route definition. A route wires the request to a handler and returns its result.

handlers/ hold the logic

  • Business logic lives in handlers/, one file per domain.
  • A handler owns its domain's rules and orchestration. It calls adapters for anything external. It does not reach outside the process itself.

adapters/ wrap everything external

  • Database, external APIs, queues, anything outside the process goes through an adapter in adapters/. Handlers never touch them directly.
  • The database adapter uses StrictDB when it's installed, otherwise the native driver. Never Mongoose. A handler that imports a driver or calls an external API inline is wrong, that belongs in an adapter. The data adapter is the one place driver code lives, which is also where the mongodb-rules apply.

Service (package) separation

  • A service owns its domain and is reached through its interface. A package does not reach into another package's internals or its data. Call the owning service.
  • Code two services both need is hoisted to a shared layer, never imported sideways from a sibling.

The test: routes in server.ts read request-in, handler-call, response-out. Logic sits in handlers/. Anything that leaves the process goes through adapters/, and the data adapter uses StrictDB if installed, the native driver otherwise.

© TheDecipherist, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/api-conventions of TheDecipherist/claude-code-mastery-project-starter-kit.

Open the folder on GitHubat commit 61fbb99

Compare with similar skills

API Conventions next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

API Conventions compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
API Conventions this skillTheDecipherist/claude-code-mastery-project-starter-kit338—~512Automated safety check: PassMIT
Ecc Conventionsaffaan-m/ECC274k—~2.8kAutomated safety check: PassMIT
Naming Conventionsthedaviddias/Front-End-Checklist74k—~481Automated safety check: PassMIT
Cascade Layersthedaviddias/Front-End-Checklist74k—~514Automated safety check: PassMIT
Conventional CommitJanDeDobbeleer/oh-my-posh24k—~1.2kAutomated safety check: NotesMIT
Layered Designsickn33/agentic-awesome-skills47k1 repos~2.2kAutomated safety check: PassMIT

Similar skills

  • Ecc Conventions

    affaan-m/ECC

    Development conventions and patterns for ECC. An agent skill from affaan-m/ECC.

    274k GitHub stars~2.8k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Naming Conventions

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing stylesheets, component styles, and responsive behavior related to Use consistent CSS naming conventions.

    74k GitHub stars~481 tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Cascade Layers

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing a CSS architecture for specificity issues, setting up a design system, or migrating a large codebase from utility-first to a layered architecture.

    74k GitHub stars~514 tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Conventional Commit

    JanDeDobbeleer/oh-my-posh

    Workflow for generating conventional commit messages following the Conventional Commits specification.

    24k GitHub stars~1.2k tokensUpdated today
    DevelopmentAuto-check: notes
  • Layered Design

    sickn33/agentic-awesome-skills

    Web and App implementation guide for Layered Design. An agent skill from sickn33/agentic-awesome-skills.

    47k GitHub starsUsed in 1 repo~2.2k tokens
    MobileAuto-check passed
  • Backend Conventions

    getsentry/sentry

    Official

    Sentry backend conventions for logging, tracing/spans, span/tag attribute naming, metrics tags, and the options system.

    45k GitHub stars~1.3k tokensUpdated today
    Auto-check passed

More from TheDecipherist/claude-code-mastery-project-starter-kit

All 24 skills in this repo
  • Create Service

    TheDecipherist/claude-code-mastery-project-starter-kit

    Scaffold a new microservice that follows the project's server/handlers/adapters architecture.

    338 GitHub stars~1.8k tokensUpdated 3 mo ago
    Auto-check: notes
  • CSS Structure

    TheDecipherist/claude-code-mastery-project-starter-kit

    Where CSS should live. An agent skill from TheDecipherist/claude-code-mastery-project-starter-kit.

    338 GitHub stars~1k tokensUpdated 3 mo ago
    Auto-check passed
  • Docker

    TheDecipherist/claude-code-mastery-project-starter-kit

    Production Docker best practices for writing Dockerfiles, Compose files, and Swarm stacks.

    338 GitHub stars~1.6k tokensUpdated 3 mo ago
    Auto-check: notes
  • Docker Swarm

    TheDecipherist/claude-code-mastery-project-starter-kit

    Production Docker Swarm deployment rules: what changes when a compose file goes from a single node to a multi-node Swarm.

    338 GitHub stars~1.8k tokensUpdated 3 mo ago
    Auto-check passed
  • Mongodb Backups

    TheDecipherist/claude-code-mastery-project-starter-kit

    Production MongoDB backup and restore practices that the documentation gets wrong.

    338 GitHub stars~1.3k tokensUpdated 3 mo ago
    Auto-check passed
  • Mongodb Replica Sets

    TheDecipherist/claude-code-mastery-project-starter-kit

    Production MongoDB replica-set operation: topology, durability, host tuning, and the container-specific gotchas Claude gets wrong.

    338 GitHub stars~1.6k tokensUpdated 3 mo ago
    Auto-check passed

Questions about API Conventions

What does API Conventions do?

Service structure conventions for this codebase: routing, layering, and where code lives. API Conventions is an agent skill from TheDecipherist/claude-code-mastery-project-starter-kit. Service structure conventions for this codebase: routing, layering, and where code lives.

When should I use API Conventions?

API Conventions fits situations like: modifying a services server entry; route definitions.

How do I install API Conventions in Claude Code?

Run `npx skills add TheDecipherist/claude-code-mastery-project-starter-kit --skill api-conventions -a claude-code`. Or copy the skill folder (.claude/skills/api-conventions in TheDecipherist/claude-code-mastery-project-starter-kit) into .claude/skills/api-conventions in your project. Claude Code loads it when a task matches its description.

How do I install API Conventions in Codex?

Run `npx skills add TheDecipherist/claude-code-mastery-project-starter-kit --skill api-conventions -a codex`. Or copy the skill folder (.claude/skills/api-conventions in TheDecipherist/claude-code-mastery-project-starter-kit) into .agents/skills/api-conventions in your project. Codex loads it when a task matches its description.

Can I use API Conventions in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add TheDecipherist/claude-code-mastery-project-starter-kit --skill api-conventions -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/api-conventions, .gemini/skills/api-conventions, .github/skills/api-conventions and .opencode/skills/api-conventions in your project.

What does API Conventions need to run?

SKILL.md names no scripts, command-line tools or credentials: API Conventions is instructions for the agent only.

Does API Conventions access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is API Conventions safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does API Conventions use?

API Conventions is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does API Conventions use?

About 512 tokens (SKILL.md is roughly 2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to API Conventions?

Skills that share tags, products or a category with API Conventions: Ecc Conventions (affaan-m/ECC, 274k stars), Naming Conventions (thedaviddias/Front-End-Checklist, 74k stars), Cascade Layers (thedaviddias/Front-End-Checklist, 74k stars) and Conventional Commit (JanDeDobbeleer/oh-my-posh, 24k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains API Conventions?

TheDecipherist (a GitHub user) maintains it in TheDecipherist/claude-code-mastery-project-starter-kit, which has 338 GitHub stars. The repository holds 24 skills in this directory. The repository was last updated on June 29, 2026.

Source: TheDecipherist/claude-code-mastery-project-starter-kit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.