Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计通过

abs-data-apiABS 数据 API

Agent Skill

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

总安装

5,692

周安装

242

GitHub Stars

1

下载量

1,994
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:abs-data-api(ABS 数据 API)
来源仓库:https://github.com/billybodean/abs-data-api
安装命令:
openclaw skills install abs-data-api
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install abs-data-api

简介

abs-data-api 通过自然语言查询澳大利亚统计局数据集,返回带引用的经济与社会统计数据。

  • 适用于需要宏观经济指标、就业趋势或区域数据的研究与分析场景。
  • 通过 clawhub 安装后,在 OpenClaw 中输入查询语句即可获得结构化数据响应。
  • 使用前应确认数据用途是否符合 ABS 开放政策,注意部分数据集可能有使用限制。
  • 建议核对原始数据源更新时间,避免依赖过期信息做决策。

SKILL.md

name
abs-data-api
description
Query Australian Bureau of Statistics (ABS) datasets via natural language and return data with citations. Use when: (1) the user asks about Australian economic indicators (CPI, inflation, GDP, wages, unemployment, retail trade, housing prices, job vacancies, population, births, deaths, migration, trade); (2) the user wants live ABS data or time series; (3) the user asks to compare ABS statistics across states, periods, or industries; (4) the user wants to visualise or export ABS data (chart, CSV, table); (5) any request referencing ABS catalogue numbers (e.g. 6401.0, 6202.0) or ABS dataset names. NOT for: Census DataPacks (use the census-database skill instead).

ABS Data API Skill

Query live ABS datasets, return data + citations, optional tables/charts/reports.

Bundled Resources

FilePurpose
scripts/abs_cache.pyMetadata cache manager — refresh catalog, search all 1,200+ dataflows, generate structured metadata
scripts/abs_search.pyNL → dataset mapper — curated lookup + fuzzy fallback + ambiguity detection
scripts/abs_query.pyQuery engine — fetches data, formats output, summary/report/describe modes
scripts/test_presets.pyPreset validation — tests all presets against live API, pass/fail summary
presets.json20 validated preset queries for common indicators
metadata.overrides.jsonManual overrides for discontinued datasets and nicer labels
references/dataset-catalog.md~55 curated datasets with IDs, versions, notes (human reference)
references/api-guide.mdABS API URL patterns, response structure, example queries
references/sdmx-patterns.mdDimension codes (REGION, TSEST, FREQ, MEASURE) per dataset

Quick Start

# 1. Warm the cache (do once; auto-refreshes after 24h)
python3 scripts/abs_cache.py refresh
python3 scripts/abs_cache.py gen-metadata

# 2. Search for a dataset (with ambiguity hints)
python3 scripts/abs_search.py "unemployment rate"

# 3. List presets
python3 scripts/abs_query.py --list-presets

# 4. Describe a preset
python3 scripts/abs_query.py --describe-preset cpi-annual-change

# 5. Query latest
python3 scripts/abs_query.py --preset cpi-annual-change --latest --format table

# 6. Summary brief (latest + change context)
python3 scripts/abs_query.py --preset cpi-annual-change --summary latest

# 7. Macro snapshot
python3 scripts/abs_query.py --report macro-snapshot

# 8. Chart
python3 scripts/abs_query.py --preset gdp-chain-volume --start-period 2020-Q1 --chart

Workflow

Step 1 — Identify the dataset

  1. Check references/dataset-catalog.md for the dataflow ID and version
  2. If not found, run python3 scripts/abs_search.py "<user query>" for fuzzy match + ambiguity hints
  3. If still not found, run python3 scripts/abs_cache.py search "<term>" (searches all 1,200+ dataflows)

Step 2 — Determine dimension key

  1. Check presets.json — if a preset exists, use it directly
  2. Read references/sdmx-patterns.md for common dimension codes
  3. For an unfamiliar dataset, fetch its structure:
   python3 scripts/abs_cache.py structure <ID> <VERSION>

Step 3 — Query the data

python3 scripts/abs_query.py <ID> [KEY] [--version V] [--start-period P] [--end-period P] [--latest] [--format text|csv|json|table] [--chart] [--out FILE]

Step 4 — Format and deliver

  • Default text format includes citation. Use --format table for markdown tables.
  • For charts, requires matplotlib; gracefully falls back if not installed.
  • Use --summary latest for quick briefs with change context.
  • Use --report macro-snapshot for a full multi-indicator briefing.
  • Always include the citation line in any response to the user.

Presets (20 validated)

Common indicator queries are bundled in presets.json. All validated live March 2026.

# List all available presets
python3 scripts/abs_query.py --list-presets

# Describe a preset (shows what it measures and when to use it)
python3 scripts/abs_query.py --describe-preset unemployment-rate

# Run a preset
python3 scripts/abs_query.py --preset cpi-annual-change --latest --format table
python3 scripts/abs_query.py --preset unemployment-rate --latest
python3 scripts/abs_query.py --preset gdp-annual-change --chart
python3 scripts/abs_query.py --preset wage-annual-change --start-period 2020-Q1
python3 scripts/abs_query.py --preset population-national --format csv
python3 scripts/abs_query.py --preset dwelling-prices-mean --format table
python3 scripts/abs_query.py --preset trade-balance --start-period 2024-01
python3 scripts/abs_query.py --preset household-spending-change --summary latest

Key presets: cpi-annual-change, unemployment-rate, participation-rate, employment-level, underemployment-rate, labour-force-size, gdp-annual-change, wage-annual-change, population-national, dwelling-prices-mean, trade-balance, goods-exports, goods-imports, household-spending-change.


Output Formats

FlagOutput
*(default)*Human-readable text with friendly labels + citation
--format tableMarkdown table with friendly labels and rendered periods
--format csvCSV with raw codes + citation comment
--format jsonJSON with raw codes + *_label fields + TIME_PERIOD_rendered
--chartPNG chart with dataset title, subtitle, latest-point annotation
--summary latestLatest value + previous + absolute/percentage-point deltas + textual summary
--report macro-snapshotCompact multi-indicator macro briefing (7 key economic indicators)
--citation-style analystAnalyst-style source footnote block
--flat-viewAllDimensions format (wider; may be large)

Period Rendering

All output modes now render periods in human-readable format:

  • 2026-01 → January 2026
  • 2025-Q4 → December quarter 2025
  • 2025-Q1 → March quarter 2025
  • Ranges: March quarter 2024 to December quarter 2025

This applies to table headers, text output, citations, chart labels, and summary/report output.


JSON Output with Labels

--format json returns both raw dimension codes and friendly *_label fields:

{
  "TSEST": "20",
  "TSEST_label": "Seasonally Adjusted",
  "TIME_PERIOD": "2026-02",
  "TIME_PERIOD_rendered": "February 2026",
  "value": 4.277
}

Backward compatible — raw codes are preserved.


Ambiguity Detection

abs_search.py classifies ambiguity when multiple datasets match:

  • frequency — monthly vs quarterly
  • geography — national vs state vs SA2/LGA
  • measure — index vs % change vs level
  • series — original vs seasonally adjusted
  • dataset — distinct series cover the same topic

Prints clarifying questions to help the user or agent narrow the query.


Cache and Metadata

CommandDescription
abs_cache.py refreshFetch all dataflows from ABS, save to ~/.cache/abs-data-api/catalog.json
abs_cache.py gen-metadataGenerate metadata.generated.json from presets + catalog + overrides
abs_cache.py statusShow cache age, dataflow count, structure count, metadata status
abs_cache.py search <term>Search across all cached dataflows
abs_cache.py structure <ID> [VER]Fetch and cache DSD for a specific dataflow

Runtime metadata priority: metadata.generated.json > catalog.json > dataset-catalog.md. Override quirks (discontinued datasets, nicer labels) in metadata.overrides.json.


Validation

python3 scripts/test_presets.py             # test all presets
python3 scripts/test_presets.py --verbose   # with timing
python3 scripts/test_presets.py --preset unemployment-rate  # single

Ambiguity Rules

  • Multiple matching datasets: prefer the most specific. E.g. for "inflation", CPI beats CPI_M beats PPI.
  • No dimension key provided: use all — the API will return everything; then filter. If the response is large (>100 observations), the tool warns you.
  • Version unknown: look up from generated metadata, then catalog; try 1.0.0 as last resort.
  • User asks for "latest": always add --latest flag (uses lastNObservations=1).
  • Census data requested: redirect to the census-database skill; this skill handles ABS time-series only.
  • Chart requested but matplotlib missing: output text/table format and note how to install matplotlib.
  • Retail Trade (RT) requested: DISCONTINUED after June 2025. Use HSI_M or BUSINESS_TURNOVER instead.
  • RPPI requested: note the API only has data to ~2021-Q4. Use RES_DWELL_ST for current dwelling prices.

Citation Format

All responses include a citation:

Source: Australian Bureau of Statistics, *<Full Dataset Name>* (Cat. <catalogue-number>; dataset <ID>; v<version>). <human-readable-period>. Retrieved via ABS Data API: <url>.

