create-light-module

📁 khoa-nd/magnolia-cms-agent-skills 📅 4 days ago
1
总安装量
1
周安装量
#44584
全站排名
安装命令
npx skills add https://github.com/khoa-nd/magnolia-cms-agent-skills --skill create-light-module

Agent 安装分布

amp 1
opencode 1
kimi-cli 1
github-copilot 1
claude-code 1

Skill 文档

create-light-module

A skill for creating Magnolia CMS light modules

Description

This skill helps create Magnolia CMS light modules with the proper folder structure and configuration files.

When to Use

Use this skill when the user wants to:

  • Create a new Magnolia light module
  • Set up the folder structure for a light module
  • Generate light module configuration files

Instructions

Prerequisites

  • Magnolia CMS environment set up
  • Access to the light-modules directory

Steps

  1. Determine the light module name
  2. Create the required folder structure
  3. Generate necessary configuration files

Folder Structure

<module-name>/
├── decorations/
├── dialogs/
├── i18n/
├── includes/
├── templates/
│   ├── components/
│   └── pages/
├── webresources/
│   ├── css/
│   ├── js/
│   └── images/
└── <module-name>.yaml

Examples

User prompt: “Create a new light module called my-website”

Expected behavior: Claude creates the complete folder structure with all necessary files for a Magnolia light module named “my-website”.

Notes

  • Light modules must be placed in the light-modules directory of your Magnolia installation
  • Module names should be lowercase with hyphens (kebab-case)