home / skills / openclaw / skills / clawpify

clawpify skill

/skills/alhwyn/clawpify

This skill enables querying and managing Shopify data via GraphQL Admin API, covering products, orders, customers, inventory, and discounts.

npx playbooks add skill openclaw/skills --skill clawpify

Review the files below or copy the command above to add this skill to your agents.

Files (27)
SKILL.md
3.7 KB
---
name: clawpify
description: Query and manage Shopify stores via GraphQL Admin API. Use for products, orders, customers, inventory, discounts, and all Shopify data operations.
dependencies:
  - Tool: shopify_graphql (from MCP server or custom function)
---

# Shopify GraphQL Admin API

A comprehensive skill for interacting with Shopify's GraphQL Admin API. This skill enables Claude to query and manage all aspects of Shopify store data.

## When to Use This Skill

Use this skill when the user asks about:
- Products (list, search, create, update, delete)
- Orders (view, cancel, fulfill)
- Customers (list, create, update)
- Inventory (check levels, adjust quantities)
- Discounts (create codes, manage promotions)
- Any other Shopify store operations

## Critical Operations Requiring Permission

IMPORTANT: Before executing any of the following operations, you MUST ask for explicit user permission:

- Refunds: Create refunds (permanent financial transactions)
- Order Cancellations: Cancel orders (may trigger refunds)
- Gift Card Deactivation: Permanently disable gift cards
- Inventory Adjustments: Modify stock levels
- Product Deletions: Permanently remove products
- Discount Activations: Change pricing for customers

Always show what will be changed and wait for user confirmation.

## How to Use

1. Use the `shopify_graphql` tool to execute queries
2. Check for `errors` (GraphQL issues) and `userErrors` (validation issues)
3. Use pagination with `first`/`after` for large result sets
4. Format all IDs as: `gid://shopify/Resource/123`

## Available References

For detailed patterns and examples, refer to the reference documents:
- products.md - Products and variants management
- orders.md - Order operations
- customers.md - Customer management
- inventory.md - Inventory and locations
- discounts.md - Discount codes and promotions
- collections.md - Product collections
- fulfillments.md - Order fulfillment and shipping
- refunds.md - Process refunds
- draft-orders.md - Draft order creation
- gift-cards.md - Gift card management
- webhooks.md - Event subscriptions
- locations.md - Store locations
- marketing.md - Marketing activities
- markets.md - Multi-market setup
- menus.md - Navigation menus
- metafields.md - Custom data fields
- pages.md - Store pages
- blogs.md - Blog management
- files.md - File uploads
- shipping.md - Shipping configuration
- shop.md - Store information
- subscriptions.md - Subscription management
- translations.md - Content translations
- segments.md - Customer segments
- bulk-operations.md - Bulk data operations

## Quick Examples

### List Recent Orders
```graphql
query {
  orders(first: 10, sortKey: CREATED_AT, reverse: true) {
    nodes {
      id
      name
      totalPriceSet {
        shopMoney { amount currencyCode }
      }
      customer { displayName }
    }
  }
}
```

### Search Products
```graphql
query {
  products(first: 10, query: "title:*shirt* AND status:ACTIVE") {
    nodes {
      id
      title
      status
    }
  }
}
```

### Check Inventory
```graphql
query GetInventory($id: ID!) {
  inventoryItem(id: $id) {
    id
    inventoryLevels(first: 5) {
      nodes {
        quantities(names: ["available"]) {
          name
          quantity
        }
        location { name }
      }
    }
  }
}
```

## Error Handling

Always check responses:
- `errors` array = GraphQL syntax issues
- `userErrors` in mutations = validation problems

## Best Practices

1. Request only needed fields to optimize response size
2. Use pagination for lists that may grow
3. Check userErrors in all mutation responses
4. Ask permission before dangerous operations
5. Format results clearly for the user
6. Use bulk operations for large data exports/imports
7. Handle rate limits with exponential backoff

Overview

This skill provides a complete interface to query and manage Shopify stores via the GraphQL Admin API. It covers products, orders, customers, inventory, discounts and all other Shopify store data operations. The skill focuses on safe execution: it presents planned changes and requires explicit permission before destructive or financial actions.

How this skill works

Use the shopify_graphql tool to run GraphQL queries and mutations against the Admin API. Responses must be checked for top-level errors and for mutation-level userErrors; use pagination (first/after) for large lists and format resource IDs as gid://shopify/Resource/123. For bulk exports, use the bulk operations endpoints and handle rate limits with exponential backoff.

When to use it

  • List, search, create, update or delete products and variants
  • View, cancel, fulfill, or refund orders (ask permission for refunds/cancellations)
  • Manage customers: list, create, update profiles and segments
  • Check and adjust inventory levels and locations (explicit permission required for adjustments)
  • Create and manage discount codes, gift cards, and promotions
  • Run bulk data exports or set up webhooks and store metadata (metafields)

Best practices

  • Request only the fields you need to reduce payload size and improve performance
  • Always check both errors and userErrors in responses before presenting results
  • Use pagination for potentially large result sets and provide continuation tokens
  • Show planned changes clearly and obtain explicit user confirmation for destructive/financial operations
  • Prefer bulk operations for large exports or imports to avoid timeouts
  • Handle API rate limits with exponential backoff and retry logic

Example use cases

  • Fetch the 10 most recent orders with customer name and total for a sales summary
  • Search active products matching a title pattern and return IDs for bulk updates
  • Check inventory levels for an item across locations before creating a reorder
  • Create a discount code campaign and verify its validation errors before activation
  • Export customer segments via bulk operations for marketing syncs

FAQ

Do you perform destructive actions automatically?

No. The skill always shows what will change and requests explicit permission for refunds, cancellations, deletions, inventory adjustments, and other permanent actions.

How should resource IDs be formatted?

Use the global ID format gid://shopify/Resource/123 for all GraphQL queries and mutations.