<?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: Hxmanss</title>
    <description>The latest articles on DEV Community by Hxmanss (@hxmanss).</description>
    <link>https://dev.to/hxmanss</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%2F3805815%2F46655308-6d6c-4b7d-a0d6-64340525bbed.png</url>
      <title>DEV Community: Hxmanss</title>
      <link>https://dev.to/hxmanss</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hxmanss"/>
    <language>en</language>
    <item>
      <title>I Built a Dev Tool Without Knowing the Language💀</title>
      <dc:creator>Hxmanss</dc:creator>
      <pubDate>Wed, 04 Mar 2026 13:00:36 +0000</pubDate>
      <link>https://dev.to/hxmanss/i-built-a-dev-tool-without-knowing-the-language-59k8</link>
      <guid>https://dev.to/hxmanss/i-built-a-dev-tool-without-knowing-the-language-59k8</guid>
      <description>&lt;p&gt;Last week I had an idea. I wanted to build something developers actually need — something that would get stars on GitHub, something real.&lt;br&gt;
The problem I picked: git mistakes. Every developer, every day, does something dumb in git and then spends 20 minutes on Stack Overflow trying to fix it. git reset --hard gone wrong. Committed to main by accident. Deleted the wrong branch. It's painful and universal.&lt;br&gt;
So I built git-oops — a CLI tool where you just type git oops and it figures out what you broke and fixes it automatically. Interactive menu. No docs. No googling.&lt;br&gt;
Here's the wild part: I don't know Go. I had never written a single line of Go before this. And the whole thing — from idea to shipped binary on GitHub with CI/CD — took 1 hour.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Stack&lt;/strong&gt;&lt;br&gt;
Go — ships as a single binary, one-liner install, cross platform. Perfect for CLI tools.&lt;br&gt;
Cobra — CLI framework (same one kubectl and GitHub CLI use)&lt;br&gt;
Bubble Tea — sexy interactive terminal UI&lt;br&gt;
Lip Gloss — terminal styling&lt;br&gt;
GoReleaser — automated cross-platform binary releases&lt;br&gt;
GitHub Actions — CI/CD pipeline&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How It Works&lt;/strong&gt;&lt;br&gt;
The secret sauce is git reflog — git literally records every single thing that happens to your repo. git-oops reads the reflog, detects the most recent mistake pattern, and gives you an interactive fix menu.&lt;br&gt;
bash$ git oops&lt;/p&gt;

&lt;p&gt;Detected: committed_wrong_branch&lt;br&gt;
A commit was made on main/master and can be undone safely.&lt;/p&gt;

&lt;p&gt;→ Undo commit (keep changes)&lt;br&gt;
  Undo commit (discard everything)&lt;/p&gt;

&lt;p&gt;↑↓ navigate • enter select • q quit&lt;br&gt;
It handles 6 scenarios:&lt;br&gt;
MistakeWhat git-oops doesCommitted to wrong branchDetects commit on main/master, offers undoAccidental reset --hardFinds previous SHA from reflog, restores itDeleted a branchDetects missing branch and recovers itBad mergeDetects recent merge, resets to ORIG_HEADStaged wrong filesChecks git status, offers rollbackUnknownFalls back to recent history mode&lt;br&gt;
There's also a --dry-run flag that shows you exactly what git commands would run without actually touching anything. Super useful if you're paranoid.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Real Story&lt;/strong&gt;&lt;br&gt;
I didn't write the code by hand. I used Trae (AI code editor) with carefully crafted prompts, and had Claude as my "tech lead" guiding every architectural decision and giving me the exact prompts to paste.&lt;br&gt;
The workflow was:&lt;/p&gt;

&lt;p&gt;Decide what to build and why (this part was me)&lt;br&gt;
Plan the architecture (Claude + me)&lt;br&gt;
Generate the code (Cursor)&lt;br&gt;
Test, debug, ship (me)&lt;/p&gt;

&lt;p&gt;People debate whether this "counts" as building something. Honestly I don't care about that debate. What I care about is: does the tool work? Is it useful? Did I ship it?&lt;br&gt;
Yes. Yes. Yes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What I Actually Learned&lt;/strong&gt;|&lt;br&gt;
Even without writing the Go myself, I learned:&lt;/p&gt;

&lt;p&gt;How git reflog works under the hood&lt;br&gt;
Why Go is the right choice for CLI tools (single binary = no runtime dependency = easy install)&lt;br&gt;
How GoReleaser + GitHub Actions automate releasing binaries for every OS&lt;br&gt;
How Bubble Tea's Elm-style architecture works for terminal UIs&lt;br&gt;
That distribution beats code quality every time — a mediocre tool that's easy to install beats a perfect tool nobody can find&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Try It&lt;/strong&gt;&lt;br&gt;
bashgo install github.com/hxmanss/git-oops@latest&lt;br&gt;
Then just run it inside any git repo:&lt;br&gt;
bashgit oops&lt;br&gt;
GitHub: github.com/hxmanss/git-oops&lt;/p&gt;

&lt;p&gt;If you've ever rage-quit because of a git mistake, this is for you. Drop a star if it helps ⭐&lt;br&gt;
And if you're thinking "I could never build something like this" — bro I didn't know Go. You can do this too. The barrier is lower than you think right now.&lt;/p&gt;

</description>
      <category>git</category>
      <category>opensource</category>
      <category>go</category>
      <category>devtools</category>
    </item>
  </channel>
</rss>
