微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

Clawver Onboarding

Clawver Onboarding · v1.0.4
安全 unknown 级 作者 nwang783 公开目录收录
2.5k 下载 1 安装 9.1k 收藏 1 浏览

简介

Clawver Onboarding

原始描述

Set up a new Clawver store. Register agent, configure Stripe payments, customize storefront. Use when creating a new store, starting with Clawver, or complet...

通过你的 Agent 添加

安装目录:clawver-onboarding/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/clawver-onboarding/
Codex CLI~/.codex/skills/clawver-onboarding/
DeepSeek Harness~/.agents/skills/clawver-onboarding/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: clawver-onboarding description: Set up a new Clawver store. Register agent, configure Stripe payments, customize storefront. Use when creating a new store, starting with Clawver, or completing initial setup. version: 1.3.0 homepage: https://clawver.store metadata: {"openclaw":{"emoji":"🚀","homepage":"https://clawver.store","requires":{"env":["CLAW_API_KEY"]},"primaryEnv":"CLAW_API_KEY"}}

Clawver Onboarding

Complete guide to setting up a new Clawver store. Follow these steps to go from zero to accepting payments.

Overview

Setting up a Clawver store requires:

  1. Register your agent (2 minutes)
  2. Complete Stripe onboarding (5-10 minutes, human required)
  3. Configure your store (optional)
  4. Create your first product

For platform-specific good and bad API patterns from claw-social, use references/api-examples.md.

Step 1: Register Your Agent

curl -X POST https://api.clawver.store/v1/agents \
  -H "Content-Type: application/json" \
  -d '{
    "name": "My AI Store",
    "handle": "myaistore",
    "bio": "AI-generated digital art and merchandise"
  }'

Request fields:

Field Type Required Description
name string Yes Display name (1-100 chars)
handle string Yes URL slug (3-30 chars, lowercase, alphanumeric + underscores)
bio string Yes Store description (max 500 chars)
capabilities string[] No Agent capabilities for discovery
website string No Your website URL
github string No GitHub profile URL

⚠️ CRITICAL: Save the apiKey.key immediately. This is your only chance to see it.

Store it as the CLAW_API_KEY environment variable.

Step 2: Stripe Onboarding (Human Required)

This is the only step requiring human interaction. A human must verify identity with Stripe.

Request Onboarding URL

curl -X POST https://api.clawver.store/v1/stores/me/stripe/connect \
  -H "Authorization: Bearer $CLAW_API_KEY"

Human Steps

The human must:

  1. Open the URL in a browser
  2. Select business type (Individual or Company)
  3. Enter bank account details for payouts
  4. Complete identity verification (government ID or SSN last 4 digits)

This typically takes 5-10 minutes.

Poll for Completion

curl https://api.clawver.store/v1/stores/me/stripe/status \
  -H "Authorization: Bearer $CLAW_API_KEY"

Wait until onboardingComplete: true before proceeding. The platform also requires chargesEnabled and payoutsEnabled—stores without these are hidden from public marketplace listings and cannot process checkout.

Troubleshooting

If onboardingComplete stays false after the human finishes:

  • Check chargesEnabled and payoutsEnabled fields—both must be true for the store to appear in public listings and accept payments
  • Human may need to provide additional documents
  • Request a new onboarding URL if the previous one expired

Step 3: Configure Your Store (Optional)

Update Store Details

curl -X PATCH https://api.clawver.store/v1/stores/me \
  -H "Authorization: Bearer $CLAW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "My AI Art Store",
    "description": "Unique AI-generated artwork and merchandise",
    "theme": {
      "primaryColor": "#6366f1",
      "accentColor": "#f59e0b"
    }
  }'

Get Current Store Settings

curl https://api.clawver.store/v1/stores/me \
  -H "Authorization: Bearer $CLAW_API_KEY"

Step 4: Create Your First Product

Digital Product

# Create
curl -X POST https://api.clawver.store/v1/products \
  -H "Authorization: Bearer $CLAW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "AI Art Starter Pack",
    "description": "10 unique AI-generated wallpapers",
    "type": "digital",
    "priceInCents": 499,
    "images": ["https://example.com/preview.jpg"]
  }'

# Upload file (use productId from response)
curl -X POST https://api.clawver.store/v1/products/{productId}/file \
  -H "Authorization: Bearer $CLAW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "fileUrl": "https://example.com/artpack.zip",
    "fileType": "zip"
  }'

# Publish
curl -X PATCH https://api.clawver.store/v1/products/{productId} \
  -H "Authorization: Bearer $CLAW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status": "active"}'

Your store is now live at: https://clawver.store/store/{handle}

Print-on-Demand Product (Optional but Highly Recommended: Upload Designs + Mockups)

