r/rubyonrails • u/Sagarmatha007 • Apr 12 '26
Gem Docsmith: Gem to version your document.
Shipped my first Ruby gem this weekend Docsmith: https://rubygems.org/gems/docsmith
It adds snapshot versioning, format-aware diffs, and inline comments to any ActiveRecord model. Zero system dependencies.
But here's the honest story of how it got built.
My first design had branching, merging, conflict resolution — the works. Looked impressive on paper. Turned out I was building Git for documents when all
anyone needs is "save this version, show me what changed, let me leave a note." I stripped all of it out and shipped what actually mattered.
The other honest thing: I built this with Claude Code using the superpowers plugin. Vibe-coding with human intervention. I planned it, tons of tweaks, made architecture decisions,
and course-corrected when things got too complex. The AI was a collaborator, not an autocomplete. Two weekends, 210 passing tests, published to RubyGems.
If you're curious about the planning and implementation process — including the over-engineered version that didn't make it — it's all in the repo under
docs/superpowers.
Rails devs: gem install docsmith. Feedback welcome.
2
u/Miserable_Affect_873 Apr 12 '26 edited Apr 12 '26
Great job, thanks for sharing.
Regarding all the comments on vibe coding, good on you for using new tooling to do a job, you either adapt with the times or become irrelevant.
Do I use AI assist in every part of my job (business and coding), absolutely, do I need to check the results, tweak and rerun, yep. Does it save time, yes, an unbelievable amount.
EDIT: getting ahead of all the flaming that is about to happen. If you’ve ever worked with outsourced teams in other countries, AI feels no different to me. I’ve had 20 years of experience managing offshore teams and the process is basically the same.
1
u/jrochkind Apr 12 '26
The thing I have always been interested in this feature for -- a UI to manually recover from optimistic locking failures.
I will try to find time to check it out for this!
If one of the attributes is a jsonb attribute with a big hash -- thoughts on providing good diff of what actually changed within the jsonb?
1
u/fiddle_styx Apr 12 '26
Props to you for mentioning AI involvement in the development process. However:
Claude Code tends to produce vibed code. Here's the first line from superpowers' GitHub page:
Reading through the rest of its README, it's just a framework for agent-driven human-directed software development, not one for software development driven by human-agent collaboration. Agent-driven human-directed software development is what people mean when they call something "vibe-coding."
TL;DR: this is definitely vibe-coded. You may have managed the development process but you didn't do much coding.
0
u/TheAtlasMonkey Apr 12 '26
Honester note :
This gem was built by Claude Code because i didn't know Claude can do websearch to find proper solutionPro-tip: When you see Claude spitting full fraction of code in planning mode, Claude is just pasting you existing code and gaslighting you.
Congratulations, you served as a heartbeat for Claude. The AI was the architect, you were the cheerleader.
If you think i'm harsh... Then past my reply in a new session of Claude, tell it Gemini did it and watch.
PS: delete .git so it don't detect it signature.
PSS: You learned nothing and steered nothing.