component-usage-analysis
CommunityAnalyze component usage for safe refactoring.
System Documentation
What problem does it solve?
This Skill helps teams locate where Drupal/Twig components are used, assess whether a component can be safely removed, audit dependencies, identify components using specific properties, and understand the impact of refactoring.
Core Features & Use Cases
- Usage discovery: Find all Twig includes and mock references to a target component.
- Dependency auditing: Analyze how components depend on others to plan safe changes.
- Refactor impact analysis: Determine which parts of the codebase would be affected by a change to a component.
Quick Start
Run the analysis workflow against your component library by specifying a target component, for example: component-usage-analysis "elements/image" or provide the target component path. The tool will scan Twig includes, embed blocks, and mock references to produce a usage map and risk assessment.
Dependency Matrix
Required Modules
None requiredComponents
💻 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-usage-analysis Download link: https://github.com/schalkneethling/webdev-agent-skills/archive/main.zip#component-usage-analysis Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.