aim-data-parsing-domain

Consume Kafka media upload events and publish parsed metadata with thumbnails.

4|Updated May 17, 2026
One-click install
npx skills add https://github.com/hellopoisonx/aim --skill aim-data-parsing-domain
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aim-data-parsing-domain
Source: https://github.com/hellopoisonx/aim/tree/main/skills/aim-data-parsing-domain
Command: npx skills add https://github.com/hellopoisonx/aim --skill aim-data-parsing-domain

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates backend parsing of media attachment uploads so that thumbnails, derived objects, parse status, and parse-result events are generated without burdening client-facing services.

Core Features & Use Cases

  • Kafka-driven media parsing pipeline: Consumes aim.attachment.uploaded and processes only image/video/audio uploads, skipping non-media file events while keeping parse_status correct.
  • Metadata extraction and derived object generation: Extracts media metadata, writes attachment_objects thumbnail/derived records, and updates attachment_parse_results.
  • Event publishing with ordering and trace propagation: Propagates Kafka trace context across parsing and publishes aim.attachment.parsed with ordering by file_id.

Quick Start

Ask your AI to describe how aim-data-parsing-domain consumes aim.attachment.uploaded, parses supported media types, updates PostgreSQL/SeaweedFS outputs, and emits aim.attachment.parsed with trace continuity.

Frequently Asked Questions about aim-data-parsing-domain

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

FAQPage Schema
How do I parse media uploads from Kafka and generate thumbnails without burdening client-facing services?

Media upload parsing from Kafka is handled by consuming `aim.attachment.uploaded` events to extract metadata, generate thumbnails, and emit `aim.attachment.parsed` events without burdening client-facing services. This ensures non-media `file` events are skipped while keeping `parse_status` correct.

What is the best way to extract attachment metadata and write derived objects to SeaweedFS?

The best way to extract attachment metadata and write derived objects to SeaweedFS is through a context-aware backend worker that reads from SeaweedFS/S3, generates thumbnails, and writes `attachment_objects` records. Derived object keys are kept idempotent to prevent duplicate processing.

Does this media parsing pipeline support audio and video files, or is it limited to images?

This media parsing pipeline supports audio, video, and image file uploads. It explicitly skips non-media `file` events to ensure only supported media types are processed, keeping the `parse_status` accurate for unsupported attachments.

How does Kafka trace propagation work when processing media attachment uploads?

Kafka trace propagation works by passing the trace context across the media parsing pipeline and publishing the `aim.attachment.parsed` event with ordering keyed by `file_id`. This maintains trace continuity from the upload event through to the final parse status update.

Why does my Kafka media parsing worker drop non-media file events during processing?

Your Kafka media parsing worker drops non-media file events because the pipeline explicitly skips non-media `file` events to focus on image, video, and audio uploads. This design prevents unnecessary processing while maintaining the correct `parse_status` for skipped files.

Can I use a grpc-less worker to process Kafka attachment uploads and update PostgreSQL records?

Yes, you can use a grpc-less worker to process Kafka attachment uploads and update PostgreSQL records. The worker consumes `aim.attachment.uploaded`, parses media metadata, updates `attachment_parse_results`, and publishes ordered events without requiring client-facing interface responsibilities.