Back to All Tags
Tag • 28 Prompts

#Clean Code

Explore all AI prompts tagged with #Clean Code.

Prompts tagged with #Clean Code

Claude

A debugging discipline in prompt form: hypotheses with evidence both ways and a cheapest-experiment step, with fixes explicitly forbidden until confirmation. Cuts wild-goose-chase time dramatically on unfamiliar codebases.

▸ ready to run
Claude

A debugging discipline in prompt form: hypotheses with evidence both ways and a cheapest-experiment step, with fixes explicitly forbidden until confirmation. Cuts wild-goose-chase time dramatically on unfamiliar codebases.

Stack Trace Hypothesis Ranker

A debugging discipline in prompt form: hypotheses with evidence both ways and a cheapest-experiment step, with fixes explicitly forbidden until confirmation. Cuts wild-goose-chase time dramatically on unfamiliar codebases.

1.5K240
Claude

Explains architectural decisions in terms of the trade-offs they buy and the costs they defer, rather than presenting patterns as rules. Useful for engineers starting to make system-level calls who need to justify a choice rather than just name it.

▸ ready to run
Claude

Explains architectural decisions in terms of the trade-offs they buy and the costs they defer, rather than presenting patterns as rules. Useful for engineers starting to make system-level calls who need to justify a choice rather than just name it.

Architecture Guide for Developers Moving Up

Explains architectural decisions in terms of the trade-offs they buy and the costs they defer, rather than presenting patterns as rules. Useful for engineers starting to make system-level calls who need to justify a choice rather than just name it.

180
Claude

Runs a lighter pass than a full review, catching the mechanical issues — naming, dead code, missing null handling — before a human reviewer spends attention on them. Best used as the step between finishing a branch and opening the pull request.

▸ ready to run
Claude

Runs a lighter pass than a full review, catching the mechanical issues — naming, dead code, missing null handling — before a human reviewer spends attention on them. Best used as the step between finishing a branch and opening the pull request.

Code Review Assistant for Pre-Merge Checks

Runs a lighter pass than a full review, catching the mechanical issues — naming, dead code, missing null handling — before a human reviewer spends attention on them. Best used as the step between finishing a branch and opening the pull request.

230
GPT-4

Turns a diff into a clear commit message that explains intent rather than restating the changed lines. Useful for keeping a history that is worth reading during an incident, when the question is always why a change was made and not what it touched.

▸ ready to run
GPT-4

Turns a diff into a clear commit message that explains intent rather than restating the changed lines. Useful for keeping a history that is worth reading during an incident, when the question is always why a change was made and not what it touched.

Commit Message Generator for Readable Git History

Turns a diff into a clear commit message that explains intent rather than restating the changed lines. Useful for keeping a history that is worth reading during an incident, when the question is always why a change was made and not what it touched.

210
GPT-4

Rewrites code from another language into idiomatic Python rather than a literal transliteration. Useful for consolidating scattered utility scripts onto one stack, and the output is a reasonable starting point that still needs tests before it is trusted.

▸ ready to run
GPT-4

Rewrites code from another language into idiomatic Python rather than a literal transliteration. Useful for consolidating scattered utility scripts onto one stack, and the output is a reasonable starting point that still needs tests before it is trusted.

Any Language to Python Converter for Migrations

Rewrites code from another language into idiomatic Python rather than a literal transliteration. Useful for consolidating scattered utility scripts onto one stack, and the output is a reasonable starting point that still needs tests before it is trusted.

230
Claude

Ports a snippet from one language to another while preserving behaviour and adopting the target language's idioms. Useful during migrations, though the output needs testing — literal translation often produces code that runs but reads as foreign.

▸ ready to run
Claude

Ports a snippet from one language to another while preserving behaviour and adopting the target language's idioms. Useful during migrations, though the output needs testing — literal translation often produces code that runs but reads as foreign.

Code Translator Between Programming Languages

Ports a snippet from one language to another while preserving behaviour and adopting the target language's idioms. Useful during migrations, though the output needs testing — literal translation often produces code that runs but reads as foreign.