Example:

Source: Australian Bureau of Statistics, *Consumer Price Index* (Cat. 6401.0; dataset CPI; v2.0.0). January 2026. Retrieved via ABS Data API: https://data.api.abs.gov.au/rest/data/ABS,CPI,2.0.0/.

What's New in v1.0.2

1. Metadata Generation

  • gen-metadata command: Builds unified metadata from presets + live catalog + manual overrides
  • Auto-refresh: Generated metadata automatically updates when older than 24 hours
  • Ensures all datasets are findable and correctly labeled, even as ABS API evolves
python3 scripts/abs_cache.py gen-metadata

2. Smart Ambiguity Detection

  • Classifies ambiguity when multiple datasets match a user query (frequency, geography, measure, series, dataset)
  • Provides clarifying questions grouped by intent (prices, wages, employment, housing, etc.)
  • Flags discontinued datasets with replacement suggestions (e.g., RT → HSI_M)
  • Uses curated intent groups + ambiguity tags to guide disambiguation
python3 scripts/abs_search.py "inflation"  # May suggest CPI, CPI_M, PPI with clarifying Qs

3. Summary Mode with Change Context

  • --summary latest: Shows latest value + previous + absolute deltas + brief summary
  • Automatically detects rates/growth measures and uses percentage-point notation instead of misleading relative % changes

- Example: Unemployment rate rises from 4.0% to 4.3% → "change of +0.3 percentage points" (NOT "+7.5% relative change") - Applies to: unemployment, participation, inflation rates, growth measures

  • Ideal for quick briefings and executive summaries
python3 scripts/abs_query.py --preset unemployment-rate --summary latest
# Output: Current: 4.3% | Previous: 4.0% (Feb) | Change: +0.3pp | [Brief context]

4. Macro-Snapshot Report

  • --report macro-snapshot: Single-command economic briefing covering 7 key indicators
  • Fetches CPI, unemployment, participation, employment, GDP growth, wage growth, household spending
  • All with change context and period rendering
  • Perfect for media snippets or executive briefings
python3 scripts/abs_query.py --report macro-snapshot

5. Percentage-Point Delta Fix

  • Smart detection: Automatically recognizes rates and growth measures via keyword matching
  • Applies percentage-point notation to avoid confusion with relative % changes
  • Examples:

- Unemployment: 4.0% → 4.3% = +0.3 percentage points (not +7.5%) - CPI: 3.5% → 3.2% = -0.3 percentage points - Wage growth: 4.1% → 4.0% = -0.1 percentage points

  • Applies to all output modes: text, table, JSON, summary

6. Metadata Overrides (metadata.overrides.json)

  • Discontinued datasets (RT → HSI_M, RPPI stale warning)
  • Friendly names for complex dataset IDs
  • Replacement hints with explanations
  • Easy to extend for future dataset changes

The query engine appends this automatically. Do not strip it from tool output.


Changelog

v1.0.2 (March 2026)

New Features:

  • ✨ Metadata generation (gen-metadata command) — builds unified metadata from presets + catalog + overrides with auto-refresh
  • ✨ Smart ambiguity detection — classifies multiple matches by type (frequency, geography, measure, series, dataset) and provides grouped clarifying questions
  • ✨ Summary mode with change context (--summary latest) — shows latest + previous + absolute deltas + brief summary
  • ✨ Macro-snapshot report (--report macro-snapshot) — single-command economic briefing covering 7 key indicators
  • ✨ Percentage-point delta fix — rates/growth measures automatically use pp notation instead of misleading relative % changes
  • ✨ Intent grouping — curated entries now include intent_group and ambiguity_tags for smarter disambiguation

Improvements:

  • Discontinued dataset detection (RT → HSI_M, RPPI stale warning)
  • Better metadata overrides system for dataset quirks
  • Enhanced search with ambiguity classification
  • All output modes now respect percentage-point notation where applicable

Affected Scripts:

  • abs_cache.py — added gen-metadata command and generate_metadata() function
  • abs_search.py — added ambiguity detection, intent grouping, and clarifying questions
  • abs_query.py — added --summary latest, --report macro-snapshot, percentage-point delta detection
  • metadata.overrides.json — new file for manual dataset overrides

v1.0.1 (Previous)

  • Base preset system with 20 validated queries
  • Curated dataset catalog and SDMX dimension references
  • Cache refresh and fuzzy search capabilities

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

77.16%
按下载量换算1,539

安全审计

VirusTotal

未展示

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills