chicago-data-portal

chicago-data-portal is a skill for Claude Code from MisterClean/claude-plugins. It costs 73 tokens per session (1,861 once invoked), scanned A, original, MIT.

A guide for querying and downloading public data from the City of Chicago's data portal. It uses the portal's web API and query language for datasets such as crimes, permits, licenses, inspections, and 311 requests.

In plain words
What is it for?
Use it to find Chicago datasets, filter or aggregate records, and return results as JSON or CSV.
Why use it?
It helps identify the right dataset and set the location, time period, output format, and level of detail before querying.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the chicago-data-portal plugin — 1 skill shipped together

Good fit Use it to find Chicago datasets, filter or aggregate records, and return results as JSON or CSV.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/misterclean/claude-plugins/chicago-data-portal
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add MisterClean/claude-plugins --skill chicago-data-portal
Clone the repo
git clone --depth 1 https://github.com/MisterClean/claude-plugins

Made for: Claude Code.

Or install chicago-data-portal, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for chicago-data-portal

README.md
[![agentmods](https://agentmods.dev/badge/skills/misterclean/claude-plugins/chicago-data-portal/github.svg)](https://agentmods.dev/skills/misterclean/claude-plugins/chicago-data-portal)
Your own site
<a href="https://agentmods.dev/skills/misterclean/claude-plugins/chicago-data-portal"><img src="https://agentmods.dev/badge/skills/misterclean/claude-plugins/chicago-data-portal/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for chicago-data-portal

Your own site · 80×15
<a href="https://agentmods.dev/skills/misterclean/claude-plugins/chicago-data-portal"><img src="https://agentmods.dev/badge/skills/misterclean/claude-plugins/chicago-data-portal.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,861 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00073 $0.01861
Opus 5 $0.00036 $0.00931
Sonnet 5 $0.00015 $0.00372
Haiku 4.5 $0.00007 $0.00186

Measured 9d ago against content hash 41b139bc39fe, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

chicago-data-portal scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (examples/curl-examples.sh, examples/python-query.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X POST \
skills/chicago-data-portal/SKILL.md · 210 lines

How it starts

The opening of the file, as written. The whole thing — 210 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Chicago Data Portal Skill

Query and download datasets from the City of Chicago Data Portal using the Socrata Open Data API (SODA) and SoQL.

Prerequisites

Before querying, check if the user has an app token:

  1. Look for CHICAGO_DATA_PORTAL_TOKEN in the user's .env file
  2. If found, use it in requests via header: X-App-Token: <token>
  3. If not found, instruct the user to:

Queries work without a token but are rate-limited.

Quick Start

The Chicago Data Portal is at data.cityofchicago.org. Each dataset has a unique 4x4 ID (e.g., ijzp-q8t2 for crimes). Use the catalog API to discover datasets, then query via SODA.

Workflow

Step 1: Clarify the Data Need

Ask the user:

  • Topic: What data? (crimes, permits, 311 requests, businesses, etc.)
  • Geography: Citywide, ward, community area, or specific location/radius?
  • Time window: Date range or "most recent"?
  • Output: JSON (code) or CSV (Excel)?
  • Granularity: Raw rows or aggregated counts?

Step 2: Find the Dataset

Option A - Catalog Search API:

GET https://api.us.socrata.com/api/catalog/v1?domains=data.cityofchicago.org&q=<keywords>

Option B - Portal UI: Browse https://data.cityofchicago.org and use the search bar.

Deliverable: Dataset name, 4x4 ID, and API endpoint.

See references/popular-datasets.md for commonly requested datasets.

Step 3: Get Dataset Metadata

Fetch schema and column info:

GET https://data.cityofchicago.org/api/views/<4x4-ID>

Key fields in response:

  • columns[].fieldName - exact column names for queries
  • columns[].dataTypeName - data type (text, number, calendar_date, location, etc.)
  • columns[].description - what the column means
  • rowsUpdatedAt - last data update timestamp

Always verify column names from metadata before building queries.

Step 4: Build the Query

Read the full file on GitHub · 210 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 210 lines · 73 tokens per session scan A 41b139bc39fe

Subscribe to this mod's changes

chicago-data-portal is a skill published in the GitHub repository MisterClean/claude-plugins (3 stars, last pushed 7mo ago), licensed MIT. It adds 73 tokens to every session and 1,861 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

dummy-dataset

Generate realistic dummy datasets for testing with customizable columns, constraints, and output formats (CSV, JSON, SQL, Python script). Use when creating test data, building mock datasets, or generating sample data for development and demos.

phuryn/pm-skills · 48 tokens

outcome-roadmap

Transform an output-focused roadmap into an outcome-focused one that communicates strategic intent. Rewrites initiatives as outcome statements reflecting user and business impacts. Use when shifting to outcome roadmaps, making a roadmap more strategic, or rewriting feature lists as outcomes.

phuryn/pm-skills · 53 tokens

retro

Facilitate a structured sprint retrospective — what went well, what didn't, and prioritized action items with owners and deadlines. Use when running a retrospective, reflecting on a sprint, creating action items from team feedback, or learning how to run effective retros.

phuryn/pm-skills · 52 tokens

release-notes

Generate user-facing release notes from tickets, PRDs, or changelogs. Creates clear, engaging summaries organized by category (new features, improvements, fixes). Use when writing release notes, creating changelogs, announcing product updates, or summarizing what shipped.

phuryn/pm-skills · 57 tokens

shipping-artifacts

The durable documentation set that makes an AI-built (vibe-coded) app reviewable before shipping. A small core every app needs — architecture, user/permission flows, permissions, variables/secrets, and a test-coverage map — plus conditional docs added only when they apply: emails, scheduled work, SEO, and embedded…

phuryn/pm-skills · 120 tokens

competitive-battlecard

Create sales-ready competitive battlecards comparing your product against a specific competitor — positioning, feature comparison, objection handling, and win/loss patterns. Use when preparing sales teams, creating competitive materials, or responding to 'why not competitor X?'.

phuryn/pm-skills · 52 tokens