150
Claude

Explains how an unfamiliar repository is organised, what each directory is responsible for, and where to start reading. Genuinely useful when joining a project or evaluating a dependency, since architecture is rarely documented as clearly as the API.

▸ ready to run
Claude

Explains how an unfamiliar repository is organised, what each directory is responsible for, and where to start reading. Genuinely useful when joining a project or evaluating a dependency, since architecture is rarely documented as clearly as the API.

GitHub Repository Structure Tutor for Onboarding

Explains how an unfamiliar repository is organised, what each directory is responsible for, and where to start reading. Genuinely useful when joining a project or evaluating a dependency, since architecture is rarely documented as clearly as the API.

341
GPT-4

Helps organise, tag, and retrieve frequently used code fragments so the same solution is not rewritten each sprint. Useful for teams building an internal pattern library, and for keeping snippet documentation close enough to the code to stay accurate.

▸ ready to run
GPT-4

Helps organise, tag, and retrieve frequently used code fragments so the same solution is not rewritten each sprint. Useful for teams building an internal pattern library, and for keeping snippet documentation close enough to the code to stay accurate.

Code Snippet Manager for Reusable Pattern Libraries

Helps organise, tag, and retrieve frequently used code fragments so the same solution is not rewritten each sprint. Useful for teams building an internal pattern library, and for keeping snippet documentation close enough to the code to stay accurate.

180
Claude

Produces shell scripts for a task you describe, with argument handling and error checking rather than a bare one-liner. Useful for automating backups, log rotation, and deployment steps where silent failure would otherwise go unnoticed for weeks.

▸ ready to run
Claude

Produces shell scripts for a task you describe, with argument handling and error checking rather than a bare one-liner. Useful for automating backups, log rotation, and deployment steps where silent failure would otherwise go unnoticed for weeks.

Linux Shell Script Developer for Automation Tasks

Produces shell scripts for a task you describe, with argument handling and error checking rather than a bare one-liner. Useful for automating backups, log rotation, and deployment steps where silent failure would otherwise go unnoticed for weeks.

230
GPT-4

Guides the model through structured diagnosis: gather symptoms, form a hypothesis, test the cheapest one first. Useful for hardware and environment problems where the instinct to change several things at once usually makes the fault harder to find.

▸ ready to run
GPT-4

Guides the model through structured diagnosis: gather symptoms, form a hypothesis, test the cheapest one first. Useful for hardware and environment problems where the instinct to change several things at once usually makes the fault harder to find.

Tech Troubleshooter for Systematic Fault Isolation

Guides the model through structured diagnosis: gather symptoms, form a hypothesis, test the cheapest one first. Useful for hardware and environment problems where the instinct to change several things at once usually makes the fault harder to find.

170
Claude

Sets a mentoring frame where the model explains not just how to do something but why the practice exists. Useful for developers moving from working code toward maintainable code, and for understanding the reasoning behind conventions rather than just following them.

▸ ready to run
Claude

Sets a mentoring frame where the model explains not just how to do something but why the practice exists. Useful for developers moving from working code toward maintainable code, and for understanding the reasoning behind conventions rather than just following them.

Software Development Mentor for Career and Craft

Sets a mentoring frame where the model explains not just how to do something but why the practice exists. Useful for developers moving from working code toward maintainable code, and for understanding the reasoning behind conventions rather than just following them.

180
Claude

Positions the model as a senior engineer who reasons through difficult problems step by step rather than jumping to a snippet. Best reserved for genuinely knotty issues — concurrency, performance cliffs, subtle state bugs — where the reasoning matters more than the code.

▸ ready to run
Claude

Positions the model as a senior engineer who reasons through difficult problems step by step rather than jumping to a snippet. Best reserved for genuinely knotty issues — concurrency, performance cliffs, subtle state bugs — where the reasoning matters more than the code.

Programming Expert for Hard Technical Problems

Positions the model as a senior engineer who reasons through difficult problems step by step rather than jumping to a snippet. Best reserved for genuinely knotty issues — concurrency, performance cliffs, subtle state bugs — where the reasoning matters more than the code.

