api-best-practices/SKILL.md
Apply modern standards and best practices for designing scalable, secure, and maintainable REST APIs.
npx skillsauth add Heldinhow/awesome-opencode-dev-skills api-best-practicesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Designing a robust REST API is critical for frontend-backend communication and third-party integrations. This skill covers the structural rules, status codes, naming conventions, and security measures essential for building professional APIs. Invoke this skill when architecting a new backend service, refactoring existing endpoints, or reviewing API designs.
/v1/, header, or query param)./users, /orders, /products). Use plurals consistently.GET: Retrieve a resource or collection.POST: Create a new resource.PUT: Completely replace an existing resource.PATCH: Partially update an existing resource.DELETE: Remove a resource./users/123/orders is good; /users/123/orders/456/items/789 is bad.{ "error": { "code": 404, "message": "Not found" } }). Use correct HTTP status codes (2xx for success, 4xx for client errors, 5xx for server errors).POST /articles, not POST /createArticle).tools
Implement WebSocket communication for real-time bidirectional client-server communication.
development
Implement webhook handlers for processing incoming events from external services.
development
Test web applications using Playwright for end-to-end browser testing.
development
Build production-quality HTML artifacts using React, Tailwind CSS, and shadcn/ui.