본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)7.2k · #13474

thinking-orbs

하는 일

이 스킬은 AI가 바쁘게 작업 중임을 보여주는 thinking-orbs React 컴포넌트를 추가합니다. 단순한 로딩 스피너 대신 분명한 상태 표시를 원하는 채팅, 코파일럿, 검색, 음성 인터페이스 개발자를 위한 것입니다.

사용하는 경우

  • ✓채팅이나 코파일럿 인터페이스가 AI가 작업 중이거나 검색 중임을 보여줘야 할 때.
  • ✓일반 스피너를 AI 활동 표시기로 바꾸고 싶을 때.
  • ✓음성이나 생성 기능이 듣는 중이거나 작성하는 중임을 보여줘야 할 때.

스킬 링크

https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/thinking-orbs/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/thinking-orbs/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“채팅 앱에서 AI가 생각하는 동안 일반 스피너 대신 작은 움직이는 구체를 보여 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 React 프로젝트에 패키지를 설치하고, 앱의 실제 단계를 기본 제공되는 여섯 가지 상태 중 하나에 연결합니다. 크기, 테마, 라벨을 설정하고, 접근성을 위해 구체를 멈추거나 숨길 수 있는 동작 줄이기 옵션을 추가합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Thinking Orbs

Core Contract

  1. Use thinking-orbs in React 18+ interfaces that need indeterminate AI activity feedback.
  2. Map the real product lifecycle to one of the six shipped states.
  3. Use only the tuned 20 or 64 pixel size. Do not stretch one preset into another.
  4. Keep theme="auto" unless the surrounding surface has a known fixed theme.
  5. Pair the orb with concise visible status text when the activity matters to the user.
  6. Override aria-label with a task-specific label, or hide the orb from assistive technology when adjacent live text already announces the same state.
  7. Use paused to freeze the current frame. Do not simulate pause with speed={0}.
  8. 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" />
  • auto first checks an ancestor data-theme="dark|light" attribute or dark / light class.
  • If no ancestor theme exists, auto follows prefers-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
업데이트
2026. 11. 1.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