Agent skill

Find Similar Functions

by millionco in millionco/react-doctor

Use truffler to find similar or pre-existing JavaScript/TypeScript symbols before implementing new code, especially helpers, utilities, parsers, formatters, scanners, fuzzy matchers, and other…

Custom licenceAuto-check passedDevelopment

Install Find Similar Functions

skills CLI
$ npx skills add millionco/react-doctor --skill find-similar-functions -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install millionco/react-doctor find-similar-functions --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/millionco/react-doctor.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/find-similar-functions .claude/skills/find-similar-functions && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
find-similar-functions
GitHub stars
15k
Token cost
~1.2k tokens
SKILL.md length
469 words
Files
1
Skills in repo
13
Repo updated
First seen
Licence
Custom licence

At a glance

Use truffler to find similar or pre-existing JavaScript/TypeScript symbols before implementing new code, especially helpers, utilities, parsers, formatters, scanners, fuzzy matchers, and other…

  • Works in 6 steps: State the behavior you are about to… → Derive 3-6 search queries from the… → Run truffler against the narrowest… → …
  • They are about to add
  • SKILL.md covers Workflow, Command Recipes, Search Strategy and Reuse Decision Guide, plus 1 more section
  • Calls bun and bunx

What it does

Find Similar Functions is an agent skill from millionco/react-doctor. Use truffler to find similar or pre-existing JavaScript/TypeScript symbols before implementing new code, especially helpers, utilities, parsers, formatters, scanners, fuzzy matchers, and other reusable functions. Agents should use this skill whenever they are about to add or refactor functionality in a JS/TS repository and need to avoid duplicating existing code, even if the user does not explicitly mention deduplication.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Data cleaning and Linting and formatting. It works with JavaScript and TypeScript. The repository describes itself as: Your agent writes bad React. This catches it.

When your agent uses it

  • They are about to add
  • Refactor functionality in a JS/TS repository and need to avoid duplicating existing code
  • Even if the user does not explicitly mention deduplication

Example prompts

  • “/find-similar-functions”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. State the behavior you are about to implement in a few words.
  2. Derive 3-6 search queries from the intended behavior
  3. Run truffler against the narrowest useful root first, then broaden if needed.
  4. Inspect the top matches with normal code-reading tools before editing.
  5. Prefer reusing, extending, or moving existing code when the behavior substantially matches. Create new code only after the search shows…
  6. In your final response, briefly mention what you found and whether you reused something or intentionally added a new implementation.

What it can do on your machine

Read from SKILL.md and the folder at commit e5824ab. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • bun
    • bunx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use bunx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Find Similar Functions loads about 1.2k tokens when it runs. Until then it costs about 112 tokens; SKILL.md has 469 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~112
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 469 words (~1,158 tokens).

“Use this skill before writing new JavaScript or TypeScript code that might overlap with existing helpers. The goal is to discover nearby functions, methods, constants, types, and interfaces early enough to reuse or extend them instead of creating duplicate behavior.”

— opening of SKILL.md by millionco, Custom licence
name
find-similar-functions

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/find-similar-functions of millionco/react-doctor.

Open the folder on GitHubat commit e5824ab

Compare with similar skills

Find Similar Functions next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Find Similar Functions compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Find Similar Functions this skillmillionco/react-doctor15k—~1.2kAutomated safety check: PassCustom licence
Install Anti-Slop Oxlint Rulesdmmulroy/anti-slop5.4k—~2.2kAutomated safety check: PassMIT
Ultraciteagustinusnathaniel/nextarter-tailwind1252 repos~1.2kAutomated safety check: PassMIT
Code Qualityredis/RedisInsight8.9k—~1.2kAutomated safety check: PassCustom licence
Port Ruleweb-infra-dev/rslint461—~1.7kAutomated safety check: PassMIT
Migrate OxlintAsvarox/allkaraoke2614 repos~2.5kAutomated safety check: PassNone

Similar skills

  • Installs, updates or migrates the vendored anti-slop Oxlint plugin in a repository, keeping local rule changes and the plugin's license and provenance files.

    5.4k GitHub stars~2.2k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Ultracite

    agustinusnathaniel/nextarter-tailwind

    Ultracite is a zero-config linting and formatting preset for JavaScript/TypeScript projects.

    125 GitHub starsUsed in 2 repos~1.2k tokens
    DevelopmentAuto-check passed
  • Code Quality

    redis/RedisInsight

    Official

    Code-quality standards for RedisInsight: TypeScript strictness, naming conventions (camelCase, PascalCase, UPPERSNAKECASE), linting rules, no any without reason, no !important in styles, and…

    8.9k GitHub stars~1.2k tokensUpdated 6 days ago
    DevelopmentAuto-check passed
  • Port Rule

    web-infra-dev/rslint

    Port a new ESLint core or plugin rule to rslint, including explicitly requested batches.

    461 GitHub stars~1.7k tokensUpdated today
    DevelopmentAuto-check passed
  • Migrate Oxlint

    Asvarox/allkaraoke

    Guide for migrating a project from ESLint to Oxlint. An agent skill from Asvarox/allkaraoke.

    261 GitHub starsUsed in 4 repos~2.5k tokens
    DevelopmentAuto-check passed
  • Prepare Rslint npm Release

    web-infra-dev/rslint

    Prepare a stable release PR for the unified rslint npm packages by updating package versions and rule/TypeScript release metadata.

    461 GitHub stars~1.5k tokensUpdated today
    DevelopmentAuto-check passed

More from millionco/react-doctor

All 13 skills in this repo
  • Run Parity

    millionco/react-doctor

    Compare React Doctor diagnostics for a GitHub pull request (PR) with Vercel Sandbox.

    15k GitHub stars~4.1k tokensUpdated today
    Auto-check passed
  • Benchmark Fp Fn Audit

    millionco/react-doctor

    Audit React Doctor against ReactBench or similar diagnostic benchmark corpora for confirmed false positives, false negatives, taxonomy gaps, and verifier artifacts.

    15k GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Deslop

    millionco/react-doctor

    Simplify and refine recently modified code while preserving functionality.

    15k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Improve Threejs

    millionco/react-doctor

    Audit and fix Three.js and React Three Fiber apps for frame-loop performance, GPU memory leaks, scene-graph correctness, and visual defects like z-fighting, shadow acne, wrong color space, and…

    15k GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • Performance

    millionco/react-doctor

    Diagnose React runtime performance with React Doctor traces, live render outlines, Long Animation Frames, interaction timing, and component render evidence.

    15k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Product Thinking

    millionco/react-doctor

    Think like a product manager before changing React Doctor's public surface — CLI commands/flags, the 0–100 score, config (doctor.config.), the JSON report schema, package APIs…

    15k GitHub stars~3.1k tokensUpdated today
    Auto-check passed

Questions about Find Similar Functions

What does Find Similar Functions do?

Use truffler to find similar or pre-existing JavaScript/TypeScript symbols before implementing new code, especially helpers, utilities, parsers, formatters, scanners, fuzzy matchers, and other…. Find Similar Functions is an agent skill from millionco/react-doctor. Use truffler to find similar or pre-existing JavaScript/TypeScript symbols before implementing new code, especially helpers, utilities, parsers, formatters, scanners, fuzzy matchers, and other reusable functions.

When should I use Find Similar Functions?

Find Similar Functions fits situations like: they are about to add; refactor functionality in a JS/TS repository and need to avoid duplicating existing code; even if the user does not explicitly mention deduplication.

How do I install Find Similar Functions in Claude Code?

Run `npx skills add millionco/react-doctor --skill find-similar-functions -a claude-code`. Or copy the skill folder (.agents/skills/find-similar-functions in millionco/react-doctor) into .claude/skills/find-similar-functions in your project. Claude Code loads it when a task matches its description.

How do I install Find Similar Functions in Codex?

Run `npx skills add millionco/react-doctor --skill find-similar-functions -a codex`. Or copy the skill folder (.agents/skills/find-similar-functions in millionco/react-doctor) into .agents/skills/find-similar-functions in your project. Codex loads it when a task matches its description.

Can I use Find Similar Functions in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add millionco/react-doctor --skill find-similar-functions -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/find-similar-functions, .gemini/skills/find-similar-functions, .github/skills/find-similar-functions and .opencode/skills/find-similar-functions in your project.

What does Find Similar Functions need to run?

Going by SKILL.md and its folder, Find Similar Functions needs the command-line tools its instructions call (bun and bunx).

Does Find Similar Functions access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Find Similar Functions safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Find Similar Functions use?

Find Similar Functions has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Find Similar Functions use?

About 1.2k tokens (SKILL.md is roughly 4.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Find Similar Functions?

Skills that share tags, products or a category with Find Similar Functions: Install Anti-Slop Oxlint Rules (dmmulroy/anti-slop, 5.4k stars), Ultracite (agustinusnathaniel/nextarter-tailwind, 125 stars), Code Quality (redis/RedisInsight, 8.9k stars) and Port Rule (web-infra-dev/rslint, 461 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Find Similar Functions?

millionco (a GitHub organization) maintains it in millionco/react-doctor, which has 14,992 GitHub stars. The repository holds 13 skills in this directory. The repository was last updated on October 11, 2026.

Source: millionco/react-doctor on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.