God of Prompt
God of Prompt

@godofprompt

13 تغريدة 4 قراءة Feb 10, 2025
Claude is an underrated coding assistant.
But 99% of devs aren’t using it effectively.
Here are 10 prompts to change that: x.com
1/ Write Code
Prompt:
<role>You are a seasoned programmer.</role>
<context>Write efficient and well-structured code in [INSERT PROGRAMMING LANGUAGE] to [PERFORM ACTION].</context>
<steps> 1. Implement the necessary logic and algorithms.
2. Optimize for performance and readability.
3. Document the code for future reference and maintenance.</steps>
2/ Debug Code
Prompt:
<role>You are a debugging expert with over 20 years of experience.</role>
<context>Analyze the provided [PIECE OF CODE] to identify and fix a specific [ERROR].</context>
<steps> 1. Step through the code to diagnose the issue.
2. Propose a solution to fix the error.
3. Suggest optimizations for performance and readability.</steps>
3/ Code Review
Prompt:
<role>You are a code review specialist.</role>
<context>Perform a comprehensive review of the provided [PIECE OF CODE].</context>
<steps> 1. Evaluate the code for efficiency, readability, and maintainability.
2. Identify bugs, security issues, or performance bottlenecks.
3. Offer actionable suggestions for improvement.</steps>
4/ Explain Code
Prompt:
<role>You are an experienced programmer and educator.</role>
<context>Explain what a specific [PIECE OF CODE] does in a way that is clear to both novices and peers.</context>
<steps> 1. Break down the functionality of the code.
2. Highlight its use cases and best practices.
3. Suggest possible optimizations if applicable.</steps>
5/ Refactor Code
Prompt:
<role>You are a programming expert specializing in refactoring.</role>
<context>Refactor the given [PIECE OF CODE] to improve efficiency, readability, and maintainability without altering its functionality.</context>
<steps> 1. Simplify complex logic.
2. Remove redundant code.
3. Document the refactored code for clarity.</steps>
6/ Write Documentation
Prompt:
<role>You are a documentation expert for software developers.</role>
<context>Write comprehensive documentation for the provided [CODE].</context>
<steps> 1. Start with an overview of the code’s purpose.
2. Break down the functionality of each component.
3. Include examples and a FAQ section to assist users.</steps>
7/ Write Tests
Prompt:
<role>You are a software testing specialist.</role>
<context>Design and write comprehensive tests for a specific [PIECE OF CODE] using [TESTING FRAMEWORK].</context>
<steps> 1. Outline a testing strategy covering edge cases.
2. Implement unit, integration, and end-to-end tests as needed.
3. Ensure all tests are thorough and efficient.</steps>
8/ Optimize Code
Prompt:
<role>You are an optimization expert for software development.</role>
<context>Optimize the given [PIECE OF CODE] for performance and scalability.</context>
<steps> 1. Analyze performance bottlenecks.
2. Rewrite code sections with more efficient algorithms.
3. Ensure the optimized code passes all functionality tests.</steps>
9/ Generate Code Snippets
Prompt:
<role>You are a programming assistant.</role>
<context>Create a reusable code snippet in [INSERT LANGUAGE] for [SPECIFIC TASK].</context>
<steps> 1. Write concise, functional code for the task.
2. Provide inline comments for clarity.
3. Suggest how the snippet can be integrated into larger projects.</steps>
10/ Create Coding Tutorials
Prompt:
<role>You are a programming educator.</role>
<context>Design a step-by-step coding tutorial to teach [TOPIC] in [LANGUAGE].</context>
<steps> 1. Outline key concepts and examples.
2. Provide clear explanations for each step.
3. Include exercises for hands-on learning.</steps>
Do you want to buy a coffee, or a subscription to your business success?
→ Just $15/mo for ALL of my AI Prompts
→ Just $3.99/mo for a specific ChatGPT Pack
→ Just $9.99/mo for ChatGPT Bundle
👇 Join the AI Revolution today: godofprompt.ai
That's a wrap:
I hope you've found this thread helpful.
Follow me @godofprompt for more.
Like/Repost the quote below if you can:

جاري تحميل الاقتراحات...