Skip to content
Development
Agent

visual-companion

Browser-based visual brainstorming companion for showing mockups, diagrams, and options.

From plugin
replica
104 skills4 agents

Claude Code

$ npx -y skills add Surya17155/Replica --agent claude-code

Agent definition

visual-companion.md

Visual Companion Guide

Browser-based visual brainstorming companion for showing mockups, diagrams, and options.

When to Use

Decide per-question, not per-session. Would the user understand this better by seeing it than reading it?

**Use the browser** for visual content: UI mockups, architecture diagrams, side-by-side comparisons, design polish, spatial relationships.

**Use the terminal** for text content: requirements, conceptual choices, tradeoff lists, technical decisions, clarifying questions.

How It Works

The server watches a directory for HTML files and serves the newest one to the browser. Write HTML content to `screen_dir`, the user sees it in their browser and can click to select options.

**Content fragments vs full documents:** If your HTML starts with `<!DOCTYPE` or `<html`, served as-is. Otherwise auto-wrapped in frame template.

Starting a Session

scripts/start-server.sh --project-dir /path/to/project --open

Save `screen_dir` and `state_dir` from the response.

The Loop

1. Check server is alive, write HTML to new file in `screen_dir` 2. Tell user what to expect, share URL 3. On next turn, read `$STATE_DIR/events` for browser interactions 4. Iterate or advance 5. Unload with waiting screen when switching to terminal

CSS Classes Available

.options, .option, .cards, .card, .mockup, .split, .pros-cons, .placeholder, .mock-nav, .mock-sidebar, .mock-content, .mock-button, .mock-input

Design Tips

  • Scale fidelity to the question
  • 2-4 options max per screen
  • Use real content when it matters
  • Keep mockups simple, focus on layout

File Naming

Use semantic names, never reuse filenames. Server serves newest file by modification time.

Cleaning Up

scripts/stop-server.sh $SESSION_DIR
Read more
@surya17155
Ships withreplica

Turn any screenshot or design reference into a precise, copy-paste-ready developer prompt — with exact hex colors, Tailwind classes, animation specs, and component structure. Ready for Lovable, Bolt, Cursor, Replit, or any AI coding agent.

101 skill4 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
10
Star history of Surya17155/Replica on GitHub, a chart by star-history.com

Other agents on replica.

GUIDE

GUIDE

Agent

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior.…

@surya17155@surya17155Install Agent
DESIGN

DESIGN

Agent

DESIGN.md — structured design token reference for the Stitch Design System, covering typography, color, spacing, layout, motion,…

@surya17155@surya17155Install Agent

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc13d293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react2d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex2d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman3d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about visual-companion.

Which coding agents can use visual-companion?
visual-companion installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.