What problem does it solve?
Feature branches in the HyperShift repository often accumulate many small or WIP commits that make PR review difficult. This Skill restructures the branch history into clean, logical commits grouped by architectural component (API, Vendor, CLI, hypershift-operator, control-plane-operator, E2E, Docs) so reviewers can evaluate changes by subsystem.
Core Features & Use Cases
- Component-Based Commit Grouping: Maps changed files to seven ordered component categories using explicit directory patterns, with documented edge-case rules for ambiguous paths like support/, shared-ingress/, and generated CRD manifests.
- Safe History Rewriting: Uses git merge-base detection and soft reset to preserve all changes while rebuilding the commit stack, ending with a verified clean working tree.
- Conventional Commit Messages: Provides per-component type/scope conventions (e.g., feat(api):, chore(api):, test(e2e):) with subject and body writing guidance compliant with gitlint line-length rules.
- Use Case: Before opening a HyperShift PR, a developer with 15 messy commits runs this Skill to produce 5 well-scoped commits (API, Vendor, HO, CPO, E2E) ready for reviewer approval.
Quick Start
Ask the AI to restructure the commits on my current HyperShift branch into logical component-based commits for PR review.