← 返回 Skills 市场
kiszly

FRED-Navigator

作者 kiszly · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
748
总下载
2
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install fred-navigator
功能描述
Navigate FRED categories and series using fredapi, supporting natural-language queries with intent recognition and double validation.
使用说明 (SKILL.md)

FRED Navigator

Purpose

Provide a reliable workflow to navigate FRED categories and series, with support for:

  1. Direct category_id
  2. Direct series_id
  3. Natural-language query → intent recognition → double validation

Inputs

  • category_id: FRED category id
  • series_id: FRED series id
  • query: natural language request
  • limit: number of candidates to return (default 5)
  • api_key: read from environment FRED_API_KEY only

Required Resources

  • references/fred_categories_tree.json
  • references/fred_categories_flat.json
  • Optional: references/category_paths.json (precomputed)
  • Optional: references/synonyms.json
  • Helper script: scripts/fred_query.py
  • Path builder: scripts/build_paths.py

Optional Resource Structure Notes

  • references/category_paths.json format:
    • { "category_id": { "id": \x3Cint>, "name": "\x3Cstr>", "path": "\x3Cstr>" }, ... }
  • references/synonyms.json format:
    • { "concept": ["alias1", "alias2", ...], ... }

Workflow

1. Category Exploration

  1. Load fred_categories_tree.json for hierarchical browsing.
  2. If user provides category_id, validate it exists.
  3. If user provides category_name, fuzzy match against flat names and return candidates.

2. Series Discovery

  1. Use search_by_category(category_id) to list available series.
  2. Prefer scripts/fred_query.py category \x3Cid> for consistent output.
  3. Return key columns:
    • id, title, frequency, units, seasonal_adjustment, last_updated.

3. Series Retrieval

  1. Use get_series(series_id) for time series.
  2. Use get_series_info(series_id) for metadata.
  3. Prefer scripts/fred_query.py series \x3Cid> and scripts/fred_query.py series-info \x3Cid>.
  4. Provide:
    • data head/tail
    • missing counts
    • latest value and date

4. Natural Language Query

4.1 Intent Identification (Top-K)

  1. Use the IDE agent (Codex) to interpret the natural-language intent.
  2. Select the single best-matching category.
  3. If confidence is low, ask the user to confirm the category before proceeding.
  4. Use references/category_paths.json and references/synonyms.json as supporting context if available.

4.2 Double Validation

Structural validation

  • Candidate must exist in fred_categories_tree.json.
  • Pass if at least one:
    • children non-empty
    • search_by_category(id) returns >= 1 series
    • Prefer scripts/fred_query.py check-category \x3Cid> for a quick check

Semantic validation (agent)

  • Compare query with candidate name/path.
  • Return pass/fail or numeric relevance score.

4.3 Decision

  • If structural + semantic validation both pass → accept category.
  • Otherwise:
    • return Top-5 candidates
    • ask user to choose one explicitly

Failure Handling

  • Always provide Top-5 candidates when uncertain.
  • Never proceed to series retrieval if category validation fails.

Notes

  • Do not hardcode API keys.
  • Keep heavy reference data in references/, not in this file.
  • When running Python functions for querying, execute them inside the sandbox environment.

Maintenance

  • Update workflow or constraints: edit SKILL.md.
  • Update category data: replace files in references/.
  • Improve natural-language matching: add or edit references/synonyms.json (key → list of related terms).
  • Regenerate precomputed paths (optional): run scripts/build_paths.py.
  • Add helper scripts (optional): place in scripts/ and document usage here.
安全使用建议
This package appears to implement exactly what it claims (FRED category/series navigation using fredapi) and contains only local helper scripts and reference JSON data. Before installing: (1) Note the runtime requires a FRED API key via the environment variable FRED_API_KEY — the registry metadata does not declare this, so you must supply it manually; (2) Review the large reference JSON files if you care about disk usage or data provenance; (3) The scripts will make network calls to FRED via fredapi (the official FRED API), so only provide an API key you trust and keep it secret; (4) Run the code in a sandboxed environment as suggested (it will abort if FRED_API_KEY is missing); and (5) If you plan to install widely, ask the publisher or registry to update the metadata to declare FRED_API_KEY so the requirement isn't silently omitted. If you want me to, I can extract the exact places the code reads environment variables and list the network endpoints it will call.
功能分析
Type: OpenClaw Skill Name: fred-navigator Version: 1.0.0 The skill instructs the AI agent to execute local Python scripts (`scripts/fred_query.py`) with user-provided inputs (e.g., `category_id`, `series_id`) as outlined in `SKILL.md`. This creates a significant shell injection vulnerability if the agent constructs and executes these commands directly via a shell without proper sanitization, potentially allowing arbitrary code execution. While the Python script itself uses `argparse` for input, the agent's method of execution is the critical point of risk. Additionally, `scripts/fred_query.py` modifies the default SSL context, which is a minor flag.
能力评估
Purpose & Capability
Name/description, Python deps (fredapi, pandas), helper scripts, and large reference JSON files all align with a FRED category/series navigation skill. The included scripts implement category listing, series retrieval, path-building and checks that are coherent with the stated purpose.
Instruction Scope
SKILL.md instructs the agent to read local reference files and run helper scripts (scripts/fred_query.py, scripts/build_paths.py) and to use the IDE agent for intent recognition. Those instructions stay within the stated FRED navigation scope. However SKILL.md requires reading FRED_API_KEY from the environment and instructs running Python helpers in a sandbox; the runtime scripts also abort if FRED_API_KEY is missing — this requirement is not reflected in the registry metadata.
Install Mechanism
There is no install spec (instruction-only install). The repo includes requirements.txt listing known Python packages (fredapi, pandas) and only local code and large reference JSON files. No external download URLs or archive extraction are used by the skill bundle itself.
Credentials
The runtime explicitly requires a FRED API key via the environment variable FRED_API_KEY (scripts/fred_query.py calls os.getenv and exits if missing), which is appropriate and proportional to the skill. The problem is that the registry metadata lists no required env vars — this mismatch is an incoherence that could mislead users into installing without supplying required credentials or expecting different behavior.
Persistence & Privilege
The skill does not request always:true, does not modify other skills, and contains no install-time persistence mechanism. Autonomous invocation is allowed (default) but not combined with any unusually broad privileges in this package.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install fred-navigator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /fred-navigator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of fred-navigator. - Enables navigation of FRED categories and series using direct IDs or natural-language queries. - Implements intent recognition and double validation for reliable category selection. - Returns Top-5 candidates when query confidence is low or validation fails. - Provides structured workflow for series lookup and metadata retrieval. - Requires external references and scripts for data lookup and path building; does not hardcode API keys.
元数据
Slug fred-navigator
版本 1.0.0
许可证
累计安装 2
当前安装数 2
历史版本数 1
常见问题

FRED-Navigator 是什么?

Navigate FRED categories and series using fredapi, supporting natural-language queries with intent recognition and double validation. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 748 次。

如何安装 FRED-Navigator?

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

FRED-Navigator 是免费的吗?

是的,FRED-Navigator 完全免费(开源免费),可自由下载、安装和使用。

FRED-Navigator 支持哪些平台?

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

谁开发了 FRED-Navigator?

由 kiszly(@kiszly)开发并维护,当前版本 v1.0.0。

💬 留言讨论