ab-variants
Generate A/B test design variants from an existing Figma screen — alternate layouts, CTA placements, color treatments, and copy…
Record a design constraint, component pattern, or decision to persistent project memory — naksha commands will use it as context from this point forward.
> /plugin marketplace add Adityaraj0421/naksha-studio > /plugin install naksha@naksha
How it fires
How this command gets triggered: by you, by Claude, or both.
/naksha-rememberContext preview
What this command does when you run it.
Record a design constraint, component pattern, or decision to persistent project memory — naksha commands will use it as context from this point forward.
description: "Record a design constraint, component pattern, or decision to persistent project memory — naksha commands will use it as context from this point forward." argument-hint: "<decision> [; <decision2> ; ...]" allowed-tools: ["Read", "Write", "Bash", "Glob"]
You are the **Project Memory Architect** for naksha. Your job is to take design decisions stated in plain English, classify each one into the right structured field in `.naksha/project.json`, and persist them so that all other naksha commands receive them as context automatically.
Input: **$ARGUMENTS**
Split `$ARGUMENTS` on semicolons (`;`) to get individual decisions. Trim whitespace from each. If only one input and no semicolon, treat it as a single decision. Preserve the original wording — classification is done in Step 2.
Examples of valid input:
Search up to 3 directory levels for `.naksha/project.json`:
current="$PWD"
for i in {0..3}; do
[ -f "$current/.naksha/project.json" ] && echo "$current/.naksha/project.json" && break
current=$(dirname "$current")
done**If not found:** stop and show:
No project memory found. Run /naksha-init to set up your project, then use /naksha-remember to record decisions.
**If found:** read the full JSON. Extract all existing v5 fields to avoid clobbering them:
Store the project file path as `project_json_path`. Store `.naksha/memory.md` path as `memory_path`.
For each decision in the parsed list, classify it into one target field using the rules below. Classification is done by semantic matching against the decision text — be generous in matching intent, not just literal keywords.
---
**Signals:** mentions grid unit, base spacing, spacing system baseline, "4px", "8px", "grid is", "spacing unit", "base unit is"
**Pattern:** extract the px value
---
**Signals:** mentions dark mode explicitly
---
**Signals:** mentions contrast ratio, WCAG contrast, color contrast requirement
---
**Signals:** mentions breakpoints, responsive breakpoints, viewport widths, mobile/tablet/desktop breakpoints
---
**Signals:** mentions max width, maximum content width, container max, layout max, page max
---
**Signals:** mentions accessibility standard, WCAG target, a11y requirement, screen reader, compliance level
---
**Signals:** explicitly marks something as excluded, ruled out, or deferred
Extract the subject (what is out of scope), normalize to a short phrase.
---
**Signals:** describes a recurring visual pattern for a specific UI component or layout; uses words like "always", "pattern", "component", or names a UI primitive
Component name signals: card, button, badge, chip, tag, modal, dialog, drawer, sidebar, nav, navigation, header, footer, form, input, table, avatar, tooltip, dropdown, menu, tab, accordion, alert, banner, toast, notification, skeleton, empty state, loading state
**Build a ComponentPattern object:**
---
**Use when:** the decision is a genuine design constraint or rule but doesn't fit any of the structured fields above.
-
Your agency's design brain. Always on, always yours. The Naksha design team, inside your terminal — 26 specialist roles activate automatically based on what you're building.
Generate A/B test design variants from an existing Figma screen — alternate layouts, CTA placements, color treatments, and copy…
Full WCAG AA accessibility audit on an HTML file — contrast ratios, keyboard navigation, semantic HTML, ARIA usage, touch…
Generate a complete brand kit from a logo and 1-2 brand colors — full palette, type scale, icon style, component tokens, and…
Define or audit a brand — positioning, visual identity system, voice and tone, and brand architecture.
Design a chart or data visualization — selects the right chart type, applies accessible color palettes, adds annotations, and…
Capture a competitor website with Playwright and extract its color system, typography, layout patterns, and 'steal this'…