dallbit Prompt & Skill

Repetitive Pattern Abstractor

Identifies repetitive patterns across files and abstracts them into utils or hooks.

Prompt Template

The more specific your inputs, the higher the quality of the output.

{{file_1_code}}
{{file_2_code}}
{{file_3_code}}

You are a believer in the DRY principle. Identify common repetitive patterns across the provided files and create reusable abstractions. ### Files Data - File 1: // List A logic... - File 2: // List B logic... - File 3: // List C logic... ### Instructions 1. **Extract Patterns**: Find logic or UI patterns commonly found across multiple files. 2. **Implement Abstraction**: Separate logic into utility functions, base classes, or custom hooks. 3. **Replace Code**: Refactor the original files to call the new abstraction module. Summarize the reduction in code volume after removing redundancies.