santidev95

mtg-edh-deckbuilder

知識管理v1.0.3
作者:santidev95更新於 2026-05-11共 4 個版本 · 最新版本釋出於 2026-02-05@clawhub_santidev95/mtg-edh-deckbuilder
資訊檢索

據 AlphaMoat 統計,截至 2026-09,mtg-edh-deckbuilder 累計下載 2,762 次、獲 1 個星標,在全部 5,078 個 AI 技能中排名第 3,904 位,在「知識管理」分類(442 個)中排名第 337 位。

累計安裝
185
累計下載
2762
星標
1
全站排名
#3,904
全站前 77% · 「知識管理」前 77%
平台累計安裝累計下載星標評論
ClawHub ↗8525981-
SkillHub ↗18527621—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

文件涵蓋按條件搜尋、按名稱查詢、隨機卡牌、自動補全和卡牌欄位展示,並提示請求之間加入延遲以遵守速率限制。

資料釋出於 2026-10-27

可以用來做什麼

  • 按名稱、顏色、型別或規則文字搜尋卡牌
  • 檢視卡牌資料、圖像、價格或合法性資訊

什麼時候用

  • 需要查詢 Magic: The Gathering 卡牌資訊時
  • 需要按卡牌屬性篩選或查詢特定卡牌時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

用 Scryfall 查詢名稱為 Black Lotus 的卡牌
搜尋紅色且力量為 3 的卡牌

月度資料趨勢

累計下載2762
1936238028232026-03 · 累計下載 19972026-05 · 累計下載 21892026-06 · 累計下載 22792026-07 · 累計下載 24452026-08 · 累計下載 25212026-09 · 累計下載 276226-0326-09
星標1
0122026-03 · 星標 12026-05 · 星標 12026-06 · 星標 12026-07 · 星標 12026-08 · 星標 12026-09 · 星標 126-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-092762—1
2026-082521+3.1%1
2026-072445+7.3%1
2026-062279+4.1%1
2026-052189—1
2026-031997—1

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

2.9 KB · ClawHub v1.0.3
---
name: scryfall-mtg
description: "Search and retrieve Magic: The Gathering card data using the Scryfall API. Use this skill when the user asks about MTG cards, wants to search for cards by name, type, color, mana cost, oracle text, set, or any other card attribute. Also use for getting card images, prices, rulings, legality information, or random cards. Triggers include mentions of MTG, Magic, Magic: The Gathering, card names, deck building questions, or requests for card information."
---

# Scryfall MTG Card Search

Search for Magic: The Gathering cards using the Scryfall API.

## API Overview
展開全部(共 111 行)

Base URL: `https://api.scryfall.com`

**Required Headers:**
```python
headers = {
    "User-Agent": "OpenClawMTGSkill/1.0",
    "Accept": "application/json"
}
```

**Rate Limiting:** Insert 50-100ms delay between requests (max 10 req/sec).

## Core Endpoints

### Search Cards
```
GET /cards/search?q={query}
```

Parameters:
- `q` (required): Fulltext search query
- `unique`: cards|art|prints (default: cards)
- `order`: name|set|released|rarity|color|usd|tix|eur|cmc|power|toughness|edhrec|penny|artist|review
- `dir`: auto|asc|desc
- `page`: Page number for pagination

### Named Card Lookup
```
GET /cards/named?exact={name}
GET /cards/named?fuzzy={name}
```

Use `fuzzy` for partial matches (e.g., "jac bele" → "Jace Beleren").
Add `&set={code}` to limit to specific set.

### Random Card
```
GET /cards/random
GET /cards/random?q={query}
```

### Card by ID
```
GET /cards/{id}
GET /cards/{set_code}/{collector_number}
```

### Autocomplete
```
GET /cards/autocomplete?q={partial_name}
```

Returns up to 20 card name suggestions.

## Search Syntax Reference

See `references/search_syntax.md` for the complete search syntax guide.

**Quick examples:**
- `c:red pow=3` - Red cards with power 3
- `t:merfolk t:legend` - Legendary merfolk
- `o:"draw a card"` - Cards with "draw a card" in text
- `cmc=3 r:rare` - 3-mana rares
- `e:dom` - Cards from Dominaria
- `f:standard` - Standard legal cards
- `usd<1` - Cards under $1

## Implementation

Use the provided script for common operations:

```bash
python3 scripts/scryfall_search.py search "lightning bolt"
python3 scripts/scryfall_search.py named --exact "Black Lotus"
python3 scripts/scryfall_search.py random
python3 scripts/scryfall_search.py random --query "t:dragon"
```

Or make direct API calls with proper headers and rate limiting.

## Card Object Key Fields

When displaying card info, prioritize these fields:
- `name`, `mana_cost`, `type_line`
- `oracle_text`, `power`, `toughness`
- `image_uris.normal` (for card image)
- `prices.usd`, `prices.usd_foil`
- `legalities` (format legality)
- `set_name`, `rarity`

For double-faced cards, check `card_faces` array.

## Error Handling

- 404: Card not found
- 422: Invalid search query
- 429: Rate limited (wait and retry)

Always validate responses have `object` field; if `object: "error"`, check `details` for message.

「知識管理」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。