Copy command

From jpoutrin/product-forge · View interactive version

Copy command is an AI agent skill from the GitHub repository jpoutrin/product-forge. Copy a command from Product Forge to user or project level

How to use this skill

Skill file

Copy Command

Copy a command from Product Forge plugins to your user-level (~/.claude/) or project-level (.claude/) directory.

Usage

# List available commands
/copy-command

# Copy to project (default)
/copy-command product-design:create-prd

# Copy to user level
/copy-command git-workflow:commit --user

# Explicit project level
/copy-command devops-data:create-rfc --project

Arguments

What Gets Copied

Commands are single markdown files (.md) containing:

Directory Structure

# Project-level (default)
.claude/
└── git-workflow/
    └── commands/
        └── commit.md

# User-level (--user)
~/.claude/
└── git-workflow/
    └── commands/
        └── commit.md

Execution Instructions

When the user runs this command:

No Arguments - List Available Commands

  1. Scan Product Forge plugins cache for all available commands:

```bash

ls ~/.claude/plugins/cache/product-forge-marketplace//commands/.md 2>/dev/null

```

  1. For each plugin with commands, list them with descriptions:
  1. Display formatted list:

```

Available commands from Product Forge:

product-design:

create-prd - Interactive PRD creation wizard

create-qa-test - Create a new QA test procedure

task-focus - Focus on a specific task with context

...

git-workflow:

commit - Guided git commit with atomic commit analysis

rebase - Rebase local changes on remote updates

code-review - Review code changes for issues

...

devops-data:

create-rfc - Create a new RFC technical specification

create-tech-spec - Create a new Technical Specification

...

Usage: /copy-command <plugin>:<command-name> [--user | --project]

```

With Arguments - Copy Command

  1. Parse arguments:
  1. Locate source command:

```bash

SOURCE=~/.claude/plugins/cache/product-forge-marketplace/{plugin}/commands/{command-name}.md

```

  1. Determine destination path:
  1. Check if destination exists:

```

Command '{command-name}' already exists at {destination}.

Options:

```

  1. Create destination directory structure:

```bash

mkdir -p {destination_dir}

```

  1. Copy command file:

```bash

cp {source} {destination}

```

  1. Confirm success:

```

Command copied successfully!

Source: ~/.claude/plugins/cache/product-forge-marketplace/{plugin}/commands/{command-name}.md

Destination: {destination}

The command is now available as /{command-name} in your {project|user} configuration.

```

Error Handling

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.