本文へスキップ
Skillpedia
インターフェース(UI/UX)6.0k · #14454

refine-live

できること

このスキルにより、常駐のエージェントが設定されていない場合に、AIがtransitions.devのTimeline InspectorにあるRefineボタンの背後のモデルとして動けます。Webプロジェクトでモーションを調整している人のためのものです。

使う場面

  • ✓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がスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/Jakubantalik/transitions.dev/blob/main/refine/.agents/skills/refine-live/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

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:

  1. Relay stop signal (authoritative). GET /jobs/next may return 200 with {"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.
  2. The user says so — "stop refine", "exit live", etc.
  3. 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.

  1. 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/next with {"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/start
    

    Do not call this again mid-loop (it would defeat a user's Stop). Only on a fresh /refine live.

  2. Claim the next job (long-poll). This call blocks up to ~25s, then returns.

    curl -s http://localhost:7331/jobs/next
    
    • HTTP 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 200 with {"stop": true} → the loop must end. Stop polling, tell the user the LLM tab is now unavailable and that /refine live resumes it, and end your turn. Do not treat it as a job.

    • HTTP 200 with 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.

repo: Jakubantalik/transitions.dev

人気

GitHubのスター
6.0k
ランキング
#14454
ライセンス
—
更新日
2026/10/29

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル