🦀 ClawHub
daily-investment-digest
by @ai-byte
Fetch financing event lists from the iYiou skill API and generate daily or recent-N-days financing reports in Markdown to stdout. Use when the task asks to p...
TERMINAL
clawhub install daily-investment-digest📖 About This Skill
name: daily-investment-digest description: 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.
Daily Investment Digest
Overview
https://api.iyiou.com/skill/info.Workflow
1. One-command full report (recommended, default uses yesterday).
node "{baseDir}/scripts/run_full_report.mjs" \
--max-page 5
2. 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
3. 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
{baseDir} paths to avoid whitespace-path issues.Required API Rules
pageSize=10.page=1.page by 1 each request.page>5 or API event list is empty.response.code -> response.data.posts.code as API failure.Script Interfaces
scripts/run_full_report.mjs
top-n=0)--report-date, --max-page, --page-size, --timeout-seconds, --retry, --delay-seconds--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--stdout-json kept only for compatibility)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)--stdout kept only for compatibility)top-n[0,500]Output Files
Data Mapping
brief, createdAt, originalLink, postTitle, tags.Failure Handling
0.5s, 1.0s, 1.5s, ...).meta.errors.Output Policy
--top-n 0.公司简称、轮次、投资方、事件摘要、来源链接.
3. After the full event list, append one ending section titled 投资事件总结.
投资事件总结 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:
核心数据概览融资事件按行业分类公司简称、轮次、投资方、事件摘要、来源链接.投资事件总结 appears only after the event list.投资事件总结 appears exactly once at the end.投资事件总结Example End-to-End Command
node "{baseDir}/scripts/run_full_report.mjs" \
--report-date 2026-03-11 \
--max-page 5