Dry

From SDiamante13/dotfiles · View interactive version

Dry is an AI agent skill from the GitHub repository SDiamante13/dotfiles. Refactor duplicated code by extracting helpers, shared abstractions, or clearer reusable structure. Use when asked to apply DRY, remove duplication, consolidate repeated logic, or run `/refactor:dry`.

How to use this skill

Skill file

DRY Refactor

Ask the user for the file or directory to refactor. Support multiple files if a directory is provided.

Process

Work through these steps in order, making a separate commit for each extraction:

  1. Extract simple helper methods (strings, calculations, parsing)
  1. Extract complex methods with parameters
  1. Apply design patterns when beneficial

After EACH extraction:

Output

Commit Format

Use Arlo's Commit Notation (ACN):

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.