cp
SKILL.md
Commit & Push Skill
Streamlined git workflow: stage, commit, and push in one command.
Usage
Basic
/cp # Auto-generate commit message
/cp "fix: resolve bug" # Use provided message
Korean Triggers
- "커밋하고 푸시"
- "커밋 푸시"
- "변경사항 올려줘"
Workflow
1. Analyze Changes
git status # See all changes
git diff --staged # Staged changes
git diff # Unstaged changes
git log -3 --oneline # Recent commits for context
2. Generate Commit Message
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 |
3. Stage Files
Prefer specific files over git add -A:
git add src/component.tsx src/utils.ts
Never stage:
.envfiles- Credentials or secrets
- Large binary files (unless intentional)
4. Commit
Use HEREDOC for proper formatting:
git commit -m "$(cat <<'EOF'
type: concise description
Optional body with more details.
Co-Authored-By: Claude <noreply@anthropic.com>
EOF
)"
5. Push
git push origin <current-branch>
If upstream not set:
git push -u origin <current-branch>
Safety Checks
Before committing:
- No secrets: Scan for API keys, passwords, tokens
- Correct branch: Verify not pushing to protected branch accidentally
- Clean diff: Review what's being committed
Error Handling
| 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 |
Weekly Installs
10
Repository
october-academy…-pluginsFirst Seen
Feb 13, 2026
Security Audits
Installed on
codex10
opencode8
gemini-cli8
github-copilot8
kimi-cli8
amp8