smithery.ai

init-rules

Initialize Rails coding conventions for a project by detecting dependencies and copying matching rules with examples to .claude/rules/hustler-rails/.

First seen Mar 23, 2026

Installation

$ npx skills add https://smithery.ai

Summary

  • Initialize 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".

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Declared agents claude-code

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,519 B
  • docs SUMMARY.md 352 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Step 1: Check for Existing Rules

Check if .claude/rules/hustler-rails/ has files:

ls .claude/rules/hustler-rails/ 2>/dev/null | wc -l

If count > 0, use AskUserQuestion tool:

{
  "questions": [
    {
      "question": "hustler-rails rules already exist. How should I proceed?",
      "header": "Existing rules",
      "multiSelect": false,
      "options": [
        {
          "label": "Backup and recreate",
          "description": "Renames existing to .backup-[timestamp]"
        },
        {
          "label": "Merge new files",
          "description": "Keep existing, add new only"
        },
        { "label": "Cancel", "description": "Exit without changes" }
      ]
    }
  ]
}

Handle response:

  • Backup and recreate: mv .claude/rules/hustler-rails .claude/rules/hustler-rails.backup-$(date +%Y%m%d-%H%M%S)
  • Merge new files: Proceed to Step 2 (script won't overwrite)
  • Cancel: Exit

Step 2: Run Init Script

Execute:

ruby {baseDir}/scripts/init-rules.rb {baseDir}

Step 3: Show Results

Present the script's output to the user. If errors occurred, explain them.