<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Edgar Abrahamyan</title>
    <description>The latest articles on Forem by Edgar Abrahamyan (@edgar_abrahamyan_28e48569).</description>
    <link>https://forem.com/edgar_abrahamyan_28e48569</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3896599%2F55b119b9-4f08-4556-9580-697cfc8844f6.png</url>
      <title>Forem: Edgar Abrahamyan</title>
      <link>https://forem.com/edgar_abrahamyan_28e48569</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/edgar_abrahamyan_28e48569"/>
    <language>en</language>
    <item>
      <title>10 AI prompts I actually use every day as a developer (copy-paste ready)</title>
      <dc:creator>Edgar Abrahamyan</dc:creator>
      <pubDate>Fri, 24 Apr 2026 19:22:19 +0000</pubDate>
      <link>https://forem.com/edgar_abrahamyan_28e48569/10-ai-prompts-i-actually-use-every-day-as-a-developer-copy-paste-ready-33hn</link>
      <guid>https://forem.com/edgar_abrahamyan_28e48569/10-ai-prompts-i-actually-use-every-day-as-a-developer-copy-paste-ready-33hn</guid>
      <description>&lt;p&gt;Every developer I know has had this experience: you open ChatGPT or Claude, type "write me a function to parse dates", and get back something so generic it's almost useless.&lt;/p&gt;

&lt;p&gt;The problem isn't the AI — it's the prompt. Vague input, vague output.&lt;/p&gt;

&lt;p&gt;After months of daily use, I've settled on a set of prompts that consistently get great results. Here are 10 of them, ready to copy and paste. Just swap the [brackets] for your specifics.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Write a clean function
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;Write&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;language&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="n"&gt;function&lt;/span&gt; &lt;span class="n"&gt;that&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;does&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;
&lt;span class="n"&gt;Use&lt;/span&gt; &lt;span class="nb"&gt;type&lt;/span&gt; &lt;span class="n"&gt;hints&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;handle&lt;/span&gt; &lt;span class="n"&gt;edge&lt;/span&gt; &lt;span class="n"&gt;cases&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;add&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;docstring&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The magic words here are "handle edge cases" and "add a docstring". Without them you get a happy-path-only snippet with no docs.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Generate boilerplate fast
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nx"&gt;Generate&lt;/span&gt; &lt;span class="nx"&gt;a&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;framework&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="nx"&gt;REST&lt;/span&gt; &lt;span class="nx"&gt;endpoint&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;resource&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;
&lt;span class="nx"&gt;Include&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;input&lt;/span&gt; &lt;span class="nx"&gt;validation&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;error&lt;/span&gt; &lt;span class="nx"&gt;handling&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;and&lt;/span&gt; &lt;span class="nx"&gt;a&lt;/span&gt; &lt;span class="nx"&gt;usage&lt;/span&gt; &lt;span class="nx"&gt;example&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Works great for FastAPI, Express, Rails, Laravel. The "usage example" forces the AI to write something actually runnable.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. Explain a bug (not just fix it)
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Here is my code and the error I am seeing. Explain:
what is wrong, why it happens, and show the fix:
[paste code + error message]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Asking &lt;em&gt;why&lt;/em&gt; it happens means you learn something instead of just copy-pasting a fix you don't understand.&lt;/p&gt;




&lt;h2&gt;
  
  
  4. Security review
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Review this code for security vulnerabilities.
List each issue with severity (High/Med/Low) and remediation:
[paste code]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I run this on every piece of code that touches user input or auth. Catches things I'd miss at 2am.&lt;/p&gt;




&lt;h2&gt;
  
  
  5. Write a unit test suite
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;Write&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;complete&lt;/span&gt; &lt;span class="n"&gt;unit&lt;/span&gt; &lt;span class="n"&gt;test&lt;/span&gt; &lt;span class="n"&gt;suite&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;function&lt;/span&gt; &lt;span class="n"&gt;below&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;span class="n"&gt;Cover&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;happy&lt;/span&gt; &lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;edge&lt;/span&gt; &lt;span class="n"&gt;cases&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;error&lt;/span&gt; &lt;span class="n"&gt;cases&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="n"&gt;Use&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;Jest&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;pytest&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;RSpec&lt;/span&gt;&lt;span class="p"&gt;]:&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;paste&lt;/span&gt; &lt;span class="n"&gt;function&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Specifying all three coverage types triples the quality vs just asking for "unit tests".&lt;/p&gt;




&lt;h2&gt;
  
  
  6. Generate a README
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;Write a README.md for [project name]. Sections:
overview, prerequisites, installation, usage examples, contributing.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Takes 30 seconds and produces a README better than 80% of what's on GitHub.&lt;/p&gt;




&lt;h2&gt;
  
  
  7. Refactor plan (without rewriting yet)
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;This code works but feels messy. Suggest a refactor plan:
what patterns to apply, what to extract, and why -- without rewriting it yet:
[paste code]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The "without rewriting yet" constraint is crucial — you want a plan first, not a wall of code to review blindly.&lt;/p&gt;




&lt;h2&gt;
  
  
  8. Conventional commit message
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight diff"&gt;&lt;code&gt;&lt;span class="p"&gt;Write a conventional commit message for this diff.
Format: type(scope): description -- then a short body:
&lt;/span&gt;[paste diff]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Paste your git diff --staged output and get a perfect commit message in 2 seconds.&lt;/p&gt;




&lt;h2&gt;
  
  
  9. Regex with explanation
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Write a regex that matches [pattern description].
Show: the regex, a token-by-token breakdown, 3 positive + 2 negative test cases.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The breakdown and test cases mean you actually understand what you're deploying.&lt;/p&gt;




&lt;h2&gt;
  
  
  10. CLI one-liner
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;Write a bash one-liner that &lt;span class="o"&gt;[&lt;/span&gt;task description].
Annotate each part so I understand what it does.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Essential for those "I know bash can do this in one line but I can't remember how" moments.&lt;/p&gt;




&lt;h2&gt;
  
  
  The pattern behind all of these
&lt;/h2&gt;

&lt;p&gt;Every prompt has specificity about format, specificity about what to include, and a constraint that forces quality (explain why, include edge cases, don't rewrite yet). Vague prompts get vague answers.&lt;/p&gt;




&lt;p&gt;I compiled these plus 40 more into a 2-page cheat sheet you can keep open while you code — covering code generation, debugging, testing, docs, system design, git, and more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Grab the full 50-prompt cheat sheet for $1: &lt;a href="https://abrahamyan3.gumroad.com/l/eqgrme" rel="noopener noreferrer"&gt;https://abrahamyan3.gumroad.com/l/eqgrme&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>programming</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
