Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

New Ui Mock

ASecurity

Design a new screen, flow or component as a self-contained HTML artboard on the prototype canvas, built from the board's existing design tokens rather than invented values. Covers picking or extending the token block, generating a row of screens from one script, iterating against annotated screenshots, and verifying by rendering. Use when asked to mock up a new screen or feature, design variants/proposals to compare, extend an existing board with more states, or turn a spec into artboards.

76 stars
0 votes
0 copies
0 views
Added 9/19/2026
designpythongobashgit

Works with

cli

Security Analysis

A100/100

Scanned 9/19/2026

Install to Claude Code

$npx -y skills add ReScienceLab/super-prototyping --skill new-ui-mock --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of New Ui Mock?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for New Ui Mock
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/resciencelab-new-ui-mock/badge)](https://www.skillsdirectory.com/skills/resciencelab-new-ui-mock)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: new-ui-mock
description: Design a new screen, flow or component as a self-contained HTML artboard on the prototype canvas, built from the board's existing design tokens rather than invented values. Covers picking or extending the token block, generating a row of screens from one script, iterating against annotated screenshots, and verifying by rendering. Use when asked to mock up a new screen or feature, design variants/proposals to compare, extend an existing board with more states, or turn a spec into artboards.
license: Apache-2.0
compatibility: Requires python3 and the refkit command from super-prototyping-tools. Google Chrome for refkit shoot.
---

# New UI mock

For work with **no reference screenshot to copy**. If there is one, use
`clone-prototype` instead. Measurement beats invention every time.

Everything renders on the canvas from `mockups/canvases/<slug>/`; see
`prototype-canvas` for running it, and its `references/layout.md` for the
folder and `layout.json` rules.

The plugin ships the template folder and every worked example. `sp-canvas`
and `refkit` are separate — the plugin cannot run an installer of its own, so
if they are not on PATH: `uv tool install
"git+https://github.com/ReScienceLab/super-prototyping#subdirectory=tools"`.
`sp-canvas root` then prints where the plugin landed:

```bash
KIT="$(sp-canvas root)"
mkdir -p mockups/canvases                       # first board in a project
B=mockups/canvases/<slug>
cp -r "$KIT/mockups/canvases/templates" "$B"
python3 "$B/gen.py"
```

Everything a run derives goes under `$B/scratch/`: shots, montages, candidate
boards. A `-o` without a directory writes into whatever the current directory
happens to be, which is the user's project root as often as not. The
template's parked reference is `ref-01-screen.html`, and that stays out of
git too. Once per project:

```bash
for p in 'ref-*.html' '**/assets/refs/' 'scratch/'; do
  grep -qxF "$p" .gitignore 2>/dev/null || echo "$p" >> .gitignore
done
```

---

## 1. Find the tokens before you design

Never invent a palette when the product already has one.

- **Extending an existing board?** Reuse its `00-design-tokens.html` block
  verbatim. Copy it byte-identically into the new file; a sandboxed iframe
  has no shared stylesheet.
- **Cloning a real app's look?** Stop and run `clone-prototype` Phase 1 and
  Phase 2 first; come back with a measured token block.
- **Genuinely new product, nothing to measure?** Copy the shipped template
  folder, change `NAME` and the prefix, and pick deliberately: a
  platform-native stack, a neutral ramp, one accent, one danger. Keep the
  evidence table and write *why* in it ("iOS system
  blue", "brand hex from the logo"). An unexplained hex is a future bug.

A new token is a decision, not a convenience. If a screen needs a colour or a
size that is not in the block, either it belongs in the block (add it there,
in every file) or the screen is wrong.

---

## 2. Ground the content

Readers take the copy, numbers and states in a mockup as product decisions.

- Take strings from the real source when it exists: localization files,
  existing screens, the spec. Never from imagination.
- Use real assets over hand-drawn approximations: the actual icon, the actual
  logo, the actual empty-state illustration, embedded as a `data:` URI.
- Design the **unhappy states too**: empty, loading, error, long string,
  longest plausible number. A mock that only shows the happy path hides
  exactly the layout problems worth finding now.

---

## 3. One generator, one row of screens

Same rule as cloning. Write **one** script that emits every `.html` in the
folder, and edit the script, never the output.

```python
TOKENS = ":root{...}"                      # one source of truth
def page(title, extra_css, body): ...      # TOKENS + frame + body
```

Constraints (from the canvas renderer):

- **Fully self-contained.** `sandbox=""` means no external CSS, JS, fonts or
  images; `data:` URIs and inline SVG only.
- **Artboard box is 478 × 980.** Overflow clips silently.
- iPhone frame 393 × 852 pt at 1pt = 1px: 54px status bar, 125 × 36 Dynamic
  Island, 139 × 5 home indicator.
- Avoid SF Symbols private-use glyphs; they render as tofu without SF Pro.
- Accessibility is not a mockup detail to skip: real contrast on real
  backgrounds, ≥ 44pt tap targets, `aria-label` on icon-only controls. A mock
  that fails contrast ships a screen that fails contrast.

### Proposals to compare

When the ask is "show me some options", make each proposal a **whole
artboard in one row**, not a fragment:

```json
{ "title": "Card layout proposals", "numbered": true,
  "files": [
    { "file": "10-cards-continuity", "label": "Continuity" },
    { "file": "11-cards-structured", "label": "Structured" },
    { "file": "12-cards-reference",  "label": "Reference" }
  ] }
```

Three is usually the right number. Two reads as a false binary, five as
indecision. Make them **genuinely different approaches**, not three spacing
values, and put a one-line rationale at the bottom of each board. Rows align
column-for-column, so a second row of the same three under a different state
reads as a matrix.

---

## 4. Iterate against annotated screenshots

For review, the user marks up a screenshot of the canvas with boxes, arrows
and numbers, then pastes it back.

1. Echo what you read each annotation as, before touching anything.
2. Change the generator, not the artboard.
3. Re-run the generator; the canvas reloads onto the new board.
4. Verify that region visually before claiming it is done.

Answer every annotation, including the ones you disagree with. Say so in a
line and make the change, or say why you did not and what you did instead.

---

## 5. Verify by rendering

```bash
refkit shoot "$B"/*.html -o "$B/scratch/shots" --scale 2
refkit montage "$B"/scratch/shots/*.png -o "$B/scratch/board.png" --height 520
```

Read the montage. Check, in order: nothing clipped; text wraps where you
intended; the same element has the same inset on every screen; nothing uses a
colour that is not in the token block (`grep -o '#[0-9A-Fa-f]\{6\}'` on the
generated files and compare the set against `:root`).

Re-render after every pass. A change you have not re-rendered is not done.

Attribution

ReScienceLabReScienceLab
View sourceMore from ReScienceLab →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Responsive Design

Implement modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first breakpoint strategies. Use when building adaptive interfaces, implementing fluid layouts, or creating component-level responsive behavior.

393432 votes

Mermaid Diagrams

Creating and refining Mermaid diagrams with live reload. Use when users want flowcharts, sequence diagrams, class diagrams, ER diagrams, state diagrams, or any other Mermaid visualization. Provides best practices for syntax, styling, and the iterative workflow using mermaid_preview and mermaid_save tools.

2032 votes

sleek-design-mobile-apps

Use when the user wants to design a mobile app, create screens, build UI, or interact with their Sleek projects. Covers high-level requests ("design an app that does X") and specific ones ("list my projects", "create a new project", "screenshot that screen").

5711 votes

swiftui-design-skill

SwiftUI frontend visual design skill. Creates beautiful, distinctive iOS/macOS interfaces that avoid generic AI slop patterns. Covers design direction, layout systems, typography, color, spacing, brand integration, and design review. Use when designing new SwiftUI views, reviewing UI quality, creating iOS prototypes, choosing visual styles, improving app aesthetics, or when the UI looks generic or AI-generated.

1801 votes

Ios Hig

Use when designing iOS interfaces, implementing accessibility (VoiceOver, Dynamic Type), handling dark mode, ensuring adequate touch targets, providing animation/haptic feedback, or requesting user permissions. Apple Human Interface Guidelines for iOS compliance.

761 votes
View all in design →