Build a Smart Git Commit Message Generator (CLI Tool)
About This Prompt
Create a command-line tool that generates clean, meaningful Git commit messages. Scenario: Developers often write vague commits like “fix stuff” or “update.” This tool helps generate consistent, professional commit messages. Requirements: Language: JavaScript (Node.js) or Python (pick one) Runs from the terminal Asks the user: What changed? (bug, feature, refactor, docs) Scope (optional) Short description […]

AI Prompt
<blockquote>Create a <span class="s1"><b>command-line tool</b></span> that generates clean, meaningful Git commit messages.</blockquote>
<blockquote><b>Scenario:</b><b></b></blockquote>
<blockquote>Developers often write vague commits like “fix stuff” or “update.”</blockquote>
<blockquote>This tool helps generate consistent, professional commit messages.</blockquote>
<blockquote><b>Requirements:</b><b></b></blockquote>
<ul>
<li>
<blockquote><span class="s1">Language: </span><b>JavaScript (Node.js)</b><span class="s1"> or </span><b>Python</b><span class="s1"> (pick one)</span></blockquote>
</li>
<li>
<blockquote>Runs from the terminal</blockquote>
</li>
<li>
<blockquote>Asks the user:</blockquote>
<ul>
<li>
<blockquote>What changed? (bug, feature, refactor, docs)</blockquote>
</li>
<li>
<blockquote>Scope (optional)</blockquote>
</li>
<li>
<blockquote>Short description</blockquote>
</li>
</ul>
</li>
<li>
<blockquote>Outputs a commit message following this format:</blockquote>
<blockquote>type(scope): concise description</blockquote>
</li>
<li>
<blockquote>Example output:</blockquote>
<blockquote>fix(auth): prevent token refresh loop</blockquote>
</li>
</ul>
<blockquote><b>Bonus (optional):</b><b></b></blockquote>
<ul>
<li>
<blockquote>Add emoji support (✨ 🐛 🔥)</blockquote>
</li>
<li>
<blockquote>Add a flag to auto-run <span class="s1">git commit -m</span></blockquote>
</li>
</ul>
<blockquote><b>Deliverables:</b><b></b></blockquote>
<ul>
<li>
<blockquote>Full source code</blockquote>
</li>
<li>
<blockquote>Instructions to install and run</blockquote>
</li>
<li>
<blockquote>One idea to expand it into a real dev tool</blockquote>
</li>
</ul>
<blockquote><b>Scenario:</b><b></b></blockquote>
<blockquote>Developers often write vague commits like “fix stuff” or “update.”</blockquote>
<blockquote>This tool helps generate consistent, professional commit messages.</blockquote>
<blockquote><b>Requirements:</b><b></b></blockquote>
<ul>
<li>
<blockquote><span class="s1">Language: </span><b>JavaScript (Node.js)</b><span class="s1"> or </span><b>Python</b><span class="s1"> (pick one)</span></blockquote>
</li>
<li>
<blockquote>Runs from the terminal</blockquote>
</li>
<li>
<blockquote>Asks the user:</blockquote>
<ul>
<li>
<blockquote>What changed? (bug, feature, refactor, docs)</blockquote>
</li>
<li>
<blockquote>Scope (optional)</blockquote>
</li>
<li>
<blockquote>Short description</blockquote>
</li>
</ul>
</li>
<li>
<blockquote>Outputs a commit message following this format:</blockquote>
<blockquote>type(scope): concise description</blockquote>
</li>
<li>
<blockquote>Example output:</blockquote>
<blockquote>fix(auth): prevent token refresh loop</blockquote>
</li>
</ul>
<blockquote><b>Bonus (optional):</b><b></b></blockquote>
<ul>
<li>
<blockquote>Add emoji support (✨ 🐛 🔥)</blockquote>
</li>
<li>
<blockquote>Add a flag to auto-run <span class="s1">git commit -m</span></blockquote>
</li>
</ul>
<blockquote><b>Deliverables:</b><b></b></blockquote>
<ul>
<li>
<blockquote>Full source code</blockquote>
</li>
<li>
<blockquote>Instructions to install and run</blockquote>
</li>
<li>
<blockquote>One idea to expand it into a real dev tool</blockquote>
</li>
</ul>