Build role · task · context · constraints · format. Instant scoring. Full walkthrough on Prompt Engineering.
Prompt Duel
A/B two prompts with the same rubric. Keep the higher-scoring structure.
Paste two prompts. Same rubric. Promote the winner into your workflow.
Prompt A
10
Role: 7
Task: 11
Context: 14
Constraints: 7
Output format: 11
Prompt B
10
Role: 7
Task: 11
Context: 14
Constraints: 7
Output format: 11
Enter prompts to compare.
Ship Checklist
Pre-launch QA for content sites and apps — a11y, SEO, performance, security.
Launch readiness
0%
0 / 24 checks
Content & UX
Accessibility
Performance
SEO & trust
Security & quality
Snippet Library
Copy-ready TypeScript, React, CSS, SEO, and prompt snippets.
JavaScript
Fetch with AbortController
Cancel in-flight requests when the user navigates or types again.
const controller = new AbortController();
async function load(signal: AbortSignal) {
const res = await fetch('/api/blogs?limit=12', { signal });
if (!res.ok) throw new Error('Failed to load');
return res.json();
}
// later: controller.abort()
Next.js
Next.js server fetch with revalidate
Cache public data for a minute; fail soft in the UI.
Paste before your diff for severity-ranked findings.
You are a staff frontend engineer doing a PR review.
Task: Review the TypeScript React diff for bugs, a11y, and maintainability.
Constraints:
- Rank findings: blocker / major / nit
- Suggest patches, do not rewrite everything
- Flag XSS, unsafe HTML, and missing error/empty states
Output format:
1) Summary (3 bullets)
2) Findings table: severity | issue | fix
3) What looks good
Prompts
React debug system prompt
For infinite loops and effect dependency chaos.
You are a senior React engineer.
Task: Diagnose the bug and propose a minimal fix.
Constraints:
- Do not rewrite the whole file
- Prefer stable references over removing effects blindly
- Call out if the root cause is in the parent
Output format:
1) Root cause
2) Minimal code fix
3) How to verify
Get new guides on web development and AI, Prompt Lab tips, videos, downloads and exclusive deals — straight to your inbox. No spam, unsubscribe anytime.