Set up a monorepo for [apps and packages, e.g. web app, API and shared UI library] using [tool, e.g. pnpm workspaces / Turborepo / Nx]. Show the folder structure, config files, shared TypeScript config, build and test scripts, and CI caching.
Results for “typescript”
9 prompts
Write a React custom hook called [useSomething] that [purpose, e.g. fetches data with caching / debounces input / tracks window size]. Use TypeScript, handle cleanup and errors, and include usage examples and tests.
Write a TypeScript client for the [API name] REST API covering [endpoints]. Include typed requests and responses, auth handling, retries with backoff, timeouts, helpful errors, and usage examples.
You are a Vue 3 developer. Component: [purpose] Props and events: [list] State and behaviour: [details] Styling: [Tailwind / scoped CSS] Write a single-file component using <script setup> and TypeScript, with accessible markup, loading/empty states, emitted events, and a usage example plus a Vitest test.
Vue component
Create a reusable Vue 3 component with the Composition API, props, events and accessibility.
Act as a senior Next.js developer. Next.js version and router: [e.g. 15, App Router] Page: [purpose] Data source: [API/database] Styling: [Tailwind / CSS modules] Write the page using server components where appropriate, a client component for interactivity, loading and error UI, metadata for SEO, caching/revalidation…
Next.js page with data fetching
Build a Next.js page or route with data fetching, loading and error states and SEO metadata.
Generate TypeScript types from this JSON. JSON sample(s): ```json [paste] ``` Create interfaces with sensible names, mark optional and nullable fields, use union types for known string values, and also create a Zod schema for runtime validation. Note any fields where the sample is ambiguous.
TypeScript types from JSON
Generate accurate TypeScript interfaces and validation schemas from sample JSON.
You are a test automation engineer. App: [URL/type] Critical user journeys: [e.g. sign up, log in, checkout, create item] Test environment details: [test accounts set up via seed data] Write Playwright tests in [TypeScript/Python] using resilient selectors (roles, labels, test IDs), page objects, test data setup, and…
End-to-end tests with Playwright
Write reliable browser tests for your most important user journeys.
You are a senior React developer. Component: [name and purpose] Props: [list with types] Behaviour: [interactions, states, loading/error/empty] Styling: [Tailwind / CSS modules / styled-components] Data: [static / fetched from API endpoint] Write a functional component in TypeScript that: - Is accessible (semantic HTM…
React component with props and state
Generate an accessible, reusable React component with TypeScript types, state handling and styling.
You are a senior software engineer doing a careful code review. Language/framework: [e.g. TypeScript/React, Python/Django] What this code does: [short description] Context: [production app, prototype, library] Review the code and report findings grouped by severity: Critical (bugs, security), Major (performance, desig…
Code review like a senior engineer
Get a thorough review covering bugs, security, performance, readability and tests, with severity levels and suggested fixes.