init-rules

Detect Rails project dependencies and copy matching rules to .claude/rules/hustler-rails.

3|Updated Nov 12, 2025
One-click install
npx skills add https://github.com/bcasci/hustle-marketplace --skill init-rules
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: init-rules
Source: https://github.com/bcasci/hustle-marketplace/tree/main/rails-plugin/skills/init-rules
Command: npx skills add https://github.com/bcasci/hustle-marketplace --skill init-rules

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) components.

What problem does it solve?

This Skill automates initializing Rails coding conventions for a project by detecting dependencies and copying matching rules with examples to .claude/rules/hustler-rails/. Use when setting up Rails conventions for a new project or updating existing rules. Trigger with phrases like "initialize rails rules", "setup rails conventions", "init hustler-rails".

Core Features & Use Cases

  • Dependency-aware rule bootstrap: Detects gems and copies gem-specific conventions to your project.
  • Universal rules first: Always copies universal Rails conventions, ensuring a solid baseline.
  • Incremental updates: Re-syncs/merges rules when dependencies change.

Quick Start

Run the /init-rules command in your Rails project to bootstrap rules based on detected gems (e.g., pundit, simple_form). The task will copy universal rules plus gem-specific topics into .claude/rules/hustler-rails.

Frequently Asked Questions about init-rules

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically detect and set up Rails conventions for my project?

Run the /init-rules command in your Rails project to automatically detect gems from Gemfile.lock and other dependency sources, then copy matching universal and gem-specific coding conventions to .claude/rules/hustler-rails/.

What dependencies does init-rules detect from a Rails project?

The tool scans Gemfile.lock, config/database.yml, config/importmap.rb, CDN references in app/views, vendor assets, and package.json to build a complete dependency list for matching conventions.

Can I update Rails rules when my gems change?

Yes, re-run /init-rules to re-sync and merge rules as dependencies change. The tool handles existing rules via backup or merge decisions to preserve your customizations.

Do I need to manually copy rules for gems like Pundit or Simple Form?

No, init-rules automatically detects gems and copies gem-specific conventions alongside universal Rails rules, eliminating manual rule setup for detected dependencies.

What happens if a gem dependency isn't detected?

Universal Rails conventions are always copied to establish a baseline. Gem-specific rules are skipped only when those gems are absent from your dependency sources.