thinking-orbs
Qué hace
Esta skill añade el componente de React thinking-orbs, que muestra que una IA está ocupada. Es para desarrolladores que crean interfaces de chat, copiloto, búsqueda o voz y quieren un indicador de estado claro en lugar de un simple spinner.
Cuándo usarla
- ✓Cuando una interfaz de chat o de copiloto necesita mostrar que la IA está trabajando o buscando.
- ✓Cuando quieres sustituir un spinner genérico por un indicador de actividad de IA.
- ✓Cuando una función de voz o de generación debe mostrar que está escuchando o redactando.
Link de la skill
https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/thinking-orbs/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Quiero que mi app de chat muestre un pequeño orbe animado mientras la IA está pensando, en lugar de un spinner normal.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente instala el paquete en un proyecto de React y asocia los pasos reales de tu app con uno de los seis estados integrados. Define el tamaño, el tema y la etiqueta, y añade una opción de movimiento reducido para que el orbe se pueda pausar u ocultar por accesibilidad.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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.
Preguntas frecuentes
¿Muestra cuánto falta para terminar una tarea?
No. El orbe muestra solo actividad indeterminada, nunca un porcentaje ni un progreso de finalización.
¿Qué versiones de React necesita?
El paquete necesita React 18 o posterior.
¿Puedo elegir colores personalizados?
No. La skill indica que el paquete dibuja puntos monocromos y no ofrece colores ni tamaños arbitrarios.
Detalles
Descripción original del autor
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
Popularidad
- Estrellas en GitHub
- 7,2 mil
- Posición en el ranking
- #13474
- Licencia
- MIT
- Actualizada
- 1/11/2026
Comentarios
- …
Más skills de este repositorio
3d-cloth-material
7,2 milAyuda a tu agente a crear tela tejida realista en Three.js, con el entramado del hilo, un brillo suave, pliegues naturales, dobladillos y costuras.
3d-falling-leaves
7,2 milAyuda a tu agente a añadir hojas que caen de forma realista a una escena 3D, con hojas que giran, se dejan llevar por el viento y se reciclan al moverse la cámara.
3d-four-seasons
7,2 milAyuda a tu agente a añadir los aspectos de primavera, verano, otoño e invierno a una escena 3D, cambiando la vegetación, la luz, el cielo y la nieve sin reconstruirla.
3d-high-poly-models
7,2 milAyuda a tu agente a construir modelos 3D detallados con formas suaves y bordes creíbles, y después preparar versiones más ligeras que funcionen bien en la web.
Skills parecidas
angular-developer
280 milAyuda a tu agente con código de Angular y la estructura del proyecto. Útil para empezar proyectos, crear partes de código o mejorar el rendimiento y la accesibilidad.
frontend-a11y
280 milAyuda a tu agente a hacer que las interfaces web sean accesibles para todos. Asegura que sitios y apps funcionen bien con lectores de pantalla y navegación por teclado.
frontend-patterns
280 milHace que tu agente aplique patrones modernos en desarrollo frontend. Optimiza el rendimiento, gestiona el estado y sigue buenas prácticas en React y Next.js.