framework-sync
Pull the latest upstream framework changes and merge them into the local prompt library without reverting local work. Use when the user wants to update the…
от rakovi4★ 54 звезды на GitHub
Установить framework-sync в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
/framework-sync - Merge Upstream Framework Changes
The local .claude/ tree is a vendored copy of an upstream framework template that both
sides keep editing. This skill pulls what upstream changed since the last reconciled
revision and merges it in — it never mirrors, never overwrites, never regresses local
work. Principles: "Upstream Framework Sync" in .claude/guidelines/prompt-rules.md.
Usage
/framework-sync # fetch, merge, verify, commit
/framework-sync --dry-run # report what would change; write nothing
/framework-sync <git-url> # override the upstream repository
Default upstream: https://github.com/rakovi4/continue-framework (branch main).
Workflow
- Preflight.
git status --porcelain -- .claude CLAUDE.mdmust be empty. If the sync surface has uncommitted edits, stop and report — the merge has to land as its own reviewable diff, and a three-way apply over dirty files is unresolvable afterwards. Uncommitted changes outside the sync surface are fine. - Fetch upstream. Add the remote once, then fetch it — never push to it:
Read the upstream head:git remote get-url framework 2>/dev/null || git remote add framework <upstream-url> git fetch --no-tags framework maingit log -1 --format='%h %ci %s' framework/main. - Read the baseline from
.claude/framework-baseline(format in the merge template). Present → step 4. Absent → step 5. - Incremental merge. Compute the upstream change set:
Empty → report "prompt library already up to date atgit diff <baseline>..framework/main -- .claude CLAUDE.md ':(exclude).claude/settings.json'<short-rev>", then run the step 11 progress-layout audit before deciding there is nothing to commit. Otherwise apply it withgit apply --3way, one file at a time so each result is inspectable. A file that fails to apply is not a failure of the sync — read both sides (git show framework/main:<path>vs the local file) and merge it by hand. Classify every file with the decision table in the merge template. Then go to step 6. - Bootstrap (no baseline). Do not apply a whole-tree diff as a patch — it cannot
tell an upstream addition from a local deletion. Instead enumerate the differences:
Read direction matters: this diffs from upstream to the working tree, sogit diff --stat framework/main -- .claude CLAUDE.md+lines are local content and-lines are upstream content missing locally. Classify each file with the merge template's table, take only the rows it marks safe, and expect most files to be "keep local" when the local copy is ahead. Present the classification before writing anything. - Key-merge the settings file per the merge template. Upstream keys absent locally are offered in the report, applied only when every path and command they reference resolves in this checkout. No local key is ever rewritten or removed.
- Verify — run the full post-merge checklist in the merge template (cross-references, routing tables, line limits, product-agnostic gate, layer placement). Fix what it catches before committing; a sync that lands a dangling reference is worse than none.
- Record the baseline. Write the upstream head revision, today's date, and the
upstream URL to
.claude/framework-baseline. Only a sync that reached this step advances it — an aborted or rejected merge leaves the old value. - Report in the merge template's format: every file taken, merged, kept local, or skipped, named individually.
- Commit the merge and the baseline together as
framework: sync from upstream <short-rev>, with the report's substance in the body. Under--dry-run, stop after step 9 and write nothing. - Migrate unstarted scenario plans. After the sync commit (or immediately
after an up-to-date result), run
.claude/templates/workflow/scenario-stage-migration.mdover every storyprogress.md. Inspect every###scenario block regardless of its enclosing##heading. Convert each wholly unstarted legacy backend-style or frontend scenario to its staged layout; preserve a scenario as a whole when any one of its steps started. Under--dry-run, report candidates without writing. Otherwise commit all migrated progress files separately asframework: migrate unstarted scenario plans.
Constraints
- Never merge upstream files outside the surface defined in the merge template — product specification, product code, infrastructure, and repo-level docs stay untouched, whatever upstream carries in those paths. Step 11 is not an upstream-file sync: it is a deterministic, checkout-local plan migration governed by its own template and commit.
- Never push to the upstream remote. This skill is pull-only; local improvements go upstream by a separate, deliberate route.
- **A contradiction stops t
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл framework-sync?
Pull the latest upstream framework changes and merge them into the local prompt library without reverting local work. Use when the user wants to update the framework, pull upstream framework/prompt-library changes, or mentions /framework-sync.
Как установить скилл framework-sync?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл framework-sync запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…