Duplicate Component Detector
Find the components that solve the same problem twice before a third one appears.
What it adds
An analysis that groups components with near-identical structure, styling, or usage and reports them as consolidation candidates.
What your agent is told to do
5
What your agent is told to do
5-
1
Compare components on both what they render and how they are used. Structural similarity alone groups every small wrapper together, and usage similarity alone misses two implementations of the same card that happen to sit in different areas.
-
2
Read the component list produced by Component Inventory rather than walking the source again. Inventory owns enumeration and usage counts; this feature owns similarity and the consolidation decision.
-
3
Report candidates with the evidence attached — which parts matched, how many usages each has, and which is older — so a human can judge rather than being handed a verdict.
-
4
Treat domain differences as real. Two dialogs that look alike but one confirms a destructive action and the other collects payment details are not duplicates, and the report must have a way to record that permanently.
-
5
Do not consolidate by deleting the loser and rewriting its call sites in one change. Migrate call sites incrementally behind the deprecation route already defined, checking behaviour and accessibility at each site, because the differences that matter are usually the ones not visible in the markup.
Edge cases it handles
7
Edge cases it handles
7- Detection needs both structural and usage similarity. Either signal on its own produces a list dominated by false matches, and a report that is mostly noise stops being read after the second run.
- Legitimate domain differences must be respected and recordable. Components that look identical but carry different consequences, permissions, or copy obligations are not candidates, and marking them as such must persist across runs.
- Usage counts must be shown before any consolidation is proposed, because the component with the better implementation and the component with two hundred call sites are frequently not the same one.
- Behaviour and accessibility must be preserved when a call site is switched over. The surviving component often lacks a focus behaviour, a keyboard shortcut, or an announcement that the retired one had, and none of that shows up in a structural diff.
- Components that differ only in an inline style value or a single class are the most common duplicates and the easiest to miss, so normalise trivial formatting differences before comparing.
- A pair flagged as duplicates but deliberately kept must be suppressible with a recorded reason, or the same pair reappears at the top of every report.
- Consolidation must not silently change a component's rendered element or its default variant, since callers depend on both even when they never pass them.
Definition of done
8
Definition of done
8- Candidates are identified using both structural and usage similarity, not either alone.
- The component list is read from the inventory rather than re-derived.
- Each candidate is reported with matched regions, usage counts, and age.
- Pairs kept apart for domain reasons can be suppressed with a recorded reason that persists across runs.
- Call sites are migrated incrementally through the existing deprecation route, not replaced in a single change.
- Focus behaviour, keyboard handling, and announcements are verified at each migrated call site.
- The feature matches the existing design system.
- No existing functionality is broken.
Related features
Avatar Group
Avatar Group
Show who is involved in a compact space without a pile of broken images.
What it does
A stacked set of member avatars with deterministic ordering, an overflow count, and access to the full list.
How it works
- 1 Find the places that show several people at once — assignees, collaborators, workspace members, comment participants — and render them through one grouped component.
- 2 Order the stack deterministically by a stable rule such as role then name, so the same group renders in the same order on every load and every device.
- 3 Cap the number shown and collapse the remainder into a single count that is announced meaningfully, not as a bare number sitting after a row of pictures.
Copy the prompt
No account needed
Add this feature to my app:
https://addthisfeature.com/x/avatar-group
Screen Reader Only Utility
Screen Reader Only Utility
One tested way to add text for assistive technology without it appearing on screen.
What it does
A single visually hidden utility used for labels, instructions, and context that assistive technology needs and sighted users do not.
How it works
- 1 Find every place the app currently hides text from sight — off-screen positioning, zero dimensions, transparent colour, tiny font sizes, aria-label strings duplicating nearby copy — and consolidate them onto one utility.
- 2 Build it by clipping the element to nothing while keeping it rendered and in the accessibility tree: it must occupy no visual space and contribute nothing to layout, yet still be read in document order.
- 3 Provide a second variant that becomes visible when it receives focus, and use it for skip links and any other hidden content that is itself focusable.
Copy the prompt
No account needed
Add this feature to my app:
https://addthisfeature.com/x/screen-reader-only-utility
Landmark Shell
Landmark Shell
Give every page the same navigable regions so people can jump straight to the content.
What it does
A reusable application shell providing labelled banner, navigation, main, complementary, and contentinfo regions on every route.
How it works
- 1 Find the layouts the app already renders and identify what each region actually is — the top bar, the primary navigation, the page body, any inspector or sidebar, the footer — then express them as landmarks once in the shell rather than per page.
- 2 Give the shell exactly one main region per rendered page, and make it the target of a skip link that is the first focusable thing in the document.
- 3 Label every landmark that appears more than once so they can be told apart — primary navigation, breadcrumb, pagination — using a short distinct name rather than the word navigation repeated.
Copy the prompt
No account needed
Add this feature to my app:
https://addthisfeature.com/x/landmark-shell
How it works
-
1
Copy the link
Grab the Markdown instruction URL for this feature.
-
2
Give it to your AI
Paste it into Claude Code, Cursor, v0, Lovable — whatever you build with.
-
3
It inspects, then implements
Your agent reads your existing app first, then adds the feature to fit it.
Works with your stack
These instructions are written to adapt. They tell the agent to detect your framework, match your existing design system, and reuse what you already have — rather than assuming a particular stack.
Need it tighter than that? Customize the feature and tell it exactly what you're running.