Subscriptions

SkillCommunication

Work on the HFS FHIR Subscriptions engine. Use for topic-based Subscriptions, channels (rest-hook/websocket/email/messaging), SubscriptionTopic matching, notification delivery, retry, and subscription configuration.

Use Subscriptions in Claude, ChatGPT or Ahel Desktop

Free. Sign in, add Subscriptions and connect your AI. About a minute.

Also: Claude Code · Cursor · Codex

Then ask your AI: use the Subscriptions skill

Details

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

SubscriptionsStart free

What this skill tells your AI

The instructions your AI receives, as published by heliossoftware/hfs in .agents/skills/work-with-subscriptions/SKILL.md and read by ahel’s review.

Use this when working in helios-subscriptions, the FHIR topic-based Subscriptions engine. It is consumed by helios-rest and helios-hfs. The engine evaluates resource events against SubscriptionTopic criteria and delivers notifications over channels.

Behavior

  • Enable with HFS_SUBSCRIPTIONS_ENABLED=true.
  • Channels: rest-hook (HTTP callback), websocket, email, and messaging.
  • The messaging channel is separately gated by HFS_SUBSCRIPTION_MESSAGING_ENABLED.
  • Endpoint safety: rest-hook delivery to private/loopback endpoints is blocked unless HFS_SUBSCRIPTION_ALLOW_PRIVATE_ENDPOINTS=true.
  • Notification bundles follow the topic-based subscription spec; delivery failures retry with backoff (engine/retry.rs).
  • WebSocket subscriptions use binding tokens (ws_token) managed per connection (ws_manager).

Channels (crates/subscriptions/src/channels/)

rest_hook, websocket (+ ws_manager, ws_token), email, messaging.

Environment

VariableDescription
HFS_SUBSCRIPTIONS_ENABLEDMaster switch for the subscriptions engine
HFS_SUBSCRIPTION_MESSAGING_ENABLEDEnable the messaging channel
HFS_SUBSCRIPTION_ALLOW_PRIVATE_ENDPOINTSAllow rest-hook delivery to private/loopback URLs (opt-in)
HFS_BASE_URLBase URL used in notification links

Exact defaults are read in crates/rest/src/lib.rs and crates/subscriptions/src/config.rs.

Key API

SubscriptionEngine, SubscriptionConfig / MessagingSettings, ResourceEvent / ResourceEventType, WebSocketManager, WsBindingTokenManager, MessagingChannel, SubscriptionError.

Code map / tests

engine/ (+ retry), evaluator/ (filter_match), manager/ (filters, status), notification/ (builder, messaging), topics/, channels/, event.rs, config.rs. CI: .github/workflows/inferno-subscription.yml, subscriptions-channels.yml, subscriptions-smoke.yml. Unit tests inline in src/; integration tests under crates/subscriptions/tests/ where present.

Signals

GitHub stars
53
Forks
21
Last commit
Oct 2026
Advanced
Item type
skill
Key
work-with-subscriptions
Source
github.com/heliossoftware/hfs