code-deduplication

Community

Prevent code duplication, boost efficiency.

AuthorAdigunQ
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill prevents the creation of redundant code by ensuring developers check for existing functionality before writing new code, thereby reducing bloat and improving maintainability.

Core Features & Use Cases

  • Capability Index: Maintains a searchable index (CODE_INDEX.md) of existing functions and their purposes.
  • Check-Before-Write Enforcement: Guides developers to search the index and codebase for similar functionality before implementing new code.
  • Code Audit: Provides a process for periodically auditing the codebase for duplication patterns.
  • Use Case: A developer needs to add a date formatting function. Instead of writing a new one, they check CODE_INDEX.md, find an existing formatDate() function, and use or extend it, ensuring consistency.

Quick Start

Use the code-deduplication skill to update the code index by running the update-code-index command.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: code-deduplication
Download link: https://github.com/AdigunQ/ralph-smart/archive/main.zip#code-deduplication

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.