← 返回 Skills 市场
raychanpmp

City of Calgary Open Data

作者 Ray Chan, PMP · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ 安全检测通过
143
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install calgary-opendata
功能描述
Access 988+ datasets from the City of Calgary open data portal. Search, fetch, and analyze city data on transit, environment, government, and more. The skill...
使用说明 (SKILL.md)

City of Calgary Open Data

Access and analyze 988+ open datasets from the City of Calgary via the Socrata SODA API. Data covers transit, environment, government, demographics, health, business, and more.

Portal: https://data.calgary.ca Licence: Open Government Licence – City of Calgary

Quick Start

# Search for datasets
python3 scripts/calgary_data.py search "traffic"

# List datasets by category
python3 scripts/calgary_data.py list --category "Environment"

# View dataset info
python3 scripts/calgary_data.py info iric-4rrc

# Fetch data (default JSON, 10 rows)
python3 scripts/calgary_data.py fetch iric-4rrc --limit 5

# Fetch with filters
python3 scripts/calgary_data.py fetch iric-4rrc --where "period='2024-01'" --select "facility_name,solar_pv_production_kwh"

# Export to CSV
python3 scripts/calgary_data.py fetch iric-4rrc --limit 100 --csv > solar.csv

# List all categories
python3 scripts/calgary_data.py categories

# View popular datasets
python3 scripts/calgary_data.py popular

# GeoJSON export (if dataset has location columns)
python3 scripts/calgary_data.py geojson c9sh-grss --limit 50

Commands Reference

Command Description
search \x3Cquery> Search datasets by keyword
list [--category \x3Ccat>] List datasets, optionally filter by category
info \x3Cdataset-id> Show dataset metadata (columns, types, row count)
fetch \x3Cdataset-id> Download data rows (opts: --limit, --where, --select, --order, --csv, --json)
categories List all categories with dataset counts
popular Show most-viewed datasets
geojson \x3Cdataset-id> Export geocoded data as GeoJSON

Query Parameters

The fetch command supports Socrata SODA query parameters:

  • --limit N — Max rows to return (default: 10)
  • --where "condition" — SQL-like filter (e.g., "population > 5000")
  • --select "col1,col2" — Choose specific columns
  • --order "col DESC" — Sort results
  • --offset N — Skip N rows (pagination)
  • --csv — Output as CSV instead of JSON

Dataset IDs

Dataset IDs are 9-character alphanumeric codes (e.g., iric-4rrc). Find them via search or list, or from the dataset URL: data.calgary.ca/dataset/{id}.

Data Sources

All data sourced from the City of Calgary Open Data Portal (data.calgary.ca) under the Open Government Licence.

Environment Variables

Variable Required Description
SOCRATA_APP_TOKEN No Optional Socrata app token to reduce rate limits. Works without it.
All data is sourced from the City of Calgary's Open Data Portal (data.calgary.ca) and is provided under the Open Government Licence – City of Calgary. See references/datasets.md for a curated list of popular datasets.
安全使用建议
This skill appears coherent and implements a simple CLI against the City of Calgary's open data portal. Things to consider before installing: (1) the skill will make outbound HTTPS requests only to data.calgary.ca; (2) it optionally uses SOCRATA_APP_TOKEN — provide that only if you trust the skill and want higher API rate limits; (3) it writes a local cache file (.cache/catalog_cache.json) next to the script; and (4) the package source/homepage is unknown — if provenance matters, review the script contents yourself (scripts/calgary_data.py) to confirm they match your expectations before use.
功能分析
Type: OpenClaw Skill Name: calgary-opendata Version: 1.0.2 The skill bundle provides a legitimate interface for accessing the City of Calgary's Open Data portal via the Socrata SODA API. The Python script (scripts/calgary_data.py) uses only standard libraries to perform searches, metadata retrieval, and data fetching from https://data.calgary.ca, with no evidence of data exfiltration, malicious execution, or prompt injection.
能力评估
Purpose & Capability
Name/description (City of Calgary Open Data) match the included CLI and scripts which call the Socrata SODA API on data.calgary.ca. No unrelated services, binaries, or credentials are requested.
Instruction Scope
SKILL.md instructs the agent to run the included Python CLI and documents supported commands and an optional SOCRATA_APP_TOKEN. The runtime instructions do not request unrelated files, secrets, or system state beyond running the CLI.
Install Mechanism
This is an instruction-only skill with a single Python script; there is no install spec, no external downloads, and no archive extraction. The script uses only Python stdlib network calls.
Credentials
No required environment variables are declared. The only optional env var is SOCRATA_APP_TOKEN (documented in SKILL.md) which is appropriate for reducing API rate limits. The code reads that same env var and nothing else.
Persistence & Privilege
The skill does not request always:true and is user-invocable only. It does create a local cache file (.cache/catalog_cache.json) alongside the script to cache the dataset catalogue for one hour — this is reasonable for performance but worth noting if you expect no disk writes.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install calgary-opendata
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /calgary-opendata 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
Fixed: cache in skill dir, documented env vars
v1.0.1
Trim triggers list to improve discovery accuracy
v1.0.0
Initial release — search, fetch, and analyze 988+ City of Calgary open datasets via the Socrata SODA API
元数据
Slug calgary-opendata
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

City of Calgary Open Data 是什么?

Access 988+ datasets from the City of Calgary open data portal. Search, fetch, and analyze city data on transit, environment, government, and more. The skill... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 143 次。

如何安装 City of Calgary Open Data?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install calgary-opendata」即可一键安装,无需额外配置。

City of Calgary Open Data 是免费的吗?

是的,City of Calgary Open Data 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

City of Calgary Open Data 支持哪些平台?

City of Calgary Open Data 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 City of Calgary Open Data?

由 Ray Chan, PMP(@raychanpmp)开发并维护,当前版本 v1.0.2。

💬 留言讨论