← 返回 Skills 市场
oscraters

EODHD CLI

作者 oscraters · GitHub ↗ · v1.0.1
cross-platform ⚠ suspicious
339
总下载
0
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install eodhd
功能描述
Plan, build, review, or extend a stateless Bash CLI wrapper for the publicly documented EODHD API, intended for OpenClaw agents and Clawhub.ai distribution....
使用说明 (SKILL.md)

EODHD

Overview

Build the wrapper as a small, stateless Bash CLI that translates stable subcommands into EODHD HTTPS requests and emits machine-friendly output. Keep secrets outside the repo and outside the CLI's own persistence model by aligning auth to OpenClaw-managed environment injection.

Workflow

  1. Confirm the task shape.

  2. Hold the contract steady.

    • Prefer eodhd as the binary name.
    • Default to JSON on stdout and diagnostics on stderr.
    • Exit non-zero on HTTP, auth, or argument errors.
    • Do not create config files, caches, token stores, or hidden state.
  3. Keep auth OpenClaw-native.

    • Expect EODHD_API_KEY to be injected by OpenClaw.
    • Allow a one-shot explicit override like --api-key only if the user asks for it or the implementation already exposes it.
    • Do not read plaintext secrets from repo files, sample configs, shell history helpers, or generated artifacts.
    • Keep the publish metadata aligned with that contract by declaring EODHD_API_KEY as the primary required credential.
  4. Enforce redaction and logging hygiene.

    • Never print the raw API key to stdout or stderr.
    • Redact secrets in debug output, dry-run output, request traces, and test snapshots.
    • Avoid set -x unless xtrace output is redirected through a sanitizer.
    • Treat query strings, headers, and copied curl commands as sensitive if they can contain api_token.
  5. Prefer a narrow, agent-friendly surface.

    • Start with stable commands such as eod, fundamentals, real-time, search, exchanges, and raw.
    • Add generic --query key=value support before adding many bespoke flags.
    • Use a raw escape hatch for unsupported endpoints instead of blocking new EODHD API coverage.
  6. Preserve public-distribution constraints.

    • Assume the repo is public.
    • Use only public EODHD docs and public sample symbols in examples.
    • Avoid local-machine assumptions, personal data, or environment-specific artifacts.
    • Verify the release bundle contains scripts/eodhd and the metadata that declares it.

Implementation Rules

  • Keep the CLI dependency-light: Bash plus curl as the baseline.
  • Use deterministic argument parsing and stable exit codes.
  • Separate URL construction, request execution, error translation, and output handling into small shell functions.
  • Make debug behavior opt-in with --verbose or --dry-run.
  • If tests are added, prefer smoke tests around URL generation, argument validation, and redaction.

Deliverables

  • scripts/eodhd for the CLI entrypoint when implementation starts
  • scripts/check-package.sh for package and manifest consistency checks
  • references/implementation-plan.md for milestones and acceptance criteria
  • references/openclaw-secrets.md for secret and logging constraints
  • agents/openai.yaml for Clawhub/OpenAI-facing metadata

Validation

  • Check that examples never expose a real token.
  • Check that debug or dry-run output replaces token values with a fixed mask such as ***REDACTED***.
  • Check that auth failure, HTTP failure, and usage failure produce distinct exit codes or clearly distinct stderr messages.
  • Check that the manifest declares EODHD_API_KEY and includes scripts/eodhd in the packaged files.
  • Check that the repo contains no .env, token snapshots, or generated local artifacts.
