patternapplier

Refactor TypeScript files by applying design patterns from PATTERN_AUDIT.md.

Updated Apr 4, 2026
One-click install
npx skills add https://github.com/mitul-bhatia/Vibes --skill patternapplier
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: patternapplier
Source: https://github.com/mitul-bhatia/Vibes/tree/main/.github/skills/system_design_pattern_applier
Command: npx skills add https://github.com/mitul-bhatia/Vibes --skill patternapplier

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reads PATTERN_AUDIT.md and a target file, fully refactors the code to apply the specified design pattern inline. Produces production-ready TypeScript that honours SOLID principles, maintains all existing behaviour, and does not break anything the rest of the codebase depends on.

Core Features & Use Cases

  • Reads PATTERN_AUDIT.md to determine the design pattern and target file.
  • Refactors the target code to apply the specified pattern while preserving behavior.
  • Generates production-ready TypeScript that adheres to SOLID principles and existing API contracts.

Quick Start

Run the pattern applier on a TypeScript file to apply the designated design pattern as described in PATTERN_AUDIT.md.

Frequently Asked Questions about patternapplier

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

FAQPage Schema
How do I auto-refactor TypeScript code to apply a design pattern?

Auto-refactoring TypeScript code to apply a design pattern involves reading a target file and a PATTERN_AUDIT.md specification, then rewriting the code inline to implement the pattern while preserving existing behavior and API compatibility.

Can I refactor large TypeScript modules while maintaining API compatibility?

Yes, you can refactor large TypeScript modules while maintaining API compatibility. The refactoring process covers both single files and larger modules, ensuring the refactored output does not break dependencies the rest of the codebase relies on.

How does applying SOLID principles during a codebase audit improve TypeScript refactoring?

Applying SOLID principles during a codebase audit improves TypeScript refactoring by ensuring the newly applied design patterns produce production-ready code that is maintainable, structurally sound, and honors existing API contracts.

What do I need to refactor TypeScript code using a pattern applier?

To refactor TypeScript code, you need a target file to modify and a PATTERN_AUDIT.md file specifying the desired design pattern. These inputs drive the automated refactoring process to generate production-ready TypeScript.

Are there limitations to applying design patterns across an existing TypeScript codebase?

A limitation of applying design patterns across an existing TypeScript codebase is that the process is restricted to inline refactoring based on the PATTERN_AUDIT.md specification, meaning complex multi-file architectural shifts may require manual intervention.