180
GPT-4

Acts as an R console that returns results without commentary. Useful for verifying vector operations, data frame manipulation, and statistical function output when you are away from RStudio, or for checking syntax before running a long analysis job.

▸ ready to run
GPT-4

Acts as an R console that returns results without commentary. Useful for verifying vector operations, data frame manipulation, and statistical function output when you are away from RStudio, or for checking syntax before running a long analysis job.

R Interpreter Simulator for Statistical Snippets

Acts as an R console that returns results without commentary. Useful for verifying vector operations, data frame manipulation, and statistical function output when you are away from RStudio, or for checking syntax before running a long analysis job.

230
GPT-4

Behaves as a bare PHP interpreter, printing only what the script would output. Handy for checking array functions, string handling, and type juggling behaviour without spinning up a local server. Suppressing explanation makes it a fast self-test tool.

▸ ready to run
GPT-4

Behaves as a bare PHP interpreter, printing only what the script would output. Handy for checking array functions, string handling, and type juggling behaviour without spinning up a local server. Suppressing explanation makes it a fast self-test tool.

PHP Interpreter Simulator for Snippet Verification

Behaves as a bare PHP interpreter, printing only what the script would output. Handy for checking array functions, string handling, and type juggling behaviour without spinning up a local server. Suppressing explanation makes it a fast self-test tool.

200
GPT-4

Frames the model as an experienced Ethereum developer writing Solidity contracts with the access rules and state handling spelled out. Useful for scaffolding a contract and understanding the trade-offs, though any output needs a real audit before deployment.

▸ ready to run
GPT-4

Frames the model as an experienced Ethereum developer writing Solidity contracts with the access rules and state handling spelled out. Useful for scaffolding a contract and understanding the trade-offs, though any output needs a real audit before deployment.

Solidity Smart Contract Developer for Blockchain Builds

Frames the model as an experienced Ethereum developer writing Solidity contracts with the access rules and state handling spelled out. Useful for scaffolding a contract and understanding the trade-offs, though any output needs a real audit before deployment.

210
Claude

Converts a written description of a system or process into diagram source you can render. Useful for documenting an architecture, a request flow, or a state machine without opening a drawing tool, and the output stays diffable in version control.

▸ ready to run
Claude

Converts a written description of a system or process into diagram source you can render. Useful for documenting an architecture, a request flow, or a state machine without opening a drawing tool, and the output stays diffable in version control.

Diagram Generator for Architecture and Flow Charts

Converts a written description of a system or process into diagram source you can render. Useful for documenting an architecture, a request flow, or a state machine without opening a drawing tool, and the output stays diffable in version control.

330
Claude

Positions the model as a solution architect who maps requirements onto systems, integrations, and deployment topology. Use it when you need to reason about how a new component fits an existing estate before committing to a technical direction.

▸ ready to run
Claude

Positions the model as a solution architect who maps requirements onto systems, integrations, and deployment topology. Use it when you need to reason about how a new component fits an existing estate before committing to a technical direction.

IT Architect for System Integration Planning

Positions the model as a solution architect who maps requirements onto systems, integrations, and deployment topology. Use it when you need to reason about how a new component fits an existing estate before committing to a technical direction.

180
GPT-4

Produces commit messages that follow the Conventional Commits specification, with the right type prefix and a scoped subject line. Keeps a shared history readable and makes automated changelog and semantic-version tooling work properly across a team.

▸ ready to run
GPT-4

Produces commit messages that follow the Conventional Commits specification, with the right type prefix and a scoped subject line. Keeps a shared history readable and makes automated changelog and semantic-version tooling work properly across a team.

Conventional Commit Message Generator From a Diff

Produces commit messages that follow the Conventional Commits specification, with the right type prefix and a scoped subject line. Keeps a shared history readable and makes automated changelog and semantic-version tooling work properly across a team.

160
Claude

Puts the model in an operations mindset for CI/CD, containers, and infrastructure questions, focusing on reliability and rollback safety. Good for reviewing a deployment plan or working out why a pipeline stage keeps failing intermittently.

