Development v1.0.0

pipeworx-deckofcards

Virtual card deck — shuffle, draw, and manage playing cards via the Deck of Cards API

brucegutman 更新于 2026-04-08 1 浏览
下载 SKILL

技能说明

Virtual card deck — shuffle, draw, and manage playing cards via the Deck of Cards API

使用场景

A virtual deck of playing cards. Create and shuffle decks, draw cards, and reshuffle — all tracked server-side with a persistent deck ID. Supports combining multiple 52-card decks for games like Blackjack.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/pipeworx-deckofcards
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 16 kB
SKILL.md text/markdown
---
name: pipeworx-deckofcards
description: Virtual card deck — shuffle, draw, and manage playing cards via the Deck of Cards API
version: 1.0.0
metadata:
  openclaw:
    requires:
      bins:
        - curl
    emoji: "🃏"
    homepage: https://pipeworx.io/packs/deckofcards
---

# Deck of Cards

A virtual deck of playing cards. Create and shuffle decks, draw cards, and reshuffle — all tracked server-side with a persistent deck ID. Supports combining multiple 52-card decks for games like Blackjack.

## Tools

| Tool | Description |
|------|-------------|
| `new_deck` | Create and shuffle a new deck (optionally combine multiple decks). Returns a `deck_id` |
| `draw_cards` | Draw one or more cards from an existing deck. Returns card code, suit, value, and image URL |
| `shuffle_deck` | Reshuffle an existing deck, returning all drawn cards back |

## Useful for

- Simulating card games (poker, blackjack, war)
- Building a card-based decision-making tool
- Teaching probability concepts with real card draws
- Party games where you need a shared virtual deck

## Example: draw a poker hand

```bash
# Step 1: Create a deck
curl -s -X POST https://gateway.pipeworx.io/deckofcards/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"new_deck","arguments":{"count":1}}}'

# Step 2: Draw 5 cards (use the deck_id from step 1)
curl -s -X POST https://gateway.pipeworx.io/deckofcards/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"draw_cards","arguments":{"deck_id":"3p40paa87x90","count":5}}}'
```

Each card includes: code (e.g., "AS" for Ace of Spades), value, suit, and an image URL of the card face.

## MCP config

```json
{
  "mcpServers": {
    "pipeworx-deckofcards": {
      "command": "npx",
      "args": ["-y", "mcp-remote@latest", "https://gateway.pipeworx.io/deckofcards/mcp"]
    }
  }
}
```

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。