<?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>DEV Community: LakshitSharma1</title>
    <description>The latest articles on DEV Community by LakshitSharma1 (@lakshitsharma1).</description>
    <link>https://dev.to/lakshitsharma1</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%2F3892432%2F494f494d-788f-4c73-b715-914825eec66c.png</url>
      <title>DEV Community: LakshitSharma1</title>
      <link>https://dev.to/lakshitsharma1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lakshitsharma1"/>
    <language>en</language>
    <item>
      <title>I built a CLI tool that writes your git commit messages using Claude AI</title>
      <dc:creator>LakshitSharma1</dc:creator>
      <pubDate>Wed, 22 Apr 2026 11:54:25 +0000</pubDate>
      <link>https://dev.to/lakshitsharma1/i-built-a-cli-tool-that-writes-your-git-commit-messages-using-claude-ai-29j5</link>
      <guid>https://dev.to/lakshitsharma1/i-built-a-cli-tool-that-writes-your-git-commit-messages-using-claude-ai-29j5</guid>
      <description>&lt;p&gt;We've all written terrible commit messages.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git commit -m "fix"&lt;/code&gt;&lt;br&gt;
&lt;code&gt;git commit -m "stuff"&lt;/code&gt;&lt;br&gt;
&lt;code&gt;git commit -m "changes pls work"&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;I got tired of it. So I built &lt;strong&gt;claude-autocommit&lt;/strong&gt; — a CLI tool that reads your staged git diff and automatically generates a meaningful commit message using Claude AI.&lt;/p&gt;
&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git add &lt;span class="nb"&gt;.&lt;/span&gt;
claude-autocommit
&lt;span class="c"&gt;# ✅ feat: add user authentication with JWT tokens&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;That's it. One command. Done.&lt;/p&gt;
&lt;h2&gt;
  
  
  Tech Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;TypeScript&lt;/li&gt;
&lt;li&gt;Claude API (Anthropic)&lt;/li&gt;
&lt;li&gt;Node.js CLI&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Installation
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; @lakshitsharma1/claude-autocommit
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Set your API key:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Windows&lt;/span&gt;
&lt;span class="nv"&gt;$env&lt;/span&gt;:ANTHROPIC_API_KEY&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"your-key"&lt;/span&gt;

&lt;span class="c"&gt;# Mac/Linux&lt;/span&gt;
&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;ANTHROPIC_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"your-key"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then just run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git add &lt;span class="nb"&gt;.&lt;/span&gt;
claude-autocommit
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;p&gt;Building a CLI tool from scratch taught me a lot about how npm packages work, how to structure TypeScript projects, and how easy it is to integrate Claude API into real tools.&lt;/p&gt;

&lt;p&gt;The whole project is open source — contributions welcome!&lt;/p&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;GitHub: &lt;a href="https://github.com/LakshitSharma1/claude-autocommit" rel="noopener noreferrer"&gt;https://github.com/LakshitSharma1/claude-autocommit&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;npm: &lt;a href="https://www.npmjs.com/package/@lakshitsharma1/claude-autocommit" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/@lakshitsharma1/claude-autocommit&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If this seems useful, drop a ⭐ on GitHub!&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>claude</category>
      <category>git</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
