ui-align

ui-align is a skill for Claude Code from Prismer-AI/PrismerCloud. It costs 128 tokens per session (4,487 once invoked), scanned A, original, MIT.

A workflow for building or changing interface components, checking an existing component catalogue first, and capturing light and dark screenshots in a comparison report.

In plain words
What is it for?
Use it when adding or restyling a component, comparing before and after versions, or preparing visual evidence for review.
Why use it?
It helps prevent duplicate components and makes visual review possible without asking stakeholders to read code. Checking both themes can reveal contrast or layout problems that one screenshot would miss.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it when adding or restyling a component, comparing before and after versions, or preparing visual evidence for review.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/prismer-ai/prismercloud/ui-align
About the project

Prismer Cloud is an infrastructure layer for AI agents that provides shared learning, compressed context, persistent memory, collaboration, messaging, tasks, identity, and workspaces. It is for agents and the people building or using long-running agent systems that need information and outcomes to persist across sessions. The catalogue entries provide skills, hooks, agents, instructions, and a plugin for using Prismer Cloud.

Prismer-AI/PrismerCloud · 1,386 stars · on GitHub · prismer.cloud

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.

Any agent
npx skills add Prismer-AI/PrismerCloud --skill ui-align
Clone the repo
git clone --depth 1 https://github.com/Prismer-AI/PrismerCloud

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 ui-align

README.md
[![agentmods](https://agentmods.dev/badge/skills/prismer-ai/prismercloud/ui-align/github.svg)](https://agentmods.dev/skills/prismer-ai/prismercloud/ui-align)
Your own site
<a href="https://agentmods.dev/skills/prismer-ai/prismercloud/ui-align"><img src="https://agentmods.dev/badge/skills/prismer-ai/prismercloud/ui-align/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ui-align

Your own site · 80×15
<a href="https://agentmods.dev/skills/prismer-ai/prismercloud/ui-align"><img src="https://agentmods.dev/badge/skills/prismer-ai/prismercloud/ui-align.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 128 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,487 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.00128 $0.04487
Opus 5.5 $0.00051 $0.01795
Sonnet 5.5 $0.00026 $0.00897
Haiku 4.5 $0.00013 $0.00449

Measured 17d ago against content hash a84721e5c1ca, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ui-align 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 17d 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.

sdk/apc/skills/ui-align/SKILL.md · 210 lines

How it starts

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

ui-align

把「新 UI 需求 / UI 改进对比」跑成 索引 → 实现 → 截图 → 报告 的闭环(docs/apc/07 Part A §A4)。 产出是一张 ReportCard:把同一组件的 light / dark 两态截图 + 对比结论落成一张可寻址的富报告页, 需求方从视觉验收,不读代码。

什么时候用:一个 UI 组件要新增 / 改样式 / 做前后对比时。第一步永远是查索引——ui-kit 已经把 现有原语拆成 registry.ts 索引,先看有没有现成的,别重复造第 N 个 Dialog / Button / Card。

Why(这条 skill 存在的理由)

  • 避免重复造:ui-kit 是全状态画廊 + 机器可读索引(src/app/ui-kit/registry.ts 的 ENTRIES)。 新需求先对索引,命中就复用,不命中才新增一片。索引是唯一真源——不 grep 源码猜有没有。
  • 视觉验收可寻址:截图落 task-bound asset,ReportCard 用 prismer://asset/<id> 引它 + 结论段。 需求方点开卡就看到 before/after,不必读 diff。
  • 两态都截:light / dark 是同一个主题机制的两个投影(.dark on <html>)。只截一态会漏掉暗色下 的对比度 / 边框 / 玻璃态塌缩——两态并排是对齐评审最有用的形态。

Anti-pattern(这条 skill 要防的)

  • 不查索引就动手:直接新写一个组件,结果 ui-kit 里早有同款 → 又一个分叉。先 --list。
  • 只截一态:只发 light 截图,dark 下的问题溜过评审。
  • 把"视觉通过"当机器结论:本 skill 的 oracle 断的是副作用(截图产出了、ReportCard 落库了、 对比表结构对),不是"好不好看"。别在报告里声称"视觉已验证正确"——那是人的判断(同 design-review 固有局限)。
  • 贴原始 JSON 冒充报告:harness 的 stdout 是结构化 JSON,读它、汇报关键字段(scope / themes / reportCard pageId / shots assetId / exit 码),不是把整坨 JSON 甩回去。

Workflow(真命令,apc 不在 PATH → 一律 npx tsx)

从仓库根跑。harness 的 stdout 是纯 JSON。

1. 索引优先——查有没有现成的 scope

npx tsx sdk/apc/harness/ui-screenshot.ts --list     # 合法 scope 清单
npx tsx sdk/apc/harness/ui-screenshot.ts --help     # 全部旗标 + 退出码语义

打印 registry 里所有合法 scope({ ok:true, scopes:[...] })。命中就复用那个 scope;不命中 说明是新需求 → 在 src/app/ui-kit/registry.ts 的 ENTRIES 加一行(status:'draft' + 挂 task/doc) 并在 sections/<scope>.tsx 加稿件(07 §A4 步骤 1-2;本 skill 不替你写实现,只教流程 + 产报告)。

2. 跑截图 harness——两态截图 + 上云 + 产 ReportCard

npx tsx sdk/apc/harness/ui-screenshot.ts \
  --scope <scope> --themes light,dark \
  --workspace "$APC_WORKSPACE_ID" --task "$PRISMER_TASK_ID"

harness 会:读 registry 校验 scope(非法 scope → 结构化错误、不产废卡)→ 用 Playwright 打 http://127.0.0.1:3000/ui-kit?scope=<scope> 对 light/dark 各截一张 → 过像素闸(单张 0 字节 / < 1 KiB / 不是 PNG / 两态字节完全相同 ⇒ 直接判红,在上传之前,不产废 asset 不产废卡)→ 上云成 task-bound asset → 复用 report-card.ts 产一张 ReportCard(截图 + 结论 + TierResult 表)。

Read the full file on GitHub · 210 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 17d ago First seen · 210 lines · 128 tokens per session scan A a84721e5c1ca

Subscribe to this mod's changes

ui-align is a skill published in the GitHub repository Prismer-AI/PrismerCloud (1,386 stars, last pushed 2d ago), licensed MIT. It adds 128 tokens to every session and 4,487 once invoked, about $0.0005 per session on Opus 5.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-09-29.

Related

Other skills, from other repositories

frontend-design

Create highly adaptive, production-grade frontend interfaces optimized for modern web standards and Generative UI pipelines. Use when building components, layouts, or design systems that require a distinct, non-generic aesthetic.

LuizEduPP/Rememb · 42 tokens

ui-review

Review product UI against DESIGN.md and accessibility criteria.

rebel0789/Memory-Recall · 0 tokens

ui-styling

Create beautiful, accessible user interfaces with shadcn/ui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs. Use when building user interfaces, implementing design systems, creating responsive layouts, adding accessible components (dialogs, dropdowns…

LuizEduPP/Rememb · 90 tokens

ui-designer

Extract design systems from reference UI images and generate implementation-ready UI design prompts. Use when users provide UI screenshots/mockups and want to create consistent designs, generate design systems, or build MVP UIs matching reference aesthetics.

LuizEduPP/Rememb · 47 tokens

frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

RashadAnsari/myagents · 43 tokens

applying-brand-guidelines

Apply consistent corporate branding and styling to generated documents, including colors, fonts, layouts, and messaging. Use when the user needs branded deliverables or asks to follow company design standards.

LuizEduPP/Rememb · 42 tokens