Refactored commands to extract reusable skills following the Commands → Skills separation pattern. Each command is now <50 lines and references skill files for detailed knowledge. Plugins refactored: - claude-config-maintainer: 5 commands → 7 skills - code-sentinel: 3 commands → 2 skills - contract-validator: 5 commands → 6 skills - data-platform: 10 commands → 6 skills - doc-guardian: 5 commands → 6 skills (replaced nested dir) - git-flow: 8 commands → 7 skills Skills contain: workflows, validation rules, conventions, reference data, tool documentation Commands now contain: YAML frontmatter, agent assignment, skills list, brief workflow steps, parameters Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1.3 KiB
1.3 KiB
name, description, agent
| name | description | agent |
|---|---|---|
| commit-sync | Commit, push, and sync with base branch | git-assistant |
/commit-sync - Commit, Push, and Sync
Skills
- skills/visual-header.md
- skills/commit-conventions.md
- skills/sync-workflow.md
- skills/merge-workflow.md
- skills/environment-variables.md
Purpose
Full sync operation: commit local changes, push to remote, sync with upstream/base branch, and detect stale branches.
Parameters
| Parameter | Description |
|---|---|
--base |
Override default base branch |
--no-rebase |
Use merge instead of rebase |
Workflow
- Display header - Show GIT-FLOW Commit Sync header
- Run /commit - Execute standard commit workflow
- Push to remote - Push committed changes
- Fetch with prune -
git fetch --all --prune - Sync with base - Rebase on base branch (per sync-workflow.md)
- Handle conflicts - Guide resolution if conflicts occur (per merge-workflow.md)
- Push again -
git push --force-with-leaseif rebased - Detect stale - Report stale local branches
- Report status - Show sync summary
Output
Committed: abc1234
Pushed to: origin/feat/password-reset
Synced with: development (xyz7890)
Status: Clean, up-to-date
Stale branches: 2 found - run /branch-cleanup