DEV Community

Swathi
Swathi

Posted on

3 ChatGPT Prompt Tricks That Feel Like Magic (But Are Pure Logic)⚡

Hey people!!

After my first blog on GitHub URL tricks, I wanted to write about something I’ve been experimenting with a lot lately — prompts.

Whether you’re using ChatGPT for coding, learning, or content creation, your output completely depends on the quality of your prompt. Here are three of my favorite prompt tips that have made a huge difference for me.


Trick 1: Give ChatGPT JSON-like Prompts

Trust me!!! this works wonders.

ChatGPT responds much better when you provide a structured prompt, almost like you’re giving it data instead of plain text.

Example:

{
  "role": "content strategist",
  "task": "Write a short Twitter thread about GitHub tips",
  "requirements": {
    "tone": "fun and engaging",
    "audience": "developers",
    "length": "5 tweets",
    "include_hashtags": true
  }
}
Enter fullscreen mode Exit fullscreen mode

When you format your prompt this way, ChatGPT clearly understands the context, constraints, and structure and it reduces ambiguity in the prompt focusing on the keywords, and the results are usually much more accurate and on-point!! (Do try this trick)

Trick 2: Make ChatGPT Act Like Someone

This one is gold. Don’t just tell ChatGPT what to do — assign it a role and explain your situation.

For example, if you’re trying to learn something new, you can prompt it like this:

I want to learn [TOPIC] from the world’s best professional  you.  
You are an expert tutor with unmatched knowledge and teaching ability.  
Teach me from beginner to expert in a structured, lesson-based format.  
Structure:  
- 10 progressive lessons (basic  advanced)  
- Each lesson includes: clear explanations, visuals or examples, real-world applications, common mistakes, and a short quiz.  
- End with a small project and a mastery summary.  

Guidelines: 
- Assume I’m a complete beginner.  
- Adapt explanations to my progress and correct misunderstandings gently.  
- Provide 35 recommended resources for deeper learning.  

My goal: to confidently apply these concepts in real-world projects/interviews/exams.  
Take me from zero to expert under your expert guidance.
Enter fullscreen mode Exit fullscreen mode

This kind of prompt sets the tone, style, and structure of ChatGPT’s response.

You’ll be amazed at how detailed and personalized the output becomes.

Trick 3: Use ChatGPT to Optimize Your Prompt

Yes, you read that right.

You can literally ask ChatGPT to rate your prompt and tell you how to make it better.

Try something like this:

Rate my prompt on a scale of 1 to 10 for clarity and effectiveness.  
Then tell me what would make it a 10/10.
<paste-your-prompt-here>
Enter fullscreen mode Exit fullscreen mode

When I tried this, I got some really insightful feedback from ChatGPT itself!!!
it pointed out where I could clarify my intent and make the tone more specific.


Soo... wrapping up,
Prompting is an art. The more you experiment, the better your results will get.

Try using these 3 tips, and trust me..
You’ll be surprised how quickly your conversations become more powerful and productive.

If you liked this post or found it helpful, drop a ❤️ or comment on what your favorite prompting trick is.. I’d love to try it out!!

Top comments (0)