agentleFS
rubenzantinghrubenzantingh/claude-code-magento-agents/CLAUDE.md

claude-code-magento-agents

CLAUDE.md123 starsChanged 15 months agoMITView on GitHub

This repository contains Claude Code agent definitions for Magento 2 development, organized into specialized categories: The repository follows a standardized naming pattern for consistency: Each agent file follows the standard Claude Code agent format: When working with these agents, they should be familiar with: - Magento 2 module structure (etc/, Model/, Block/, Controller/, view/) - Dependency injection and service contracts - Plugin system and observers - Layout XML and template hierarchy - CLI commands and cron jobs - API development…

The file

We split this CLAUDE.md into the rules it gives an agent

5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Agent Creation: Create new specialized agents by following the existing naming convention and structure

    line 73
  2. Distinctive:

    Agent Organization: Place agents in the appropriate category directory based on their primary function

    line 74
  3. Very specific:

    Agent Testing: Use the magento-code-reviewer agent proactively for code quality assurance

    line 75
  4. Distinctive:

    Version Control: All agent definitions are tracked in Git for version control and collaboration

    line 76
  5. Distinctive:

    When working with these agents, they should be familiar with:

    line 80

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Repository Structure

This repository contains Claude Code agent definitions for Magento 2 development, organized into specialized categories:

Agent Categories

  1. 01-core-development/ - Core Magento development experts
    • code-reviewer.md - Elite code review expert for AI-powered analysis and security scanning
    • feature-developer.md - Feature development specialist
    • theme-developer.md - Theme development expert
    • issue-debugger.md - Bug investigation and resolution specialist
    • module-developer.md - Custom module development expert
  2. 02-frontend-development/ - Frontend development specialists
    • hyva-specialist.md - Hyvä theme development expert
    • luma-specialist.md - Luma theme customization specialist
    • layout-developer.md - XML layout construction expert
    • template-developer.md - PHTML template development specialist
  3. 03-backend-development/ - Backend development specialists
    • api-developer.md - REST/GraphQL API development expert
    • cronjob-developer.md - Scheduled task implementation specialist
    • model-developer.md - Data model and database expert
  4. 04-performance-security/ - Performance and security analysts
    • cache-analyst.md - Caching optimization expert
    • index-analyst.md - Database index optimization specialist
    • performance-analyst.md - Performance profiling and optimization expert
    • security-analyst.md - Security audit and vulnerability assessment specialist
  5. 05-language-specialists/ - Technology-specific specialists
    • php-specialist.md - Advanced PHP development expert
    • alpine-specialist.md - Alpine.js integration specialist
    • knockout-specialist.md - Knockout.js development expert
    • less-specialist.md - LESS preprocessing specialist
    • sass-specialist.md - SASS/SCSS development expert
    • magewire-specialist.md - Magewire (Livewire for Magento) specialist
  6. 06-infrastructure/ - Infrastructure and deployment engineers
    • deployment-engineer.md - Deployment automation and CI/CD expert
    • environment-engineer.md - Environment setup and configuration specialist

Naming Convention

The repository follows a standardized naming pattern for consistency:

  • Core Development: {function}-developer.md, {function}-reviewer.md, or {function}-debugger.md
  • Frontend Development: {technology}-specialist.md or {function}-developer.md
  • Backend Development: {function}-developer.md
  • Performance/Security: {domain}-analyst.md
  • Language Specialists: {technology}-specialist.md
  • Infrastructure: {function}-engineer.md

Agent Definition Structure

Each agent file follows the standard Claude Code agent format:

---
name: agent-name
description: Brief description of the agent's expertise and purpose
model: opus|sonnet (recommended model for the agent)
---

Agent instructions and specialized knowledge...

Development Workflow

  1. Agent Creation: Create new specialized agents by following the existing naming convention and structure
  2. Agent Organization: Place agents in the appropriate category directory based on their primary function
  3. Agent Testing: Use the magento-code-reviewer agent proactively for code quality assurance
  4. Version Control: All agent definitions are tracked in Git for version control and collaboration

Key Magento 2 Concepts

When working with these agents, they should be familiar with:

  • Magento 2 module structure (etc/, Model/, Block/, Controller/, view/)
  • Dependency injection and service contracts
  • Plugin system and observers
  • Layout XML and template hierarchy
  • CLI commands and cron jobs
  • API development (REST/GraphQL)
  • Performance optimization (caching, indexing)
  • Security best practices
  • Theme development (Luma, Hyvä)
  • Frontend technologies (RequireJS, KnockoutJS, Alpine.js)

Agent Specialization

Each agent is designed to be highly specialized in their domain while maintaining awareness of Magento 2 best practices. The code-reviewer agent should be used proactively to ensure code quality across all development activities.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.