Clone Laravel/Vue convention rules into .claude/rules/
Clones Laravel/Vue convention rules into .claude/rules/ directory for project-specific coding standards.
/plugin marketplace add RasmusGodske/dev-agent-workflow/plugin install rules-boilerplate@dev-agent-workflowClone the Laravel/Vue convention rules repository into your project's .claude/rules/ directory.
This command will:
.claude/rules/ already exists (won't overwrite)https://github.com/RasmusGodske/laravel-vue-rules.claude/rules/ # Cloned from laravel-vue-rules repo
├── backend/
│ └── form-data-classes.md
├── frontend/
│ ├── vue-conventions.md
│ └── component-composition.md
├── dataclasses/
│ └── laravel-data.md
└── README.md
First, check if .claude/rules/ already exists:
Use Bash: ls -la .claude/rules/ 2>/dev/null || echo "No rules directory found"
If the directory exists:
.claude/rules/ directory. Would you like me to:
Wait for user choice. If user wants to skip or cancel, stop here.
Ask user: "Would you like to set up the rules as a git submodule (recommended) or a regular clone?
Git Submodule (Recommended):
Regular Clone:
Wait for user choice.
If user chose submodule:
# Ensure .claude directory exists
mkdir -p .claude
# Check if project is a git repo
if [ -d .git ]; then
git submodule add https://github.com/RasmusGodske/laravel-vue-rules .claude/rules
git submodule update --init --recursive
echo "✅ Added as git submodule"
else
echo "⚠️ Not a git repository. Using regular clone instead."
git clone https://github.com/RasmusGodske/laravel-vue-rules .claude/rules
fi
If user chose regular clone:
# Ensure .claude directory exists
mkdir -p .claude
# Clone the rules
git clone https://github.com/RasmusGodske/laravel-vue-rules .claude/rules
# Remove git history to make it part of your project
cd .claude/rules
rm -rf .git
cd ../..
echo "✅ Cloned rules (non-submodule)"
After cloning:
Show summary:
✅ Cloned laravel-vue-rules into .claude/rules/
Files included:
- backend/form-data-classes.md
- frontend/vue-conventions.md
- frontend/component-composition.md
- dataclasses/laravel-data.md
- README.md
Next steps:
1. Review each file and customize for your project
2. Add project-specific patterns and examples
3. Remove sections that don't apply to your stack
Updating rules (if using submodule):
cd .claude/rules
git pull origin main
Forking for your team:
1. Fork https://github.com/RasmusGodske/laravel-vue-rules
2. Customize rules in your fork
3. Update submodule URL:
git submodule set-url .claude/rules https://github.com/your-org/laravel-vue-rules
These rules will be automatically loaded by project-roles plugin when you activate roles like /roles/backend-engineer or /roles/frontend-engineer.
Provide customization guidance:
These rules work seamlessly with the project-roles plugin:
/roles/backend-engineer, it loads backend/ rules/roles/frontend-engineer, it loads frontend/ rules/roles/fullstack-engineer, it loads bothThe rules become the "source of truth" for your project conventions.
cd .claude/rules
git pull origin main
cd ../..
git add .claude/rules
git commit -m "Update convention rules"
You'll need to manually pull changes or re-clone:
cd .claude/rules
git pull https://github.com/RasmusGodske/laravel-vue-rules main
Execute this command to clone convention rules into your project.