▸ ready to run
Claude

Puts the model in an operations mindset for CI/CD, containers, and infrastructure questions, focusing on reliability and rollback safety. Good for reviewing a deployment plan or working out why a pipeline stage keeps failing intermittently.

DevOps Engineer for Deployment and Pipeline Problems

Puts the model in an operations mindset for CI/CD, containers, and infrastructure questions, focusing on reliability and rollback safety. Good for reviewing a deployment plan or working out why a pipeline stage keeps failing intermittently.

150
Claude

Generates unit tests for a function you paste in, covering the normal path plus boundary conditions. Pair it with your existing test framework conventions so output drops straight into the suite. A quick way to add a safety net before refactoring legacy code.

▸ ready to run
Claude

Generates unit tests for a function you paste in, covering the normal path plus boundary conditions. Pair it with your existing test framework conventions so output drops straight into the suite. A quick way to add a safety net before refactoring legacy code.

Unit Test Assistant for Untested Functions

Generates unit tests for a function you paste in, covering the normal path plus boundary conditions. Pair it with your existing test framework conventions so output drops straight into the suite. A quick way to add a safety net before refactoring legacy code.

240
Claude

Puts the model in reviewer mode so it reads a diff and reports problems, risks, and improvement suggestions instead of rewriting everything. Use it as a first pass before human review to catch obvious defects, naming issues, and missing error handling early.

▸ ready to run
Claude

Puts the model in reviewer mode so it reads a diff and reports problems, risks, and improvement suggestions instead of rewriting everything. Use it as a first pass before human review to catch obvious defects, naming issues, and missing error handling early.

Code Reviewer for Structured Pull Request Feedback

Puts the model in reviewer mode so it reads a diff and reports problems, risks, and improvement suggestions instead of rewriting everything. Use it as a first pass before human review to catch obvious defects, naming issues, and missing error handling early.

120
GPT-4

Converts a written description of a matching rule into a regular expression, returning the pattern without a lecture attached. Best used for validation rules, log parsing, and find-and-replace work where you know the intent but not the syntax. Always test the output against edge cases.

▸ ready to run
GPT-4

Converts a written description of a matching rule into a regular expression, returning the pattern without a lecture attached. Best used for validation rules, log parsing, and find-and-replace work where you know the intent but not the syntax. Always test the output against edge cases.

Regular Expression Generator From Plain English

Converts a written description of a matching rule into a regular expression, returning the pattern without a lecture attached. Best used for validation rules, log parsing, and find-and-replace work where you know the intent but not the syntax. Always test the output against edge cases.

150
GPT-4

Acts as a bare Python interpreter that prints output and nothing else. Useful for verifying comprehensions, string formatting, and standard-library behaviour when you do not have a REPL open. Because it suppresses prose, it is also a fast way to quiz yourself on semantics.

▸ ready to run
GPT-4

Acts as a bare Python interpreter that prints output and nothing else. Useful for verifying comprehensions, string formatting, and standard-library behaviour when you do not have a REPL open. Because it suppresses prose, it is also a fast way to quiz yourself on semantics.

Python Interpreter Simulator for Snippet Checks

Acts as a bare Python interpreter that prints output and nothing else. Useful for verifying comprehensions, string formatting, and standard-library behaviour when you do not have a REPL open. Because it suppresses prose, it is also a fast way to quiz yourself on semantics.

260
GPT-4

Makes the model behave like a browser console: you type an expression, it returns only what the console would print. Handy for reasoning about coercion, array methods, and async ordering without opening devtools. Keeps replies free of explanation unless you ask.

▸ ready to run
GPT-4

Makes the model behave like a browser console: you type an expression, it returns only what the console would print. Handy for reasoning about coercion, array methods, and async ordering without opening devtools. Keeps replies free of explanation unless you ask.

JavaScript Console Simulator for Quick Evaluation

Makes the model behave like a browser console: you type an expression, it returns only what the console would print. Handy for reasoning about coercion, array methods, and async ordering without opening devtools. Keeps replies free of explanation unless you ask.

230