/claude-code-dev:integrate-command <command-name> --plugin=<plugin-name> [--source=user|project]from claude-code-dev
Integrates user or project commands into Product Forge plugins by copying command files from ~/.claude/ or .claude/ directories. Manages command reuse across projects.
Ships in claude-code-dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Import a command from your user-level (~/.claude/) or project-level (.claude/) directory into a Product Forge plugin.
# Integrate from user level (default source)
/integrate-command my-command --plugin=claude-code-dev
# Integrate from project level
/integrate-command my-command --plugin=claude-code-dev --source=project
# Integrate from a specific plugin subdirectory
/integrate-command my-command --plugin=git-workflow --source=user
<command-name> - Name of the command to integrate (without .md extension)--plugin=<name> - Target Product Forge plugin (required)--source=user|project - Where to find the command (default: user)--source=user: Searches in ~/.claude/*/commands/ directories--source=project: Searches in .claude/*/commands/ directoriesWhen the user runs this command:
command-name from first argumentplugin from --plugin= flag (required)source from --source= flag (default: user)Search for the command file:
# For --source=user
find ~/.claude -path "*/commands/${command-name}.md" -type f 2>/dev/null
# For --source=project
find .claude -path "*/commands/${command-name}.md" -type f 2>/dev/null
If multiple matches found, list them and ask user to specify the full path.
If not found:
Command '${command-name}' not found in ${source} level.
Searched locations:
- ~/.claude/*/commands/${command-name}.md
Available commands:
[list available .md files in commands directories]
Check the target plugin exists in Product Forge:
ls plugins/${plugin}/.claude-plugin/plugin.json
If not found:
Plugin '${plugin}' not found in Product Forge.
Available plugins:
- claude-code-dev
- product-design
- git-workflow
- python-experts
- ...
DESTINATION=plugins/${plugin}/commands/${command-name}.md
If destination exists, use AskUserQuestion to prompt:
Command '${command-name}' already exists in plugin '${plugin}'.
Options:
- Overwrite: Replace existing command
- Rename: Save as ${command-name}-new.md
- Cancel: Abort operation
cp ${source_path} plugins/${plugin}/commands/${command-name}.md
Command integrated successfully!
Source: ${source_path}
Destination: plugins/${plugin}/commands/${command-name}.md
Next steps:
1. Review the command: cat plugins/${plugin}/commands/${command-name}.md
2. Refresh plugins: /forge-refresh --force
3. Commit changes: git add plugins/${plugin}/commands/${command-name}.md
# 1. Create a command at user level
# (manually or by copying and modifying)
# 2. Test it in your projects
# 3. Once ready, integrate into Product Forge
/integrate-command my-awesome-command --plugin=claude-code-dev
# 4. Refresh to make it available
/forge-refresh --force
# 5. Commit and push
git add plugins/claude-code-dev/commands/my-awesome-command.md
git commit -m "feat(claude-code-dev): add my-awesome-command"
What SKILL.md sets; muted values are Claude Code's defaults
17 skills in this plugin
/copy-agentCopy an agent from Product Forge to user or project level/copy-commandCopy a command from Product Forge to user or project level/copy-skillCopy a skill from Product Forge to user or project level/create-agentCreate a new Claude Code agent with proper YAML frontmatter structure. Use when the user wants to add a specialized agent to a plugin. Handles agent file creation with name, description, tools, model selection, and color configuration./create-commandCreate a new Claude Code slash command with proper YAML frontmatter structure. Use when the user wants to add a custom slash command to a plugin. Handles command file creation with description, argument hints, allowed tools, and all advanced features./create-pluginCreate a new Claude Code plugin with proper directory structure and manifest. Use when the user wants to create a new plugin from scratch. Sets up plugin.json, directory structure, and optional components.npx claudepluginhub jpoutrin/product-forge --plugin claude-code-devOther plugins' skills for the same job