What problem does it solve?
Managing Git operations in the Nop project requires strict adherence to its commit style (semantic Chinese-language messages, module-based splitting) and safe sync/rebase practices. This Skill enforces those conventions automatically and prevents dangerous operations like discarding unpushed commits.
Core Features & Use Cases
- Smart Commit Splitting: Automatically groups changed files by module, layer, and concern into multiple semantic commits (feat/fix/docs/refactor) with detailed bodies, and updates CHANGELOG.md for breaking changes.
- Safe Sync & Rebase: Uses
git ls-remote and forced refspec fetches to verify remote state before syncing with pull --ff-only, refusing to discard unpushed commits; supports interactive squash and autosquash rebases with conflict resolution.
- History Search: Finds when code was added or removed via pickaxe search (
git log -S), regex search (git log -G), blame, bisect, and file history tracking.
- Use Case: After modifying files across nop-sys and nop-cluster modules, ask the assistant to commit the changes—it produces a commit plan splitting them into per-module semantic commits, then verifies the build.
Quick Start
Ask the assistant to commit my current changes following the Nop project commit style and split them by module.