spec-frontend

spec-frontend is a command for Claude Code from Oriolshhh/runware-image-mcp. It costs 39 tokens per session (1,648 once invoked), scanned A, original, MIT.

A command that creates an approval-required redesign plan for an existing web page, route, or user flow, based on browser evidence and specialist reviews.

In plain words
What is it for?
Use it to specify changes to layout, visual design, hierarchy, interactions, and usability, with target users, viewports, fixtures, success criteria, and preservation requirements.
Why use it?
It helps define a substantial interface redesign before coding, while protecting intended behavior, useful branding, and agreed constraints.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: mentions subagents.

Good fit Use it to specify changes to layout, visual design, hierarchy, interactions, and usability, with target users, viewports, fixtures, success criteria, and preservation requirements.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/oriolshhh/runware-image-mcp/spec-frontend
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Oriolshhh/runware-image-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for spec-frontend

README.md
[![agentmods](https://agentmods.dev/badge/commands/oriolshhh/runware-image-mcp/spec-frontend.svg)](https://agentmods.dev/commands/oriolshhh/runware-image-mcp/spec-frontend)
Your own site
<a href="https://agentmods.dev/commands/oriolshhh/runware-image-mcp/spec-frontend"><img src="https://agentmods.dev/badge/commands/oriolshhh/runware-image-mcp/spec-frontend.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,648 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.01648
Opus 5 $0.00019 $0.00824
Sonnet 5 $0.00008 $0.00330
Haiku 4.5 $0.00004 $0.00165

Measured 7d ago against content hash 3e4e63928a92, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

spec-frontend scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agent/commands/spec-frontend.md · 153 lines

How it starts

The opening of the file, as written. The whole thing — 153 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/spec-frontend — Specify a substantial existing-frontend redesign

Purpose

Turn an existing page, route, or flow into a detailed, product-specific redesign specification before code changes begin.

Use this when /improve-ui-ux would be too small: the goal is a material improvement to hierarchy, visual craft, interaction, and usability while preserving intended product behavior and valuable brand equity.

Invocation

/spec-frontend <route/component and desired outcome>

Accepted input

An existing rendered route or component, pain points, screenshots or references, target users, desired degree of change, brand constraints, and success criteria.

Prerequisites

A HarnessKit workspace and an existing frontend surface. A runnable preview is strongly preferred; static-only planning must be labelled lower confidence.

Procedure

  1. Apply context-discovery. Identify the exact surface, user, primary task, product goal, requested degree of change, preservation constraints, non-goals, preview command, stable fixture/data, supported themes, and relevant viewports.
  2. Inspect repository evidence before asking questions. Ask one grouped batch of only decision-changing questions, normally no more than three and never more than five. If the user requests a dramatic change, clarify what must remain recognizable rather than treating “drastic” as permission to replace everything.
  3. Apply the complete curated skill set, loading each canonical body rather than fetching upstream prompts at runtime: frontend-design-direction, visual-craft, design-system-integration, ui-state-design, responsive-ui-engineering, accessible-ui-engineering, motion-design, and browser-visual-validation.
  4. Run a discovery wave using native isolated subagents in parallel when the active tool supports them:
    • visual-qa-tester records a reproducible baseline with like-for-like route, data, state, viewport, theme, task steps, console, and network conditions;
    • design-system-specialist maps tokens, typography, icons, primitives, components, themes, states, and closest precedents. Otherwise use clearly labelled native-sequential or simulated-sequential passes. Record the actual execution mode; never imply independence that did not exist.
  5. Give the same brief, context capsule, baseline, and reuse map to independent read-only specialist passes. Do not show them each other's first conclusions:
    • ux-reviewer: task flow, comprehension, copy, information architecture, friction, recovery, and state completeness;
    • visual-craft-specialist: hierarchy, typography, color, spacing, gaps, density, optical alignment, shape, elevation, imagery, icons, and anti-AI-slop;
    • interaction-design-specialist: buttons and controls, feedback, focus, async states, interruption, gestures, and purposeful motion;
    • accessibility-reviewer: semantic, keyboard, focus, contrast, zoom/reflow, reduced-motion, form, and recovery constraints.
  6. Have frontend-design-lead synthesize—not vote—one recommended direction. Offer two only for a genuine unresolved product/brand fork. Preserve material dissent and explain why the selected direction fits the user outcome.
  7. Inspect active packs before continuing. If more than one primary aesthetic pack is enabled, stop and ask the user to choose exactly one; exporter priority does not make contradictory directions coherent. Otherwise use at most one explicitly enabled primary aesthetic pack: frontend-design, taste-skill, or ui-ux-pro-max. The optional emil-design-engineering layer may supplement interaction craft. Do not silently enable packs, blend competing voices, execute upstream scripts, or copy a source skill's stack/dependency recommendations over repository evidence.
  8. Write .agent/specs/<kebab-case-name>.md as an ordinary valid HarnessKit spec using the required frontmatter below. Include:
    • baseline evidence and named user outcome;
    • preservation constraints, non-goals, and rejected alternatives;
    • selected design thesis and anti-AI-slop acceptance rubric;
    • content and hierarchy;
    • typography roles, scale, weight, line height, and measure;
    • semantic color roles, themes, contrast, and non-color cues;
    • spacing/density/grid, alignment, radius, borders, elevation, imagery, and icons;
    • responsive transition rules based on content pressure;
    • complete operational and control-state matrices;
    • interaction/motion purpose, timing behavior, interruption, reduced motion, pointer/touch/keyboard behavior, and performance acceptance;
    • accessibility contract;
    • design-system reuse and narrowly justified extensions;
    • dependency-ordered implementation tasks, files/ownership, tests, browser scenarios, fixtures, viewports, gates, risks, and approval needs.
  9. Present a /sum-spec-style plain-language summary and stop for explicit approval. Do not launch implementation workers or edit production code.

Read the full file on GitHub · 153 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 153 lines · 39 tokens per session scan A 3e4e63928a92

Subscribe to this mod's changes

spec-frontend is a command published in the GitHub repository Oriolshhh/runware-image-mcp (0 stars, last pushed 1mo ago), licensed MIT. It adds 39 tokens to every session and 1,648 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.