Back to Home
Category • 11 Prompts

Refactoring AI Prompts

Refactoring prompts for legacy code: extract seams, kill duplication, add tests before touching logic. Each prompt encodes a discipline, not just an instruction to make code prettier.

Refactoring Prompts

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.

210
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

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.

170
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.

130
GPT-4

Asks the model to produce SVG markup for a described graphic, returning code you can paste directly into a page. Handy for simple icons, diagrams, and placeholder artwork when you want scalable output with no binary asset or build step.

▸ ready to run
GPT-4

Asks the model to produce SVG markup for a described graphic, returning code you can paste directly into a page. Handy for simple icons, diagrams, and placeholder artwork when you want scalable output with no binary asset or build step.

SVG Designer for Inline Vector Graphics

Asks the model to produce SVG markup for a described graphic, returning code you can paste directly into a page. Handy for simple icons, diagrams, and placeholder artwork when you want scalable output with no binary asset or build step.

190
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.

140
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
Claude

A refactoring prompt that puts characterisation tests before any code movement and outlaws behaviour changes — suspected bugs get flagged, not silently fixed. The output is a safe, reviewable migration rather than a rewrite gamble.

▸ ready to run
Claude

A refactoring prompt that puts characterisation tests before any code movement and outlaws behaviour changes — suspected bugs get flagged, not silently fixed. The output is a safe, reviewable migration rather than a rewrite gamble.

Legacy Function Strangler

A refactoring prompt that puts characterisation tests before any code movement and outlaws behaviour changes — suspected bugs get flagged, not silently fixed. The output is a safe, reviewable migration rather than a rewrite gamble.

656105