lenserfight: Skill for Claude Code

.agents/skills/ui-contract-guard/SKILL.md

ui-contract-guard is a skill for Claude Code, Codex from conectlens/lenserfight. It costs 46 tokens per session (272 once invoked), scanned A, original, MIT.

A review guide for keeping shared user-interface code consistent across web and mobile apps. It covers shared components, design tokens, exports, hooks, and platform-specific entry points.

In plain words
What is it for?
Changing shared UI libraries, component APIs, design tokens, hooks, or web and native entry files.
Why use it?
It helps prevent accidental breaking changes, duplicated components, app-specific logic in shared code, and differences between web and mobile interfaces.

Skill for Claude CodeCodex

Written for Claude Code and Codex: disable-model-invocation in frontmatter, but also agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents).

This is conectlens/lenserfight's own configuration. It tells Claude Code and Codex how to work on lenserfight itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything lenserfight configures →

Reuse

Borrowing it

Nothing to install: this file belongs to conectlens/lenserfight. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/conectlens/lenserfight/main/.agents/skills/ui-contract-guard/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/conectlens/lenserfight

Made for: Claude Code, Codex.

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-contract-guard

README.md
[![agentmods](https://agentmods.dev/badge/skills/conectlens/lenserfight/ui-contract-guard/github.svg)](https://agentmods.dev/skills/conectlens/lenserfight/ui-contract-guard)
Your own site
<a href="https://agentmods.dev/skills/conectlens/lenserfight/ui-contract-guard"><img src="https://agentmods.dev/badge/skills/conectlens/lenserfight/ui-contract-guard/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-contract-guard

Your own site · 80×15
<a href="https://agentmods.dev/skills/conectlens/lenserfight/ui-contract-guard"><img src="https://agentmods.dev/badge/skills/conectlens/lenserfight/ui-contract-guard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 272 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.00046 $0.00272
Opus 5 $0.00023 $0.00136
Sonnet 5 $0.00009 $0.00054
Haiku 4.5 $0.00005 $0.00027

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

Security

Grade A, and why

ui-contract-guard 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 9d 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.

.agents/skills/ui-contract-guard/SKILL.md · 35 lines

What it actually says

UI Contract Guard

Use this skill before changing shared UI.

What to protect

  • Shared component APIs should remain stable and predictable.
  • libs/ui/components/src/index.ts and libs/ui/theme/src/index.ts must expose platform-safe surfaces.
  • Design tokens and contracts should be centralized, not redefined in apps.
  • Do not let domain logic or network code leak into shared UI components.

Review Sequence

  1. Inspect current exports and consumers.
  2. Separate visual primitives from app-specific compositions.
  3. Confirm whether a change is web-only, native-only, or shared.
  4. Prefer prop/API refinement over duplicating similar components.
  5. Call out breaking API changes explicitly.

Heuristics

  • Shared if semantics and lifecycle match across apps/platforms.
  • App-local if wording, layout, or data dependencies are product-specific.
  • Native/web split if implementation differs but the conceptual contract is the same.

Load only when needed:

Files

What ships with it

2 files 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. 9d ago First seen · 35 lines · 46 tokens per session scan A cfffc7b23f01

Subscribe to this mod's changes

ui-contract-guard is a skill published in the GitHub repository conectlens/lenserfight (18 stars, last pushed 1mo ago), licensed MIT. It adds 46 tokens to every session and 272 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-30.

Related

Other skills, from other repositories

generic-react-ux-designer

Professional UI/UX design expertise for React applications. Covers design thinking, user psychology (Hick's/Fitts's/Jakob's Law), visual hierarchy, interaction patterns, accessibility, performance-driven design, and design critique. Use when designing features, improving UX, solving user problems, or conducting design…

travisjneuman/.claude · 69 tokens

frontend-enhancer

This skill should be used when enhancing the visual design and aesthetics of web applications. It provides modern UI components, design patterns, color palettes, animations, and layout templates. REQUIRES ui-research skill first. Use this skill for tasks like improving styling, creating responsive designs…

travisjneuman/.claude · 79 tokens

generic-design-system

Complete design system reference for any project - colors, typography, spacing, components, animations. Adapts to project theme and tech stack. Use when implementing UI, choosing colors, creating animations, or ensuring brand consistency. For new design systems, use ui-research skill first.

travisjneuman/.claude · 60 tokens

generic-fullstack-ux-designer

Professional UI/UX design expertise for full-stack applications. Covers design thinking, user psychology (Hick's/Fitts's/Jakob's Law), visual hierarchy, interaction patterns, accessibility, performance-driven design, and design critique. Use when designing features, improving UX, solving user problems, or conducting…

travisjneuman/.claude · 71 tokens

generic-react-design-system

Complete design system reference for React applications. Covers colors, typography, spacing, component patterns, glassmorphism effects, GPU-accelerated animations, and WCAG AA accessibility. Use when implementing UI, choosing colors, applying spacing, creating components, or ensuring brand consistency.

travisjneuman/.claude · 59 tokens

generic-fullstack-design-system

Complete design system reference for full-stack applications. Covers colors, typography, spacing, component patterns (shadcn/ui), effects, GPU-accelerated animations, and WCAG AA accessibility. Use when implementing UI, choosing colors, applying spacing, creating components, or ensuring brand consistency.

travisjneuman/.claude · 63 tokens