Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

dewey

БесплатноЗапускает вложенные скриптыНе проверен

Use when "query Dewey Data", "deweydata.io", "SafeGraph places/patterns/spend", "Advan foot traffic", "POI / points of interest", "mobility data", "dataplor"…

edwinhuот edwinhu★ 28 звёзд на GitHub

Об этом скилле

What this skill carries — grep references/ for any subject the names below miss: !d=${CLAUDE_SKILL_DIR}; command -v skill-toc >/dev/null 2>&1 && exec skill-toc "$d"; s=$HOME/.claude/skills/plugin-utils/bin/skill-toc; [ -x "$s" ] && exec "$s" "$d"; echo "(skill-toc unavailable: references and scripts are NOT listed here — install the plugin-utils plugin, or start a new session so its bin/ reaches PATH)"

Contents

What Dewey Is

Dewey Data is an academic data marketplace — one institutional Platform Subscription unlocks a catalog of ~300 datasets from ~40 providers (foot traffic, POI, mobility, consumer transactions, real estate, labor). UVA Library and NYU both hold the institutional subscription; SafeGraph and most providers are free under it.

Dewey is not a SQL warehouse like WRDS. Data is delivered as partitioned Parquet/CSV.gz files downloaded via an API key. You discover datasets, read metadata, sample, filter (by date partition + columns), then download. Think "S3 of presigned Parquet links," not "PostgreSQL."

WRDS Dewey
Data Finance/accounting POI, foot traffic, mobility, consumer, real estate
Access PostgreSQL / SAS on the grid File download (Parquet/CSV.gz) via API key
Query engine server-side SQL DuckDB over the files (local or remote presigned URLs)
Licensing per-vendor, negotiated one platform subscription unlocks the catalog
AI access none MCP server (api.deweydata.io/mcp)

Credential Enforcement

IRON LAW: NEVER GUESS, INVENT, OR HARDCODE THE API KEY

The Dewey API key belongs to the **user's** account (`app.deweydata.io` → Connections → Add Connection → API Key). You cannot derive it. Keys are `akv1_` + 35 chars (40 bytes).
  • ALWAYS look for an existing key first: DEWEY_API_KEY env, then ~/.config/dewey/apikey (also on rjds at the same path; agenix dewey-api-key.age → DEWEY_API_KEY_FILE). Validate before any pull: GET https://api.deweydata.io/api/v1/external/data/<prj_id>/files?page=1 with header X-API-Key; 200 = valid, 401 Invalid API key. = revoked/wrong (Authorization: Bearer is the wrong scheme and gives a misleading 401). Ask the user only when no key exists or it 401s.
  • NEVER write a placeholder like apikey = "your_api_key" and run it — it will 401 and waste a round trip. Read from DEWEY_API_KEY env var or a gitignored file (~/.config/dewey/apikey).
  • NEVER commit the key, echo it back, print it, or paste it into a script that gets committed.

Guessing or hardcoding the key is NOT HELPFUL — every call 401s, and a committed key is a security incident the user must rotate.

Each product (dataset) has its own product path / project ID (prj_…), obtained from the dataset page: Get Data → (Skip filtering) → Connect to API / Bulk API → API URL. One API key, many product paths. If you don't have the product path, discover it via the MCP server (search_datasets) rather than guessing.

Download Enforcement

IRON LAW: NO BULK DOWNLOAD WITHOUT METADATA + SAMPLE + FILTER FIRST

Before downloading ANY Dewey dataset, you MUST:

  1. IDENTIFY the product path and what partitions/columns you actually need
  2. META — call get_meta (deweydatapy) / get_download_info (MCP) to learn partition columns, date range, file count, total size
  3. SAMPLE — pull 100 rows (read_sample / MCP sample_dataset) and INSPECT the schema before committing to a full pull
  4. FILTER — restrict by date partition (partition_key_after/before) AND columns; for selective pulls use DuckDB COPY TO over the presigned URLs, never download the whole catalog
  5. DOWNLOAD the filtered subset, then verify row counts / NULLs / date range on disk

This is not negotiable. Skipping the sample-and-filter step is NOT HELPFUL — Dewey datasets are routinely hundreds of GB to multiple TB; an unfiltered pull burns hours of bandwidth and disk for data you'll immediately throw away.

Dewey Facts

  • SafeGraph Patterns is multi-TB; "download everything and filter in pandas" fills the disk before the filter ever runs — counterproductive on its own terms. Use DuckDB COPY TO with a WHERE clause on the remote parquet to pull only the rows/columns you need.
  • Column names differ by provider and release (naics_code vs NAICS_CODE; opened_on may not exist at all). A full pull against guessed columns is the ex
Полный SKILL.md на GitHub

Установить dewey в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

examples/btm_safegraph_pull.pyreferences/access-options.mdreferences/brightquery-delaware-stock-filings.mdreferences/catalog.csvreferences/catalog.mdreferences/datasets.mdreferences/deweypy-client.mdreferences/duckdb.mdreferences/edi-corporate-actions.mdreferences/govfiles-business-entity.mdreferences/linkage.mdreferences/linkup-job-postings.mdreferences/mcp.mdreferences/safegraph-places.mdreferences/schemas.json

FAQ

Что делает скилл dewey?

Use when "query Dewey Data", "deweydata.io", "SafeGraph places/patterns/spend", "Advan foot traffic", "POI / points of interest", "mobility data", "dataplor", "Veraset", "PassBy", "crypto/Bitcoin ATM locations", "GovFiles", "business entity / Secretary of State registry data", "OpenCorporates bulk data or entity status", "LinkUp job postings", "job-postings panel", "Exchange Data International / EDI", "WCA / RCAN corporate actions", "global corporate actions (dividends, splits, mergers, tenders)", or any pull from the Dewey Data academic marketplace (UVA/NYU Platform Subscription) via the deweypy/deweydatapy client, DuckDB, or the Dewey MCP server.

Как установить скилл dewey?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл dewey запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить dewey с