<?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: depurivamsi</title>
    <description>The latest articles on Forem by depurivamsi (@depurivamsi).</description>
    <link>https://forem.com/depurivamsi</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%2F987417%2Fe41bf472-d780-4237-9455-f2a5ab8c6f46.png</url>
      <title>Forem: depurivamsi</title>
      <link>https://forem.com/depurivamsi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/depurivamsi"/>
    <language>en</language>
    <item>
      <title>🚨 Ask Before You Break Production: I Built ProdGuard with GitHub Copilot CLI</title>
      <dc:creator>depurivamsi</dc:creator>
      <pubDate>Sun, 15 Feb 2026 09:39:28 +0000</pubDate>
      <link>https://forem.com/depurivamsi/ask-before-you-break-production-i-built-prodguard-with-github-copilot-cli-cok</link>
      <guid>https://forem.com/depurivamsi/ask-before-you-break-production-i-built-prodguard-with-github-copilot-cli-cok</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/github-2026-01-21"&gt;GitHub Copilot CLI Challenge&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;I built &lt;strong&gt;ProdGuard&lt;/strong&gt; — a production safety CLI that helps developers &lt;em&gt;pause and think&lt;/em&gt; before running dangerous commands in production.&lt;/p&gt;

&lt;p&gt;Most production incidents aren’t caused by lack of knowledge.&lt;br&gt;&lt;br&gt;
They’re caused by &lt;strong&gt;speed&lt;/strong&gt;, &lt;strong&gt;pressure&lt;/strong&gt;, and &lt;strong&gt;muscle memory&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Commands like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;rm -rf&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;chmod 777&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;DELETE FROM users;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;are easy to type — and catastrophic to undo.&lt;/p&gt;

&lt;p&gt;ProdGuard acts as a &lt;strong&gt;last line of defense&lt;/strong&gt;.&lt;br&gt;&lt;br&gt;
Instead of helping you &lt;em&gt;run&lt;/em&gt; a command faster, it helps you ask:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;“Should I run this in production?”&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;ProdGuard analyzes shell commands and SQL queries and explains:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The production risk level (LOW → CRITICAL)&lt;/li&gt;
&lt;li&gt;Why the command is dangerous&lt;/li&gt;
&lt;li&gt;What could realistically go wrong&lt;/li&gt;
&lt;li&gt;Safer alternatives you can run instead&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It never executes anything.&lt;br&gt;&lt;br&gt;
It only analyzes and explains risk.&lt;/p&gt;




&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;🔗 &lt;strong&gt;GitHub Repository&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
&lt;a href="https://github.com/depurivamsi/GitHub-Copilot-CLI-Challenge-ProdGuard" rel="noopener noreferrer"&gt;https://github.com/depurivamsi/GitHub-Copilot-CLI-Challenge-ProdGuard&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Example: Analyzing a risky shell command
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;prodguard analyze &lt;span class="s2"&gt;"rm -rf /var/log"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp0pdps6zr0yyaq2of5ud.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp0pdps6zr0yyaq2of5ud.png" alt="Output of 'rm -rf /var/log' from terminal" width="800" height="344"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Example: Analyzing SQL before production
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;prodguard analyze &lt;span class="s2"&gt;"DELETE FROM users;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwmbeyhak66j9lfmepnc1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwmbeyhak66j9lfmepnc1.png" alt="Output of 'DELETE FROM users;' from terminal" width="800" height="281"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;ProdGuard flags:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Missing WHERE clause&lt;/li&gt;
&lt;li&gt;Potential full table deletion&lt;/li&gt;
&lt;li&gt;High data-loss risk&lt;/li&gt;
&lt;li&gt;Safer, incremental alternatives&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  📘 Built-in Documentation
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;Prodguard docs
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;ProdGuard includes built-in documentation so users don’t need to leave the terminal to understand:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Correct usage&lt;/li&gt;
&lt;li&gt;Why quotes are required&lt;/li&gt;
&lt;li&gt;Best practices&lt;/li&gt;
&lt;li&gt;Common mistakes&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  My Experience with GitHub Copilot CLI
&lt;/h2&gt;

&lt;p&gt;This project exists because of GitHub Copilot CLI.&lt;/p&gt;

&lt;p&gt;I didn’t use Copilot just to generate code.&lt;br&gt;&lt;br&gt;
I used it as a senior engineer sitting next to me in the terminal.&lt;/p&gt;

&lt;p&gt;Instead of asking:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“How do I run this command?”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I asked:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;“What could go wrong if I run this in production?”&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;GitHub Copilot CLI helped me:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Reason about real-world production failures&lt;/li&gt;
&lt;li&gt;Think through impact, not just syntax&lt;/li&gt;
&lt;li&gt;Suggest safer alternatives&lt;/li&gt;
&lt;li&gt;Iterate on prompt design directly from the terminal&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A key design decision was &lt;strong&gt;not&lt;/strong&gt; calling any LLM APIs directly.&lt;br&gt;&lt;br&gt;
ProdGuard literally invokes GitHub Copilot CLI — the same way a developer would — but in an automated, structured way.&lt;/p&gt;

&lt;p&gt;That made development:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Faster&lt;/li&gt;
&lt;li&gt;More conversational&lt;/li&gt;
&lt;li&gt;Much closer to real developer workflows&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Copilot CLI wasn’t just a tool I used — it shaped how I thought about the problem.
&lt;/h2&gt;

&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;ProdGuard is intentionally simple.&lt;br&gt;
It doesn’t:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Execute commands&lt;/li&gt;
&lt;li&gt;Replace CI/CD&lt;/li&gt;
&lt;li&gt;Automate decisions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It does one thing well: &lt;strong&gt;helps developers stop and think before production mistakes happen.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If this tool saves even one person from running a destructive command in prod, it’s done its job.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>githubchallenge</category>
      <category>cli</category>
      <category>githubcopilot</category>
    </item>
  </channel>
</rss>
