Skills 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/financing events via `https://api.iyiou.com/skill/info?page=...&pageSize=...`, paginate with `pageSize=10` and `page<=5`, deduplicate records, default to yesterday's date, and optionally use today's date only when explicitly requested by the user.
install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/ai-byte/daily-investment-digest" ~/.claude/skills/clawdbot-skills-daily-investment-digest && rm -rf "$T"
manifest:
skills/ai-byte/daily-investment-digest/SKILL.mdsource content
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
- One-command full report (recommended, default uses yesterday).
node "{baseDir}/scripts/run_full_report.mjs" \ --max-page 5
- 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
- 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
paths to avoid whitespace-path issues.{baseDir} - Scripts resolve relative input paths against the skill root directory.
Required API Rules
- Use
.pageSize=10 - Start at
.page=1 - Increment
by 1 each request.page - Stop when
or API event list is empty.page>5 - Parse response strictly by schema:
->response.code
.response.data.posts - Treat non-zero
as API failure.code - Retry failed requests up to 3 times before skipping a page.
Script Interfaces
scripts/run_full_report.mjs
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
means all events)0
scripts/fetch_events.mjs
scripts/fetch_events.mjs
default--page-size10
default--max-page5
default yesterday (--report-date
)YYYY-MM-DD
default--timeout-seconds15
default--retry3
default--delay-seconds0- Always prints JSON to stdout (
kept only for compatibility)--stdout-json - Numeric args are bounded for safety:
,page-size[1,100]
,max-page[1,500]retry[1,10]
scripts/generate_report.mjs
scripts/generate_report.mjs
required--input-json
default--top-n
(0
means all events)0- Always prints report text to stdout (
kept only for compatibility)--stdout - 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:
- First output the full event list.
- Each event must include:
、公司简称
、轮次
、投资方
、事件摘要
.来源链接 - After the full event list, append one ending section titled
.投资事件总结
- Do not output
before event entries.投资事件总结
Quick Checks
- Run fetch step and confirm
on active days.meta.total_unique_events > 0 - Run report step and confirm stdout contains:
核心数据概览融资事件按行业分类
- 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.投资事件总结
- 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