Skip to main content

create-product

Create a new product in the store Arguments: <title> <sku> <price> [--quantity <n>] [--category <id>] [--description <text>].

Source facts

Repository
Agents-Store/codex-plugins
Last source activity
November 1, 2026 at 02:46
Detected SKILL.md language
English
Stars
0
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
create-product
description
Create a new product in the store Arguments: <title> <sku> <price> [--quantity <n>] [--category <id>] [--description <text>].
# Create Product Create a new product in the Teleshop store. Method and rules: the `teleshop-ops:product-management` skill. ## Arguments Format: `<title> <sku> <price> [--quantity <n>] [--category <id>] [--description <text>]` - title: Product title (required) - sku: Unique product SKU (required) - price: Product price (required) - --quantity: Available quantity (default: 0) - --category: Category ID to assign - --description: Product description Parse from "$ARGUMENTS". ## Process 1. **If no category provided, list available categories:** ``` list_categories() ``` Show categories so user can choose. 2. **Create the product:** ``` create_product({ title: <title>, sku: <sku>, price: <price>, quantity: <quantity or 0>, categoryId: <category if provided>, description: <description or title>, sellStatus: "available", isActive: true, stockControl: true }) ``` 3. **Display created product details:** Show ID, SKU, title, price, quantity, category. ## Example Usage ``` /create-product "iPhone 15 Pro" "IPHONE-15-PRO" 999.99 /create-product "Red T-Shirt" "TSHIRT-RED" 29.99 --quantity 100 --category 5 /create-product "Wireless Mouse" "MOUSE-001" 49.99 --quantity 50 --description "Ergonomic wireless mouse" ```
View on GitHub