component-usage-analysis

Analyze component dependencies and usage patterns in Drupal/Twig component libraries.

Updated Feb 4, 2026
One-click install
npx skills add https://github.com/vidzza/JRM_SMTR_V- --skill component-usage-analysis-vidzza
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: component-usage-analysis
Source: https://github.com/vidzza/JRM_SMTR_V-/tree/main/.claude/skills/component-usage-analysis
Command: npx skills add https://github.com/vidzza/JRM_SMTR_V- --skill component-usage-analysis-vidzza

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers understand how components are used within a Drupal/Twig component library, enabling safe refactoring and removal of components.

Core Features & Use Cases

  • Dependency Auditing: Identify all places a specific component is included via Twig or referenced in mocks.
  • Impact Analysis: Determine the effect of changing or removing a component by listing its consumers.
  • Property Tracking: Find components that use a specific property of a target component.
  • Use Case: Before refactoring a shared card component, use this Skill to find all other components that include it, ensuring no critical functionality is broken.

Quick Start

Use the component-usage-analysis skill to find all usages of the 'elements/image' component.

Frequently Asked Questions about component-usage-analysis

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

FAQPage Schema
How do I find all Twig includes of a specific Drupal component?

To find all Twig includes of a specific Drupal component, you analyze component dependencies and usage patterns within the library. This identifies every location where the target component is referenced, ensuring safe refactoring and code audits.

Can I check if a Drupal Twig component is safe to remove?

Yes, you can check if a Drupal Twig component is safe to remove by performing an impact analysis. This process lists all consumers and mock references of the component, ensuring no critical functionality breaks during deletion.

What is component dependency tracking in a Twig library?

Component dependency tracking in a Twig library is the process of identifying Twig includes and mock references to specific components. It helps developers understand usage patterns and analyze the impact of modifying shared components.

How do I track which Drupal components use a specific property?

To track which Drupal components use a specific property, you perform property tracking within the component library. This identifies all components that use the target property, helping you analyze the impact of refactoring that specific attribute.

Does this component analysis tool work with mock references?

Yes, this component analysis tool works with mock references. It specifically identifies mock references to specific components alongside Twig includes, providing a comprehensive audit of how components are utilized across the library.