安全使用建议
Do not install or publish this skill as-is. Key issues to resolve before trusting it: 1) scripts/eodhd (the claimed CLI entrypoint) is referenced throughout the docs and manifest but is missing from the provided file set — request or inspect that file and review its code for networking, endpoints, and any data exfiltration. 2) Fix metadata mismatches: ensure the registry/packaging metadata declares EODHD_API_KEY as a required credential and lists bash/curl as runtime dependencies so deployers know the true runtime contract. 3) Run ./scripts/check-package.sh and ./scripts/test-smoke.sh locally after adding scripts/eodhd; the check script will fail while the entrypoint is missing. 4) Verify the implementation follows the documented redaction rules (dry-run masks, no raw token in logs) and that no hidden endpoints or unexpected environment reads are present. If the owner provides the missing entrypoint and aligns the manifest with the docs, re-evaluate — the current issues look like sloppy packaging rather than intentional malice, but they must be fixed before installation.
功能分析
Type: OpenClaw Skill Name: eodhd Version: 1.0.1 The skill bundle is designed with a strong emphasis on security and preventing data leakage. All documentation (SKILL.md, README.md, references/*.md) consistently instructs the AI agent to follow secure practices, redact API keys from all outputs, and avoid storing secrets. The `scripts/check-package.sh` and `scripts/test-smoke.sh` actively validate these security requirements, ensuring no local secret files are present and that API keys are redacted in dry-run and verbose outputs. There is no evidence of malicious intent, data exfiltration, unauthorized execution, or prompt injection designed to subvert the agent for harmful purposes; instead, the instructions explicitly guide the agent towards secure and responsible behavior.
能力评估
Purpose & Capability
The SKILL.md, README, agents/openai.yaml, and reference docs consistently describe a Bash+curl CLI that requires EODHD_API_KEY and provides scripts/eodhd as the entrypoint. However the registry-level 'Requirements' summary at the top of the package metadata lists no required env vars and no required binaries, and the actual package file list in this submission does not include the referenced scripts/eodhd file. Requiring an API key and bash/curl is appropriate for the stated purpose, but the mismatch between declared requirements and the provided files is a coherence problem.
Instruction Scope
The SKILL.md instructions are narrowly scoped to building a stateless Bash CLI: they describe auth handling, redaction, exit codes, command surface, and tests. They do not instruct the agent to read unrelated system files or exfiltrate data. The instructions explicitly forbid printing secrets and storing persistent state.
Install Mechanism
This is an instruction-only skill with no install spec, which is low-risk. The included scripts are simple shell smoke/test/check scripts. There is no download/install mechanism that would fetch arbitrary remote code.
Credentials
The skill's docs and agents/openai.yaml declare EODHD_API_KEY as the primary required credential (and recommend OpenClaw injection). However the top-level registry 'Requirements' reported with the skill says no required env and no primary credential. This discrepancy is significant: the runtime contract (requires EODHD_API_KEY) is appropriate, but the published metadata failing to list it is incoherent and could lead to misconfiguration or surprising behavior if installed as-is.
Persistence & Privilege
The skill does not request persistent presence (always: false) and the SKILL.md explicitly requires stateless behavior (no config, caches, or token stores). There is no evidence the skill attempts to modify other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install eodhd
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /eodhd 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Added scripts/check-package.sh for package and manifest consistency checks. - Updated SKILL.md to reference scripts/check-package.sh as a deliverable. - Clarified that metadata must declare EODHD_API_KEY as the primary required credential. - Improved validation steps to check that packaged files and declared credentials are included in the manifest.
v1.0.0
Initial release of the eodhd skill for OpenClaw agents. - Provides a framework and guidelines to build a stateless Bash CLI wrapper around the public EODHD API. - Enforces OpenClaw secrets management: API keys are passed via injected environment variables and never logged or written to disk. - Defines command structure, error handling, redaction rules, packaging, and validation requirements for public distribution. - Sets best practices for argument parsing, URL construction, diagnostics, and secure debug output. - Specifies starting subcommands, output/defaults, and constraints for open source, agent-centric integration.
元数据
Slug eodhd
版本 1.0.1
许可证
累计安装 1
当前安装数 1
历史版本数 2
常见问题

EODHD CLI 是什么?

Plan, build, review, or extend a stateless Bash CLI wrapper for the publicly documented EODHD API, intended for OpenClaw agents and Clawhub.ai distribution.... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 339 次。

如何安装 EODHD CLI?

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

EODHD CLI 是免费的吗?

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

EODHD CLI 支持哪些平台?

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

谁开发了 EODHD CLI?

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

💬 留言讨论