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>
47 lines
1.1 KiB
Markdown
47 lines
1.1 KiB
Markdown
---
|
|
name: commit-push
|
|
description: Create a commit and push to remote in one operation
|
|
agent: git-assistant
|
|
---
|
|
|
|
# /commit-push - Commit and Push
|
|
|
|
## Skills
|
|
|
|
- skills/visual-header.md
|
|
- skills/commit-conventions.md
|
|
- skills/sync-workflow.md
|
|
- skills/git-safety.md
|
|
- skills/environment-variables.md
|
|
|
|
## Purpose
|
|
|
|
Create a commit and push to the remote repository in one operation.
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Description |
|
|
|-----------|-------------|
|
|
| `--message`, `-m` | Override auto-generated message |
|
|
| `--force` | Force push (requires confirmation) |
|
|
|
|
## Workflow
|
|
|
|
1. **Display header** - Show GIT-FLOW Commit & Push header
|
|
2. **Run /commit** - Execute standard commit workflow
|
|
3. **Check upstream** - Set up tracking if needed (`git push -u`)
|
|
4. **Push** - Push to remote
|
|
5. **Handle conflicts** - Offer rebase/merge/force if push fails (per sync-workflow.md)
|
|
6. **Verify safety** - Warn before push to protected branches (per git-safety.md)
|
|
7. **Report** - Show push result
|
|
|
|
## Output
|
|
|
|
```
|
|
Committed: abc1234
|
|
feat(auth): add password reset functionality
|
|
|
|
Pushed to: origin/feat/password-reset
|
|
Remote URL: https://github.com/user/repo
|
|
```
|