/arkive:findfrom arkive
Searches an Arkive component catalogue and source code to find existing UI implementations before building new ones. Prevents duplicating shared components by checking names, tags, Figma node IDs, and source code.
Ships in arkive. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Before building UI, prove it doesn't already exist. The Arkive catalogue is a
machine-readable inventory of the project's components — names, groups, tags, Figma node
ids, and a rendered image of each. Read
references/arkive-cheatsheet.md for the showcase JSON shape and
paths.
The outcome is always one of three exits (below). "I searched and found nothing" is only a valid conclusion after both the catalogue and the source have been searched, and any suspects have been viewed — metadata similarity alone neither confirms nor rules out a match.
If the target came from Figma, extract the node id from the URL (X-Y) and search every
module's arkive-showcase.json for a matching designNodeId. A hit means this exact
design is already implemented — report the component and its source location, and stop.
No visual check needed. If a change to it is wanted, hand off to /arkive:design-loop.
Search three places — each covers another's blind spot:
build/generated/arkive/showcase/arkive-showcase.json — component name, group,
tags, id. Match by meaning, not spelling: "primary button" must catch a
CtaButton tagged cta.@Composable function names and Arkive/Preview annotations. The
catalogue only knows previewed components — an un-previewed composable is
invisible to it, and that's exactly the component that gets duplicated.build/generated/arkive/showcase/uitree/*.json — grep
"composable" and "callers" names and visible "text". Shared components used only
inside previewed screens show up here — as a node's composable, or in callers on the
shared component's own outermost node — and designs can be matched by their copy.Freshness: if the showcase output is missing or predates recent UI work, either
regenerate (generateShowcase<Variant> — takes minutes, warn first) or continue
source-only and say confidence is reduced.
Cap the shortlist at ~6 suspects. Tell the user what was searched and what the shortlist is before going visual.
Snapshot images are context-expensive; N of them in the main conversation crowds out the actual task. Delegate the comparison:
Save the target visual to a file first (fetch the Figma screenshot and write it to a temp file, or use the spec's mock image). Subagents do not share your conversation — pass file paths only.
Spawn one subagent with: the target image path, each suspect's id + base snapshot
path (from the module's showcase images/ — base snapshots only, ignore
_<category>_<value> variant files) + its UI tree path (uitree/<componentId>.json,
when present — the subagent may read it to compare structure), and this verbatim output contract:
View the target image and every suspect image. Compare anatomy and layout — structure, element placement, shape — not theme colors; a re-themed version of the same anatomy is MATCH or PARTIAL, not NO. Return EXACTLY one line per suspect:
<component id> | MATCH or PARTIAL or NO | <decisive difference, max 15 words>and one final line:RECOMMEND: <component id or NONE> | <reason, max 20 words>Return nothing else — no image descriptions, no prose.
If the environment has no subagents, do the comparison inline and accept the context cost — the discipline (view every suspect, one-line verdicts) still applies.
| Verdict | Action |
|---|---|
| MATCH | Use the existing component: report its source file:line and catalogue entry. If it needs adjusting, that's /arkive:design-loop — on the existing component, not a copy |
| PARTIAL | Extend or parametrize the existing component. If the extension would break, fork, or duplicate a shared component's API — STOP and ask; that's a product decision |
| NO (all suspects) | Build new — and finish by annotating it (/arkive:annotate: name, group, tags, designNodeId) so the next search finds it |
Special case: found in source but not in the catalogue → point at it, and recommend adding a preview + annotation while touching it. That gap is how duplicates happen.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub infinum/arkive --plugin arkive5 skills in this plugin
/annotateUse when adding, editing, or reviewing Arkive annotations — @ArkiveComposable, @ArkiveView, or curating what @Preview components show in the catalogue: names, groups, tags, skip, Figma designNodeId. Triggers every time a component or screen is added to the Arkive showcase or its catalogue metadata changes. Enforces the shared naming/grouping conventions so the sidebar tree stays consistent./design-loopUse when: (1) implementing UI from a Figma design in a project that uses Arkive, (2) validating UI changes against a design or spec, (3) reviewing screens visually after a change. Enforces the loop: implement with existing components → regenerate showcase → load snapshot + design truth in the same turn → enumerate differences → fix or STOP-and-ask. Compares against fresh showcase output — no goldens or snapshot tests involved. Runs Gradle locally./setupUse when: (1) adding Arkive (com.infinum.arkive) to a project for the first time, (2) upgrading an existing Arkive installation, (3) generating and viewing the showcase for the first time. Installs the published Maven Central version, configures every module that has previews, and ends with a browsable showcase — setup is not done until the user has seen it. Not for the arkive repo itself (it has its own bootstrap, see its CLAUDE.md)./snapshot-testingUse when: (1) enabling golden snapshot testing in a project that uses Arkive, (2) a verifyShowcase build failed and needs diagnosing, (3) the UI changed intentionally and goldens need re-recording, (4) wiring snapshot verification into CI. There is no test to write — Arkive generates it; this skill configures retention, records goldens, proves verification works, and diagnoses failures. Requires arkive 0.0.3+.Other plugins' skills for the same job