agent-signal

Convert producer events into semantic signals and executable actions for LobeChat agents.

1|Updated May 9, 2026
One-click install
npx skills add https://github.com/duwenji/generative-ai-oss-tutorials --skill agent-signal-duwenji
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-signal
Source: https://github.com/duwenji/generative-ai-oss-tutorials/tree/main/sandbox/lobe-chat/.agents/skills/agent-signal
Command: npx skills add https://github.com/duwenji/generative-ai-oss-tutorials --skill agent-signal-duwenji

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill solves the problem of adding new event-driven “background” workflows for LobeChat agents without blocking the foreground chat request flow.

Core Features & Use Cases

  • Event → Signal → Action pipeline: Convert producer events into semantic signals and then into concrete side-effect actions.
  • Policies as installable handler bundles: Register source handlers, signal handlers, and action handlers as a cohesive feature.
  • Quiet background execution: Emit or enqueue agent signal source events to run out-of-band with scope and dedupe controls, including observability via OTEL.
  • Use case: When a user message arrives, interpret it into intent/feedback signals and schedule memory updates via action handlers while keeping the chat response fast.

Quick Start

Add your new Agent Signal source or handler by first reading references/architecture.md and references/handlers.md, then implement the appropriate source/signal/action handlers under src/server/services/agentSignal/** and register the new policy in the policy factory.

Frequently Asked Questions about agent-signal

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run event-driven background workflows without blocking the main chat request?

Event-driven background workflows run out-of-band by transforming producer source events into semantic signals and executable actions, keeping the foreground chat response fast while processing side-effects quietly.

How do I add a new agent signal source handler in LobeChat?

To add a new agent signal source, read the architecture and handler references, implement the appropriate source, signal, and action handlers under the agentSignal directory, and register the new policy in the policy factory.

What is the event to signal to action pipeline for background processing?

The event to signal to action pipeline converts producer source events into semantic signals, which are then routed into concrete side-effect actions via registered handler contracts for quiet background execution.

How do I enforce dedupe and scope key behavior for queued agent signals?

Dedupe and scope key behavior are enforced within the signal routing logic by applying specific controls when emitting or enqueueing agent signal source events for out-of-band execution.

Does background agent signal processing support observability and tracing?

Background agent signal processing supports observability by integrating projector and tracing modules through OpenTelemetry (OTEL) to monitor the queued or quiet execution paths.

Can I bundle source, signal, and action handlers as a single installable policy?

Source handlers, signal handlers, and action handlers can be bundled and registered as a cohesive installable policy feature using defineSourceHandler, defineSignalHandler, and defineActionHandler routing contracts.