thinking-orbs
Что он делает
Этот скилл добавляет React-компонент thinking-orbs, который показывает, что ИИ занят. Он нужен разработчикам чатов, копилотов, поиска и голосовых интерфейсов, которым нужен понятный индикатор состояния вместо обычного спиннера.
Когда использовать
- ✓Когда чат или копилот должен показывать, что ИИ работает или ищет.
- ✓Когда обычный спиннер нужно заменить индикатором активности ИИ.
- ✓Когда голосовая или генеративная функция должна показывать, что она слушает или составляет ответ.
Ссылка на скилл
https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/thinking-orbs/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Хочу, чтобы мое чат-приложение показывало маленькую анимированную сферу, пока ИИ думает, вместо обычного спиннера.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Агент устанавливает пакет в проект на React, сопоставляет реальные шаги вашего приложения с одним из шести встроенных состояний и задаёт размер, тему и подпись. Также он добавляет вариант для уменьшенного движения, чтобы сферу можно было приостановить или скрыть.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
Thinking Orbs
Core Contract
- Use
thinking-orbsin React 18+ interfaces that need indeterminate AI activity feedback. - Map the real product lifecycle to one of the six shipped states.
- Use only the tuned
20or64pixel size. Do not stretch one preset into another. - Keep
theme="auto"unless the surrounding surface has a known fixed theme. - Pair the orb with concise visible status text when the activity matters to the user.
- Override
aria-labelwith a task-specific label, or hide the orb from assistive technology when adjacent live text already announces the same state. - Use
pausedto freeze the current frame. Do not simulate pause withspeed={0}. - Treat the orb as indeterminate feedback, never as a progress percentage or completion signal.
The package renders monochrome dots on a transparent 2D canvas. It does not expose custom colors, arbitrary sizes, or determinate progress.
Install
Inspect the project package manager, then install:
npm install thinking-orbs
The package declares react and react-dom version 18 or newer as peer dependencies. Import the component and exported types from the package root:
import {
ThinkingOrb,
type OrbSize,
type OrbState,
type OrbTheme,
type ThinkingOrbProps,
} from "thinking-orbs";
Choose the State
working— generic tool execution, multi-step work, or an activity without a more precise state.searching— retrieval, web search, file search, or knowledge lookup.solving— reasoning, analysis, calculation, or planning.listening— microphone input, speech capture, or waiting for a spoken turn.composing— writing, summarizing, drafting, or generating a text response.shaping— creating or refining an image, layout, structured artifact, or other formed output.
Prefer a truthful generic working state over a visually interesting but inaccurate state. Change the state only when the underlying activity changes.
Choose the Size
- Use
size={20}inline with text, inside buttons, or in compact status rows. - Use
size={64}at chat-avatar scale, in an empty state, or as the main visual status.
The presets have different dot counts, dot sizes, and speed tuning. They are separate designs rather than a scale factor. If the layout needs more surrounding space, size the wrapper instead of applying CSS transforms to the canvas.
Basic Usage
import { ThinkingOrb } from "thinking-orbs";
export function AgentStatus() {
return (
<ThinkingOrb
state="searching"
size={20}
theme="auto"
aria-label="Searching project files…"
/>
);
}
All other canvas props pass through, including className, style, data-*, event handlers, and ARIA attributes.
Model the Product Lifecycle
Keep product phases separate from visual states so the mapping stays explicit:
import { ThinkingOrb, type OrbState } from "thinking-orbs";
type AgentPhase =
| "idle"
| "retrieving"
| "reasoning"
| "writing"
| "creating"
| "done"
| "error";
const ORB_BY_PHASE: Partial<Record<AgentPhase, OrbState>> = {
retrieving: "searching",
reasoning: "solving",
writing: "composing",
creating: "shaping",
};
export function AgentActivity({ phase }: { phase: AgentPhase }) {
const state = ORB_BY_PHASE[phase];
if (!state) return null;
return <ThinkingOrb state={state} size={20} />;
}
Remove the orb on done, error, cancellation, or idle. Show the appropriate result, retry, or error UI instead of leaving the last activity animation running.
Announce Status Once
The component defaults to role="img" with a per-state label such as “Searching…”. When visible text describes the same state, make the text the single announcement source:
export function LiveAgentStatus() {
return (
<div role="status" aria-live="polite" className="agent-status">
<ThinkingOrb state="solving" size={20} aria-hidden="true" />
<span>Reviewing the repository…</span>
</div>
);
}
Use aria-live="polite" for ordinary phase changes. Avoid rapid label churn. Do not add another hidden live region when role="status" already owns the announcement.
Theme
Use one of:
<ThinkingOrb theme="auto" />
<ThinkingOrb theme="dark" />
<ThinkingOrb theme="light" />
autofirst checks an ancestordata-theme="dark|light"attribute ordark/lightclass.- If no ancestor theme exists,
autofollowsprefers-color-scheme.
Частые вопросы
Показывает ли он, насколько далеко продвинулась задача?
Нет. Сфера показывает только неопределённую активность, но не проценты или завершение.
Какие версии React нужны?
Пакету нужен React 18 или новее.
Можно ли выбрать свои цвета?
Нет. Скилл говорит, что пакет рисует монохромные точки и не предоставляет собственных цветов или произвольных размеров.
Подробности
Оригинальное описание автора
Add accessible animated AI loading and agent-status indicators with the React thinking-orbs library. Use when a chat, copilot, voice, search, generation, or tool-running interface needs a semantic working, searching, solving, listening, composing, or shaping state; when replacing a generic spinner with an AI activity orb; or when implementing the library's size, theme, speed, pause, reduced-motion, and canvas behavior.
repo: MengTo/Skills
Популярность
- Звёзды на GitHub
- 7.2k
- Место в рейтинге
- #13474
- Лицензия
- MIT
- Обновлён
- 01.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
3d-cloth-material
7.2kПомогает агенту создавать реалистичную тканую ткань в Three.js: переплетение нитей, мягкий блеск, естественные складки, подгибы и швы.
3d-falling-leaves
7.2kПомогает агенту добавить в трёхмерную сцену реалистичные падающие листья, которые кувыркаются, уносятся ветром и переиспользуются при движении камеры.
3d-four-seasons
7.2kПомогает агенту добавить в трёхмерную сцену весну, лето, осень и зиму, меняя растительность, свет, небо и снег без перестройки сцены.
3d-high-poly-models
7.2kПомогает агенту создавать детализированные трёхмерные модели с гладкими формами и правдоподобными краями, а затем готовить более лёгкие версии, которые хорошо работают в вебе.
Похожие скиллы
angular-developer
280kПомогает агенту писать код на Angular и советовать по структуре проекта. Полезен для новых проектов, создания частей кода и улучшения производительности.
frontend-a11y
280kПомогает агенту делать веб-интерфейсы доступными для всех, чтобы сайты и приложения работали с программами чтения с экрана и клавиатурой.
frontend-patterns
280kАгент применяет современные паттерны фронтенд-разработки: оптимизирует производительность, управляет состоянием и следует практикам React и Next.js.