← 返回 Skills 市场
ai-byte

daily-investment-digest

作者 iyiou · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
347
总下载
2
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install daily-investment-digest
功能描述
Fetch financing event lists from the iYiou skill API and generate a daily financing report in Markdown to stdout. Use when the task asks to pull investment/f...
使用说明 (SKILL.md)

Daily Investment Digest

Overview

  • Pull investment/financing events from https://api.iyiou.com/skill/info.
  • Normalize fields, deduplicate rows, and generate a structured Chinese daily report.

Workflow

  1. One-command full report (recommended, default uses yesterday).
node "{baseDir}/scripts/run_full_report.mjs" \
  --max-page 5
  1. If user explicitly asks for today's report, pass today's date.
node "{baseDir}/scripts/run_full_report.mjs" \
  --report-date 2026-03-11 \
  --max-page 5
  1. Direct output mode (stdout only, no file).
node "{baseDir}/scripts/fetch_events.mjs" \
  --report-date 2026-03-11 \
  --stdout-json | \
node "{baseDir}/scripts/generate_report.mjs" \
  --input-json - \
  --top-n 0 \
  --stdout

Path Safety

  • Always call scripts with quoted {baseDir} paths to avoid whitespace-path issues.
  • Scripts resolve relative input paths against the skill root directory.

Required API Rules

  • Use pageSize=10.
  • Start at page=1.
  • Increment page by 1 each request.
  • Stop when page>5 or API event list is empty.
  • Parse response strictly by schema: response.code -> response.data.posts.
  • Treat non-zero code as API failure.
  • Retry failed requests up to 3 times before skipping a page.

Script Interfaces

scripts/run_full_report.mjs

  • One-command pipeline: fetch + generate
  • Defaults to full output (top-n=0)
  • Supports --report-date, --max-page, --page-size, --timeout-seconds, --retry, --delay-seconds
  • Supports --top-n (0 means all events)

scripts/fetch_events.mjs

  • --page-size default 10
  • --max-page default 5
  • --report-date default yesterday (YYYY-MM-DD)
  • --timeout-seconds default 15
  • --retry default 3
  • --delay-seconds default 0
  • Always prints JSON to stdout (--stdout-json kept only for compatibility)
  • Numeric args are bounded for safety: page-size[1,100], max-page[1,500], retry[1,10]

scripts/generate_report.mjs

  • --input-json required
  • --top-n default 0 (0 means all events)
  • Always prints report text to stdout (--stdout kept only for compatibility)
  • Numeric args are bounded for safety: top-n[0,500]

Output Files

  • Disabled by design. This skill is stdout-only and does not write report artifacts to disk.

Data Mapping

  • Follow field_mapping.md for source-to-target mapping and fallback rules.
  • To reduce context size, the fetch output keeps only: brief, createdAt, originalLink, postTitle, tags.

Failure Handling

  • Continue on single-page failure after retries.
  • Use progressive retry backoff (0.5s, 1.0s, 1.5s, ...).
  • Record page-level errors in output JSON meta.errors.
  • Generate a report even when no events are found, and clearly mark it as an empty-day report.

Output Policy

  • Date policy: default to yesterday; only use today when the user explicitly asks for today.
  • If user asks full detail, run with --top-n 0.
  • Use script stdout as the main body and keep event entries unchanged.
  • Output order is mandatory:
  1. First output the full event list.
  2. Each event must include: 公司简称轮次投资方事件摘要来源链接.
  3. After the full event list, append one ending section titled 投资事件总结.
  • Do not output 投资事件总结 before event entries.

Quick Checks

  1. Run fetch step and confirm meta.total_unique_events > 0 on active days.
  2. Run report step and confirm stdout contains:
  • 核心数据概览
  • 融资事件按行业分类
  1. In final AI response, confirm order:
  • Event list appears first and each item includes 公司简称轮次投资方事件摘要来源链接.
  • 投资事件总结 appears only after the event list.
  • 投资事件总结 appears exactly once at the end.
  1. In final AI response, confirm it appends:
  • 投资事件总结

