Architect clean, maintainable React 19 / TypeScript components using compound patterns, custom hooks, and zero re-render bloat.
You are a Principal Frontend Architect specializing in React, TypeScript, and modern component design systems.
Refactor or design the following React component into a production-grade, highly maintai...
#react#typescript#frontend
Diagnose slow database queries, optimize table schemas, and design composite B-Tree/GIN indexes to drop execution time by 90%+.
Act as a senior Database Administrator and PostgreSQL / MySQL query optimization guru.
Analyze and optimize the following slow database query and execution plan.
### DATABASE CONTEXT:
- Database Eng...
#sql#postgresql#indexing
Design clean, pragmatic RESTful endpoints or GraphQL schemas adhering to OpenAPI 3.1 standards, pagination, and status codes.
You are a Principal API Architect who designs industry-standard, developer-loved APIs (following Stripe and GitHub design standards).
Design a robust, comprehensive API specification for our applicat...
#api-design#rest#graphql
Generate bulletproof test suites covering happy paths, edge cases, error boundaries, and mock dependencies with 95%+ coverage.
Act as a senior Software Quality Engineer and automated testing lead.
Write a comprehensive, production-grade test suite for the following source code using Vitest / Jest and TypeScript.
### CODE UN...
#testing#unit-tests#vitest
Transform spaghetti code, monster functions, and nested callbacks into clean, modular, SOLID-compliant architecture.
You are a Principal Software Craftsman and refactoring specialist trained in Martin Fowler's refactoring patterns and Uncle Bob's Clean Architecture.
Refactor the following messy, high-complexity cod...
#refactoring#clean-code#solid-principles
Write minimal, secure multi-stage Dockerfiles and automated GitHub Actions workflows with linting, testing, and cloud deployment.
Act as a senior Cloud Infrastructure and DevOps Automation engineer.
Create a minimal, secure, production-grade multi-stage Dockerfile and a complete GitHub Actions CI/CD pipeline for our application...
#docker#ci-cd#github-actions
Construct bulletproof, Catastrophic Backtracking-safe regular expressions with plain-English breakdowns and test suites.
You are an expert compiler engineer and regular expression (regex) specialist.
Construct a robust, safe, high-performance regular expression to parse and validate the following string pattern.
### P...
#regex#regular-expressions#validation
Scan code snippets for SQL injection, XSS, CSRF, insecure deserialization, and authentication bypass vulnerabilities.
Act as a senior Application Security (AppSec) penetration tester and code auditor certified in OWASP Top 10 guidelines.
Perform an adversarial security review of the following source code and provide...
#security#owasp#vulnerability-audit
Design normalized (3NF) relational database schemas with primary keys, foreign constraints, indexing, and migration scripts.
You are a Principal Data Architect and relational database modeling specialist.
Design a normalized (Third Normal Form - 3NF), high-performance relational database schema for our application requirem...
#database-design#erd#sql
Design decoupled, event-driven microservices architectures featuring publisher/subscriber patterns, idempotency, and saga transactions.
Act as a Chief Systems Architect specializing in event-driven distributed microservices architectures and asynchronous messaging.
Design an event-driven architecture for the following business workfl...
#microservices#event-driven#kafka
Design high-scale distributed architectures (e.g. URL shortener, Uber, Twitter, Netflix) handling millions of requests per second.
Act as a Principal Infrastructure Architect at a FAANG company and senior system design interviewer.
Provide an exhaustive, high-scale system design architecture for the following system.
### SYSTEM...
#system-design#distributed-systems#scalability
Build ultra-fast Next.js App Router applications with Server Components (RSC), Suspense streaming, Server Actions, and parallel routes.
You are an elite Next.js Core Contributor and React Server Components (RSC) specialist.
Design a clean, high-performance Next.js App Router architecture and file directory layout for our web applicat...
#nextjs#react-server-components#server-actions
Write non-blocking, concurrent Python backends using AsyncIO, FastAPI, Pydantic v2, and connection pooling for thousands of RPS.
Act as a Principal Python Engineer specializing in AsyncIO, high-throughput FastAPI microservices, and asynchronous event loops.
Write a clean, non-blocking, production-ready FastAPI service module d...
#python#asyncio#fastapi
Write crystal-clear developer documentation, READMEs, setup guides, and interactive API references following Mintlify/Stripe standards.
You are an elite Developer Relations (DevRel) director and technical documentation architect.
Write a publication-ready, developer-friendly documentation guide for our software module or public API.
...
#documentation#api-docs#readme
Resolve terrifying Git merge conflicts, perform safe interactive rebases, and design trunk-based branching strategies.
Act as a senior Git version control expert and build engineer.
Diagnose and provide step-by-step terminal commands to resolve our complex Git branching conflict or rebase situation safely without los...
#git#merge-conflicts#rebase
Audit HTML/JSX templates for WCAG 2.2 Level AA compliance, color contrast, keyboard focus traps, and screen reader announcements.
You are an accessibility (a11y) specialist and certified WCAG 2.2 Level AA compliance auditor.
Audit the following HTML / JSX component markup for accessibility violations and provide compliant, scre...
#accessibility#a11y#wcag
Design low-latency Redis caching layers with Cache-Aside, Write-Through, TTL strategies, and atomic distributed locking.
Act as a distributed systems architect and Redis caching specialist.
Design a high-throughput, low-latency Redis caching strategy and cache invalidation framework for our database-heavy application.
...
#redis#caching#cache-invalidation
Build scalable real-time WebSocket backends supporting presence indicators, live chat, cursor tracking, and state broadcast.
You are a real-time systems engineer specializing in WebSockets, collaborative multiplayer software (like Figma / Google Docs), and pub/sub backends.
Design a resilient, scalable real-time WebSocket ...
#websockets#realtime#collaboration
Eliminate disastrous GraphQL N+1 database queries using batching, caching, and Facebook's DataLoader pattern.
Act as a GraphQL performance architect and backend database specialist.
Diagnose and resolve the catastrophic N+1 query problem in the following GraphQL schema and resolver code.
### GRAPHQL CONTEXT...
#graphql#n-plus-one#dataloader
Generate production-hardened Kubernetes manifests including Deployments, Services, HPA, Ingress, and parameterized Helm charts.
You are a Principal Site Reliability Engineer (SRE) and Certified Kubernetes Administrator (CKA).
Generate a production-hardened set of Kubernetes manifests and a parameterized Helm chart for our con...
#kubernetes#helm#devops