component-reuse-guard

Community

Spot and extract reusable UI components.

Authormuddyrain
Version1.0.0
Installs0

System Documentation

What problem does it solve?

自动判断当前改动中是否存在可提取的公用组件或可复用逻辑,避免在多处重复编写相同 JSX 与 handlers,从而降低维护成本。

Core Features & Use Cases

  • 识别同一段 JSX 结构(如弹窗、表单、卡片)在多处的重复出现,以及相同的状态和处理逻辑。
  • 提供提取指导与清理步骤,包含组件放置位置、接口设计与后续替换流程。

Quick Start

When two or more files share an almost identical JSX structure or logic, extract it as a public component and migrate all usages to the new component.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: component-reuse-guard
Download link: https://github.com/muddyrain/valley-mas/archive/main.zip#component-reuse-guard

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.