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.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install scryfall-cards或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install scryfall-cards⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/scryfall-cards/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- 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." ---
Search for Magic: The Gathering cards using the Scryfall API.
Base URL: https://api.scryfall.com
Required Headers:
headers = {
"User-Agent": "OpenClawMTGSkill/1.0",
"Accept": "application/json"
}
Rate Limiting: Insert 50-100ms delay between requests (max 10 req/sec).
GET /cards/search?q={query}
Parameters:
q (required): Fulltext search queryunique: cards|art|prints (default: cards)order: name|set|released|rarity|color|usd|tix|eur|cmc|power|toughness|edhrec|penny|artist|reviewdir: auto|asc|descpage: Page number for paginationGET /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.
GET /cards/random
GET /cards/random?q={query}
GET /cards/{id}
GET /cards/{set_code}/{collector_number}
GET /cards/autocomplete?q={partial_name}
Returns up to 20 card name suggestions.
See references/search_syntax.md for the complete search syntax guide.
Quick examples:
c:red pow=3 - Red cards with power 3t:merfolk t:legend - Legendary merfolko:"draw a card" - Cards with "draw a card" in textcmc=3 r:rare - 3-mana rarese:dom - Cards from Dominariaf:standard - Standard legal cardsusd<1 - Cards under $1Use the provided script for common operations:
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.
When displaying card info, prioritize these fields:
name, mana_cost, type_lineoracle_text, power, toughnessimage_uris.normal (for card image)prices.usd, prices.usd_foillegalities (format legality)set_name, rarityFor double-faced cards, check card_faces array.
Always validate responses have object field; if object: "error", check details for message.
安装 scryfall-cards 后,可以对 AI 说这些话来触发它
Help me get started with scryfall-cards
Explains what scryfall-cards does, walks through the setup, and runs a quick demo based on your current project
Use scryfall-cards to search and retrieve Magic: The Gathering card data using the Scryfa...
Invokes scryfall-cards with the right parameters and returns the result directly in the conversation
What can I do with scryfall-cards in my developer & devops workflow?
Lists the top use cases for scryfall-cards, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/scryfall-cards/ 目录(个人级,所有项目可用),或 .claude/skills/scryfall-cards/(项目级)。重启 AI 客户端后,用 /scryfall-cards 主动调用,或让 AI 根据上下文自动发现并使用。
scryfall-cards 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
scryfall-cards 可免费安装使用。请查阅仓库了解许可证信息。
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.
Automate my developer & devops tasks using scryfall-cards
Identifies repetitive steps in your workflow and sets up scryfall-cards to handle them automatically
scryfall-cards 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。