zieka

Extract Patterns — Development skill for Claude Code

Development community

Extract repeated code into reusable components.

How to install Extract Patterns

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.

What Extract Patterns does


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:

/extract-patterns [path] [--threshold=3] [--min-lines=5]

Parameters

  • path: File or directory to analyze (defaults to current directory)
  • `--threshold

Alternatives in Development

  • Web Artifacts Builder — Build complex claude.ai HTML artifacts using React, Tailwind CSS, and shadcn/ui 94.1k ★
  • Claude Integration Guide — FOR CLAUDE CODE: When a user asks you to integrate components from this showcase repository into their project 9.3k ★
  • Stitch React Components — Stitch to React components conversion 2.6k ★

Full documentation available on GitHub

View Source Repository