What does /backend do?
Purpose: Design a collision-safe coworking-room reservation API.
This is a custom prompt convention, not a built-in or official ChatGPT slash command. Entering the slash text alone does not guarantee that ChatGPT will invoke a special tool. Use the complete structured prompt below or configure your own app to interpret this shortcut.
Key decision for this workflow
Reject end_at <= start_at; normalize timestamps to UTC; enforce room-time overlap constraints within a transaction.
Copy-ready task brief
Reusable prompt template
How to use this shortcut
- Collect the source inputs: room_id, start_at, end_at, timezone, and representative overlapping requests.
- Run /backend with the copy-ready task brief above.
- Request the concrete output: A validation contract, persistence model, and concurrency-safe reservation flow.
- Check the result: Reject end_at <= start_at; normalize timestamps to UTC; enforce room-time overlap constraints within a transaction.
Quality checks and limitations
Acceptance criteria: Reject end_at <= start_at; normalize timestamps to UTC; enforce room-time overlap constraints within a transaction. Limitation: A frontend availability check alone does not prevent double booking; test two simultaneous reservations.
Related tools and learning
Continue with the 35 prompt generators, the technical AI Guides, and the Image Guides for deeper examples.
Worked example: Design a reservation API for a coworking room
Illustrative output: POST /reservations accepts room_id, start_at and end_at; return 409 on overlap and 422 for invalid ranges.
Review and limitations
Specify timezone handling, authorization and concurrency tests.
Field workflow: inputs, decisions, and validation
When to use this shortcut: Design a collision-safe coworking-room reservation API.
What to provide: room_id, start_at, end_at, timezone, and representative overlapping requests.
What to request: A validation contract, persistence model, and concurrency-safe reservation flow.
Practical method: Reject end_at <= start_at; normalize timestamps to UTC; enforce room-time overlap constraints within a transaction.
Important limitation: A frontend availability check alone does not prevent double booking; test two simultaneous reservations.
Frequently asked questions
Is /backend an official ChatGPT command? No. It is a reusable custom shorthand from this catalog. Does it work without a plugin? You can copy the full prompt into an assistant; automatic slash-command routing requires application logic. Can the output be trusted without review? No. Review accuracy, safety, and suitability before use.