shadcn-lint
БесплатноБез исполняемых скриптовНе проверенThe @shadcn/lint design-system gate for frontend/ (ESLint backend, its own config). Use when a commit or CI fails with `shadcn/...`, when the shadcn-lint…
от kettleofketchup★ 16 звёзд на GitHubОб этом скилле
shadcn design-system lint
Design-system rules from @shadcn/lint, run by ESLint
with its own config, frontend/eslint.shadcn.config.js. It does not touch
eslint.config.js or npm run lint (navbar-scoped i18n rollout).
just frontend::lint-shadcn # == npm --prefix frontend run lint:shadcn
just frontend::lint-shadcn-prune # after fixing baselined violations
Enforced
| Rule | Catches |
|---|---|
shadcn/no-raw-colors |
Raw palette classes (text-green-500, bg-slate-900) and hex values instead of brand tokens. Same policy as the brand skill, now machine-checked. |
shadcn/no-unknown-classes |
Classes Tailwind emits no CSS for: align-center, justify-left, items-top, 3xl:* (no such breakpoint), prose* (@tailwindcss/typography is not installed). Each hit is a silent styling bug. Zero baseline entries: every hit fails. |
draftforge/use-display-name |
A person-name field (username, nickname, discordNickname, guildNickname, discordUsername, global_name) shown to a person without DisplayName: JSX children, user-facing attributes (title, alt, aria-label, placeholder, label), and strings built by template literals or + (toasts, confirms, team names). Not flagged: a ternary test, logger calls (log.*, logger.*, console.*), data-*, key, id, className, links and query keys, where the raw username is correct. |
draftforge/use-user-avatar |
<AvatarImage> whose src reads a user's avatar (avatar, avatarUrl, claimer_avatar, user_avatar, or a local avatar/avatarUrl). Use <UserAvatar user={…} /> for the shared fallback, sizes and Discord URL handling. Non-user images (org logos) are not flagged. |
draftforge/no-display-org-arg |
DisplayName(x, …, org). The org is derived from the current page (lib/displayOrg.ts), so call DisplayName(x); a deliberate override gets a line-level disable with a reason. Off in tests. |
draftforge/no-user-reshape |
<UserAvatar user={{ pk: x.pk, username: x.username, … }} /> copying same-named fields from one object (or pk from user_id/user/id). Pass user={x}; UserAvatar resolves the user by id and fills the rest from the user cache. Translations such as { username: payload.captain_name } are not flagged. |
draftforge/no-direct-name-resolver |
Calling resolveDisplayName or AvatarUrl outside the helpers. Use DisplayName(user) / <UserAvatar user={…} />. Off in tests. |
draftforge/no-avatar-fallback |
A raw <Avatar> branch beside a <UserAvatar> (captain ? <UserAvatar …/> : <Avatar>…</Avatar>), and <AvatarFallback> built from a person's name (…username, …nickname, a displayName/username/nickname variable, or DisplayName(…)). UserAvatar renders the no-user fallback itself: pass fallbackName for the initials when there is no user. Team initials (team.name) are not flagged. |
draftforge/use-user-search |
Hand-rolled name matching: .toLowerCase() of a person-name field (username, nickname, nick, discordNickname, discordUsername, guildNickname, global_name) or of DisplayName(…) fed to .includes/.startsWith/.endsWith/.indexOf/.match/.search or ===/!==, and a case-sensitive user.username.includes(q). Use filterUsers, useFilteredUsers, userMatchesQuery or findUserByName (~/lib/userSearch). Exact a.username === b.username and localeCompare sorts are not flagged. |
draftforge/no-raw-color-strings |
Raw palette classes in any string, for the ones no-raw-colors cannot trace to a className: lookup maps ({ str: 'bg-red-900/40' }), arrays, function returns, unused constants, ui/buttons/styles.ts. The dedupe-raw-colors processor drops its report when no-raw-colors already reported the same class on the same lines, so each class counts once. Off in tests. |
draftforge/no-button-size-override |
Height, min/max-height, size-* or vertical padding on brand buttons or base Button, in classes, maps, cn() and inline styles. Use the base size prop; brand wrappers own touch. Native DOM buttons and descendant/pseudo-element sizing are not checked. |
draftforge/no-arbitrary-color-literals |
A colour literal (#hex, rgb()/rgba(), hsl(), oklch(), ...) inside a Tailwind arbitrary value or property, in any string: shadow-[inset_0_0_120px_rgba(239,68,68,0.45)], text-[#5865F2], a var(--x, rgba(...)) fallback. Neither palette rule reads arbitrary values. Use var(--color-<token>), or color-mix(in_oklab,var(--color-<token>)_N%,transparent) for alpha. Pure black and white (rgba(0,0,0,a), #fff) stay allowed for neutral shadows, like text-white. Off in tests. |
How to render and search for people, and the fix for each person draftforge/* error, is in
the users skill's references/frontend.md;
every error message links to its section there.
The `draf
Установить shadcn-lint в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл shadcn-lint?
The @shadcn/lint design-system gate for frontend/ (ESLint backend, its own config). Use when a commit or CI fails with `shadcn/...`, when the shadcn-lint suppressions baseline needs pruning, when adding a colour or class to JSX, or when touching frontend/eslint.shadcn.config.js. Triggers "no-raw-colors", "no-unknown-classes", "shadcn lint", "suppressions left that do not occur anymore".
Как установить скилл shadcn-lint?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл shadcn-lint запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic