source-command-tech-dupes

Detect code duplication across StarMapper's codebase using jscpd and report refactor opportunities.

77|3|Updated Mar 24, 2026
One-click install
npx skills add https://github.com/FlorianBruniaux/starmapper --skill source-command-tech-dupes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: source-command-tech-dupes
Source: https://github.com/FlorianBruniaux/starmapper/tree/main/.agents/skills/source-command-tech-dupes
Command: npx skills add https://github.com/FlorianBruniaux/starmapper --skill source-command-tech-dupes

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Code duplication analysis for StarMapper using jscpd to identify and report repeated patterns, enabling refactors to reduce maintenance overhead.

Core Features & Use Cases

  • Pattern detection: Scans the codebase (src/) to surface duplicated blocks across geocoder helpers, GitHub API formatting, compression utilities, and cache logic.
  • Targeted recommendations: Generates actionable refactor suggestions and potential extraction candidates.
  • Use Case: A developer runs the tool to surface a duplicated function across routes and utilities, enabling a quick consolidation.

Quick Start

Run the migrated command to start the duplication analysis and review the generated report.

Frequently Asked Questions about source-command-tech-dupes

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

FAQPage Schema
How do I detect code duplication in a TypeScript project?

To detect code duplication in a TypeScript project, this Skill scans your source directories using jscpd to identify repeated patterns and outputs a structured report highlighting refactor opportunities. It surfaces duplicated blocks across helpers and utilities to improve maintainability.

How does jscpd identify duplicate code blocks during static analysis?

Jscpd identifies duplicate code blocks during static analysis by scanning the codebase with custom patterns to find repeated structural sequences. It generates an actionable report detailing these redundancies and suggests specific extraction points to consolidate the logic.

Can I use this duplication scanner to analyze specific directories like routes and utilities?

Yes, you can use this duplication scanner to analyze specific directories like routes and utilities. The tool is designed to target source code in folders such as src/, geocoder, routes, and utilities to accurately surface refactoring opportunities.

What is the best way to reduce code duplication identified during a code review?

The best way to reduce code duplication identified during a code review is to use the extraction points suggested by this tool. It analyzes repeated patterns across geocoder helpers and cache logic, then recommends actionable refactors to consolidate redundant functions.

Do I need to install any dependencies to run the jscpd duplication analysis?

You do not need to install external dependencies manually to run the jscpd duplication analysis. The Skill operates without external dependencies, allowing you to directly execute the command to start scanning your codebase and reviewing the generated report.