Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

ucp

БесплатноБез исполняемых скриптовНе проверен

Expert-level implementation assistant for the Universal Commerce Protocol (UCP). Provides comprehensive tooling for adding UCP support to Next.js ecommerce…

vercel-labsот vercel-labs★ 16 звёзд на GitHub

Об этом скилле

UCP Skill — Universal Commerce Protocol Implementation

Core Principles

  1. Edge runtime is NOT USED — Only Node.js (default) or Bun (opt-in) runtimes
  2. Interactive error handling — When ambiguous, ask the user how to proceed
  3. Config-driven — All decisions persist in ucp.config.json
  4. Spec-grounded — All implementations reference the canonical UCP specification
  5. Next.js conventions — Follow App Router patterns for code organization
  6. Deep analysis — Use AST parsing and data flow tracing for gap detection

Spec Repository Handling

Location Priority

Check in this order:

  1. ./ucp/ — User's local copy (use as-is)
  2. ./.ucp-spec/ — Previously cloned spec (update it)
  3. Neither exists — Clone fresh

Clone Procedure

When cloning is needed:

git clone --depth 1 https://github.com/Universal-Commerce-Protocol/ucp.git .ucp-spec

If HTTPS fails, try SSH:

git clone --depth 1 [email protected]:Universal-Commerce-Protocol/ucp.git .ucp-spec

Update Procedure

When ./.ucp-spec/ exists:

cd .ucp-spec && git pull && cd ..

Gitignore Management

After cloning, ensure .ucp-spec/ is in .gitignore:

  • Read .gitignore if it exists
  • Check if .ucp-spec/ or .ucp-spec is already listed
  • If not, append .ucp-spec/ on a new line

Spec File Locations (read on demand)

docs/specification/overview.md
docs/specification/checkout.md
docs/specification/checkout-rest.md
docs/specification/checkout-mcp.md
docs/specification/checkout-a2a.md
docs/specification/embedded-checkout.md
docs/specification/order.md
docs/specification/fulfillment.md
docs/specification/discount.md
docs/specification/buyer-consent.md
docs/specification/identity-linking.md
docs/specification/ap2-mandates.md
docs/specification/payment-handler-guide.md
docs/specification/tokenization-guide.md
spec/services/shopping/rest.openapi.json
spec/services/shopping/mcp.openrpc.json
spec/services/shopping/embedded.openrpc.json
spec/handlers/tokenization/openapi.json
spec/schemas/shopping/*
spec/discovery/profile_schema.json

Configuration File

Location

./ucp.config.json at project root

Schema

{
  "$schema": "./ucp.config.schema.json",
  "ucp_version": "2026-01-11",
  "roles": ["business"],
  "runtime": "nodejs",
  "capabilities": {
    "core": ["dev.ucp.shopping.checkout"],
    "extensions": []
  },
  "transports": ["rest"],
  "transport_priority": ["rest", "mcp", "a2a", "embedded"],
  "payment_handlers": [],
  "features": {
    "ap2_mandates": false,
    "identity_linking": false,
    "multi_destination_fulfillment": false
  },
  "domain": "",
  "existing_apis": {},
  "policy_urls": {
    "privacy": "",
    "terms": "",
    "refunds": "",
    "shipping": ""
  },
  "scaffold_depth": "full",
  "generated_files": [],
  "answers": {},
  "deployment": {
    "platform": "vercel",
    "region": "iad1",
    "mcp": {
      "enabled": false,
      "max_duration": 60
    }
  }
}

Field Descriptions

Field Type Description
ucp_version string UCP spec version (date-based)
roles string[] One or more of: business, platform, payment_provider, host_embedded
runtime string nodejs (default) or bun
capabilities.core string[] Required capabilities to implement
capabilities.extensions string[] Optional extensions to implement
transports string[] Enabled transports: rest, mcp, a2a, embedded
transport_priority string[] Order to implement transports
payment_handlers string[] Payment handler IDs to support
features.ap2_mandates boolean Enable AP2 mandate signing
features.identity_linking boolean Enable OAuth identity linking
features.multi_destination_fulfillment boolean Enable multi-destination shipping
domain string Business domain for /.well-known/ucp
existing_apis object Map of existing API endpoints to analyze
policy_urls object URLs for privacy, terms, refunds, shipping policies
scaffold_depth string types | scaffolding | full
generated_files string[] Files created by scaffold (for tracking)
answers object Raw answers to qualifying questions

Sub-command: (no argument)

Trigger

User runs /ucp with no sub-command

Behavior

Display help listing all available sub-commands:

UCP Skill — Universal Commerce Protocol Implementation

Available commands:
  /ucp init      — Initialize UCP in this project (clone spec, create config)
  /ucp consult   — Full consultation: answer qualifying questions, build roadmap
  /ucp plan      — Generate detailed implementation plan
  /ucp gaps      — Analyze existing code against UCP requirements
  /ucp scaffold  — Generate full working UCP implementation
  /ucp validate  — Validate implementation against UCP schemas
  /ucp profile   — Generate /.well-known/ucp discovery
Полный SKILL.md на GitHub

Установить ucp в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл ucp?

Expert-level implementation assistant for the Universal Commerce Protocol (UCP). Provides comprehensive tooling for adding UCP support to Next.js ecommerce codebases — from initial consultation through full implementation, testing, and validation.

Как установить скилл ucp?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ucp запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить ucp с