Skip to content

About

Claude Code Laravel

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Claude Code Configuration for Laravel

A comprehensive, production-ready Claude Code configuration for Laravel modular projects. Includes 15 specialized agents, 5 rule files, skills, and a structured workflow pipeline that turns Claude Code into a full AI development team.

Stack: PHP 8.4 · Laravel 13 · MySQL 8 · Redis · Apache · Vite · Tailwind CSS 4 · Alpine.js · Laravel Reverb · Pest · PHPStan level 6 · Rector

What's Included

Agents (15)

Specialized AI agents that handle different aspects of development:

Agent Purpose Model
ba Business analysis, codebase research, requirements, implementation plans opus
architect Module design, schema design, API contracts, trade-off evaluation opus
product-strategist BRD, PRD, roadmap, competitive analysis, Mermaid diagrams opus
designer UI/UX design, Blade templates, Tailwind CSS, responsive layout opus
dba Database design, migrations, query optimization sonnet
debugger Bug investigation, root-cause analysis sonnet
developer Full-stack Laravel features (Controllers + Services + Blade) sonnet
docs-writer Technical documentation, README, API docs sonnet
integration-architect OAuth, webhooks, third-party services sonnet
laravel-refactoring-expert Refactoring, N+1 fixes, code quality opus
qa E2E testing, Playwright, visual regression opus
queue-specialist Database queues, jobs, async processing sonnet
reviewer Code review, architecture audit opus
security-scanner OWASP, auth/authz, credential leaks opus
tester Unit/feature tests, Pest, mutation testing opus

Rules (5)

Auto-loaded rules that enforce project conventions:

Rule Purpose
architecture.md Modules + Controllers + Services pattern, multi-account scoping, localization
code-style.md PHP 8.4 strict types, Eloquent conventions, Pint, PHPStan level 6, Rector
git-operations.md Commit/push safety, PR description format
testing.md Pest, mutation testing, model testing policy, test structure
workflow.md Agent pipeline orchestration

Skills

Reusable knowledge modules organized by category:

Laravel & PHP: laravel-specialist, laravel-coder, laravel-architecture, php-pro

Testing: pest-testing, test-master, playwright-expert, playwright-skill

Database: database-optimizer, postgres-best-practices, postgresql

Architecture: architecture-designer, code-reviewer, architect-review

Debugging & Security: debugging-wizard, security-reviewer

API: api-design-principles

Planning: plan-writing, brainstorming

Workflow Pipeline

The configuration defines a mandatory agent pipeline for feature development:

Standard Feature:  BA → Architect? → Developer + Designer? → Security → Tester → DocsWriter
Architecture:      BA → Architect → Developer → Reviewer → Security → Tester → DocsWriter
Bug Fix:           Debugger → Developer → Tester
Product/Business:  Product Strategist (standalone)

? = optional, used when the task requires it.

Independent steps run in parallel automatically (e.g., Security + Tester after Developer).

Prerequisites

  • Claude Code CLI installed
  • Node.js 18+ (for skills installation via npx)
  • A Laravel project with Apache

Quick Start

Step 1: Copy Configuration

Clone this repository and copy the configuration files into your Laravel project:

# Clone the config repo
git clone https://github.com/truecoder8/claude-laravel.git /tmp/claude-laravel-config

# Copy into your project
cp -r /tmp/claude-laravel-config/.claude /path/to/your-laravel-project/
cp /tmp/claude-laravel-config/CLAUDE.md /path/to/your-laravel-project/

Or add as a git subtree/submodule if you prefer to track updates.

Step 2: Install Superpowers Plugin

Superpowers provides structured development workflows: brainstorming, planning, TDD, debugging, code review, and more.

Run inside Claude Code:

/plugin marketplace add obra/superpowers-marketplace
/plugin install superpowers@superpowers-marketplace

Skills provided: brainstorming, writing-plans, executing-plans, test-driven-development, systematic-debugging, requesting-code-review, verification-before-completion, using-git-worktrees, subagent-driven-development, finishing-a-development-branch

Step 3: Install Frontend Design Plugin (Recommended)

Frontend Design provides the frontend-design skill used by the designer agent for creating production-grade UI components with high design quality.

Run inside Claude Code:

/plugin install frontend-design@claude-plugins-official

Skills provided: frontend-design

Step 4: Install Claude HUD Plugin (Recommended)

Claude HUD adds a real-time statusline showing model, context usage, active tools, running agents, and task progress.

Requires: Claude Code v1.0.80+, Node.js 18+

Run inside Claude Code:

/plugin marketplace add jarrodwatts/claude-hud
/plugin install claude-hud
/claude-hud:setup

Customize display with /claude-hud:configure (choose Full, Essential, or Minimal preset).

Step 5: Install Mytets Plugin (Optional)

Mytets adds a Ukrainian theatrical communication style inspired by Les Podervyansky. Activate with /mytets:mytets-mode.

Run inside Claude Code:

/plugin marketplace add rrader/mytets
/plugin install mytets

Step 6: Install Additional Skills from skills.sh

The configuration includes project skills in .claude/skills/. To install additional community skills from skills.sh:

npx skills add <owner/repo>

Browse the skills.sh leaderboard to discover popular skills.

CLAUDE.md

The main instructions file. Adapt this to your project:

  1. Update system requirements if your stack differs
  2. Add project-specific entities to the Entity Glossary
  3. Modify the agent list if you add/remove agents

Customization

Add a New Agent

Create .claude/agents/my-agent.md:

---
name: my-agent
description: "What this agent does. Trigger words — EN: keyword1, keyword2. Trigger words — UA: слово1, слово2."
model: sonnet
color: blue
---

# Agent Title

Instructions for the agent...

Add a New Rule

Create .claude/rules/my-rule.md with markdown content. Rules are auto-loaded for every conversation.

Add a New Skill

Create .claude/skills/my-skill/SKILL.md:

---
name: my-skill
description: What this skill does and when to use it
---

Instructions Claude follows when this skill is active...

Bilingual Agent Support

All agents include trigger words in both English and Ukrainian. To add another language, extend the description field in the YAML frontmatter:

Trigger words — EN: keyword1, keyword2.
Trigger words — UA: слово1, слово2.
Trigger words — DE: schlüsselwort1, schlüsselwort2.

Architecture Overview

This configuration follows the Modules + Controllers + Services pattern:

Layer Pattern
Routing Module RouteServiceProviders with prefix/middleware
HTTP entry Controllers
Validation Form Requests
Business logic Services
Authorization Policies
Side effects Observers
Value objects Enums
Async work Jobs (ShouldQueue)
Cross-cutting Events / Listeners
Views Blade templates (Tailwind CSS 4 + Alpine.js)
Real-time Laravel Echo + Reverb (WebSocket)

Base modules under Modules/ namespace (Admin, Account, Application), each with its own Controllers, Models, Views, Routes, Migrations, Lang, and Service Providers. Additional feature modules follow the same pattern. NO Actions pattern, NO Inertia.js, NO Vue, NO Filament, NO Repository pattern.

License

MIT

About

Claude Code Laravel

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages