.cursor/skills/rebase/SKILL.md
Rebase the current branch onto its base branch, resolve all conflicts, and verify lint, i18n, and build pass. Use when the user asks to rebase, update, or sync a branch with its upstream base.
npx skillsauth add openshift/lightspeed-console rebaseInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Rebase the current branch onto its base branch. This skill assumes the local repo is already up to date (no fetch/pull needed).
Read release-branches.md to get the list of branches. For each branch, compute the merge-base with HEAD and count the commits between them:
mb=$(git merge-base HEAD <branch>)
git rev-list --count "$mb"..HEAD
The base branch is whichever has the lowest commit count (fewest commits
between the merge-base and HEAD). If counts are tied, prefer main.
Tell the user which base branch was detected before proceeding.
git rebase <base-branch>
If the rebase completes cleanly, skip to Step 3.
When conflicts occur, repeat this loop until the rebase finishes:
git diff --name-only --diff-filter=U to list conflicting files.<<<<<<<,
=======, >>>>>>>), and resolve them by keeping the correct version.
Prefer incoming (base-branch) changes for dependency updates and lockfile
entries; prefer the current branch's changes for feature code — but use
judgment and the surrounding context to decide.git add <files>.git rebase --continue.After the rebase succeeds, run the following commands in order, fixing any errors before moving on:
npm run lint-fix — fix lint/formatting issues automatically.npm run i18n — regenerate locale files.npm run build — ensure the project compiles.If any step produces errors that lint-fix did not auto-resolve, fix them
manually and re-run the failing command until it passes.
Summarize what happened:
data-ai
Update the project version number across all files that contain it on the current branch. Use when bumping the version on a single branch only. For a full multi-branch release, use the release skill instead.
testing
Run Cypress tests filtered by tag. Use when the user asks to run tests, run Cypress, or test a specific feature tag like @core or @attach.
testing
Review project AI skills for duplication, stale references, mistakes, and structural issues. Use when the user asks to review skills, audit skills, check for duplicate skills, or verify skill quality.
development
Review all README.md files in the repo for typos, errors, and outdated information. Use when the user asks to review READMEs, check documentation accuracy, or audit docs.