Skip to content
Back to skills

Ui Contract Guard

ASecurity

Guard shared UI contracts across web and mobile in lenserfight. Use when editing libs/ui, shared components, design tokens, hooks, or platform-specific entrypoints such as index.ts and index.native.ts.

  • 18 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 27, 2026
data-aiapi

Works with

  • api

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned May 27, 2026

npx -y skills add conectlens/lenserfight --skill ui-contract-guard --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ui Contract Guard?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ui Contract Guard
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/conectlens-ui-contract-guard/badge)](https://www.skillsdirectory.com/skills/conectlens-ui-contract-guard)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ui-contract-guard
description: Guard shared UI contracts across web and mobile in lenserfight. Use when editing libs/ui, shared components, design tokens, hooks, or platform-specific entrypoints such as index.ts and index.native.ts.
disable-model-invocation: true
---
# 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:
- Shared UI notes: [platform rules](references/platform-rules.md)

Files in this skill

  • SKILL.md1.3 KB
  • agents/openai.yaml433 B
  • references/platform-rules.md531 B

Attribution

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

Loading comments…