affectui
БесплатноЗапускает вложенные скриптыНе проверенIntegrate and customize flohoeller/affectui React 19 UI components for AI agents and web applications. Use when adding single-file zero-Tailwind TSX agent…
от akillness★ 63 звезды на GitHubОб этом скилле
affectUI
When to use this skill
Use when building AI agent interfaces or React 19 app screens with flohoeller/affectui — a free, MIT-licensed library of 74 single-file .tsx components, blocks, illustrations, and motion items whose styles live inside each file (no Tailwind or external CSS configuration required).
Route-outs
- For Tailwind CSS 4 + shadcn/ui frosted glass design tokens and
solid-glass.css, usesolid-glass. - For streaming OpenUI Lang 1.0 generative UI apps with
$variableexpressions and@functions, useopen-intelligent-ui. - For general token governance or multi-brand design system architecture, use
design-system. - For validating
SKILL.mdformat or catalog metadata, useskill-standardization.
Instructions
1. Run offline project preflight
Inspect the target React project for React 19 compatibility, @/* path aliases, components.json @affectui registry configuration, and existing installed items before adding components:
python3 "$SKILL_DIR/scripts/preflight.py" --workspace "/absolute/path/to/react-app" --json
The preflight script inspects local manifests only (package.json, tsconfig.json, components.json, components/ui/) without running npx or making network calls.
2. Verify prerequisites and clean vs classic style choice
Confirm in the target project:
- React 19 is installed (TypeScript optional).
@/*import alias is configured if installing viashadcnCLI.- Style variant: Most components and blocks ship two variants:
-clean(default recommended modern look, e.g.,tool-call-card-clean.json)- Classic style without
-cleansuffix (e.g.,tool-call-card.json)
- Dark mode: Components react automatically when an ancestor carries
class="dark"ordata-theme="dark". Motion respectsprefers-reduced-motion.
3. Install components via shadcn CLI, namespace, or direct copy
Install a single item directly by registry URL:
npx shadcn@latest add https://www.affectui.com/r/tool-call-card-clean.json
Or register the @affectui namespace once in components.json:
{
"registries": {
"@affectui": "https://www.affectui.com/r/{name}.json"
}
}
Then install using short names:
npx shadcn@latest add @affectui/decision-inbox-clean
npx shadcn@latest add @affectui/thinking-loader-clean
For copy-and-paste without the shadcn CLI, copy the .tsx file directly from components/, blocks/, illustrations/, or motion/ in the upstream repository into src/components/ui/ and import it.
4. Connect the affectUI MCP server or LLM context (optional)
For AI-assisted discovery and component generation, connect the hosted HTTP MCP server only with user approval:
claude mcp add --transport http affectui https://www.affectui.com/api/mcp
For other MCP clients (Cursor, VS Code, Codex), add { "mcpServers": { "affectui": { "url": "https://www.affectui.com/api/mcp" } } }. Without MCP, point assistants at https://www.affectui.com/llms.txt or llms-full.txt.
5. Respect the MIT vs affectUI Pro boundary
Only 74 items (free components, logo-marquee, testimonial-wall, 17 illustrations, 4 motion items) live in flohoeller/affectui under the MIT license. Pro items shown in showcase docs (Agent Tree, Agent Inbox, Trace Waterfall, Context Map, Agent Handoff) are commercial affectUI Pro components and are not in the open-source repository or public registry. Do not fabricate or attempt to fetch Pro registry URLs; use open-source alternatives or inform the user when a requested component is Pro-only.
Examples
Add an agent tool-call and approval workflow UI
# 1. Check React 19 + shadcn alias readiness
python3 "$SKILL_DIR/scripts/preflight.py" --workspace /path/to/app --json
# 2. Install free agentic components (clean style)
npx shadcn@latest add https://www.affectui.com/r/thinking-loader-clean.json
npx shadcn@latest add https://www.affectui.com/r/tool-call-card-clean.json
npx shadcn@latest add https://www.affectui.com/r/decision-inbox-clean.json
npx shadcn@latest add https://www.affectui.com/r/message-actions-clean.json
import { ThinkingLoader } from "@/components/ui/thinking-loader-clean";
import { ToolCallCard } from "@/components/ui/tool-call-card-clean";
import { DecisionInbox } from "@/components/ui/decision-inbox-clean";
Best practices
- Choose one variant family consistently: Use
-cleanacross a project unless intentionally targeting the classic aesthetic. - Do not add Tailwind hacks for internal styles: affectUI files bundle self-contained styles and container queries inside each
.tsx; pass state callbacks and props rather than overriding internals. - Wire human-in-the-loop permissions explicitly: Use
DecisionInboxorEmailDraftcallbacks to gate side-effecting backend tool execution behind user confirmation. - **
Установить affectui в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadGrepGlobВложенные файлы
FAQ
Что делает скилл affectui?
Integrate and customize flohoeller/affectui React 19 UI components for AI agents and web applications. Use when adding single-file zero-Tailwind TSX agent components (tool-call cards, decision inbox, thinking loaders, message actions, email drafts, smart recommendations, progress trackers), blocks, illustrations, or motion primitives via the shadcn CLI or affectUI HTTP MCP server (`https://www.affectui.com/api/mcp`), choosing between `-clean` and classic styles, or checking affectUI Pro licensing boundaries. Route shadcn/Tailwind v4 glass theme tokens to solid-glass, OpenUI Lang generative UI streaming to open-intelligent-ui, and SKILL.md spec linting to skill-standardization.
Как установить скилл affectui?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл affectui запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic