Extract Patterns banner
zieka zieka

Extract Patterns

Development community

Description

--- name: extract-patterns description: Extract repeated code into reusable components args: optional --- # Extract Patterns Command Analyzes your codebase to identify repeated code patterns and suggests extracting them into reusable functions or components. ## Usage Run this command to analyze files for repeated patterns: ```bash /extract-patterns [path] [--threshold=3] [--min-lines=5] ``` ## Parameters - `path`: File or directory to analyze (defaults to current directory) - `--threshold

Installation

Installs to ~/.claude/commands/zieka-cpm-public-registry-extract-patterns.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/zieka/cpm-public-registry/HEAD/.claude/commands/extract-patterns.md -o ~/.claude/commands/zieka-cpm-public-registry-extract-patterns.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository