iterating-with-ai-and-mcp

Installation
SKILL.md

Iterating with AI and MCP: let the agent edit, reload, screenshot, and iterate

Compose HotSwan ships an embedded HTTP MCP server inside the IntelliJ plugin. Any MCP-compatible AI client (Claude Code, Cursor, any tool that speaks Model Context Protocol) can call its tools to drive the iteration loop. The agent edits a Kotlin file, calls hotswan_reload, captures a screenshot of the running device, evaluates the result against the design intent, and decides the next change. Cycle time is comparable to the human loop, a few seconds per iteration, so the agent can converge on a UI tweak without a human steering each step.

This skill teaches the canonical agent loop, the seven MCP tools (verbatim names), and the safety habits (status check first, snapshot wrapping for rollback, fallback to full install for schema changes) that keep the loop reliable.

When to use this skill

  • The developer wants AI-driven UI iteration: "tune this screen until it matches the mock", "let the agent pick a colour".
  • The developer wants the AI to verify its own edits visually instead of guessing whether the change worked.
  • The developer is wiring up a Claude Code or Cursor workflow that needs MCP tool access to a running app.
  • The user asks "can the AI see what changed?", "can the AI screenshot the device?", "how does Claude Code drive HotSwan?".
  • The user mentions "MCP server", "hotswan_reload", "hotswan_take_screenshot", "agent loop", or "snapshot rollback".

When NOT to use this skill

Related skills

More from skydoves/compose-performance-skills

Installs
8
GitHub Stars
381
First Seen
Apr 29, 2026