producer

Generate synthetic transaction streams with phase transitions for Kafka-based fraud detection.

Updated Mar 3, 2026
One-click install
npx skills add https://github.com/GaneshMadarasu/real-time-anomaly-detection-pipeline --skill producer-ganeshmadarasu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: producer
Source: https://github.com/GaneshMadarasu/real-time-anomaly-detection-pipeline/tree/main/.claude/skills/producer
Command: npx skills add https://github.com/GaneshMadarasu/real-time-anomaly-detection-pipeline --skill producer-ganeshmadarasu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you understand and work with the producer service that generates realistic financial transaction events for a real-time anomaly detection pipeline, including controlled normal, drift, and attack behavior.

Core Features & Use Cases

  • Synthetic Event Generation: Creates streaming transaction data with configurable phase-based distributions and per-user state.
  • Anomaly Labeling: Applies rule-based ground-truth labels to support drift detection and model evaluation.
  • Kafka Integration: Produces to raw-transactions, publishes phase transitions, and manages startup topic creation with retry handling.
  • Operational Visibility: Tracks throughput and behavior with Prometheus metrics and health endpoints.
  • Use Case: Use this Skill when you need to modify, document, or debug the producer service in anomaly-detection/services/producer/main.py, especially around phase cycling, label rules, or Kafka reliability.

Quick Start

Use the producer skill to explain or update the synthetic transaction generator in anomaly-detection/services/producer/main.py.

Frequently Asked Questions about producer

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

FAQPage Schema
How do I generate synthetic transaction streams for Kafka-based fraud detection?

Generate synthetic transaction streams for Kafka-based fraud detection by producing configurable phase-based distributions with per-user behavioral state to the raw-transactions topic. The producer applies deterministic event generation and anomaly label rules for model evaluation.

How does drift simulation work in real-time anomaly detection pipelines?

Drift simulation in anomaly detection pipelines works by cycling through controlled normal, drift, and attack phases with phase-transition signaling. This allows you to test model robustness against shifting transaction distributions and apply ground-truth anomaly labels.

How do I publish synthetic Kafka events with retry-safe topic initialization?

Publish synthetic Kafka events with retry-safe topic initialization by managing startup topic creation with built-in retry handling. The producer ensures reliable event generation to raw-transactions while tracking throughput via Prometheus metrics and health endpoints.

Can I apply rule-based anomaly labels to synthetic financial transaction data?

Apply rule-based anomaly labels to synthetic financial transaction data to support drift detection and model evaluation. The producer generates ground-truth labels alongside controlled normal, drift, and attack behaviors for streaming anomaly detection systems.

What is the best way to monitor synthetic transaction throughput in a fraud detection pipeline?

Monitor synthetic transaction throughput in a fraud detection pipeline using integrated Prometheus metrics and health endpoints. The producer provides operational visibility to track event generation rates and behavior phases across the streaming pipeline.

Why does my Kafka producer fail to initialize topics for anomaly detection streams?

Kafka producers fail to initialize topics for anomaly detection streams when topic creation lacks retry handling. The producer service manages startup topic creation with retry-safe publishing to ensure raw-transactions and phase-transition topics are established reliably.