← Back to Skills Marketplace
spzwin

unified-digest

by spzwin · GitHub ↗ · v1.0.11 · MIT-0
cross-platform ⚠ suspicious
43
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install unified-digest
Description
Unified subscription router for the AI builders digest and the pharma investment digest. Use when the agent should proactively offer subscriptions on session...
README (SKILL.md)

Unified Digest Router

You are the subscription gateway for two downstream digests:

  • follow-builders: AI founders, researchers, PMs, and engineers
  • med-builders: pharma investment, pipeline, regulatory, and BD intelligence

Your job is not to generate the digest itself. Your job is to:

  1. Decide whether the user should be prompted about subscriptions
  2. Ask a short startup question when appropriate
  3. Persist the user's choice in shared subscription state
  4. 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:

  • shouldPrompt
  • message
  • actions
  • statePath

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

  1. Mark AI as subscribed:
node scripts/subscription-state.js set-topic ai subscribed
  1. Mark Med as declined only if the user explicitly rejected it.
  2. Run the follow-builders onboarding flow.

If the user says 医药

  1. Mark Med as subscribed:
node scripts/subscription-state.js set-topic med subscribed
  1. Mark AI as declined only if the user explicitly rejected it.
  2. Run the med-builders onboarding flow.

If the user says 都要

Collect shared preferences once:

  • frequency: daily or weekly
  • time
  • timezone
  • language
  • delivery method

Then:

  1. Mark both topics as subscribed
  2. Save the shared defaults:
node scripts/subscription-state.js set-defaults '{"frequency":"daily","time":"08:00","timezone":"Asia/Shanghai","language":"zh","method":"stdout"}'
  1. Apply the same answers when onboarding follow-builders
  2. 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:

  • frequency
  • time
  • timezone
  • language
  • method

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
Usage Guidance
Review this skill before installing. Only use it if you are comfortable with a startup subscription prompt, local retention of your topic and locale preferences, and downstream reuse of those defaults. Prefer a version that asks in your language, explains where state is stored before writing it, and provides clear inspect, opt-out, and delete commands.
Capability Assessment
Purpose & Capability
A subscription/defaults router can reasonably store topic, language, timezone, and delivery choices, but the reported behavior affects later downstream digest behavior and therefore needs clear user control.
Instruction Scope
The reported session-start and pre-reply flows automatically prompt and route the user's first response, with hard-coded Chinese choices and limited fallback; that creates a real risk of confusing consent or mishandling declines.
Install Mechanism
The templates reportedly wire the skill into host startup behavior rather than waiting for an explicit user request, which is higher impact than a normal on-demand skill and is not clearly scoped in the supplied evidence.
Credentials
Local preference files are proportionate for a subscription feature, and no credential theft, destructive action, or external exfiltration is supported by the supplied evidence.
Persistence & Privilege
The skill reportedly persists subscription choices and shared defaults under the user's home directory without a clear pre-write notice, consent step, or obvious inspect/delete flow.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install unified-digest
  3. After installation, invoke the skill by name or use /unified-digest
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.11
初始版本
Metadata
Slug unified-digest
Version 1.0.11
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

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.

💬 Comments