# Deduplicate

Detect duplicate entities, duplicate groups, and relationship duplicates in Semantica...

- Repository: https://github.com/semantica-agi/semantica (14373 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add semantica-agi/semantica --skill deduplicate -g -a claude-code -y`
Codex: `npx skills add semantica-agi/semantica --skill deduplicate -g -a codex -y`
Cursor: `npx skills add semantica-agi/semantica --skill deduplicate -g -a cursor -y`
Gemini CLI: `npx skills add semantica-agi/semantica --skill deduplicate -g -a gemini-cli -y`

## Description

Detect duplicate entities, duplicate groups, and relationship duplicates in Semantica using fuzzy matching, schema heuristics, and graph similarity.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# /semantica:deduplicate

Remove duplicates from the knowledge graph. Usage: `/semantica:deduplicate <strategy> [args]`

`$ARGUMENTS` = deduplication strategy + optional entity or threshold.

---

## `entities [--threshold <score>] [--field <name>]`

Detect duplicate entities and group them by similarity.

```python
from semantica.deduplication import DuplicateDetector

finder = DuplicateDetector()
candidates = finder.detect_duplicates(entities, threshold=threshold)
groups = finder.detect_duplicate_groups(entities, threshold=threshold)
```

Output: duplicate candidate list, duplicate groups, and representative merge recommendations.

---

## `relations [--similarity <score>]`

Detect duplicate relationships and normalize edge representations.

```python
from semantica.deduplication import DuplicateDetector

finder = DuplicateDetector()
relations = finder.detect_duplicates(relation_list, threshold=similarity)
```

Result: duplicate relation candidates, normalized relationship groups, and cleanup summary.

