Skip to content
Back to skills

Duplicate Event Merge

ASecurity

Merge duplicate video event candidates from the same camera, event type, ROI, related tracks, or overlapping time window. Use after event-rule-engine and before evidence generation or external output when Codex has a list of Event Candidate records and needs canonical events plus duplicate mappings.

  • 30 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added November 8, 2026
ai-agentspythonbash

Works with

  • cli

Security analysis

A100/100

Scanned November 8, 2026

npx -y skills add majiayu000/claude-skill-registry-data --skill duplicate-event-merge --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Duplicate Event Merge?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Duplicate Event Merge
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-duplicate-event-merge/badge)](https://www.skillsdirectory.com/skills/majiayu000-duplicate-event-merge)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: duplicate-event-merge
description: Merge duplicate video event candidates from the same camera, event type, ROI, related tracks, or overlapping time window. Use after event-rule-engine and before evidence generation or external output when Codex has a list of Event Candidate records and needs canonical events plus duplicate mappings.
---

# Duplicate Event Merge

## Execution Priority

Prioritize calling this skill's `scripts/run.py` entrypoint first. Only write custom code after the script result is unsuitable or the script cannot cover the requested task.

## Input Resolution

If event candidates are missing but the user provided a video or upstream analysis request, do not write custom duplicate merging or event generation code. First call `event-rule-engine/scripts/run.py` to produce candidate events, then call this skill to merge duplicates. Only ask for input when no event candidates can be produced or inferred.


## Atomic CLI

Run this skill directly with its own script. The script does not call other skill scripts and does not depend on shared `src`, `tools`, or registry modules.

```bash
python duplicate-event-merge/scripts/run.py --events-json <events.json> --output <merged_events.json>
```

Parameters: `--events-json`, `--output`.

## Workflow

1. Read event candidates.
2. Build duplicate keys from camera, event type, ROI, and related tracks.
3. Merge confidence and time range.
4. Return canonical events and duplicate mapping.

## Available Implementation

This skill is implemented as an atomic standalone script in its own `scripts/run.py`. The script contains the executable logic for this skill and must not import shared `src`, `tools`, or registry modules.

## Inputs

- `events`: list of Event Candidate dictionaries

## Outputs

Returns:
- `events`: canonical merged events
- `duplicates`: mappings of `main_event_id` to `merged_event_id`

## Failure Modes

The current implementation tolerates empty input and returns empty outputs.

## Constraints

Do not drop evidence metadata from the canonical event.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.