duplicated-logic

Detect duplicate code blocks across Flutter, React Native, and Kotlin codebases.

Updated Feb 27, 2026
One-click install
npx skills add https://github.com/jcoutsousa/mobile-monorepo-template --skill duplicated-logic
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: duplicated-logic
Source: https://github.com/jcoutsousa/mobile-monorepo-template/tree/main/.github/skills/duplicated-logic
Command: npx skills add https://github.com/jcoutsousa/mobile-monorepo-template --skill duplicated-logic

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill detects duplicated and near-duplicated code patterns in mobile codebases, helping teams reduce redundancy and improve maintainability.

Core Features & Use Cases

  • Code Duplication Detection: Finds exact and similar code blocks across multiple language files such as Dart, TypeScript, JavaScript, and Kotlin.
  • Extraction Recommendations: Suggests shared utility functions, components, or mixins to centralize duplicated logic.
  • Use Case: When multiple Flutter screens contain similar snack bar or API call patterns, the Skill recommends creating reusable widgets or functions for all instances.

Quick Start

Ask the AI to analyze your codebase for duplicated patterns and suggest refactorings to centralize common logic efficiently.

Frequently Asked Questions about duplicated-logic

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

FAQPage Schema
How do I detect duplicated code blocks across Flutter, React Native, and Kotlin projects?

To detect duplicated code across mobile projects, you need a tool that analyzes source files in Dart, TypeScript, JavaScript, and Kotlin to find exact and near-duplicate patterns. This process identifies specific code blocks suitable for refactoring into shared utilities or components to reduce redundancy.

What is the best way to find similar snack bar or API call patterns in a Flutter codebase?

Finding similar snack bar or API call patterns in a Flutter codebase requires scanning for near-duplicated logic across multiple screens. The analysis highlights these instances and recommends creating reusable widgets or functions to centralize the common logic efficiently.

Can I get extraction recommendations for shared utility functions in a multi-language mobile codebase?

Yes, you can get extraction recommendations for shared utility functions in a multi-language mobile codebase. The analysis identifies duplicated patterns and suggests specific extraction points to centralize logic into reusable mixins, components, or utility functions.

Does code duplication detection work with both Dart and TypeScript files?

Code duplication detection works with Dart and TypeScript files, alongside JavaScript and Kotlin. It scans these multi-language mobile source files to find exact and similar code blocks, helping teams reduce redundancy and improve maintainability across the entire project.

How do I refactor redundant logic into reusable components for React Native?

To refactor redundant logic into reusable components for React Native, you must first detect duplicated patterns across TypeScript or JavaScript files. The analysis then recommends extraction points to centralize the repeated code into shared utilities or components.