alego: Skill for Claude Code

.agents/skills/alego-responsive-ui/SKILL.md

alego-responsive-ui is a skill for Claude Code, Codex from singula-ai/alego. It costs 46 tokens per session (670 once invoked), scanned A, a copy of dsh-responsive-ui, MIT.

A set of rules for designing and reviewing responsive client interfaces, meaning screens that adapt to different window and device widths. It covers wrapping, truncation, controls, tooltips, keyboard use, and focus when the width changes.

In plain words
What is it for?
Use it when building or checking responsive pages, navigation, buttons, menus, tooltips, text wrapping, and keyboard interactions.
Why use it?
It helps prevent overlaps, clipped content, inaccessible actions, and unwanted horizontal scrolling on small screens. It also ensures shortened text remains available elsewhere and important information is not hidden.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is singula-ai/alego's own configuration. It tells Claude Code and Codex how to work on alego 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 alego configures →

Reuse

Borrowing it

Nothing to install: this file belongs to singula-ai/alego. 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/singula-ai/alego/main/.agents/skills/alego-responsive-ui/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/singula-ai/alego

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 alego-responsive-ui

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/singula-ai/alego/alego-responsive-ui"><img src="https://agentmods.dev/badge/skills/singula-ai/alego/alego-responsive-ui.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 670 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 94% copy Near-identical to another mod 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.00670
Opus 5.5 $0.00018 $0.00268
Sonnet 5.5 $0.00009 $0.00134
Haiku 4.5 $0.00005 $0.00067

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

Security

Grade A, and why

alego-responsive-ui 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 6d 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.

Origin

This is a copy

94% identical to dsh-responsive-ui — 17 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/alego-responsive-ui/SKILL.md · 55 lines

How it starts

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

Responsive client UI

1. Minimum viewport

Use a viewport width of 390 CSS px as the primary acceptance minimum. There must be no unintended overlap, clipping, page-wide horizontal scrolling, or inaccessible primary actions. Below 390px, layout requirements may be relaxed.

2. Decision order

  1. First adjust space allocation or wrap elements onto another line; then consider text truncation, icon-only controls, or moving icons into the More menu.
  2. Primary actions and primary states must not be omitted.
  3. Do not hide conflicts through global clipping, reducing all font sizes, or shrinking click targets.
  4. Reduce font sizes only when specifically required by product design.

3. Text truncation

  1. Truncated content must be fully available on a secondary page or by opening a menu. Example: Session statistics below the input box.
  2. Truncation must not lose errors or other key information.
  3. Prefer single-line truncation for tab navigation, visible selectors, buttons, tags, and similar components.
  4. Important information that is not available on another page must be displayed in full without truncation.

4. Titles

  1. Prefer displaying page titles in full. Move the action area onto another line when necessary. Example: the Plugins page's title wrapping behavior.
  2. Prefer natural wrapping for card titles. If the number of lines is limited, the full title must remain available to view.

5. Icon-only controls

  1. Reducing a control to an icon requires both:
    • The icon clearly conveys its meaning, or the operation is familiar to users.
    • A tooltip appears on hover; add one if needed.
  2. Do not reduce “More account information” to an icon, because it navigates to a separate page.
  3. The model selector in the input box can be reduced to an icon because users see it frequently and can open its menu to switch models.
  4. Another example is the linked conversation in an automation task.

6. Mobile hover behavior

  1. Enable mouse-hover effects only on devices that support hovering. Use @media (hover: hover), not viewport width, to determine this.
  2. Tapping on a phone must not leave behind backgrounds, highlights, or action-button visibility intended only for hover.
  3. Preserve normal selected, enabled, and pressed states, as well as focus indicators for keyboard interaction.
  4. Try to preserve focus when the width changes, unless the focused element disappears from the page as a result.

Read the full file on GitHub · 55 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. 6d ago First seen · 55 lines · 46 tokens per session scan A 48e87ad3d3ab

Subscribe to this mod's changes

alego-responsive-ui is a skill published in the GitHub repository singula-ai/alego (109 stars, last pushed 3d ago), licensed MIT. It adds 46 tokens to every session and 670 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 94% identical to dsh-responsive-ui, differing in 17 lines, and is treated as a copy.

Related

Other skills, from other repositories

accessibility-a11y

WCAG 2.2 compliance, ARIA patterns, keyboard navigation, screen readers, automated testing.

travisjneuman/.claude · 26 tokens

flutter-development

Cross-platform development with Flutter and Dart for iOS, Android, Web, Desktop, and embedded. Use when building Flutter apps, implementing Material/Cupertino design, or optimizing Dart code.

travisjneuman/.claude · 41 tokens

aster-ui-demo

How to demo UI work the way Claude does it, never with throwaway HTML mockups. Build the change in the real webview, verify it in the browser harness, open the live dev server for the user to click through, and run the real test suites. Use when the user asks for a demo, a preview, or "let me see" any UI change in the…

Zfinix/aster · 87 tokens

frontend-enhancer

Enhance the visual design of web apps: modern UI components, layout, responsive design, color palettes, animations. Use for styling and UI polish; pair with ui-research first for new design directions.

travisjneuman/.claude · 45 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-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