一键导入
dst-tables
Search and list Danmarks Statistik tables by subject or keyword. Use when user needs to find specific tables or browse tables within a subject area.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Search and list Danmarks Statistik tables by subject or keyword. Use when user needs to find specific tables or browse tables within a subject area.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Documentation of available data science libraries (scipy, numpy, pandas, sklearn) and best practices for statistical analysis, regression modeling, and organizing analysis scripts. **CRITICAL:** All analysis scripts MUST be placed in reports/{topic}/scripts/, NOT in root scripts/ directory.
Check data freshness and age for DST tables in DuckDB. Use when determining if data needs refreshing or validating data currency before analysis.
Fetch actual data from Danmarks Statistik API and store in DuckDB. Use when user wants to download and store specific DST table data for analysis.
Perform SQL joins and multi-table analysis on DST data in DuckDB. Use when research requires combining multiple tables on common dimensions (time, region). Provides patterns for common DST dimension joins and multi-table comparisons.
List all Danmarks Statistik tables currently stored in DuckDB with metadata. Use when user wants to know what data is available locally or explore stored tables.
Execute SQL queries on Danmarks Statistik data stored in DuckDB. Use when user needs specific data analysis, filtering, aggregation, or joins. Also includes table summary functionality.
| name | dst-tables |
| description | Search and list Danmarks Statistik tables by subject or keyword. Use when user needs to find specific tables or browse tables within a subject area. |
Find DST tables by subject or search term. This skill bridges the gap between browsing subjects and accessing specific data tables. Use it to discover which tables contain the data you need.
Get all available tables (warning: large list):
python scripts/api/get_tables.py
Get tables for a specific subject:
python scripts/api/get_tables.py --subject <subject_id>
Find tables matching a search term:
python scripts/api/get_tables.py --search "<term>"
Use both subject and keyword filters:
python scripts/api/get_tables.py --subject <id> --search "<term>"
Save to a file for later reference:
python scripts/api/get_tables.py --subject 02 --output tables.json
The script returns a JSON array of table objects. Each table contains:
Example output:
[
{
"id": "FOLK1A",
"text": "Population at the first day of the quarter",
"unit": "Number",
"updated": "2025-03-15T08:00:00",
"firstPeriod": "2008K1",
"latestPeriod": "2025K1",
"active": true,
"variables": ["OMRÅDE", "KØN", "ALDER", "CIVILSTAND", "Tid"]
}
]
Understanding what each field tells you:
After identifying an interesting table:
python scripts/api/get_tableinfo.py --table-id FOLK1A
python scripts/fetch_and_store.py --table-id FOLK1A
# Population and elections (subject 1)
python scripts/api/get_tables.py --subject 1
python scripts/api/get_tables.py --search "population"
Note: Search is case-insensitive and searches both text and description fields
Find age-related tables in the labour subject:
python scripts/api/get_tables.py --subject 2 --search "age"
# Tables updated in last 7 days
python scripts/api/get_tables.py --pastDays 7
python scripts/api/get_tables.py --subject 1 --includeInactive
Warning: Adds 3,319 inactive tables, much slower response
python scripts/api/get_tables.py --subject 2 --output labour_tables.json
# Find all FOLK* tables (population tables)
python scripts/api/get_tables.py --search "FOLK"
# Get tables from multiple subjects (if supported by script)
python scripts/api/get_tables.py --subject 1 --subject 2
Note: API returns tables with descriptions in chosen language, but search works across both.
Error: API returns 400 Bad Request