refine-live
하는 일
이 스킬은 지속적인 에이전트가 설정되어 있지 않을 때, AI가 transitions.dev Timeline Inspector의 Refine 버튼 뒤에서 답하는 모델 역할을 하도록 합니다. 웹 프로젝트에서 모션을 조정하는 사람을 위한 것입니다.
사용하는 경우
- ✓refine live 명령을 실행해 AI가 Refine 클릭에 응답하게 하고 싶을 때.
- ✓릴레이는 실행 중이지만 지속 에이전트 명령이 연결되지 않았을 때.
- ✓작업을 마치고 라이브 Refine 루프를 멈추고 싶을 때.
스킬 링크
https://github.com/Jakubantalik/transitions.dev/blob/main/refine/.agents/skills/refine-live/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“Refine을 라이브로 실행해서, 이 채팅에서 제 전환 제안에 답해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 로컬 릴레이에서 Refine 작업을 계속 확인하고, 각 전환에 대한 제안을 작성해 패널에 다시 보냅니다. 대기 중 확인마다 채팅 턴을 쓰므로, 끝나면 루프를 멈춰야 합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Refine Live
Two modes
Persistent (recommended — run and forget)
Run npx transitions-refine live from your project. The CLI starts the relay and wires REFINE_AGENT_CMD so the relay spawns your agent CLI per Refine click. No chat loop; idle = zero credit burn. Works hours later as long as the relay process keeps running. Stop with Ctrl-C (or npx transitions-refine stop).
In-chat loop (fallback — this skill)
Run /refine live in Cursor/Claude/Codex when the relay is up but has no REFINE_AGENT_CMD. You become the poller via GET /jobs/next. The Agent tab stays available only while you keep polling — each idle poll cycle consumes chat turns/credits. Say "stop refine" to exit.
Use the in-chat loop only when you cannot wire a persistent agent CLI.
Turn yourself into the LLM behind the Timeline Inspector's Refine button (in-chat fallback mode). While this loop runs, the panel's LLM tab is "available": each click sends one transition here, you reason about it, and your suggestions appear in the panel.
You are the poller. Nothing is installed — you just talk to a small local relay
(default http://localhost:7331) that the npx injector already started.
How it works
Browser (Refine, LLM tab) ──POST /jobs──► relay ──GET /jobs/next──► YOU
◄──GET /jobs/:id── relay ◄──POST /jobs/:id/result── YOU
The loop — stay live, but don't burn credits forever
Keep polling so the panel's LLM tab stays "available", but this loop costs chat turns/credits even while idle, so it is not truly run-and-forget — it has three exits, in priority order:
- Relay stop signal (authoritative).
GET /jobs/nextmay return200with{"stop": true}. The relay sends this when the user clicks Stop in the panel, or automatically after ~10 min with no jobs. Always honor it: stop looping immediately, tell the user the LLM tab will go unavailable and how to resume (/refine live), and end your turn. Never re-poll after a stop signal. - The user says so — "stop refine", "exit live", etc.
- Your own idle backoff (safety net). A long stretch of
204s is normal — it just means no one has clicked Refine yet — but to avoid spending credits on a forgotten loop, back off as idle grows instead of hammering immediately: re-poll right away for the first few empty cycles, then pause ~5s between polls, and after ~10 min of unbroken idle stop on your own (same as the relay's auto-stop) and tell the user how to resume. Any real job resets the backoff.
The relay reports the agent as "available" for ~120s after your last poll, so short pauses keep you live. A successful job always resets idle, so an active session never backs off.
Announce yourself once, before the first poll. The relay keeps a sticky Stop latch: after a panel Stop (or the idle auto-stop) it answers every
GET /jobs/nextwith{"stop": true}until a new agent explicitly resumes — so a stopped session can't silently come back. Clear the latch a single time at startup, then begin polling:curl -s -X POST http://localhost:7331/poller/startDo not call this again mid-loop (it would defeat a user's Stop). Only on a fresh
/refine live.Claim the next job (long-poll). This call blocks up to ~25s, then returns.
curl -s http://localhost:7331/jobs/nextHTTP
204/ empty body → no work yet. Poll again, applying the idle backoff above (immediate at first, then ~5s pauses, then stop after ~10 min).HTTP
200with{"stop": true}→ the loop must end. Stop polling, tell the user the LLM tab is now unavailable and that/refine liveresumes it, and end your turn. Do not treat it as a job.HTTP
200with a job JSON → work to do. Shape:{ "id": "uuid", "request": { "label": "Resize + Color", "selector": ".box-resize", "mode": "llm", "refineType": "small", "timings": [ { "property": "width", "durationMs": 400, "delayMs": 0, "easing": "ease-out" }, { "property": "background", "durationMs": 400, "delayMs": 0, "easing": "ease-out" } ] } }If
request.kind === "scan"this is not a suggestion job — the panel is asking you to group the page's transitions by reading the source. Jump to [`##
자주 묻는 질문
이것이 권장 설정인가요?
아니요. 권장 방법은 채팅 루프 없이 실행되는 지속 에이전트 명령입니다.
왜 크레딧을 쓰나요?
대기 중 확인이 채팅에서 일어나고, 대기 확인에도 채팅 턴과 크레딧이 쓰이기 때문입니다.
어떻게 멈추나요?
채팅에 stop refine이라고 입력하면 루프를 빠져나옵니다.
상세 정보
작성자의 원본 설명
In-chat fallback for the Timeline Inspector Refine agent. Use when the user runs `/refine live`, asks to "refine live", "go live", or answer refine jobs — but ONLY when no persistent agent is wired (no `npx transitions-refine live`). Prefer `npx transitions-refine live` for run-and-forget (relay spawns agent per click, no idle credit burn). This skill long-polls the relay, posts suggestions, handles scan/apply jobs.
인기도
- GitHub 스타
- 6.0k
- 순위
- #14454
- 라이선스
- —
- 업데이트
- 2026. 10. 29.
댓글
- …
이 저장소의 다른 스킬
transitions-agent
6.0k에이전트가 웹사이트 코드의 UI 모션 문제를 검사하고, transitions.dev 레시피로 고치도록 돕습니다.
transitions-dev
6.0k에이전트에게 모달, 드롭다운, 배지, 텍스트 교체 등 준비된 CSS 전환 32가지를 웹 앱에 추가하도록 가르칩니다.
transitions-polish
6.0k에이전트가 웹 앱의 기존 모션 값을 하나의 일관된 디자인 기준에 맞춰 다듬도록 돕습니다.
transitions-ui-generation
6.0k에이전트가 UI, 헤드라인, 이미지가 실제 내용이 나타나기 전에 점으로 그려지는 AI 생성 효과를 추가하도록 돕습니다.
비슷한 스킬
canvas
394k에이전트가 연결된 Mac 패널에 호스팅된 시각적 위젯을 띄우고, 패널을 숨기거나 다른 페이지로 옮기도록 돕습니다.
control-ui
394k에이전트가 세션, 대시보드, 연결된 Gateway를 포함해 OpenClaw Control UI를 정리하고 문제를 해결하도록 돕습니다.
diagram-maker
394k에이전트가 프로세스, 시스템 구조, 화이트보드 스케치를 위해 SVG, HTML, 편집 가능한 Excalidraw 파일로 명확한 다이어그램을 만들도록 돕습니다.