Add a new slash command to an existing skill and update plugin metadata.
/plugin marketplace add syfyufei/adrian-marketplace/plugin install skill-squared@LLM-Research-MarketplaceExecute /skill-squared:command so the user gains a new .claude/commands/<name>.md in their skill repo and the plugin manifest references it.
skill_dir (absolute path to skill root)command_name (kebab-case)command_descriptioncommand_instructionsskill_dir contains .claude-plugin/plugin.json.claude/commands/.claude/commands/ folder exists: mkdir -p "$skill_dir/.claude/commands".../templates/skill/command.md.template. Variables:
command_namecommand_title (title case)command_descriptioncommand_instructions (fallback to default sentence when empty)jq '.commands += ["./.claude/commands/'"$command_name"'.md"]' \
"$skill_dir/.claude-plugin/plugin.json" > /tmp/plugin.json && \
mv /tmp/plugin.json "$skill_dir/.claude-plugin/plugin.json"
If the commands array is missing, initialize it.