← ClaudeAtlas

commandslisted

Generate a new skill file with proper nested directory structure and required frontmatter
davistroy/claude-marketplace · ★ 3 · Data & Documents · score 62
Install: claude install-skill davistroy/claude-marketplace
# New Skill Generator Generate a new skill for this plugin with the correct directory structure and frontmatter. This command ensures skills are discoverable by Claude Code by using the required nested directory pattern. **CRITICAL:** Skills have DIFFERENT requirements than commands: - Skills use **nested directories**: `skills/[name]/SKILL.md` - Skills **REQUIRE** a `name` field in frontmatter - Commands use flat files and FORBID the `name` field ## Input Validation **Optional Arguments:** - `<skill-name>` - Name for the new skill (kebab-case) - `--plugin <plugin-name>` - Target plugin (defaults to auto-detected or prompted) **Plugin Target Resolution:** 1. If `--plugin` is specified, use that plugin 2. If the current working directory is inside a plugin, use that plugin 3. If only one plugin exists in `plugins/`, use it automatically 4. If multiple plugins exist, scan `plugins/*/` using the Glob tool and prompt the user: ```text Multiple plugins detected: [1] personal-plugin [2] bpmn-plugin Which plugin should this skill be added to? (1/2): ``` **Validation:** If arguments are missing, the command will prompt interactively. Skill name must be: - kebab-case format (e.g., `my-new-skill`) - Unique (not already exist in the target plugin's `skills/` directory) - Descriptive but concise ## Instructions ### Phase 1: Gather Information Interactively collect the following from the user: #### 1.1 Skill Name Ask: ```text What is the skill name? (keb