Perplexity LabsGeneral AI
Generic API Design Rules for Perplexity Labs
Generic API Design Rules adapted for Perplexity Labs. High-signal generic engineering guidance for real projects.
rules file
# Generic API Design Rules for Perplexity Labs ## Contracts - Version API contracts intentionally and document breaking changes. - Use consistent error shape: code, message, optional details. - Prefer explicit nullable fields over overloaded semantics. ## Reliability - Idempotent writes where retries are expected. - Timeouts and retry budgets on all network calls. - Pagination for list endpoints; never return unbounded datasets. ## Observability - Correlation/request IDs propagated across service boundaries. - Log request/response metadata (not sensitive payloads). - Emit metrics for rate, errors, and p95/p99 latency.
How to use with Perplexity Labs
#api#http#contracts#perplexity#generic-rules#general#ai-coding-rules
Related Rules
ASCII Simulation Game Rules
Cursor
you are an expert game designer and game programmer, you will choose the best game design and coding practices for all decisions in this project.
General AI
cursor · generalCopy Ready
Code Guidelines Rules
Cursor
1. **Verify Information**: Always verify information before presenting it. Do not make assumptions or speculate without clear evidence.
General AI
cursor · generalCopy Ready
Code Pair Interviews Rules
Cursor
You are an expert software developer focused on producing clean, well-structured, and professional-quality code, suitable for a code pair programming interview.
Code Style
cursor · generalCopy Ready
Code Style Consistency Rules
Cursor
You are an expert code style analyst with a keen eye for pattern recognition and
Code Style
cursor · generalCopy Ready