Local and mcp skill name deduplication

From ychampion/cskill-agents · View interactive version

Local and mcp skill name deduplication is an AI agent skill from the GitHub repository ychampion/cskill-agents. Merge local and MCP skill sources into one listing surface and dedupe by stable command name before announcing them.

How to use this skill

Skill file

SKILL: Local-and-MCP Skill Name Deduplication

Domain: skill-listing

Trigger: Apply when a listing surface combines commands from multiple registries or providers and must avoid announcing the same user-facing capability twice.

Source Pattern: Distilled from reviewed command-surface, skill-discovery, and CLI capability implementations.

Core Method

Collect commands from each relevant source independently, then merge them into one announcement surface before any later filtering or formatting runs. Deduplicate the merged list by the stable user-facing command name rather than by source-specific IDs so identical capabilities from different providers collapse into one entry. This preserves broad coverage across local and remote registries while preventing the listing from double-counting equivalent commands simply because they were discovered through different backends.

Key Rules

Example Application

If a coding agent can discover reusable skills from the current project and from connected MCP servers, gather both sets, merge them, and collapse entries that share the same slash-command name before rendering the skill catalog. The user sees one coherent listing instead of duplicates for the same command coming from different registries.

Anti-Patterns (What NOT to do)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.