From cp
Commit and push in one step. Use when user says "/cp", "commit and push", "커밋하고 푸시", "커밋 푸시", or wants to stage, commit, and push changes in a single action. Optionally accepts a commit message as argument.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cp:cpThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Streamlined git workflow: stage, commit, and push in one command.
Streamlined git workflow: stage, commit, and push in one command.
/cp # Auto-generate commit message
/cp "fix: resolve bug" # Use provided message
git status # See all changes
git diff --staged # Staged changes
git diff # Unstaged changes
git log -3 --oneline # Recent commits for context
If no message provided, analyze changes and generate following Conventional Commits:
| Prefix | Use Case |
|---|---|
feat: | New feature |
fix: | Bug fix |
docs: | Documentation |
refactor: | Code restructuring |
style: | Formatting (no logic change) |
test: | Adding tests |
chore: | Maintenance tasks |
Prefer specific files over git add -A:
git add src/component.tsx src/utils.ts
Never stage:
.env filesUse HEREDOC for proper formatting:
git commit -m "$(cat <<'EOF'
type: concise description
Optional body with more details.
Co-Authored-By: Claude <[email protected]>
EOF
)"
git push origin <current-branch>
If upstream not set:
git push -u origin <current-branch>
Before committing:
| Error | Solution |
|---|---|
| "Nothing to commit" | No changes detected, inform user |
| "Push rejected" | Run git pull first, then retry |
| "Pre-commit hook failed" | Fix issues, stage again, create NEW commit |
npx claudepluginhub october-academy/agent-plugins --plugin cpCreates semantic git commits with conventional commit format, stages changes, and pushes to remote. Handles pre-commit hooks and writes meaningful commit messages.
Commits git changes with auto-generated message and pushes to origin after analyzing status/diffs, staging specifics, skipping secrets, and warning on main/master branches.
Stages all changes, creates a conventional commit, and pushes to the remote branch in one step.