find-similar-functions

Search JavaScript and TypeScript symbols with truffler to prevent code duplication.

14.3k|455|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/millionco/react-doctor --skill find-similar-functions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: find-similar-functions
Source: https://github.com/millionco/react-doctor/tree/main/.agents/skills/find-similar-functions
Command: npx skills add https://github.com/millionco/react-doctor --skill find-similar-functions

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the common issue of code bloat and technical debt caused by developers inadvertently creating duplicate helper functions, utilities, or constants when similar implementations already exist in the codebase.

Core Features & Use Cases

  • Fuzzy Symbol Discovery: Uses the truffler tool to locate existing functions, methods, and types based on semantic intent rather than exact naming.
  • Deduplication Workflow: Provides a structured process for agents to inspect, compare, and reuse existing logic before introducing new code.
  • Use Case: When implementing a new path normalization utility, use this skill to search for existing path-handling logic to ensure you are extending current helpers instead of adding redundant ones.

Quick Start

Use the find-similar-functions skill to search for existing symbols related to user authentication within the src directory.

Frequently Asked Questions about find-similar-functions

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

FAQPage Schema
How do I find existing TypeScript functions in my codebase before writing new code?

To find existing JavaScript symbols and prevent code duplication, this skill uses fuzzy symbol search to locate existing functions, methods, and types based on semantic intent rather than exact naming. It inspects and compares existing logic across project source files so you can reuse current helpers instead of adding redundant ones.

What is the best way to search for duplicate utility functions in a JavaScript project?

The best way to search for duplicate utility functions is applying a structured deduplication workflow that performs fuzzy searches across project source files. This process helps agents inspect, compare, and reuse existing logic before introducing new code, directly addressing code bloat caused by developers inadvertently creating duplicate helpers or constants.

How does fuzzy symbol search work for JavaScript and TypeScript code refactoring?

Fuzzy symbol search for JavaScript and TypeScript refactoring works by locating existing symbols based on semantic intent rather than exact naming. It searches across project source files for functions, methods, constants, and types to ensure you are extending current helpers instead of adding redundant ones during refactoring.

Does preventing code duplication require the truffler tool for searching source files?

Preventing code duplication does require the truffler tool to perform fuzzy searches across project source files. The skill uses truffler to locate existing JavaScript and TypeScript symbols like functions, methods, constants, and types based on semantic intent to promote reuse.

Can I search for existing path normalization utilities to avoid redundant code?

You can search for existing path normalization utilities to avoid redundant code by using this skill to locate existing path-handling logic. It performs fuzzy symbol discovery to ensure you are extending current helpers instead of adding duplicate functions when implementing new utilities.