본문으로 건너뛰기
cccskills
무료GitHub에 공개

solidjs-patterns

SolidJS reactivity + UI state patterns for Openrind Desktop

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md2.7 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Why this skill exists

Openrind Desktop’s UI is SolidJS: it updates via signals, not React-style rerenders. Most “UI stuck” bugs are actually state coupling bugs (e.g. one global busy() disabling an unrelated action), not rerender issues.

This skill captures the patterns we want to consistently use in Openrind Desktop.

Core rules

  • Prefer fine-grained signals over shared global flags.
  • Keep async actions scoped (each action gets its own pending state).
  • Derive UI state via createMemo() instead of duplicating booleans.
  • Avoid mutating arrays/objects stored in signals; always create new values.

Scoped async actions (recommended)

When an operation can overlap with others (permissions, installs, background refresh), don’t reuse a global busy().

Use a dedicated signal per action:

const [replying, setReplying] = createSignal(false);

async function respond() {
  if (replying()) return;
  setReplying(true);
  try {
    await doTheThing();
  } finally {
    setReplying(false);
  }
}

Why

A single busy() boolean creates deadlocks:

  • Long-running task sets busy(true)
  • A permission prompt appears and its buttons are disabled by busy()
  • The task can’t continue until permission is answered
  • The user can’t answer because buttons are disabled

Fix: permission UI must be disabled only by a permission-specific pending state.

Signal snapshots in async handlers

If you read signals inside an async function and you need stable values, snapshot early:

const request = activePermission();
if (!request) return;
const requestID = request.id;

await respondPermission(requestID, "always");

Derived UI state

Prefer createMemo() for computed disabled states:

const canSend = createMemo(() => prompt().trim().length > 0 && !busy());

Lists

  • Use setter callbacks for derived updates:
setItems((current) => current.filter((x) => x.id !== id));
  • Don’t mutate current in-place.

Practical checklist (SolidJS UI changes)

  • Does any button depend on a global flag that could be true during long-running work?
  • Could two async actions overlap and fight over one boolean?
  • Is any UI state duplicated (can be derived instead)?
  • Do event handlers read signals after an await where values might have changed?
  • If you refactor props/types, did you update all intermediate component signatures and call sites?

References

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Create new OpenCode agents with a gpt-5.2-codex default.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

openrind/openrind-shell32026년 10월 19일 업데이트

Guide users through browser automation setup using Chrome DevTools MCP only. Use when the user asks to set up browser automation, Chrome DevTools MCP, browser MCP, or runs the browser-setup command.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

openrind/openrind-shell32026년 10월 19일 업데이트

Manages Cargo.lock file updates and resolves --locked flag issues in CI/CD. Triggers when user mentions: - "cargo test --locked failed" - "cannot update the lock file" - "Cargo.lock is out of date" - "PR failed with --locked error" - "fix Cargo.lock"

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

openrind/openrind-shell32026년 10월 19일 업데이트

Create OpenCode custom commands for repeatable tasks.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

openrind/openrind-shell32026년 10월 19일 업데이트

Create an auditable Markdown report for any uploaded Microsoft Excel (.xlsx) or CSV files in an Openrind Shell sandbox.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

openrind/openrind-shell32026년 10월 19일 업데이트

Guide users through the get started setup and Chrome DevTools demo.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

openrind/openrind-shell32026년 10월 19일 업데이트

openrind의 스킬 모두 보기

이 스킬의 문제 신고