Agent skill · software engineering · aiskillstore
api-dev
Modern API development patterns for building high-performance, scalable web services. Expert in async/await patterns, REST/GraphQL APIs, middleware, error handling, rate limiting, OpenAPI documentation, testing, and production optimizations. Framework-agnostic patterns that work with Python, Node.js, Go, and other languages.
Why this skill is useful
Adds executable scripts for async API patterns and performance optimizations that are not commonly found in public documentation.
What it needs
Requires aiohttp installed locally. About 7k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
API Development Patterns & Best Practices This skill provides comprehensive patterns for building modern APIs in 2025, focusing on async/await patterns, performance optimization, security, testing, and production-ready configurations that work across different frameworks and languages. When to Use This Skill Use this skill when you need to: Design RESTful or GraphQL APIs Implement async/await patterns for high performance Add middleware for authentication, logging, and validation Handle errors gracefully with proper HTTP status codes Implement rate limiting and throttling Generate OpenAPI/Swagger documentation Set up comprehensive testing strategies Optimize API performance with caching and connection pooling Implement API versioning and backward compatibility Set up monitoring and observability Core API Design Principles 1. Async/Await Patterns for Performance 2. Circuit Breaker Pattern 3. Rate Limiting with Redis 4. API Versioning Strategy 5. OpenAPI Documentation Enhancement 6. Testing Patterns for APIs `python patterns/testing.py import pytest import asyncio from typing import AsyncGenerator import httpx from fastapi.testclient import TestClient from unittest.mock import AsyncMock, patch class AsyncAPITestCase: """Base class for async API tests""" @pytest.fixture(scope="class") async def asyncclient(self) -> AsyncGenerator[httpx.AsyncClient, None]: """Create async test client""" async with httpx.AsyncClient( app=self.app, baseurl="http://test" ) as client: yield client @pytest.fixture def mockexternalservice(self): """Mock external service""" with patch("externalapiclient.ExternalAPIClient") as mock: client = mock.returnvalue client.get.returnvalue = {"status": "ok"} yield client Example test cases @pytest.mark.asyncio class TestUserAPI(AsyncAPITestCase): """Test user API endpoints""" async def testcreateuser(self, asyncclient: httpx.AsyncClient): """Test user creation""" userdata = { "email": "test@example.com", "username": "testuser", "password": "securepasswo …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/api-dev