fix-sync
Skill by ClickHouse
Fix the "CH Inc sync" check on a ClickHouse pull request. It diagnoses the failure as conflicts, a build failure or test failures, then applies the matching fix in the private sync PR.
Install fix-sync
Built from the published package, never by AI.
git clone --depth 1 https://github.com/ClickHouse/ClickHouse /tmp/ClickHouse && mkdir -p ~/.claude/skills && cp -r /tmp/ClickHouse/.claude/skills/fix-sync ~/.claude/skills/fix-syncRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/ClickHouse/ClickHouse /tmp/ClickHouse && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ClickHouse/.claude/skills/fix-sync ~/.gemini/antigravity-cli/skills/fix-syncAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill repairs the "CH Inc sync" CI job for a ClickHouse pull request. The job mirrors the public PR into a sync PR on the private clickhouse-private repository, on a branch named sync-upstream/pr/<PR_NUMBER>. The skill first reads the commit status description to find out whether the failure is conflicts found, build failed or tests failed. It then handles each case: it merges master and resolves conflicts, adapts private code to fix a build, or reruns failed jobs for flaky test failures.
The skill is for maintainers of ClickHouse who work with the private sync process. It uses the GitHub CLI and git, and it asks the user before risky steps such as ambiguous conflicts, genuine test regressions or optional local builds. It pushes to the sync branch only when a fix has been committed.
Written from the project's SKILL.md and checked against it.
What it can do
- Diagnose failure typeReads the CH Inc sync commit status and classifies the failure as conflicts, build or tests.
- Resolve merge conflictsMerges origin/master into the sync branch and resolves conflicted files, favoring upstream changes by default.
- Fix build failuresFinds the build error in the CI log and adapts private-only code to the upstream change.
- Rerun flaky test jobsReruns only the failed jobs when test failures look like infrastructure errors unrelated to the PR.
- Report genuine regressionsSummarizes failing test logs and asks the user before pushing any speculative fix.
- Push and verify sync PRPushes the resolved branch and checks the sync PR mergeable state and CI checks.
What you need
- GitHub CLI (gh)
- Git
- Local checkout of ClickHouse/clickhouse-private
- Access to the ClickHouse and clickhouse-private repositories
Try asking
- Fix the CH Inc sync job for ClickHouse PR 96005
- Diagnose why the sync check failed on this PR: https://github.com/ClickHouse/ClickHouse/pull/96005
- Rerun the failed jobs for the sync PR of PR 96005 if they look flaky
Good to know
- Only works for ClickHouse PRs that have a matching sync-upstream/pr/<PR_NUMBER> branch in clickhouse-private.
- Expects a local clone of clickhouse-private, typically one directory level up.
- Genuine test regressions are not fixed automatically and need user confirmation.
- Does not use rebase or amend. It adds new commits instead.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/fix-sync/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: TaskBash(gh:*)Bash(cd:*)Bash(git:*)Bash(ls:*)Bash(pwd:*)Bash(mktemp:*)ReadGrepGlobAskUserQuestion
-
SKILL.md11 KB
Alternatives to fix-sync
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
fix-sync: common questions
What does the CH Inc sync check mean?
The check reflects the state of the matching sync PR in clickhouse-private. It stays pending or failing if that sync PR has conflicts, fails to build, or has failing tests.
When should I use a rerun instead of a merge?
The skill reruns failed jobs when test failures are infrastructure errors, such as server start failures or timeouts, that are unrelated to the PR changes. Merging is for conflicts.
Does the skill push changes without asking?
It pushes only after a fix is committed. It asks the user about ambiguous conflicts, optional local builds and genuine test regressions.
How do I install fix-sync?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is fix-sync free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is fix-sync safe to use?
It scores 86 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to fix-sync?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
