prompts

Ready-made prompts you can paste into any AI coding agent

Setup

Set Up React Navigation

Add React Navigation with stack, tab, or drawer navigators.

react-nativemobile

Set Up Git Worktrees

Create a git worktree so you can work on multiple branches in parallel without stashing.

gitworktrees

Scaffold a React Component

Generate a new React component with TypeScript, props interface, and a basic test file.

reacttypescriptfrontend

Set Up a Pinia Store

Create a Pinia store with typed state, getters, and actions.

vue

Configure Expo Project

Set up or update Expo configuration for a managed workflow project.

react-nativeexpomobile

Scaffold an API Endpoint

Generate a new API route with request validation, error handling, and a test.

nodepythonapibackend

Initialize a New Project

Set up a new project with the right structure, config files, and dependencies.

nodepythonreacttypescript

Integrate a Native Module

Add and configure a native module or library with platform linking.

react-nativeiosandroidmobile

Set Up Environment Variables

Create or update .env files with the required configuration for this project.

nodepythondocker

Go Project Structure

Organize a Go project with cmd/, internal/, and pkg/ layout.

go

Go Module Management

Clean up go.mod, tidy dependencies, and resolve version conflicts.

go

Python Virtual Environment Setup

Set up a Python virtual environment with proper dependency isolation.

python

Set Up a Monorepo

Configure a monorepo with workspaces, shared dependencies, and build orchestration.

nodetypescriptmonorepo

Python Dependency Management

Set up or migrate dependency management with pip, poetry, or uv.

pythonpoetryuv

Set Up Authentication

Add user authentication with sign up, sign in, sessions, and protected routes.

apinodereactpython

Python Project Structure

Organize a Python project with clean module layout and conventions.

python

Set Up Push Notifications

Configure push notification handling for iOS and Android.

react-nativeexpoiosandroidmobile

Set Up Testing Framework

Add a test runner and write the first test.

testing

Add SwiftUI Previews

Set up comprehensive SwiftUI previews with sample data and multiple configurations.

swiftswiftui

Add Nuxt Route Middleware

Create route middleware for auth guards or redirects.

vuenuxt

Python Linting and Formatting

Set up ruff, black, or isort for consistent code formatting.

pythonruff

Configure Deep Linking

Set up URL-based deep linking and universal links.

react-nativeiosandroidmobile

Set Up a Database

Configure a database connection and initial schema.

nodepython

Set Up SwiftData Models

Define SwiftData models with relationships, queries, and migration support.

swiftswiftuiiosmacos

Create a Nuxt Plugin

Register a Nuxt plugin for global utilities or third-party integrations.

vuenuxt

Set Up CI Pipeline

Add continuous integration with tests and linting.

ci-cd

Set Up ESLint and Prettier

Configure ESLint and Prettier with sensible defaults.

nodereact

Set Up Docker for Development

Create a Docker development environment with hot reload.

docker

Configure Swift Package

Set up or fix Swift Package Manager configuration with proper targets and dependencies.

swiftmacosios

Configure SvelteKit Adapter

Set up the right SvelteKit deployment adapter for your hosting target.

sveltesveltekit

Go Linting Setup

Configure golangci-lint with appropriate linters for the project.

go

Go Configuration Management

Load configuration from environment variables and config files.

go

Configure Splash Screen and App Icon

Set up the splash screen and generate app icons for all device sizes.

react-nativeexpoiosandroidmobile

Set Up @AppStorage and Defaults

Configure UserDefaults-backed preferences with @AppStorage and a settings model.

swiftswiftuimacosios

Configure macOS Windows

Set up WindowGroup, window sizing, and multi-window management for macOS apps.

swiftswiftuimacos

Build Menu Bar App

Set up a macOS menu bar app with MenuBarExtra and system integration.

swiftswiftuimacos

Fix Code Signing and Notarization

Configure code signing, entitlements, and notarization for distribution.

swiftmacosios

Refactor

Go Error Handling Patterns

Apply idiomatic Go error handling with wrapping, errors.Is, and errors.As.

go

Simplify This Code

Reduce complexity — fewer lines, clearer logic, same result.

Simplify SwiftUI View Body

Break down complex SwiftUI views into smaller, reusable subviews.

