agentleFS
myths-labsmyths-labs/muse/skills/toolkit/api-design-principles/SKILL.md

api-design-principles

Skill35 starsChanged 8 months agoMITView on GitHub

Guidelines for designing robust, scalable, and intuitive APIs.

20 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use tailwind-design-system, python-performance-optimization and 8 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • xfstudioSkill

    tailwind-design-system

    Build scalable design systems with Tailwind CSS, design tokens, component libraries, and responsive patterns. Use when creating component libraries, implementing design systems, or standardizing UI patterns.

    Also in 6 projects that use this

  • xfstudioSkill

    python-performance-optimization

    Profile and optimize Python code using cProfile, memory profilers, and performance best practices. Use when debugging slow Python code, optimizing bottlenecks, or improving application performance.

    Also in 4 projects that use this

  • akornmeierSkill

    shadcn-ui

    Use when building React UIs with component libraries, implementing forms, dialogs, navigation, or data display. Use when user mentions shadcn, Radix UI, Base UI, or asks about accessible React components. Proactively suggest when building UI that would benefit from pre-built accessible components with Tailwind CSS styling.

    Also in 4 projects that use this

  • beshkenadzeSkill

    typescript-advanced-types

    Advanced TypeScript types (generics, conditionals, mapped, utilities). Use when building type-safe libraries or implementing complex type logic.

    Also in 3 projects that use this

  • +6 more from xfstudio

The file

Files
SKILL.md

API Design Principles

Design APIs that are easy to use and hard to misuse.

RESTful Standards

  • Resources: Nouns, plural (e.g., /users, /articles).
  • Methods: GET (read), POST (create), PUT/PATCH (update), DELETE (remove).
  • Status Codes:
    • 200 OK, 201 Created
    • 400 Bad Request, 401 Unauthorized, 403 Forbidden, 404 Not Found
    • 500 Server Error

Data Format

  • JSON: Standard response format.
  • Snake Case: user_id, created_at (or camelCase if project standard).
  • Pagination: page, limit or cursor-based.
  • Filtering/Sorting: Query parameters.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.