fix-vendor-conflicts
Skill by grafana
Resolves vendor/ conflicts in Go repositories during merges, rebases, and dependency upgrades. Built for maintainers who need to bring fixes from main to release branches.
Install fix-vendor-conflicts
Built from the published package, never by AI.
git clone --depth 1 https://github.com/grafana/tempo /tmp/tempo && mkdir -p ~/.claude/skills && cp -r /tmp/tempo/.claude/skills/fix-vendor-conflicts ~/.claude/skills/fix-vendor-conflictsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/grafana/tempo /tmp/tempo && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tempo/.claude/skills/fix-vendor-conflicts ~/.gemini/antigravity-cli/skills/fix-vendor-conflictsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install fix-vendor-conflicts in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
The fix-vendor-conflicts skill guides an assistant through resolving conflicts in the vendor/ directory during a merge, rebase, or dependency upgrade. It first asks whether the work is on main or a release branch, since that decides which fixes are allowed. The skill forbids manual patches to vendor/ files, because CI runs go mod vendor and would overwrite them. Fixes must come from upgrading or pinning upstream dependencies.
The process runs go mod tidy, go mod vendor, and build and test compile checks, looping back whenever new errors appear. It tells the assistant to check main first, since main has usually already solved the problem. On release branches it favors cherry-picking small commits from main over hand-written changes, with one exception for minimal test-only mock stubs. The skill references Tempo paths and make targets, so it appears written for that codebase.
Written from the project's SKILL.md and checked against it.
What it can do
- Branch-aware fix rulesAsks whether the work is on main or a release branch and sets allowed fixes accordingly.
- Pre-commit checklistRuns go mod tidy, go mod vendor, go build, test compile checks, and the manifest generator before committing.
- Step-by-step diagnosisReads git diff on go.mod and tidy error traces to find which module bump caused the conflict.
- Upstream fix lookupUses git log and git show to find the commit on main that already contains the needed fix.
- Cherry-pick guidanceExplains when to cherry-pick a commit from main and how to resolve go.mod, go.sum, and vendor conflicts.
- Minimal test stubsAllows a panicking stub in a _test.go mock on release branches when no suitable fix exists.
- Cascade checksCovers common cascading conflicts such as interface additions, signature changes, and stale replace directives.
What you need
- Go toolchain, since the skill runs go mod, go build, and go test commands
- Git, with access to the repository's main and release branches
Try asking
- Help me resolve vendor conflicts after bumping grpc on main
- Find the main commit that already has the fix for this vendor conflict
- Run the pre-commit checklist and report any compile errors in test files
Good to know
- Never patch vendor/ files manually; fixes must come from upstream upgrades or pins.
- Release branches do not get manual production code changes.
- Broader tests such as make test and make test-e2e run only if the user confirms.
- Paths and make targets are specific to the Tempo repository layout.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/fix-vendor-conflicts/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: Bash Read Grep Edit
-
SKILL.md11 KB
Alternatives to fix-vendor-conflicts
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-vendor-conflicts: common questions
Can it edit files in vendor/ directly?
No. The skill says never to patch vendor/ files manually, because CI runs go mod vendor and overwrites manual patches.
How does it handle release branches?
It avoids hand-written production code changes on release branches and prefers cherry-picking the relevant source changes from main. The only exception is a minimal test-only stub in a _test.go file.
Does it run the full test suite?
Not by default. The skill says broader runs such as make test and make test-e2e take a long time, so it runs them only if the user confirms.
How do I install fix-vendor-conflicts?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is fix-vendor-conflicts free?
The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.
Is fix-vendor-conflicts safe to use?
It scores 85 of 100. Grades: maintenance A, licence C, 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-vendor-conflicts?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