swiftswiftui

Extract a Vue Composable

Extract reusable logic into a Vue composable function.

vue

Extract Into Components

Break a large file into smaller, focused, reusable components.

reactfrontend

Go Interface Design

Design small, focused interfaces following Go conventions.

go

Go Goroutine Safety

Audit and fix concurrency issues with mutexes, channels, and sync primitives.

goconcurrency

Modernize Legacy Code

Update legacy patterns to modern language and framework idioms.

Migrate to Swift Observation

Migrate from ObservableObject/Combine to the Swift Observation framework (@Observable).

swiftswiftuiios

Convert to Script Setup

Refactor a component to use the <script setup> syntax.

vue

Remove Duplicate Code

Find repeated code patterns and extract them into shared functions or modules.

Fix SwiftUI Navigation

Restructure navigation to use NavigationStack with typed paths or NavigationSplitView.

swiftswiftui

Clean Up Imports

Remove unused imports, sort them, and organize by convention.

typescriptpythonnode

Use Nuxt Auto-Imports

Replace manual imports with Nuxt's auto-import conventions.

vuenuxt

Add Error Handling

Add proper error handling, try/catch blocks, and graceful failure paths.

Rename for Clarity

Improve variable, function, and file names to be more descriptive and consistent.

Extract Protocol Interfaces

Refactor concrete types into protocol-oriented designs for testability and flexibility.

swift

Go Context Propagation

Thread context.Context through call chains for cancellation and deadlines.

goconcurrency

Split a Large File

Break a large file into smaller, focused modules.

Convert to TypeScript

Convert a JavaScript file to TypeScript with proper types.

nodereact

Replace Callbacks with Async/Await

Modernize callback-based code to use async/await.

node

Structure MVVM Architecture

Organize SwiftUI code into a clean Model-View-ViewModel architecture.

swiftswiftui

Consolidate Constants

Gather scattered magic numbers and strings into a constants file.

Go Dependency Injection

Wire dependencies through constructors without a DI framework.

go

Improve Function Signatures

Simplify functions that take too many parameters.

Go Worker Pool

Implement a worker pool pattern for bounded concurrent processing.

goconcurrency

Improve Swift Generics

Refactor repetitive code into generic types with proper constraints and associated types.

swift

Go Generics Patterns

Apply Go generics to reduce duplication with type-safe abstractions.

go

Testing

Write Tests for This Code

Generate unit tests covering the main paths, edge cases, and error conditions.

testing

Fix Failing Tests

Diagnose and fix the currently failing tests.

testing

Write Integration Tests

Generate integration tests for API endpoints or multi-component user flows.

apinodepython

Add Test Coverage

Identify untested code paths and write tests to cover them.

testing

Pytest Patterns and Fixtures

Write pytest tests with fixtures, parametrize, and proper assertions.

pythonpytest

Generate Test Data

Create realistic mock data, fixtures, and factories for testing.

testing

Test Edge Cases

Identify and write tests for edge cases, boundary conditions, and unexpected inputs.

testing

Go Table-Driven Tests

Write table-driven tests with subtests and clear assertions.

gotesting

Write a Unit Test

Write a focused unit test for a single function.

testing

Mock an External Service

Create mocks for API calls or external dependencies.

testing

Test Error Paths

Write tests for error handling and failure scenarios.

testing

Add Snapshot Test

Create a snapshot test for UI components.

react

Write an End-to-End Test

Write a browser-based end-to-end test for a user flow.

react

Write Svelte Component Tests

Write tests for Svelte components using Vitest and Testing Library.

sveltetesting

Test an API Endpoint

Write integration tests for an API endpoint.

apinode

Write Vue Component Tests

Write unit tests for a Vue component using Vitest and Vue Test Utils.

vue

Add Swift Tests

Write tests using Swift Testing framework with @Test, #expect, and parameterized cases.

swiftswiftui

Add Mobile Tests

Write unit or integration tests for React Native components.

react-nativemobile

Debug

Diagnose This Error

Trace an error back to its root cause and suggest a fix.

Check Application Logs

Read recent logs and surface errors, warnings, or unusual patterns.

dockernodepython

Fix SwiftUI State Management

Audit and fix misuse of @State, @Binding, @StateObject, @ObservedObject, and @EnvironmentObject.

swiftswiftui

Fix This Bug

Identify the root cause of a bug, explain it clearly, and apply the smallest safe fix.

Fix Lint and Formatting Issues

Run the linter and auto-fix all linting and formatting issues in the project.

Fix Vue Reactivity Issues

Identify and fix common Vue reactivity pitfalls.

vue

Fix Build and Compile Errors

Find and fix all current build, compile, or type errors so the project builds clean.

typescriptnode

Python Type Hints and Mypy

Add type annotations and fix mypy errors across the codebase.

pythonmypy

Fix Swift Concurrency

Audit async/await usage, actor isolation, and Sendable conformance.

swiftswiftuimacosios

Fix Flaky Test

Investigate and stabilize an intermittently failing test.

testing

Python Exception Handling

Implement proper exception handling with custom errors and error responses.

python

Improve Error Handling

Add proper Swift error handling with typed errors, do/catch, and Result.

swiftswiftui

Find Memory Leak

Identify potential memory leaks — unclosed connections, listeners, growing caches.

nodepython

Trace Data Flow

Follow data from input to output through the system, showing every transformation.

Debug a Network Request

Trace and fix a failing HTTP request.

api

Debug a State Issue

Track down a state management bug.

react

Debug a Build Failure

Fix a failing build or CI pipeline.

Debug React Native App

Set up debugging tools and diagnose common React Native issues.

react-nativemobile

Debug a Race Condition

Find and fix timing-dependent bugs.

Fix Combine Pipelines

Audit and fix Combine publisher chains for correctness, memory, and threading.

swiftmacosios

Frontend

Add Responsive Design

Make a page or component work well on mobile, tablet, and desktop.

frontendreacthtmlcss

Fix Reactive Declarations

Find and fix broken or inefficient reactive declarations in Svelte components.

sveltefrontend

Improve Accessibility

Fix accessibility issues — add ARIA labels, keyboard navigation, and screen reader support.

frontendreacthtml

Add Platform-Specific Code

Handle iOS and Android differences with platform-specific logic.

react-nativeiosandroidmobile

Migrate to Svelte 5 Runes

Convert legacy Svelte reactivity to Svelte 5 runes ($state, $derived, $effect, $props).

sveltefrontend

Optimize Bundle Size

Analyze and reduce the JavaScript/CSS bundle size.

frontendreactnodetypescript

Create Svelte Stores

Set up Svelte stores for shared state with proper typing and subscriptions.

sveltefrontend

Add Loading States

Add loading spinners, skeletons, and error states for async operations.

frontendreact

Write SvelteKit Load Functions

Create type-safe SvelteKit load functions for page data fetching.

sveltesveltekitfrontend

Add Form Validation

Add client-side form validation with clear error messages.

frontendreacthtml

React Native Responsive Styling

Add responsive StyleSheet patterns that adapt to different screen sizes.

react-nativemobile

Add SvelteKit Form Actions

Implement SvelteKit form actions with validation and progressive enhancement.

sveltesveltekitfrontend

Add Dark Mode

Add dark mode support with a toggle and system preference detection.

frontendreactcss

Reduce Re-renders

Find and fix unnecessary re-renders in React components.

reactfrontend

Add Gesture Handling

Implement touch gestures like swipe, pinch, or pan using gesture handlers.

react-nativemobile

Set Up SvelteKit Routing

Create SvelteKit routes with layouts, params, and route groups.

sveltesveltekitfrontend

Design a Vue Component API

Design a component with clear props, emits, and slot interfaces.

vue

Add Lazy Loading

Lazy load images, components, and routes to improve initial page load.

reactfrontend

Improve Component Composition

Refactor Svelte components using slots, snippets, or render delegation.

sveltefrontend

Add Vue Transitions

Add enter/leave transitions to Vue components.

vue

Add an Animation

Add a smooth CSS or JS animation to a UI element.

react

Add Svelte Transitions

Add smooth transitions and animations to Svelte component state changes.

sveltefrontend

Add an Error Boundary

Add graceful error handling to UI components.

react

Add a Skeleton Loader

Replace loading spinners with skeleton placeholder UI.

