create-module
Use this whenever the user asks to "create a module", "scaffold a feature", "add a Vue domain", "new module called X", or starts work on a brand-new vertical (views + components + store + router entry + tests). Duplicates the canonical `src/modules/tasks` template, applies kebab/Pascal/camel/ UPPER renames, and wires config-driven values. Module stays self-contained. --- # Create Module Skill Create a new module by copying and renaming the `tasks` template module. ## Prerequisites - The canonical template module `src/modules/tasks` must exist - You need a name for the new module (kebab-case) ## Steps ### 1. Ask for the module name Prompt user for the new module name in kebab-case (e.g., `my-feature`, `user-settings`) ### 2. Derive naming conventions Follow `/naming` for the full reference. Quick summary from the module name (e.g., `my-feature`): - **kebab-case**: `my-feature` (folder names, file prefixes, routes) - **PascalCase**: `MyFeature` (component names in JS/templates) - **UPPER_SNAKE_CASE**: `MY_FEATURE` (env keys, constants) - **lowerCamelCase**: `myFeature` (variable names, function names, store exports) ### 3. Duplicate the module ```bash cp -r src/modules/tasks src/modules/{new-module-name} ``` ### 4. Rename references
Changelog: Source: GitHub https://github.com/pierreb-devkit/Vue
Loading comments...