算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
api-design-principles【设计与创意】Use before designing any REST API endpoint — covers URL structure, HTTP method semantics, pagination, caching, idempotency, and bulk operations across Python FastAPI, NestJS 11.x, and Spring Boot WebFlux 3.5.x. Complements openapi-spec-generation (spec format) and stack-specific implementation skills (code patterns).
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
NO API ENDPOINT DESIGN WITHOUT READING reference/rest-design-principles.md FIRST — HTTP semantics, status codes, idempotency, and caching strategies must be agreed before writing implementation code
Stack-agnostic REST design principles for APIs built with Python FastAPI, NestJS 11.x, or Spring Boot WebFlux 3.5.x. Use this skill during the design phase — before writing controllers or route handlers.
| Skill | Scope |
|---|---|
| api-design-principles (this skill) | Design phase — REST semantics, patterns, checklist |
| openapi-spec-generation | Documentation phase — OpenAPI 3.1 spec, developer guide |
| java-spring-api | Implementation — Spring WebFlux controllers, services |
| nestjs-api | Implementation — NestJS modules, controllers, DTOs |
| python-dev | Implementation — FastAPI routes, Pydantic models |
Read assets/api-design-checklist.md before designing any endpoint. Focus on:
Read reference/rest-design-principles.md for detailed patterns covering:
Once the design is finalized, hand off to openapi-spec-generation to generate the OpenAPI 3.1 spec.
| File | Content | Load When |
|---|---|---|
reference/rest-design-principles.md | URL structure, HTTP methods, pagination, caching, idempotency, bulk ops, CORS — examples for FastAPI, NestJS, Spring WebFlux | Designing new endpoints or reviewing REST compliance |
assets/api-design-checklist.md | 60-item pre-implementation checklist (REST only) with stack-specific items for all 3 backends | Before starting any new endpoint or reviewing an existing API |
Inconsistent status codes across endpoints: Follow the status code reference in reference/rest-design-principles.md section "HTTP Methods and Status Codes". All endpoints in a service must be consistent.
Pagination strategy mismatch: Choose offset-based for admin/report endpoints, cursor-based for real-time/feed endpoints. Document the choice — do not mix strategies within the same resource collection.