fix-view-duplication

Detect repeated Blade template patterns in Laravel views and consolidate them into reusable components.

Updated Jan 5, 2026
One-click install
npx skills add https://github.com/TijmenWierenga/fitapp --skill fix-view-duplication
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix-view-duplication
Source: https://github.com/TijmenWierenga/fitapp/tree/main/.claude/skills/fix-view-duplication
Command: npx skills add https://github.com/TijmenWierenga/fitapp --skill fix-view-duplication

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Identify and centralize repeated Blade template patterns across Laravel views, turning duplication into reusable components to improve maintainability and consistency.

Core Features & Use Cases

  • Detect identical HTML structures, repeated view blocks, and common UI patterns across resources/views.
  • Propose or extract Blade components into resources/views/components to minimize duplication.
  • Improve maintainability by reducing changes required when updating shared UI.

Quick Start

Identify duplicated Blade patterns across resources/views and replace them with reusable components in resources/views/components.

Frequently Asked Questions about fix-view-duplication

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify duplicated HTML structures across Laravel Blade templates?

Scanning your Laravel resources/views directory detects identical HTML structures and repeated view blocks. This process highlights common UI patterns across Blade templates, guiding you toward consolidating them into reusable components to improve maintainability.

What is the best way to refactor repeated Blade view blocks into components?

Refactoring repeated Blade view blocks involves extracting shared HTML structures into resources/views/components. This workflow outlines the component extraction process while preserving existing behavior during the refactor, ensuring your Laravel application maintains consistency without altering functionality.

Can I extract Laravel Blade components without breaking existing view behavior?

Yes, extracting Laravel Blade components can preserve existing behavior during refactors. The workflow specifies scanning resources/views for duplicates and carefully outlining component extraction, ensuring shared UI patterns are consolidated without altering the original functionality of your views.

When do I need to consolidate duplicate Blade templates into reusable components?

You need to consolidate duplicate Blade templates when a Laravel project has multiple views sharing similar HTML structures, form blocks, or UI patterns. Centralizing these repeated patterns into components minimizes duplication and reduces the changes required when updating shared UI.

Does this Blade duplication refactoring approach work for large Laravel projects?

Yes, this approach applies to projects with multiple Blade templates that share similar UI patterns. By scanning resources/views for duplicates and extracting reusable components, it improves maintainability and reduces the changes required when updating shared UI across large Laravel applications.