react

AppKit and SwiftUI Interop

Bridge between AppKit and SwiftUI using NSViewRepresentable and hosting controllers.

swiftswiftuiappkitmacos

Configure SSR and CSR

Set the right rendering strategy for SvelteKit pages and components.

sveltesveltekitfrontend

Add VueUse Composable

Integrate a VueUse utility composable to avoid reinventing the wheel.

vue

Add Keyboard Navigation

Make a UI component fully navigable with the keyboard.

react

Add Local Data Persistence

Persist data locally using AsyncStorage or MMKV.

react-nativemobile

Add Toast Notifications

Add a toast notification system for user feedback.

react

Add SEO Meta with useHead

Set up page-level SEO meta tags using Nuxt's useHead.

vuenuxt

Add React Native Animation

Add smooth native-thread animations using Reanimated or Animated API.

react-nativemobile

Add Search and Filter

Add search and filtering to a list or table.

react

Fix Svelte Accessibility

Find and fix accessibility issues flagged by Svelte's built-in a11y warnings.

sveltefrontendaccessibility

Fix SwiftUI Accessibility

Add accessibility labels, traits, and VoiceOver support to SwiftUI views.

swiftswiftuiiosmacos

Add Vue Error Handling

Set up error boundaries using onErrorCaptured in Vue.

vue

Add Internationalization

Set up multi-language support for the app.

react

Handle App Permissions

Request and manage runtime permissions for camera, location, etc.

react-nativeiosandroidmobile

Add SvelteKit SEO

Add meta tags, Open Graph, and structured data to SvelteKit pages.

sveltesveltekitfrontend

Add SwiftUI Animations

Add smooth animations and transitions to SwiftUI views.

swiftswiftui

Use Provide/Inject

Share state down the component tree without prop drilling.

vue

Add a Modal Dialog

Create an accessible modal component.

react

Use Svelte Context API

Share data between parent and child components using setContext/getContext.

sveltefrontend

Build a Vue Form

Create a form with v-model bindings, validation, and submission.

vue

Fetch Data with useFetch

Use Nuxt's useFetch or useAsyncData for SSR-friendly data loading.

vuenuxt

Fix Scoped Styles

Organize and fix scoped CSS in Svelte components.

sveltefrontendcss

Add Offline-First Support

Make the app work reliably without network connectivity.

react-nativemobile

API

Design an API

Design RESTful endpoints with routes, methods, request/response schemas, and auth.

apinodepython

Add Input Validation

Add request validation with proper error messages for all API inputs.

apinodepythontypescript

Generate OpenAPI Spec

Generate an OpenAPI/Swagger specification from existing API routes.

apinodepython

Add Rate Limiting

Add rate limiting to API endpoints to prevent abuse.

apinodepython

Go HTTP Handler

Implement a clean HTTP handler using stdlib net/http or a router.

goapi

Standardize Error Responses

Create consistent error response format across all endpoints.

apinode

Add API Versioning

Set up versioned API routes.

apinode

Add a Nuxt Server Route

Create a Nuxt server API route with validation and error handling.

vuenuxt

Add API Authentication

Add authentication middleware to API endpoints.

apinode

Add a Webhook

Create a webhook endpoint with signature verification.

apinode

FastAPI Route Patterns

Set up FastAPI routes with path params, query params, and request bodies.

pythonfastapi

Add WebSocket Support

Add real-time communication with WebSockets.

apinode

Pydantic Model Design

Design Pydantic models with validation, serialization, and field constraints.

pythonfastapipydantic

Add File Upload

Implement a file upload endpoint with validation.

apinode

Django Views and DRF Serializers

Create Django REST Framework views with serializers and permissions.

pythondjangodrf

Go Middleware Pattern

Implement HTTP middleware for auth, logging, or request processing.

goapi

Flask Blueprint Organization

Organize Flask routes into blueprints with proper separation of concerns.

pythonflask

FastAPI Dependency Injection

Use FastAPI's Depends system for shared logic, auth, and database sessions.

pythonfastapi

Django Admin Customization

Customize Django admin with list displays, filters, and inline editing.

pythondjango

Go gRPC Service

Implement a gRPC service with protobuf definitions and server setup.

goapigrpc