typescript-dry-principle

Community

DRY-driven refactoring to remove TS duplication.

Authordarellchua2
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill reduces the maintenance burden of TypeScript projects by applying the DRY principle to eliminate duplicated logic, types, and configuration across a codebase, improving consistency and long-term maintainability.

Core Features & Use Cases

  • Analyze Codebase: Detect duplication patterns across functions, types, and modules.
  • Refactor to Shared Utilities: Extract common logic into reusable utilities and modules.
  • Consolidate Types & Generics: Merge duplicate type definitions and promote generic components and APIs.
  • Organize Project Structure: Improve folder layout (types/, utils/, hooks/, services/) for long-term clarity.
  • Replace Duplicates with Imports: Update files to consume shared modules to reduce churn and bugs.

Quick Start

Start by scanning your TS project for repeated patterns, move common logic into a utilities module, and replace direct copies with imports.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: typescript-dry-principle
Download link: https://github.com/darellchua2/opencode-config-template/archive/main.zip#typescript-dry-principle

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.