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".
Detects Rails dependencies and copies matching coding convention rules with examples to `.claude/rules/hustler-rails/`. Use when setting up or updating Rails conventions for a project.
/plugin marketplace add bcasci/hustler-marketplace/plugin install hustler-rails@hustler-marketplaceThis skill inherits all available tools. When active, it can use any tool Claude has access to.
assets/rules/CLAUDE.mdassets/rules/README.mdassets/rules/architecture/conventions.mdassets/rules/architecture/topics/complexity-signals.mdassets/rules/architecture/topics/tell-dont-ask.mdassets/rules/architecture/topics/value-objects.mdassets/rules/authentication/conventions.mdassets/rules/authentication/topics/passwordless/passwordless-mailer.mdassets/rules/authentication/topics/passwordless/passwordless-routes.mdassets/rules/authentication/topics/passwordless/passwordless-session.mdassets/rules/authentication/topics/passwordless/passwordless-user.mdassets/rules/authorization/topics/pundit/pundit-controllers.mdassets/rules/authorization/topics/pundit/pundit-policies.mdassets/rules/authorization/topics/pundit/pundit-views.mdassets/rules/business-logic/conventions.mdassets/rules/code-style/conventions.mdassets/rules/code-style/topics/code-simplification.mdassets/rules/code-style/topics/defensive-programming.mdassets/rules/controllers/conventions.mdassets/rules/controllers/topics/flash-messages.mdCheck 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:
mv .claude/rules/hustler-rails .claude/rules/hustler-rails.backup-$(date +%Y%m%d-%H%M%S)Execute:
ruby {baseDir}/scripts/init-rules.rb {baseDir}
Present the script's output to the user. If errors occurred, explain them.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.