dst-subjects

Fetch and traverse DST subject hierarchies with metadata fields.

2|1|Updated Oct 30, 2025
One-click install
npx skills add https://github.com/mikkelkrogsholm/dst-skills --skill dst-subjects
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dst-subjects
Source: https://github.com/mikkelkrogsholm/dst-skills/tree/main/.claude/skills/dst-subjects
Command: npx skills add https://github.com/mikkelkrogsholm/dst-skills --skill dst-subjects

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill exposes DST's subject hierarchy, helping users understand how data is organized and where to find related tables.

Core Features & Use Cases

  • Hierarchy exploration: Retrieve top-level subjects and full recursive trees.
  • Subject discovery: Identify relevant subject areas before drilling into tables.
  • Offline reference: Save the subject map for quick lookup.

Quick Start

python scripts/api/get_subjects.py --recursive

Frequently Asked Questions about dst-subjects

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I browse Statistics Denmark's subject hierarchy to find data topics?

Use the get_subjects.py script to retrieve DST's subject hierarchy. The Skill fetches top-level subjects and traverses the full tree recursively, exposing subject IDs, descriptions, and relationships to help you discover available data topics and locate relevant tables within Statistics Denmark's organizational structure.

What information does each subject in the DST hierarchy contain?

Each subject exposes metadata fields including id, description, active status, hasSubjects flag, nested subjects, and associated tables. This metadata enables you to understand the organizational structure, identify active subject areas, and map data to potential tables for downstream analysis.

Can I save the subject hierarchy offline for quick reference?

Yes. The Skill supports fetching and storing the complete subject map locally, allowing you to reference DST's taxonomy without repeated API calls and enabling faster lookup when exploring data categories or planning analysis workflows.

How do I traverse the full subject tree rather than just top-level subjects?

Run the script with the --recursive flag to traverse the complete hierarchy. This returns the full nested structure of all subjects, letting you explore the entire organizational taxonomy and understand parent-child relationships across all data topic levels.

When should I use subject hierarchy exploration before working with DST data?

Explore the hierarchy when you need to identify relevant subject areas before drilling into specific tables, understand how DST organizes data domains, or map your analysis requirements to the correct data categories and subject IDs within Statistics Denmark.