Skip to main content
ClaudeWave
Slash Command260 estrellas del repoactualizado 16d ago

cp

The `cp` command automates the git workflow by running local linting and tests, staging changes while excluding generated or secret files, creating a Conventional Commit message with required context blocks, committing the changes, pushing the branch to origin, triggering remote CI checks via GitHub Actions, and waiting for those checks to complete. Use this command when ready to finalize and push code changes while ensuring compliance with project governance standards and quality gates.

Instalar en Claude Code
Copiar
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/borghei/Claude-Skills/HEAD/.claude/commands/git/cp.md -o ~/.claude/commands/cp.md
Después abre una sesión nueva de Claude Code; el slash command carga automáticamente.

cp.md

1. Run `/review` to ensure lint/tests/security checks pass locally.
2. Review and stage changes with `git add` (avoid staging generated or secret files).
3. Craft a Conventional Commit message (types: feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert).
   - Use `.github/commit-template.txt` and include Context / Testing / Reviewers blocks.
   - Never add AI attribution strings to commits.
4. Commit with `git commit` using the prepared message. If commitlint fails, fix the message and retry.
5. Push to origin: `git push origin $(git branch --show-current)`.
6. Trigger remote checks for visibility:
   - `gh workflow run ci-quality-gate.yml --ref $(git branch --show-current)`
7. Wait for workflow to finish (`gh run watch --workflow ci-quality-gate.yml`) before opening a pull request.