finding-duplicate-functions

Audit codebases for semantically duplicate functions using intent clustering.

1|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/FacuM/yolo-agent --skill finding-duplicate-functions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finding-duplicate-functions
Source: https://github.com/FacuM/yolo-agent/tree/main/.claude/skills/finding-duplicate-functions
Command: npx skills add https://github.com/FacuM/yolo-agent --skill finding-duplicate-functions

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill identifies functions that perform the same task but have different names or implementations, which is common in LLM-generated codebases, helping to reduce redundancy and improve maintainability.

Core Features & Use Cases

  • Semantic Duplicate Detection: Goes beyond simple text matching to find functions with similar intent.
  • Codebase Auditing: Ideal for reviewing codebases before refactoring or when managing LLM-generated code.
  • Use Case: After generating a large utility library with an AI, use this Skill to find and merge redundant functions like formatDate and dateToString into a single, canonical version.

Quick Start

Use the finding-duplicate-functions skill to audit the 'src/' directory for duplicate functions.

Frequently Asked Questions about finding-duplicate-functions

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

FAQPage Schema
How do I find duplicate functions in a codebase generated by an LLM?

To find duplicate functions, this Skill audits the codebase using a two-phase approach: extracting function definitions and applying LLM-powered intent clustering to identify semantic duplicates for consolidation.

What is semantic duplicate code detection?

Semantic duplicate code detection identifies functions with the same intent but different names or implementations, moving beyond simple text matching to find redundant logic common in LLM-generated codebases.

How do I audit my source code for functions that perform the same task?

You can audit source code by running this Skill against a target directory like 'src/', which uses AI model interaction to categorize function intents and highlight redundant implementations for refactoring.

Does this duplicate function detection require any specific dependencies?

This duplicate function detection requires shell scripting and AI model interaction for analysis, but operates without external package dependencies to extract definitions and cluster function intents.

What is the best way to consolidate redundant utility functions?

The best way to consolidate redundant utility functions is using intent clustering to group functions by purpose, allowing you to merge duplicates like 'formatDate' and 'dateToString' into a canonical version.