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
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.
Install skills
Select bundled or project-local skills in .magehub.yaml.
Verify structure
Catch bad schema, duplicate IDs, and heading issues before generation.
Generate context
Produce tool-specific prompt/context files from the same skill set.
Output formats
Generate for the tools your team already uses.
CLAUDE.md
.opencode/skills/magehub.md
.cursorrules
AGENTS.md
.qoder/context.md
.trae/rules/magehub.md
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