Back to Registry
View Author Profile
Official Verified
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.
skill-install — Terminal
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/ai-byte/daily-investment-digestOr
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
{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
pageby 1 each request. - Stop when
page>5or API event list is empty. - Parse response strictly by schema:
response.code->response.data.posts. - Treat non-zero
codeas 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(0means all events)
scripts/fetch_events.mjs
--page-sizedefault10--max-pagedefault5--report-datedefault yesterday (YYYY-MM-DD)--timeout-secondsdefault15--retrydefault3--delay-secondsdefault0- Always prints JSON to stdout (
--stdout-jsonkept 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-jsonrequired--top-ndefault0(0means all events)- Always prints report text to stdout (
--stdoutkept 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
Metadata
AI Skill Finder
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skill Add to Configuration
Paste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-ai-byte-daily-investment-digest": {
"enabled": true,
"auto_update": true
}
}
}Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.