Skip to content

Instantly share code, notes, and snippets.

@masonhensley
Last active March 7, 2025 21:50
Show Gist options
  • Save masonhensley/5fcfda4ae39d65c1e5e817c4cab5aafa to your computer and use it in GitHub Desktop.
Save masonhensley/5fcfda4ae39d65c1e5e817c4cab5aafa to your computer and use it in GitHub Desktop.
Ruby On Rails AI Helper Snippets

Ruby On Rails AI Helper Snippets

This gist has cli snippets to help you gather code to paste into LLMs like Grok, OpenAI, Claude if you need to do quick/dirty vibing and collaboration without a fully integrated IDE like Windsurf or Cursor.

Vibe: analyze migrations in a Ruby on Rails Repository

Prompt: can you cat all my migrations files into a single output so I can review it? leave a comment of each model file path before each section

Output:

for f in db/migrate/*.rb; do echo "# File: $f"; echo ""; cat "$f"; echo -e "\n\n"; done | cat

Vibe: analyze model files, relationships and methods in a Ruby on Rails Repository

Prompt: can you cat all my model files into a single output so I can review it? leave a comment of each model file path before each section

Output:

for f in app/models/*.rb; do echo "# File: $f"; echo ""; cat "$f"; echo -e "\n\n"; done | cat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment