Agent Skillsdathere/qsv › bls-query

bls-query

GitHub

通过BLS MCP服务器查询美国劳工统计局数据,支持将自然语言转换为CPI、失业率等经济指标的系列ID并获取结果。

.claude/skills/skills/bls-query/SKILL.md dathere/qsv

Trigger Scenarios

用户询问CPI或通货膨胀 用户查询失业率或就业数据 用户查找工资或劳动力统计信息

Install

npx skills add dathere/qsv --skill bls-query -g -y
More Options

Non-standard path

npx skills add https://github.com/dathere/qsv/tree/master/.claude/skills/skills/bls-query -g -y

Use without installing

npx skills use dathere/qsv@bls-query

指定 Agent (Claude Code)

npx skills add dathere/qsv --skill bls-query -a claude-code -g -y

安装 repo 全部 skill

npx skills add dathere/qsv --all -g -y

预览 repo 内 skill

npx skills add dathere/qsv --list

SKILL.md

Frontmatter
{
    "name": "bls-query",
    "metadata": {
        "version": "1.0.0",
        "mcp-server": "bls"
    },
    "description": "Queries U.S. Bureau of Labor Statistics data using the BLS MCP server. Use when user asks about CPI, inflation, unemployment, employment, wages, jobs, labor statistics, producer prices, or any economic indicator tracked by BLS. Maps natural language to correct series IDs and tools. Copied from https:\/\/github.com\/larasrinath\/bls_mcp"
}

BLS Data Query

Instructions

When a user asks about U.S. economic/labor data, follow this workflow to resolve their query into the correct BLS series ID(s) and return accurate results.

Step 1: Identify the topic

Map the user's natural language to a BLS survey and series ID. Consult references/series-catalog.md for the full mapping of common topics to series IDs.

Common mappings:

  • "CPI", "inflation", "consumer prices" --> CU survey, series CUUR0000SA0 (not seasonally adjusted) or CUSR0000SA0 (seasonally adjusted)
  • "unemployment rate" --> LN survey, series LNS14000000
  • "jobs", "employment", "nonfarm payrolls" --> CE survey, series CES0000000001
  • "wages", "average hourly earnings" --> CE survey, series CES0500000003
  • "PPI", "producer prices" --> WP/PC survey
  • "JOLTS", "job openings" --> JT survey, series JTS000000000000000JOL

If the topic is ambiguous or you cannot confidently map it, use get_all_surveys to find the survey, then get_popular_series with the survey abbreviation to discover series IDs.

Step 2: Choose the right tool

User intent Tool When to use
Latest value / current number get_latest_series "What is the current...", "latest...", "most recent..."
Recent trend / time series get_single_series "Show me CPI for the last few years", "trend in..."
Compare multiple indicators get_multiple_series "Compare X and Y", multiple series needed
Explore what's available get_all_surveys then get_popular_series "What data do you have on...", discovery questions
Details about a survey get_survey "Tell me about the [survey name]"

Step 3: Interpret and present results

  • Always state the series ID used so the user can verify.
  • Include the period (month/year) and value clearly.
  • For CPI data, note whether it is seasonally adjusted or not.
  • If the user asks about percent change or inflation rate, calculate it from the data if the calculations field is not available (requires API key).
  • For unemployment, the value is already a percentage. For CPI, the value is an index number (base period 1982-84=100).

Step 4: Handle unknowns

If you cannot confidently identify the series ID:

  1. Call get_all_surveys to find the relevant survey abbreviation.
  2. Call get_popular_series with that survey abbreviation.
  3. Present the popular series to the user and ask which one they need.

Do NOT guess a series ID. An incorrect series ID will return wrong data silently.

Common Issues

Rate limit errors

If you see a rate limit error, inform the user they can set BLS_API_KEY for higher limits (500 queries/day vs 25).

Empty results

Some series are discontinued or seasonal. Try the non-seasonally-adjusted variant, or check the survey metadata with get_survey.

Series ID not found

Double-check the ID against references/series-catalog.md. BLS series IDs are case-sensitive and must be uppercase.

Version History

  • 2f6b659 Current 2026-08-20 16:15

Same Skill Collection

.claude/skills/build-dashboard/SKILL.md
.claude/skills/mcp-release-prep/SKILL.md
.claude/skills/release-prep/SKILL.md
.claude/skills/review-respond/SKILL.md
.claude/skills/skills/csv-query/SKILL.md
.claude/skills/skills/csv-wrangling/SKILL.md
.claude/skills/skills/data-clean/SKILL.md
.claude/skills/skills/data-convert/SKILL.md
.claude/skills/skills/data-describe/SKILL.md
.claude/skills/skills/data-join/SKILL.md
.claude/skills/skills/data-profile/SKILL.md
.claude/skills/skills/data-quality/SKILL.md
.claude/skills/skills/data-validate/SKILL.md
.claude/skills/skills/data-viz/SKILL.md
.claude/skills/skills/genai-disclaimer/SKILL.md
.claude/skills/skills/infer-ontology/SKILL.md
.claude/skills/skills/qsv-performance/SKILL.md
.claude/skills/skills/reproducible-analysis/SKILL.md
.claude/skills/visual-data-dictionary/SKILL.md

Metadata

Files
0
Version
7576e8f
Hash
3d4e2452
Indexed
2026-08-20 16:15

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-01 22:47
浙ICP备14020137号-1 $bản đồ khách truy cập$