/install unified-digest
Unified Digest Router
You are the subscription gateway for two downstream digests:
follow-builders: AI founders, researchers, PMs, and engineersmed-builders: pharma investment, pipeline, regulatory, and BD intelligence
Your job is not to generate the digest itself. Your job is to:
- Decide whether the user should be prompted about subscriptions
- Ask a short startup question when appropriate
- Persist the user's choice in shared subscription state
- Route setup into the downstream skill(s)
State File
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:
shouldPromptmessageactionsstatePath
Startup Behavior
On 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.
Routing Rules
If the user says AI
- Mark AI as subscribed:
node scripts/subscription-state.js set-topic ai subscribed
- Mark Med as declined only if the user explicitly rejected it.
- Run the
follow-buildersonboarding flow.
If the user says 医药
- Mark Med as subscribed:
node scripts/subscription-state.js set-topic med subscribed
- Mark AI as declined only if the user explicitly rejected it.
- Run the
med-buildersonboarding flow.
If the user says 都要
Collect shared preferences once:
- frequency: daily or weekly
- time
- timezone
- language
- delivery method
Then:
- Mark both topics as subscribed
- Save the shared defaults:
node scripts/subscription-state.js set-defaults '{"frequency":"daily","time":"08:00","timezone":"Asia/Shanghai","language":"zh","method":"stdout"}'
- Apply the same answers when onboarding
follow-builders - Apply the same answers when onboarding
med-builders
If the user says 暂不
Snooze the prompt for 7 days:
node scripts/subscription-state.js snooze 7
Do not mark either topic as declined.
If the user says 不再提示
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.
Shared Defaults
The shared state stores defaults for:
frequencytimetimezonelanguagemethod
When a user subscribes to both digests, prefer collecting these once and reusing them across both downstream skills.
Reading Current Subscription Status
If the user asks:
- "What am I subscribed to?"
- "Show my digest subscriptions"
- "Pause medical updates"
- "Turn AI digest back on"
Use:
node scripts/subscription-state.js show
Then update the relevant topic state with set-topic.
Important Rules
- Keep the startup prompt short. Do not dump onboarding details before the user opts in.
- Do not ask again if the state says not to ask.
- Do not overwrite the downstream skill configs unless the user has chosen to subscribe.
- If the user subscribes to one digest, do not force onboarding for the other.
- The unified state is only the subscription router. The actual digest configs still live in:
~/.follow-builders/config.json~/.med-builders/config.json
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install unified-digest - After installation, invoke the skill by name or use
/unified-digest - Provide required inputs per the skill's parameter spec and get structured output
What is unified-digest?
Unified subscription router for the AI builders digest and the pharma investment digest. Use when the agent should proactively offer subscriptions on session... It is an AI Agent Skill for Claude Code / OpenClaw, with 43 downloads so far.
How do I install unified-digest?
Run "/install unified-digest" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is unified-digest free?
Yes, unified-digest is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does unified-digest support?
unified-digest is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created unified-digest?
It is built and maintained by spzwin (@spzwin); the current version is v1.0.11.