MageHub
GitHub
Magento 2 × AI coding assistants

Structured Magento 2 skills for tools that normally guess wrong.

MageHub turns Magento 2 architecture, conventions, anti-patterns, and examples into reusable AI skills. Use one local CLI to generate context files for Claude Code, OpenCode, Cursor, Codex, Qoder, Trae, and plain Markdown.

$ magehub skill:list
admin-ui-grid
api-graphql-resolver
hyva-module-compatibility
module-di
module-plugin
module-scaffold
module-setup
performance-caching
standards-coding
testing-phpunit

$ magehub generate --format=claude
Generated: CLAUDE.md
10 Bundled v1.0 skills
7 Supported output formats
CLI Local-first, schema-backed workflow

Bundled skill catalog

The first 10 skills target where Magento AI workflows usually break.

module-scaffold

Bootstrap valid module structure, registration, and metadata.

module-plugin

Guide plugin design, interception boundaries, and anti-pattern avoidance.

module-di

Keep preferences, constructor injection, and virtual types maintainable.

module-setup

Use declarative schema and patches instead of legacy install scripts.

admin-ui-grid

Build admin listing UI Components without XML spaghetti.

api-graphql-resolver

Keep GraphQL resolvers thin and Magento-native.

hyva-module-compatibility

Convert Luma assumptions into Hyva-friendly frontend behavior.

testing-phpunit

Write focused PHPUnit unit tests around Magento service logic.

performance-caching

Apply cache layers safely without serving broken personalized output.

standards-coding

Encode Magento coding standards into repeatable AI instructions.

Workflow

One repository, one config, many AI tools.

MageHub treats skills as versioned YAML artifacts, validates them with JSON Schema, and assembles them into a generated context file that matches the target assistant's expected shape.

1

Install skills

Select bundled or project-local skills in .magehub.yaml.

2

Verify structure

Catch bad schema, duplicate IDs, and heading issues before generation.

3

Generate context

Produce tool-specific prompt/context files from the same skill set.

Output formats

Generate for the tools your team already uses.

Claude Code CLAUDE.md
OpenCode .opencode/skills/magehub.md
Cursor .cursorrules
Codex AGENTS.md
Qoder .qoder/context.md
Trae .trae/rules/magehub.md
Markdown MAGEHUB.md

Quick start

Start locally in a few commands.

npm install
npm run build
node ./dist/index.js setup:init --format=claude
node ./dist/index.js skill:list
node ./dist/index.js generate

Documentation

Read the proposal, CLI reference, or author new skills.