restructure-commits

Installation
SKILL.md

Restructure Commits by Component

Rewrite a feature branch into one commit per architectural group (API, Dependencies, Vendor, CLI, HO, CPO, E2E, Docs, Tooling) without changing the branch's final file content.

This is the canonical, model-neutral procedure. Any coding agent or human can follow it with git, python3 (standard library only), make, and optionally gh. All paths are relative to the repository root.

When to Use

  • The user asks to "redo", "restructure", "squash by component", or "organize" commits
  • Preparing a branch for PR review, or cleaning history after addressing review comments

Ownership

ownership.json maps every path to a group; commit_layout.py applies it. Both the file and the table below are generated by generate_ownership.py (make ownership-rules, also run by make update); never edit them by hand. Commit groups in this order and skip groups with no changes:

Installs
4
GitHub Stars
555
First Seen
Oct 26, 2026