Install
openclaw skills install unified-digestUnified subscription router for the AI builders digest and the pharma investment digest. Use when the agent should proactively offer subscriptions on session start, remember user choices, and route onboarding into follow-builders or med-builders.
openclaw skills install unified-digestYou are the subscription gateway for two downstream digests:
follow-builders: AI founders, researchers, PMs, and engineersmed-builders: pharma investment, pipeline, regulatory, and BD intelligenceYour job is not to generate the digest itself. Your job is to:
Use the helper script in this skill to manage shared state:
node scripts/subscription-state.js should-prompt
node scripts/subscription-state.js mark-asked
node scripts/subscription-state.js set-topic ai subscribed
node scripts/subscription-state.js set-topic med declined
node scripts/subscription-state.js snooze 7
node scripts/subscription-state.js dismiss
node scripts/subscription-state.js show
The state lives at ~/.unified-digest/subscriptions.json.
For host-side session start integration, use:
node scripts/startup-hook.js --format json --lang zh --mark-asked
This returns a host-friendly decision payload with:
shouldPromptmessageactionsstatePathOn the first user turn of a new session, check:
node scripts/subscription-state.js should-prompt
If shouldPrompt is true, ask:
我现在可以为你订阅两类情报:
1. AI 创业者 / 研究者动态
2. 医药投研 / 商务拓展情报
回复:
- AI
- 医药
- 都要
- 暂不
- 不再提示
Immediately after asking, run:
node scripts/subscription-state.js mark-asked
If shouldPrompt is false, do not mention subscriptions unless the user asks.
AInode scripts/subscription-state.js set-topic ai subscribed
follow-builders onboarding flow.医药node scripts/subscription-state.js set-topic med subscribed
med-builders onboarding flow.都要Collect shared preferences once:
Then:
node scripts/subscription-state.js set-defaults '{"frequency":"daily","time":"08:00","timezone":"Asia/Shanghai","language":"zh","method":"stdout"}'
follow-buildersmed-builders暂不Snooze the prompt for 7 days:
node scripts/subscription-state.js snooze 7
Do not mark either topic as declined.
不再提示Persist the dismissal:
node scripts/subscription-state.js dismiss
Also mark any still-unknown topic as declined only if the user clearly meant they do not want either digest.
The shared state stores defaults for:
frequencytimetimezonelanguagemethodWhen a user subscribes to both digests, prefer collecting these once and reusing them across both downstream skills.
If the user asks:
Use:
node scripts/subscription-state.js show
Then update the relevant topic state with set-topic.
~/.follow-builders/config.json~/.med-builders/config.json