Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

upstream-sync

БесплатноБез исполняемых скриптовНе проверен

Investigate a local web app against the upstream product it clones (a local claude.ai/code browser, a Workflowy replica), feature by feature, with serial…

motlinот motlin★ 20 звёзд на GitHub

Об этом скилле

Upstream sync

Bring a local app to near-exact parity with the upstream product it mirrors: same features, DOM structure, class names and CSS values, minus anything with no local meaning. The investigation only writes under .llm/upstream-sync/. Implementation comes afterward, from the roadmap, on agent branches that each pass a per-commit gate before local main moves.

The engine is a Workflow script, <plugin-root>/scripts/upstream-sync-workflow.js. Resolve <plugin-root> first: in Claude Code use ${CLAUDE_PLUGIN_ROOT}; in Codex use the plugin root that contains this skills/upstream-sync/SKILL.md file. Codex has no Workflow tool, so it runs the same phases by hand; see the Codex section below. The script runs:

  • Broad: a code-only local inventory and a browser survey of upstream, in parallel. The survey seeds the feature queue.
  • Investigate: one browser investigator per feature, strictly serial because they share Chrome. Priority order is P1, then P2, then P3. Each investigator writes features/<slug>.md and returns any new features it discovered, which join the queue, so the investigation recurses.
  • Critic: up to maxCriticRounds completeness reviews, each adding missed features, until a round adds nothing.
  • Synthesize: SUMMARY.md, a roadmap ordered by milestone.

The orchestrator owns features.md and rewrites it every registryEvery investigations. Investigators never edit it, so the queue never gets duplicate or conflicting rows.

Settle the safety model before anything else

Find out whether interacting with upstream or the local app changes real data. For example, both sides may write to the user's real account, or opening a page may create a record. Ask the user (with AskUserQuestion in Claude Code), offering these options:

  • Sandbox: create one dedicated container, such as a top-level node, a scratch project or a test document. Investigators may edit only inside it, and may only read everywhere else.
  • Strictly read-only: no edits anywhere. Editing behavior is decoded from the DOM and the JS bundle.
  • User performs edits: investigators stop and ask the user to take any action that mutates data.

Also check whether an upstream page is bridged to something live outside the browser. Existing claude.ai sessions, for example, may be connected to running local terminals, so a keystroke in the wrong tab acts on the user's machine. The rules must then name the only pages where writes are allowed (for claude.ai: the bare new-session page, or a session the agent created itself), and every agent must re-read location.href in the same step as any type, click or key action. A screenshot taken before an earlier action proves nothing about where the next one lands.

Create the sandbox through the project's own write path (its CLI or API), never by editing a cache or database directly. Then verify that it exists, and that it exists exactly once.

Write the rules as concrete, checkable instructions. Include the sandbox's id and URL, and the shortcuts that act on the focused item, so investigators verify focus before pressing them. These rules become the safety arg.

Lay out the sync directory

Create .llm/upstream-sync/ and confirm it is gitignored. Then fill it:

  • README.md: copy protocol-template.md from this skill's directory and replace every {{PLACEHOLDER}}. {{CONTEXT}} says how the local app differs from upstream on purpose: local extras to keep, upstream features that will never apply.
  • features.md: a stub. The workflow overwrites it once the survey finishes.
  • features/ and dumps/: create empty.

If an earlier sync left this directory behind, read its README.md Tips and SUMMARY.md first. Carry the lessons forward instead of starting over.

To reuse an earlier run's queue, pass it as seed instead of re-surveying. Audit features.md first: a row marked done is only real if its features/<slug>.md exists and its notes describe findings. A row whose notes say the agent declined, answered another question, or did not investigate is a placeholder; seed it without existing. Seed real rows with existing: true, and seed todo and failed rows as they are.

Verify the local app is running

Check that the local dev server is listening on the expected port and that an HTTP request returns a non-error response, before launching. Also confirm the user is logged in to upstream in the browser profile your browser tools drive: claude-in-chrome in Claude Code, or whichever browser MCP is connected in Codex. If no browser tool is available, stop and tell the user; the investigation can't run on code alone.

Launch the workflow

Call Workflow with scriptPath: <plugin-root>/scripts/upstream-sync-workflow.js and these args:

| Arg | Meaning

Полный SKILL.md на GitHub

Установить upstream-sync в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

protocol-template.md

FAQ

Что делает скилл upstream-sync?

Investigate a local web app against the upstream product it clones (a local claude.ai/code browser, a Workflowy replica), feature by feature, with serial browser investigators (a recursive Workflow in Claude Code, a hand-run loop in Codex), produce per-feature gap files with red/green TDD tasks plus a prioritized roadmap, then implement the roadmap on agent branches gated into a known-good local main. Use when the user wants to sync, diff, or reach parity with upstream, or to find everything upstream has that the local app lacks.

Как установить скилл upstream-sync?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл upstream-sync запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить upstream-sync с