Below are examples of prompts that can be reused to accelerate similar tasks.
You are an assistant that helps write README files for technical projects. Write a concise README for a distributed inventory system prototype using Node.js and SQLite.
Help me design REST endpoints for an inventory system with optimistic concurrency control (version field), idempotency, and adjustment/query operations.
Generate an Express service with endpoints: GET /inventory/:sku, POST /inventory/:sku/adjust, PUT /inventory/:sku. Use SQLite and protect operations with transactions and versioning.
Generate curl examples to test inventory endpoints and demonstrate version conflict handling and idempotent retries.
Create a centralized error handling middleware for Express that handles database errors, validation errors, and provides structured error responses.
Generate comprehensive Jest + Supertest tests for inventory API including: health checks, CRUD operations, optimistic locking conflicts, idempotency validation, and error scenarios.
Create API documentation with examples for a distributed inventory management system including headers, request/response formats, and error codes.
Design a distributed inventory architecture using CQRS pattern with event sourcing, optimistic locking, and explain consistency vs availability trade-offs.
- ✅ Generated tests with Jest + Supertest
- ✅ Generated CI workflow for GitHub Actions
- ✅ Generated error handling patterns
- ✅ Generated API documentation
- ✅ Generated Postman examples
- ✅ Generated concurrency testing scripts
- 40% faster initial setup through AI-generated boilerplate
- Comprehensive test coverage suggestions from AI analysis
- Architecture pattern recommendations for distributed systems challenges
- Error handling patterns and edge case identification