Example End-to-End Command

node "{baseDir}/scripts/run_full_report.mjs" \
  --report-date 2026-03-11 \
  --max-page 5
安全使用建议
What to consider before installing/running: - This skill expects Node (the scripts are run with `node`); the skill metadata does not list Node as a required binary — ensure you run it in a compatible Node 18+ environment. - The scripts only call the public iYiou API (https://api.iyiou.com/skill/info) and print reports to stdout; they do not write files or access other services or environment secrets. - agents/openai.yaml enables implicit invocation; if you want to avoid the agent calling this skill autonomously, disable allow_implicit_invocation or keep the skill available only for explicit use. - If you trust the iYiou endpoint and your environment's Node runtime, the bundle appears coherent and proportionate to its stated purpose. If you need higher assurance, review the full script sources locally (they are included) and confirm network policies for outbound requests to api.iyiou.com.
功能分析
Type: OpenClaw Skill Name: daily-investment-digest Version: 1.0.0 The skill bundle is a well-structured tool designed to fetch investment data from the iYiou API and generate formatted Markdown reports. The scripts (fetch_events.mjs, generate_report.mjs, and run_full_report.mjs) implement robust error handling, data normalization, and pagination logic without any external dependencies or suspicious system calls. There is no evidence of data exfiltration, unauthorized network activity, or malicious prompt injection instructions.
能力评估
Purpose & Capability
The skill name/description, SKILL.md, and included scripts all consistently implement fetching from https://api.iyiou.com/skill/info, normalizing and rendering reports. Minor inconsistency: the package metadata lists no required binaries, but the SKILL.md and scripts expect to be run with Node (the run commands call `node` and the scripts use ESM imports and global fetch). This is a small documentation/runtime mismatch but not an indication of malicious intent.
Instruction Scope
Runtime instructions and the scripts confine actions to: HTTP GET requests to the declared iYiou API, JSON parsing, in-memory normalization/deduplication, and printing Markdown to stdout (or reading normalized JSON from stdin/file). The SKILL.md explicitly disables writing artifacts to disk. The code does not access unrelated system files, environment variables, or external endpoints beyond the iYiou API.
Install Mechanism
There is no install spec (instruction-only install). The bundle includes scripts but does not download or extract external archives or install third-party packages at runtime. Risk is low, assuming you run the scripts in a trusted Node runtime.
Credentials
The skill declares no required environment variables or credentials and the code does not read secret-bearing environment variables. Network access is necessary to call the public iYiou endpoint; no unrelated credentials or sensitive config paths are requested.
Persistence & Privilege
The skill is not always-enabled and does not request elevated platform privileges. agents/openai.yaml sets allow_implicit_invocation: true (it permits the agent to invoke the skill implicitly), which is a normal configuration for useful skills but means the agent could call this skill autonomously when the prompt/system permits. This is not inherently malicious but is worth noting if you prefer only explicit invocation.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install daily-investment-digest
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /daily-investment-digest 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Daily Investment Digest 1.0.0 - Initial release of the daily-investment-digest skill. - Fetches investment/financing event lists from the iYiou API, paginated and deduplicated. - Generates a daily Markdown financing report printed to stdout, following strict output order and data mapping. - Defaults to yesterday’s events unless explicitly requested otherwise. - Robust error handling: retries, backoff, and page-level error reporting. - Does not write any files; all outputs are to stdout only.
元数据
Slug daily-investment-digest
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

daily-investment-digest 是什么?

Fetch financing event lists from the iYiou skill API and generate a daily financing report in Markdown to stdout. Use when the task asks to pull investment/f... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 347 次。

如何安装 daily-investment-digest?

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

daily-investment-digest 是免费的吗?

是的,daily-investment-digest 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

daily-investment-digest 支持哪些平台?

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

谁开发了 daily-investment-digest?

由 iyiou(@ai-byte)开发并维护,当前版本 v1.0.0。

💬 留言讨论