santidev95

mtg-edh-deckbuilder

Knowledgev1.0.3
By santidev95Updated 2026-05-114 versions · latest released 2026-02-05@clawhub_santidev95/mtg-edh-deckbuilder
Information Retrieval

According to AlphaMoat, as of 2026-09, mtg-edh-deckbuilder has 2,762 downloads and 1 stars — ranked #3,904 of 5,078 AI skills overall, and #337 of 442 in Knowledge.

Installs
185
Downloads
2.8K
Stars
1
Overall Rank
#3,904
Top 77% overall · Top 77% in Knowledge
PlatformInstallsDownloadsStarsComments
ClawHub ↗852.6K1-
SkillHub ↗1852.8K1—

Platforms count differently and update at different times.

What this skill does

The documentation covers filtered search, named lookup, random cards, autocomplete, and card fields. It also specifies adding a delay between requests to respect the rate limit.

Profile published 2026-10-27

What you can do with it

  • Search for cards by name, color, type, or rules text
  • Retrieve card details, images, prices, or legality information

When to use it

  • When looking up Magic: The Gathering card information
  • When filtering by card attributes or finding a specific card

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Use Scryfall to find the card named Black Lotus
Search for red cards with power 3

Monthly Trend

Downloads2.8K
1.9K2.4K2.8K2026-03 · Downloads 2.0K2026-05 · Downloads 2.2K2026-06 · Downloads 2.3K2026-07 · Downloads 2.4K2026-08 · Downloads 2.5K2026-09 · Downloads 2.8K26-0326-09
Stars1
0122026-03 · Stars 12026-05 · Stars 12026-06 · Stars 12026-07 · Stars 12026-08 · Stars 12026-09 · Stars 126-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-092.8K—1
2026-082.5K+3.1%1
2026-072.4K+7.3%1
2026-062.3K+4.1%1
2026-052.2K—1
2026-032.0K—1

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 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
Show all (111 lines)

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.

Popular in Knowledge

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.