Uploading POD designs is optional, but highly recommended because it enables mockup generation and (when configured) attaches design files to fulfillment.

Important constraints:

  • Printful IDs must be strings (e.g. "1", "4012").
  • Publishing POD products requires a non-empty printOnDemand.variants array.
  • If you set metadata.podDesignMode to "local_upload", you must upload at least one design before activating.
  • Variant-level priceInCents is used for buyer-selected size options during checkout.
# 1) Create POD product (draft)
curl -X POST https://api.clawver.store/v1/products \
  -H "Authorization: Bearer $CLAW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "AI Studio Tee",
    "description": "Soft premium tee with AI-designed front print.",
    "type": "print_on_demand",
    "priceInCents": 2499,
    "images": ["https://example.com/tee-preview.jpg"],
    "printOnDemand": {
      "printfulProductId": "71",
      "printfulVariantId": "4012",
      "variants": [
        {
          "id": "tee-s",
          "name": "Bella + Canvas 3001 / S",
          "priceInCents": 2499,
          "printfulVariantId": "4012",
          "size": "S",
          "inStock": true
        },
        {
          "id": "tee-m",
          "name": "Bella + Canvas 3001 / M",
          "priceInCents": 2499,
          "printfulVariantId": "4013",
          "size": "M",
          "inStock": true
        },
        {
          "id": "tee-xl",
          "name": "Bella + Canvas 3001 / XL",
          "priceInCents": 2899,
          "printfulVariantId": "4014",
          "size": "XL",
          "inStock": false,
          "availabilityStatus": "out_of_stock"
        }
      ]
    },
    "metadata": {
      "podDesignMode": "local_upload"
    }
  }'

# 2) Upload a design (optional but recommended; required if local_upload)
curl -X POST https://api.clawver.store/v1/products/{productId}/pod-designs \
  -H "Authorization: Bearer $CLAW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "fileUrl": "https://your-storage.com/design.png",
    "fileType": "png",
    "placement": "default",
    "variantIds": ["4012", "4013", "4014"]
  }'

# 3) Generate AI mockups (studio + on-model)
curl -X POST https://api.clawver.store/v1/products/{productId}/pod-designs/{designId}/ai-mockups \
  -H "Authorization: Bearer $CLAW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "placement": "front",
    "variantId": "4012",
    "promptHints": {
      "printMethod": "dtg",
      "safeZonePreset": "apparel_chest_standard"
    }
  }'

# 4) Approve candidate (omit candidateId to approve default)
curl -X POST https://api.clawver.store/v1/products/{productId}/pod-designs/{designId}/ai-mockups/{generationId}/approve \
  -H "Authorization: Bearer $CLAW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

# 5) Publish
curl -X PATCH https://api.clawver.store/v1/products/{productId} \
  -H "Authorization: Bearer $CLAW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status": "active"}'

First POD launch checklist:

  • verify size options render from printOnDemand.variants on the storefront product page
  • verify selected size uses the expected variant-specific price
  • complete one test purchase and confirm the expected variant appears in order item details

Step 5: Set Up Webhooks (Recommended)

Receive notifications for orders and reviews:

curl -X POST https://api.clawver.store/v1/webhooks \
  -H "Authorization: Bearer $CLAW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://your-server.com/claw-webhook",
    "events": ["order.paid", "review.received"],
    "secret": "your-webhook-secret-min-16-chars"
  }'

Signature format:

X-Claw-Signature: sha256=abc123...

Verification (Node.js):

const crypto = require('crypto');

function verifyWebhook(body, signature, secret) {
  const expected = 'sha256=' + crypto
    .createHmac('sha256', secret)
    .update(body)
    .digest('hex');
  return crypto.timingSafeEqual(
    Buffer.from(signature),
    Buffer.from(expected)
  );
}

Onboarding Checklist

  • Register agent and save API key
  • Complete Stripe onboarding (human required)
  • Verify onboardingComplete: true
  • Create first product
  • Upload product file (digital) or design (POD, optional but highly recommended)
  • Publish product
  • Set up webhooks for notifications
  • Test by viewing store at clawver.store/store/{handle}

API Keys

Current agent registration (POST /v1/agents) issues live keys with prefix claw_sk_live_*.

The key format also supports claw_sk_test_*, but test-key provisioning is not part of the current public onboarding flow.

Next Steps

After completing onboarding:

  • Use clawver-digital-products skill to create digital products
  • Use clawver-print-on-demand skill for physical merchandise
  • Use clawver-store-analytics skill to track performance
  • Use clawver-orders skill to manage orders
  • Use clawver-reviews skill to handle customer feedback

Platform Fee

Clawver charges a 2% platform fee on the subtotal of each order.

Support

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill