Skip to content

Claude prompts

336 prompts

You are a staff engineer experienced with legacy systems. System: [description, age, language] Pain points: [bugs, slow changes, outdated libraries] Constraints: [can't stop shipping features, limited tests] Create a plan: characterisation tests first, the strangler-fig approach, which areas to modernise first (by ris…

Claude
Coding & Development

Modernise legacy code

Plan an incremental modernisation of old code without a risky big-bang rewrite.

0

You are a Kubernetes engineer. App: [container image, port, env vars (names), resources] Requirements: [replicas, health checks, scaling, ingress, persistent storage] Write Deployment, Service, Ingress, ConfigMap/Secret references and HorizontalPodAutoscaler manifests, with comments explaining every field. Add kubectl…

Claude
Coding & Development

Kubernetes manifests explained

Write and understand Kubernetes manifests for deploying a containerised app.

0

You are a tech lead planning an upgrade. Current and target versions: [e.g. React 17 → 19, Python 3.8 → 3.12, Laravel 9 → 11] Codebase size and test coverage: [details] Key dependencies: [list] Create: breaking changes to check (verify against official upgrade guides), dependency compatibility plan, step-by-step upgra…

Claude
Coding & Development

Framework upgrade migration plan

Plan a safe upgrade between major versions of a framework or language.

0

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.

Claude
Coding & Development

Vue component

Create a reusable Vue 3 component with the Composition API, props, events and accessibility.

0

You are a front-end developer who cares about motion design. Elements to animate: [buttons, cards, modal, loader, list items] Style: [subtle, playful, premium] Write CSS (and minimal JS if needed) for each animation using transforms and opacity for performance, sensible durations and easing, and a prefers-reduced-moti…

Claude
Coding & Development

CSS animations and micro-interactions

Add smooth, accessible animations to buttons, cards, loaders and page elements.

0

You are a performance engineer. Platform: [browser app, Node.js, Python, mobile] Symptoms: [memory grows over time, crashes after X hours] Suspicious code: ``` [paste] ``` Explain common leak causes for this platform, how to profile and capture heap snapshots step by step, what to look for, likely culprits in my code,…

Claude
Coding & Development

Investigate a memory leak

Find and fix memory leaks in web apps, Node.js services or mobile apps.

0

You are a software architect and teacher. Problem I'm facing: [e.g. many if/else branches for payment types, objects hard to test] Code: ``` [paste] ``` Suggest 1–2 design patterns that fit (and one that doesn't, with why), explain them simply, show my code refactored with the pattern, and discuss trade-offs. Avoid ov…

Claude
Coding & Development

Design patterns applied to your code

Learn which design pattern fits your problem and see it applied to your code.

0

You are a Node.js backend engineer focused on security. Requirements: [user fields, roles, routes] Database: [details] Write an Express app with: password hashing (bcrypt/argon2), login returning a short-lived access token plus refresh token handling, auth middleware, role checks, input validation, rate limiting on lo…

Claude
Coding & Development

Express API with JWT authentication

Build a secure Node.js/Express API with sign-up, login, protected routes and token handling.

0

You are an identity and security engineer. App type: [web, SPA, mobile] Providers: [Google, Microsoft, GitHub] Stack: [details] Explain the right flow (e.g. authorization code with PKCE), step by step, with a sequence diagram in Mermaid, how to handle state and nonce, token storage, account linking, logout, and common…

Claude
Coding & Development

Design an OAuth login flow

Plan a 'Sign in with Google/Microsoft/GitHub' flow securely, with the right OAuth/OIDC settings.

0

You are a database performance expert. Database: [PostgreSQL / MySQL / SQL Server] Query: ```sql [paste] ``` Table sizes and existing indexes: [details] EXPLAIN output (if available): [paste] Explain why it's slow, suggest indexes (with trade-offs), rewrite the query if helpful, and estimate the improvement. Mention h…

Claude
Coding & Development

Optimise a slow SQL query

Speed up a slow query with index suggestions, rewrites and an explanation of the query plan.

0

You are a Python developer. Tool purpose: [what it does] Commands/options: [list] Input/output: [files, APIs] Write a CLI using [argparse / Click / Typer] with subcommands, helpful --help text, input validation, clear error messages, exit codes, a config file option, and a README usage section. Include tests for the c…

Claude
Coding & Development

Command-line tool in Python

Build a polished command-line tool with arguments, help text, config and error handling.

0

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…

Claude
Coding & Development

End-to-end tests with Playwright

Write reliable browser tests for your most important user journeys.

0