deduplicate-loaders

Consolidate duplicate page and SEO loaders across page JSONs.

13|2|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/decocms/storefront-skills --skill deduplicate-loaders
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: deduplicate-loaders
Source: https://github.com/decocms/storefront-skills/tree/main/.claude-deco/skills/deduplicate-loaders
Command: npx skills add https://github.com/decocms/storefront-skills --skill deduplicate-loaders

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps reduce unnecessary API calls by identifying and consolidating duplicate page loaders across page JSONs.

Core Features & Use Cases

  • Loader deduplication: detect equal loaders across page.json entries and merge them into a single loader to minimize requests.
  • Safe scope: analyzes home, category, and search pages when a current page is not present.
  • Error awareness: avoids loops and exposes a simple guidance on how many pages to analyze.

Quick Start

Analyze a storefront page to replace duplicate loaders with a Global loader reference that elides redundant calls.

Frequently Asked Questions about deduplicate-loaders

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

FAQPage Schema
How do I deduplicate loaders in page JSONs to reduce redundant API calls?▼

To deduplicate loaders in page JSONs, analyze the JSON structures to find identical loaders and merge them into a single global loader reference, effectively minimizing redundant API calls on your storefront.

Why are duplicate loaders causing unnecessary API calls on my storefront?▼

Duplicate loaders cause unnecessary API calls because identical data-fetching blocks are executed multiple times across page JSONs, resulting in redundant network requests that can be consolidated into a single loader.

What is the best way to consolidate duplicate page and seo loader blocks?▼

The best way to consolidate duplicate page and seo loader blocks is to analyze the JSON structures of home, category, and search pages, then replace the duplicates with a single global loader reference.

Can I use this loader deduplication on both home and category pages?▼

Yes, you can use this loader deduplication on home, category, and search pages. It is specifically designed to analyze these page JSONs and identify duplicate loaders when a current page is not present.

What limitations should I be aware of when merging loaders in page JSONs?▼

Limitations when merging loaders include the need for careful JSON structure analysis to avoid infinite loops, and the tool operates within a safe scope that excludes pages when a current page is actively present.

Does the deduplicate-loaders Skill support analyzing search page JSONs?▼

Yes, the deduplicate-loaders Skill supports analyzing search page JSONs, alongside home and category pages, to find and consolidate duplicate loaders into a single reference to reduce API requests.