A comprehensive technical framework for architecting scalable, intuitive, and high-performance REST and GraphQL APIs.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install api-design-principles
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install api-design-principles using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
This skill serves as a definitive guide for developers looking to build robust interfaces using Openclaw Skills. It provides a detailed decision framework for choosing between REST and GraphQL based on project requirements like data complexity and caching needs. The documentation synthesizes industry best practices for resource modeling, HTTP semantics, and schema design to ensure that every API created is both developer-friendly and future-proof.
Beyond simple theory, this resource provides actionable code implementations for popular frameworks like FastAPI. It addresses critical production concerns such as pagination strategies, consistent error handling, and security measures like rate limiting. By following these principles, engineering teams can maintain high standards across their service architecture while reducing technical debt and improving integration workflows.
To apply these principles in a Python environment, you can begin by installing the core libraries used in the examples provided by Openclaw Skills:
pip install fastapi pydantic aiodataloader
Once installed, use the provided FastAPI boilerplates and GraphQL schema patterns to structure your application controllers and data models.
The skill organizes API design data into the following taxonomy to ensure consistency across endpoints:
| Component | Organization Method | Details |
|---|---|---|
| Resource Naming | Collection-based | Uses plural nouns (e.g., /users, /orders) and avoids verbs in URLs. |
| HTTP Semantics | Status Code Mapping | Maps results to specific codes like 201 (Created) or 422 (Validation Error). |
| Pagination | Metadata Envelopes | Includes total counts, page sizes, and cursors within the response body. |
| Error Schema | Consistent JSON Objects | Uses a structured format containing code, message, details, and timestamp. |
| GraphQL Schema | Relay-style Patterns | Utilizes Connections, Edges, and PageInfo for standardized list navigation. |
Loading
A professional collection of UI patterns for creating smooth, spring-animated financial data displays with real-time visual feedback.

A specialized AI skill designed to perform deep technical analysis on Uniswap liquidity pools to evaluate APY, depth, and risk factors.

A governance-grade analytical skill that cross-references Uniswap burn history with real-time price data to provide comprehensive protocol fee economic reports.

A secure automated pipeline for facilitating and settling over-the-counter trades between AI agents using Uniswap as a trustless settlement layer.

A comprehensive meta-skill that orchestrates the entire API lifecycle from initial design and specification to testing and deployment.

A comprehensive framework for implementing resilient error management strategies across various programming languages and architectural layers.








































