By RasmusGodske
Pre-tool hooks that enforce Laravel/Inertia/Vue conventions. Blocks anti-patterns and guides Claude towards project best practices.
A Claude Code plugin that enforces opinionated conventions for Laravel/Inertia/Vue projects.
When using Claude Code for Laravel/Inertia/Vue development, Claude may suggest patterns that don't align with project conventions. For example:
FormRequest classes when the project uses spatie/laravel-data DataClasses<script setup lang="ts">This plugin intercepts Claude's tool usage and:
The plugin provides pre-tool hooks that run before Claude executes tools like Write, Edit, or Bash. Each hook validates the intended action and can:
| Hook | Purpose |
|---|---|
FormRequestBlocker | Blocks Laravel FormRequest creation, guides to DataClasses |
VueScriptValidator | Ensures Vue files use <script setup lang="ts"> |
┌─────────────────┐ ┌──────────────┐ ┌─────────────────┐
│ Claude wants │────▶│ Hook runs │────▶│ Action allowed │
│ to write file │ │ validation │ │ or blocked │
└─────────────────┘ └──────────────┘ └─────────────────┘
Write to create a file)Hooks are Python scripts using the claude-hook-utils package for standardized input/output handling.
If you're using a devcontainer, ensure these are installed in your container.
/plugin marketplace add github.com/RasmusGodske/claude-liv-conventions
# Install for the current project (recommended for teams)
/plugin install liv-hooks@claude-liv-conventions --scope project
# Or install globally for all projects
/plugin install liv-hooks@claude-liv-conventions --scope user
Hooks are loaded when Claude Code starts. Restart to activate the plugin.
Alternatively, add to your .claude/settings.json:
{
"extraKnownMarketplaces": {
"claude-liv-conventions": {
"source": {
"source": "github",
"repo": "RasmusGodske/claude-liv-conventions"
}
}
},
"enabledPlugins": {
"liv-hooks@claude-liv-conventions": true
}
}
claude-liv-conventions/
├── .claude-plugin/
│ └── marketplace.json # Marketplace catalog
├── plugins/
│ └── liv-hooks/
│ ├── .claude-plugin/
│ │ └── plugin.json # Plugin manifest with hooks config
│ ├── hooks/
│ │ ├── FormRequestBlocker/
│ │ │ ├── pyproject.toml
│ │ │ └── main.py
│ │ └── VueScriptValidator/
│ │ ├── pyproject.toml
│ │ └── main.py
│ └── README.md
└── README.md
See plugins/liv-hooks/README.md for instructions on creating new hooks.
MIT
Executes bash commands
Hook triggers when Bash tool is used
Modifies files
Hook triggers on file write and edit operations
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub RasmusGodske/claude-liv-conventions --plugin liv-hooksBootstrap .claude/rules/ structure for Laravel/Vue projects. Creates starter rule templates for backend, frontend, and data class conventions. Works perfectly with the engineering-roles plugin.
Role-based workflows for Laravel/Vue projects with Linear integration and research-driven documentation. Includes tech lead, backend engineer, frontend engineer, and fullstack engineer roles with commands for project planning, issue management, and documentation generation.
Expert Laravel 12 + PHP 8.5 with SOLID principles, Eloquent, Livewire, and comprehensive documentation
Claude Code plugin channeling Taylor Otwell's Laravel philosophy
Expert guidance for writing secure, reliable, and performant Claude Code hooks - validates design decisions, enforces best practices, and prevents common pitfalls. Use when creating, reviewing, or debugging Claude Code hooks.
Production-grade rules and workflows for Laravel REST APIs built with essa/api-tool-kit. 21 rule files and 8 guided workflows covering every layer of a Laravel API including DDD support.
Easily create hooks to prevent unwanted behaviors by analyzing conversation patterns
Specialized Claude Code subagents and skills for Laravel development — architecture, Eloquent, API, testing, security, performance, debugging, and more.