Methods

From SDiamante13/dotfiles · View interactive version

Methods is an AI agent skill from the GitHub repository SDiamante13/dotfiles. Refactor long methods or large code blocks by extracting small, focused helper methods with clear names and narrow responsibilities. Use when asked to extract methods or run `/refactor:methods`.

How to use this skill

Skill file

Extract Methods 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
  1. Extract complex logic blocks
  1. Extract control flow sections

After EACH extraction:

Guidelines

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.