Propose visual design variants for on-screen elements so the user can pick in Argent Lens. Use when presenting UI design alternatives or A/B choices.
Capabilities
Plan the variants
Decide, before touching code, exactly which elements you are…
Get a precise matcher
For each element, run describe on its screen and read its exact…
Await the human's decision
After every variant for every element is staged, call…
Apply the outcome
Implement the chosen variant for every selected element, treat every…
Getting started
Full instructionsInstall the skill, then ask your AI tool for the task in plain words. The full SKILL.md below shows what it covers.
Instructions: SKILL.mdv1.0.1
Prerequisite: feature flag. This workflow is gated behind the
argent-lensflag (off by default). Runargent enable argent-lensonce before using it. Ifpropose_variantcomes back not-found, the flag is off; enable it and retry.
1. Overview
You implement several candidate designs, capture each one running on the device, and stage them with propose_variant (non-blocking, once per variant). The Argent Lens window opens on its own and shows each element as a card beside the live device stream; the human picks per element, may pin comments, and presses Complete. await_user_selection is the single blocking call that returns their decision. Both tools' descriptions cover their parameters and return shapes.
Resolve a simulator/emulator first (argent-ios-simulator-setup / argent-android-emulator-setup) and, for React Native, argent-react-native-app-workflow to run the app and reload the bundle.
2. Workflow
Step 0: Plan the variants
Decide, before touching code, exactly which elements you are redesigning and the distinct variants for each. Write them down (e.g. "Search field: Filled / Outlined / Pill", "Primary CTA: Solid / Gradient"). Each variant must be a single, self-contained change you can apply, screenshot, and revert independently. Vague or overlapping variants produce useless proposals.
Step 1: Get a precise matcher
For each element, run describe on its screen and read its exact identifier / label / role. Prefer match: { by: "identifier", … } (stable testID), then an exact label; the default text match is fine only when the element's visible text is unique. A wrong match makes the card point at the wrong element or float unanchored.
Step 2: For each variant: build → navigate → screenshot → propose → revert
- Build the variant in code.
- Apply it on the device. Reload the RN bundle (
debugger-reload-metro) or rebuild as needed so the running app shows this variant. - Navigate to it (
argent-device-interact): a screenshot is only meaningful if the element is on screen. - Screenshot. Call
screenshotand pass the returned path straight through asvariant.previewImage. NEVER hand-crop, resize, re-encode, or copy the screenshot to another folder: that double-crops against the preview window's own cropping and writes the image where the server won't serve it ("No preview"). If you suspect the variant didn't apply (no visible change vs. the previous capture), compare with the previous path (shasum -a 256): byte-identical captures mean the variant is not on screen yet. Fix that; never propose anyway. - Propose with
element,match,udid(the device you captured on) andpreviewImage, plus asummaryandcode/filePathwhen useful. The tool auto-captures the crop frame by describing the device at propose time, so propose right after the screenshot, while the variant is still on screen. Passvariant.frameonly to override that, e.g. when the element can't stay on screen at propose time. - Revert the change before building the next variant.
Step 3: Await the human's decision
After every variant for every element is staged, call await_user_selection once. A pending result is normal: the proposals stay live, call it again. In an argent lens session that tool is hidden: end your turn instead, and the user's choice arrives as a message.
Step 4: Apply the outcome
Implement the chosen variant for every selected element, treat every annotation and the global comment as a change request, and report what you applied and what was skipped. If the human commented but skipped a variant, the comment still matters; act on it.
3. Rules
- One variant = one real, distinct screenshot. Every
previewImagemust show that variant actually running on the device, captured after it was applied: no mockups, no un-built ideas, never the same path (or byte-identical captures) for two variants. If you can't produce visibly different captures (the app is read-only, accessibility is broken so you can't navigate, the bundle won't hot-reload), STOP and tell the user instead of staging duplicates. - At least two variants per element. If you only have one look for an element, produce a real alternative or don't propose that element at all; a lone variant isn't a choice.
- One variant on screen at a time. Apply → screenshot → propose → revert, so screenshots never bleed together.
- Re-proposing starts a fresh round. Calling
propose_variantafter a round was consumed begins the next round and clears the previous round's elements; stage a full set each round.
Explore more skills
Browse all- Argent QA E2EWrite repeatable QA regression e2e tests from test cases, tickets, or acceptance criteria (iOS, Android, Chromium, Mac…
- Argent Test UI FlowAutonomously verify one-off mobile UI flows (iOS/Android) with interact-screenshot-verify loops. Use when testing…
- Argent Settings PermissionsGrant, deny, or reset app runtime permissions out-of-band on an iOS simulator or Android device via…
- Argent Device InteractDrive iOS, Android, or Chromium apps with Argent MCP tools. Use when tapping, swiping, typing, launching apps, waiting…
- Argent React Native OptimizationEntry-point for React Native performance optimization; profiles first via `argent-react-native-profiler`. Use when the…
- Argent Ios Device InteractDrive a physical iPhone with Argent. Use when targeting a physical iPhone (list-devices kind "device") and ONLY then,…
Security
Reviews (0)
More from argent
View source →Frequently asked questions about argent-lens
What does the argent-lens skill do?
Propose visual design variants for on-screen elements so the user can pick in Argent Lens. Use when presenting UI design alternatives or A/B choices. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the argent-lens skill?
Run `npx @skills-hub-ai/cli install argent-lens` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/argent-lens/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does argent-lens work with?
argent-lens runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the argent-lens skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use argent-lens after installing it?
In Claude Code, type `/argent-lens` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the argent-lens skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.
Badge for your README
Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.
[](https://skills-hub.ai/skills/argent-lens)<a href="https://skills-hub.ai/skills/argent-lens"><img src="https://skills-hub.ai/api/badges/skill/argent-lens" alt="Install on Skills Hub"></a>More options in the badge docs.