Skip to content
L
LearnCoachAssist
Topics
AI
AI Agents (500 Questions)
AI Math (500 Questions)
AI Math Beginner
AI Search Results
Claude Code Prompts
Art & Design
Art History
Color Theory
Graphic Design Principles
Knitting And Crochet
Photography Exposure Triangle And Composition
Business
Accounting Basics
Customer Research
Economics
Excel Formulas For Financial Analysts
Go To Market Strategy
Browse all topics →
Packs
Featured Packs
Python Programming Essentials
Prompt Engineering
Prompting Claude Code
AI Agents and Autonomous Systems
SQL and Database Fundamentals
JavaScript Fundamentals
Algorithms and Data Structures
Git and Version Control
Browse all packs →
Learn
Learning Paths
AI Deck Generator
How it works
Quiz
Blog
Cheat Sheets
Pricing
Resources
Pricing
Compare
FAQ
About
Contact
Effective Studying Guide
Free Anki Decks
Log in
Start Free
Topics
AI
AI Agents (500 Questions)
AI Math (500 Questions)
AI Math Beginner
AI Search Results
Claude Code Prompts
Art & Design
Art History
Color Theory
Graphic Design Principles
Knitting And Crochet
Photography Exposure Triangle And Composition
Business
Accounting Basics
Customer Research
Economics
Excel Formulas For Financial Analysts
Go To Market Strategy
Browse all topics →
Packs
Python Programming Essentials
Prompt Engineering
Prompting Claude Code
AI Agents and Autonomous Systems
SQL and Database Fundamentals
JavaScript Fundamentals
Algorithms and Data Structures
Git and Version Control
Browse all packs →
Learn
Learning Paths
AI Deck Generator
How it works
Quiz
Blog
Cheat Sheets
Pricing
Resources
Pricing
Compare
FAQ
About
Contact
Effective Studying Guide
Free Anki Decks
Start Free
Log in
← Quit
Claude Code Prompts Practice Exam
Question
1
of
50
60:00
Question 1
Claude Code Prompts
What is a good prompt for asking Claude to write SQL?
"Write unit tests for [function/file] covering edge cases including null inputs, empty arrays, and boundary values."
"Add full-text search to [model/endpoint] that searches [fields], ranks results by relevance, and supports [filters/pagination]."
"Write a SQL query that [returns/aggregates/joins] [data description], optimized for [read performance / correctness / clarity]."
"Add a feature flag for [feature] using [library/config], defaulting to disabled, so it can be enabled per user/environment."
Question 2
Claude Code Prompts
How do you use Claude Code to learn from a codebase?
"Find all places where [function/variable/pattern] is used" or "Search for files containing [keyword]."
"Explain the design patterns used in this codebase, why they were chosen, and how they interact with each other."
Paste the full error: "I'm getting this error: [paste error]. What does it mean and how do I fix it?"
"Add filtering and sorting to [endpoint] so users can filter by [fields], sort by [columns], and paginate results with [limit/offset or cursor]."
Question 3
Claude Code Prompts
How do you ask Claude Code to implement rate limiting?
"Suggest more descriptive names for these variables: [list]. The names should clearly express intent without abbreviation."
"Read [filename] and explain what it does" or simply "Read [filename]" before asking questions about its contents.
"Add rate limiting to [endpoint] allowing [N] requests per [time window] per [user/IP], returning a 429 with retry-after header when exceeded."
"Before writing any code, ask me the questions you need answered to implement [feature] correctly."
Question 4
Claude Code Prompts
What is the CLAUDE.md file?
A markdown file in your project root that Claude Code automatically reads to understand project-specific conventions, setup, and preferences.
"Add caching to [function/endpoint] with a [N minute] TTL, using [Redis/in-memory/HTTP cache headers] and cache invalidation for [events]."
"Add autocomplete to [search field] that queries [endpoint] on keypress with [debounce ms] delay, displaying top [N] results."
"Identify performance bottlenecks in [file/function] and suggest optimizations, focusing on [N+1 queries / memory usage / response time]."
Question 5
Claude Code Prompts
What is the best way to ask Claude Code to refactor code?
Press `Escape` or `Ctrl+C` to interrupt the current operation and return to the prompt.
"Before writing any code, ask me the questions you need answered to implement [feature] correctly."
Be specific about the goal: "Refactor this function to use async/await instead of callbacks" or "Extract this logic into a separate helper function."
"Add caching to [function/endpoint] with a [N minute] TTL, using [Redis/in-memory/HTTP cache headers] and cache invalidation for [events]."
Question 6
Claude Code Prompts
How do you ask Claude Code to create a state machine?
"Implement a state machine for [entity] with states [list] and transitions [list], enforcing valid transitions and logging state changes."
Describe the bug and what you expected: "This function returns null when the user has no orders, but it should return an empty array instead."
"Generate [N] realistic mock records for [entity] in [JSON/SQL/CSV] format, varying the fields to cover different scenarios."
"Generate GraphQL schema types for [entities] with queries for [list/find], mutations for [create/update/delete], and proper resolver hints."
Question 7
Claude Code Prompts
How do you direct Claude Code to follow existing code style?
"Match the coding style used in [filename]" or "Follow the same patterns as the existing [controllers/services/models]."
"Generate GraphQL schema types for [entities] with queries for [list/find], mutations for [create/update/delete], and proper resolver hints."
"Add TypeScript types / type hints to [file], ensuring all function signatures, return types, and variable declarations are typed."
"Before implementing, explain your approach, the key decisions you'll make, and any alternatives you considered."
Question 8
Claude Code Prompts
How do you ask Claude Code to handle pagination?
"Identify bounded contexts in this codebase and propose how to extract [module] into an independently deployable service with a clear API boundary."
"Add cursor-based pagination to the [endpoint] returning [per_page] items per page with a next_cursor for subsequent requests."
"Add exponential backoff retry logic to [API call/operation] with [max N retries], jitter, and logging of each attempt."
"Read the project structure and tell me exactly what commands I need to run to set up this project locally from scratch."
Question 9
Claude Code Prompts
How do you ask Claude Code to generate seed data?
"Add input validation to [endpoint/form] ensuring [field constraints]. Return descriptive validation errors for each invalid field."
"Add documentation to [file] explaining the purpose of each function, its parameters, return values, and any important behavior."
"I need to store [data type] with [operations needed]. What data structure would be most efficient and why?"
"Create a seeder for [model] with [N] realistic sample records covering [edge cases / varied scenarios]."
Question 10
Claude Code Prompts
What prompt asks Claude Code to check for security issues?
"Create a migration to [add/modify/remove] [column/table] with [data type and constraints] following the existing migration conventions."
"Add documentation to [file] explaining the purpose of each function, its parameters, return values, and any important behavior."
"Review [file or feature] for security vulnerabilities including XSS, SQL injection, and OWASP top 10 issues."
"Before implementing, explain your approach, the key decisions you'll make, and any alternatives you considered."
Question 11
Claude Code Prompts
What prompt generates integration tests?
"This function is too complex. Break it into smaller, single-responsibility functions, keeping the public interface the same."
"Identify performance bottlenecks in [file/function] and suggest optimizations, focusing on [N+1 queries / memory usage / response time]."
"Write integration tests for [feature] that test the full request/response cycle including database interactions and edge cases."
"This test is failing with [error message]. Read the test and the code it tests, then find and fix the root cause."
Question 12
Claude Code Prompts
What prompt should you use to ask Claude to read and understand a file?
"Read [filename] and explain what it does" or simply "Read [filename]" before asking questions about its contents.
"Generate a README for this project including: overview, features, prerequisites, installation steps, usage examples, and contributing guide."
"Create a migration to [add/modify/remove] [column/table] with [data type and constraints] following the existing migration conventions."
"This function is too complex. Break it into smaller, single-responsibility functions, keeping the public interface the same."
Question 13
Claude Code Prompts
How do you ask Claude to implement soft deletes?
"Add soft delete functionality to [model] so records are marked deleted_at rather than removed, and all queries exclude soft-deleted records."
"Generate a [component/class/module] boilerplate for [purpose] following the same structure as [existing example file]."
`/clear` resets the conversation context, clearing all prior messages and starting a fresh session.
`/cost` displays the token usage and estimated API cost for the current Claude Code session.
Question 14
Claude Code Prompts
How do you ask Claude Code to implement retry logic?
"Explain what [library/package] does, why it's used in this project, and what would need to change if we removed it."
"Add exponential backoff retry logic to [API call/operation] with [max N retries], jitter, and logging of each attempt."
"Review the error messages in [file] and improve them to be more descriptive, actionable, and user-friendly."
"Identify the top 5 pieces of technical debt in [file/module] ranked by impact and effort, and suggest a remediation plan for each."
Question 15
Claude Code Prompts
What is the /compact command?
Claude Code can read files, write code, run tests, and execute shell commands autonomously, completing complex multi-step tasks end-to-end.
"I need to store [data type] with [operations needed]. What data structure would be most efficient and why?"
"Generate OpenAPI/Swagger documentation for the [endpoint or file], including request/response schemas and example payloads."
`/compact` compresses the conversation history to save context space while preserving the essential information.
Question 16
Claude Code Prompts
What is the best prompt for upgrading a dependency?
"Run [command] and tell me the output. If there are any errors, explain what went wrong before attempting a fix."
"Read the project structure and tell me exactly what commands I need to run to set up this project locally from scratch."
"I need to upgrade [package] from [version A] to [version B]. Read the changelog and migrate any breaking API changes in this codebase."
"Do not modify [filename]. Only change [other file]" or set exclusions in CLAUDE.md.
Question 17
Claude Code Prompts
How do you ask Claude to explain an error message?
"Write a SQL query that [returns/aggregates/joins] [data description], optimized for [read performance / correctness / clarity]."
"Add filtering and sorting to [endpoint] so users can filter by [fields], sort by [columns], and paginate results with [limit/offset or cursor]."
Paste the full error: "I'm getting this error: [paste error]. What does it mean and how do I fix it?"
"Add a feature flag for [feature] using [library/config], defaulting to disabled, so it can be enabled per user/environment."
Question 18
Claude Code Prompts
What prompt asks Claude Code to review a pull request?
"Write a SQL query that [returns/aggregates/joins] [data description], optimized for [read performance / correctness / clarity]."
Press `Escape` or `Ctrl+C` to interrupt the current operation and return to the prompt.
"Review the changes in [files] as if doing a code review: check for bugs, security issues, missing tests, and adherence to the project's coding standards."
"Implement a state machine for [entity] with states [list] and transitions [list], enforcing valid transitions and logging state changes."
Question 19
Claude Code Prompts
How do you ask Claude Code to implement event sourcing?
Describe the bug and what you expected: "This function returns null when the user has no orders, but it should return an empty array instead."
"Refactor [feature] to use event sourcing: store domain events, rebuild state from events, and add event projections for queries."
"Add a feature flag for [feature] using [library/config], defaulting to disabled, so it can be enabled per user/environment."
"Generate OpenAPI/Swagger documentation for the [endpoint or file], including request/response schemas and example payloads."
Question 20
Claude Code Prompts
What is the best prompt for adding observability?
"Add metrics, tracing, and structured logging to [service/endpoint] so we can monitor request rates, latency, and error rates."
"Rewrite this in idiomatic [Python/Go/TypeScript] following language best practices and community conventions."
"Create a data pipeline that [reads from source], [transforms data], and [writes to destination], handling errors and partial failures."
"Add cursor-based pagination to the [endpoint] returning [per_page] items per page with a next_cursor for subsequent requests."
Question 21
Claude Code Prompts
How do you ask Claude to generate mock data?
"I need to upgrade [package] from [version A] to [version B]. Read the changelog and migrate any breaking API changes in this codebase."
"Write unit tests for [function/file] covering edge cases including null inputs, empty arrays, and boundary values."
"Generate [N] realistic mock records for [entity] in [JSON/SQL/CSV] format, varying the fields to cover different scenarios."
"Add soft delete functionality to [model] so records are marked deleted_at rather than removed, and all queries exclude soft-deleted records."
Question 22
Claude Code Prompts
What is the best prompt for environment setup?
"Generate a pre-deployment checklist for this project covering: environment variables, database migrations, cache warming, and health checks."
"Explain the design patterns used in this codebase, why they were chosen, and how they interact with each other."
"Create a CLI tool in [language] that [behavior]. It should accept [flags/arguments] and output [format]."
"Read the project structure and tell me exactly what commands I need to run to set up this project locally from scratch."
Question 23
Claude Code Prompts
What is the key benefit of working in Claude Code's agentic mode?
"Implement a state machine for [entity] with states [list] and transitions [list], enforcing valid transitions and logging state changes."
Claude Code can read files, write code, run tests, and execute shell commands autonomously, completing complex multi-step tasks end-to-end.
"Do not modify [filename]. Only change [other file]" or set exclusions in CLAUDE.md.
"Explain what [library/package] does, why it's used in this project, and what would need to change if we removed it."
Question 24
Claude Code Prompts
How do you ask Claude Code to add feature flags?
"Identify bounded contexts in this codebase and propose how to extract [module] into an independently deployable service with a clear API boundary."
"Ensure [component/page] meets WCAG 2.1 AA standards: proper ARIA labels, keyboard navigation, color contrast, and screen reader support."
"Add a feature flag for [feature] using [library/config], defaulting to disabled, so it can be enabled per user/environment."
"This query is slow: [paste query]. Analyze it and rewrite it to be more efficient. Suggest any indexes that should be added."
Question 25
Claude Code Prompts
What is the /help slash command?
"Add soft delete functionality to [model] so records are marked deleted_at rather than removed, and all queries exclude soft-deleted records."
"Add structured logging to [file/function] that logs [events] with appropriate log levels (debug/info/warn/error)."
Navigate to your project root before starting Claude Code — it will automatically have context of all files in the working directory.
Running `/help` inside Claude Code displays available slash commands, keyboard shortcuts, and usage information.
Question 26
Claude Code Prompts
How do you ask Claude Code to implement file uploads?
"Add file upload support for [endpoint] accepting [file types] up to [size], storing in [S3/local disk], and validating file contents."
"Add cursor-based pagination to the [endpoint] returning [per_page] items per page with a next_cursor for subsequent requests."
"This test is failing with [error message]. Read the test and the code it tests, then find and fix the root cause."
Break it into steps: "First read [files], then plan the refactor, explain the approach, and only start changing code after I approve the plan."
Question 27
Claude Code Prompts
How do you use Claude Code to untangle spaghetti code?
"Create test fixtures for [model/feature] that cover: a typical case, an edge case with empty values, and a case with maximum data."
"Read [file:line_number] and explain what this function does, including its inputs, outputs, and side effects."
"Review [file or feature] for security vulnerabilities including XSS, SQL injection, and OWASP top 10 issues."
"This function is too complex. Break it into smaller, single-responsibility functions, keeping the public interface the same."
Question 28
Claude Code Prompts
How do you ask Claude Code to add caching?
"Generate [N] realistic mock records for [entity] in [JSON/SQL/CSV] format, varying the fields to cover different scenarios."
"Add caching to [function/endpoint] with a [N minute] TTL, using [Redis/in-memory/HTTP cache headers] and cache invalidation for [events]."
"Create a Dockerfile for this [language/framework] app that is optimized for production with a multi-stage build."
"Extract [logic] from [controller/class] into a dedicated service class, following the single responsibility principle and dependency injection pattern."
Question 29
Claude Code Prompts
What prompt gets Claude Code to generate a database migration?
"Add input validation to [endpoint/form] ensuring [field constraints]. Return descriptive validation errors for each invalid field."
"Create a migration to [add/modify/remove] [column/table] with [data type and constraints] following the existing migration conventions."
"Review [file] for code quality, potential bugs, readability issues, and adherence to best practices. Suggest specific improvements."
Run `claude` in your terminal from any project directory to start an interactive session with the AI assistant.
Question 30
Claude Code Prompts
What is the /vim shortcut?
Describe the bug and what you expected: "This function returns null when the user has no orders, but it should return an empty array instead."
"Explain the design patterns used in this codebase, why they were chosen, and how they interact with each other."
`/vim` enables Vim keybindings for the Claude Code input, letting you use Vim motions for text editing.
Project overview, tech stack, coding conventions, common commands, environment setup instructions, and any behavioral preferences for Claude.
Question 31
Claude Code Prompts
How do you ask Claude Code to implement search autocomplete?
"Add autocomplete to [search field] that queries [endpoint] on keypress with [debounce ms] delay, displaying top [N] results."
"Add exponential backoff retry logic to [API call/operation] with [max N retries], jitter, and logging of each attempt."
"Analyze [file/module] and identify untested code paths. Write tests for the most critical gaps, prioritizing error handling and edge cases."
"Write a regex that matches [pattern description] and test it against these examples: [valid examples] vs [invalid examples]."
Question 32
Claude Code Prompts
How do you ask Claude Code to implement pagination with filters?
"Review [file or feature] for security vulnerabilities including XSS, SQL injection, and OWASP top 10 issues."
"Generate [N] realistic mock records for [entity] in [JSON/SQL/CSV] format, varying the fields to cover different scenarios."
"Add documentation to [file] explaining the purpose of each function, its parameters, return values, and any important behavior."
"Add filtering and sorting to [endpoint] so users can filter by [fields], sort by [columns], and paginate results with [limit/offset or cursor]."
Question 33
Claude Code Prompts
How do you ask Claude Code to fix a bug?
"Explain what [library/package] does, why it's used in this project, and what would need to change if we removed it."
"Generate OpenAPI/Swagger documentation for the [endpoint or file], including request/response schemas and example payloads."
Describe the bug and what you expected: "This function returns null when the user has no orders, but it should return an empty array instead."
"Write a technical design document for [feature] covering: requirements, proposed solution, alternative approaches, risks, and success metrics."
Question 34
Claude Code Prompts
What is the best prompt for adding a new feature?
"Add documentation to [file] explaining the purpose of each function, its parameters, return values, and any important behavior."
"Add filtering and sorting to [endpoint] so users can filter by [fields], sort by [columns], and paginate results with [limit/offset or cursor]."
"Add exponential backoff retry logic to [API call/operation] with [max N retries], jitter, and logging of each attempt."
Describe the feature clearly with context: "Add a [feature] to [component] that [behavior]. It should work like [example] and follow the existing patterns in [reference file]."
Question 35
Claude Code Prompts
How do you give Claude Code access to your entire project?
Navigate to your project root before starting Claude Code — it will automatically have context of all files in the working directory.
"Create [filename] with [specific content/structure]. It should [behavior/purpose] and follow the conventions in [reference file]."
"Create a webhook handler for [service] that validates the signature, processes [event types], and responds within 5 seconds."
"Write unit tests for [function/file] covering edge cases including null inputs, empty arrays, and boundary values."
Question 36
Claude Code Prompts
What is the best prompt for extracting a service?
"Extract [logic] from [controller/class] into a dedicated service class, following the single responsibility principle and dependency injection pattern."
Navigate to your project root before starting Claude Code — it will automatically have context of all files in the working directory.
"Add file upload support for [endpoint] accepting [file types] up to [size], storing in [S3/local disk], and validating file contents."
"Analyze [file/module] and identify untested code paths. Write tests for the most critical gaps, prioritizing error handling and edge cases."
Question 37
Claude Code Prompts
How do you ask Claude Code to add logging?
"Generate a README for this project including: overview, features, prerequisites, installation steps, usage examples, and contributing guide."
"Create a webhook handler for [service] that validates the signature, processes [event types], and responds within 5 seconds."
"Explain what [library/package] does, why it's used in this project, and what would need to change if we removed it."
"Add structured logging to [file/function] that logs [events] with appropriate log levels (debug/info/warn/error)."
Question 38
Claude Code Prompts
What prompt asks Claude Code to create environment configs?
"Generate GraphQL schema types for [entities] with queries for [list/find], mutations for [create/update/delete], and proper resolver hints."
"Create a [GET/POST/PUT/DELETE] endpoint at [path] that [behavior]. It should validate [inputs] and return [response format]."
"Create [.env.example / config files] for this project with all required environment variables documented with descriptions and examples."
Project overview, tech stack, coding conventions, common commands, environment setup instructions, and any behavioral preferences for Claude.
Question 39
Claude Code Prompts
What prompt asks Claude to suggest variable names?
"Extract [logic] from [controller/class] into a dedicated service class, following the single responsibility principle and dependency injection pattern."
"Suggest more descriptive names for these variables: [list]. The names should clearly express intent without abbreviation."
"Review [file] for code quality, potential bugs, readability issues, and adherence to best practices. Suggest specific improvements."
"Add caching to [function/endpoint] with a [N minute] TTL, using [Redis/in-memory/HTTP cache headers] and cache invalidation for [events]."
Question 40
Claude Code Prompts
How do you get Claude Code to document code?
"Add documentation to [file] explaining the purpose of each function, its parameters, return values, and any important behavior."
"Write integration tests for [feature] that test the full request/response cycle including database interactions and edge cases."
`/clear` resets the conversation context, clearing all prior messages and starting a fresh session.
Break it into steps: "First read [files], then plan the refactor, explain the approach, and only start changing code after I approve the plan."
Question 41
Claude Code Prompts
How do you ask Claude Code to suggest a data structure?
"I need to store [data type] with [operations needed]. What data structure would be most efficient and why?"
"Based on the changes in [files], generate a changelog entry in [Keep a Changelog / conventional format] for version [X.X.X]."
"Add filtering and sorting to [endpoint] so users can filter by [fields], sort by [columns], and paginate results with [limit/offset or cursor]."
"Write integration tests for [feature] that test the full request/response cycle including database interactions and edge cases."
Question 42
Claude Code Prompts
What prompt asks Claude to review architecture?
"Create [filename] with [specific content/structure]. It should [behavior/purpose] and follow the conventions in [reference file]."
Paste the full error: "I'm getting this error: [paste error]. What does it mean and how do I fix it?"
"Review the current architecture of [system/feature] and identify any design issues, scalability concerns, or improvements to consider."
"Write a regex that matches [pattern description] and test it against these examples: [valid examples] vs [invalid examples]."
Question 43
Claude Code Prompts
What does /cost show?
"Find all places where [function/variable/pattern] is used" or "Search for files containing [keyword]."
`/cost` displays the token usage and estimated API cost for the current Claude Code session.
"Add TypeScript types / type hints to [file], ensuring all function signatures, return types, and variable declarations are typed."
"Explain the design patterns used in this codebase, why they were chosen, and how they interact with each other."
Question 44
Claude Code Prompts
What is the best prompt for async code conversion?
"Implement [JWT/session/OAuth] authentication for [framework], including login, logout, token refresh, and protected route middleware."
"I need to store [data type] with [operations needed]. What data structure would be most efficient and why?"
"Convert this synchronous [function/module] to async/await, handling errors properly and preserving all existing behavior."
"In your own words, explain how [feature/system] works based on the code. Then identify any gaps or potential issues."
Question 45
Claude Code Prompts
How do you ask Claude Code to add type safety?
"Generate a pre-deployment checklist for this project covering: environment variables, database migrations, cache warming, and health checks."
"Create [filename] with [specific content/structure]. It should [behavior/purpose] and follow the conventions in [reference file]."
"Add TypeScript types / type hints to [file], ensuring all function signatures, return types, and variable declarations are typed."
Paste the full error: "I'm getting this error: [paste error]. What does it mean and how do I fix it?"
Question 46
Claude Code Prompts
How do you get Claude Code to write tests?
Be specific about the goal: "Refactor this function to use async/await instead of callbacks" or "Extract this logic into a separate helper function."
"Add documentation to [file] explaining the purpose of each function, its parameters, return values, and any important behavior."
"Write unit tests for [function/file] covering edge cases including null inputs, empty arrays, and boundary values."
"This query is slow: [paste query]. Analyze it and rewrite it to be more efficient. Suggest any indexes that should be added."
Question 47
Claude Code Prompts
How do you ask Claude Code to debug a failing test?
"Implement [feature] with security as the top priority. Validate all inputs, sanitize outputs, and explain any security decisions made."
"Add exponential backoff retry logic to [API call/operation] with [max N retries], jitter, and logging of each attempt."
"Add structured logging to [file/function] that logs [events] with appropriate log levels (debug/info/warn/error)."
"This test is failing with [error message]. Read the test and the code it tests, then find and fix the root cause."
Question 48
Claude Code Prompts
How do you ask Claude Code to create a design doc?
"Write a technical design document for [feature] covering: requirements, proposed solution, alternative approaches, risks, and success metrics."
"Review the error messages in [file] and improve them to be more descriptive, actionable, and user-friendly."
"Find all places where [function/variable/pattern] is used" or "Search for files containing [keyword]."
"Write a regex that matches [pattern description] and test it against these examples: [valid examples] vs [invalid examples]."
Question 49
Claude Code Prompts
What prompt makes Claude Code ask clarifying questions first?
Press `Escape` or `Ctrl+C` to interrupt the current operation and return to the prompt.
Claude Code is Anthropic's official AI-powered CLI tool that helps developers write, edit, debug, and understand code directly in the terminal.
"Create a Dockerfile for this [language/framework] app that is optimized for production with a multi-stage build."
"Before writing any code, ask me the questions you need answered to implement [feature] correctly."
Question 50
Claude Code Prompts
What prompt helps with CI/CD configuration?
"Identify the top 5 pieces of technical debt in [file/module] ranked by impact and effort, and suggest a remediation plan for each."
"Convert this synchronous [function/module] to async/await, handling errors properly and preserving all existing behavior."
"Add caching to [function/endpoint] with a [N minute] TTL, using [Redis/in-memory/HTTP cache headers] and cache invalidation for [events]."
"Create a [GitHub Actions / GitLab CI] workflow that runs [tests/builds/deploys] on [trigger events] for this [framework] project."
Question navigator
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
← Previous
Next →
✅ Submit Exam