Skip to content
Development
Command

/cp

Stage, commit, and push the current branch following git governance rules.

From plugin
claude-code-skill-factory
86320 skills5 agents20 commands

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/cp

Context preview

What this command does when you run it.

Stage, commit, and push the current branch following git governance rules.

Command definition

cp.md
description: Stage, commit, and push the current branch following git governance rules.

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-commit-branch-guard.yml --ref $(git branch --show-current)`
  • `gh workflow run ci-quality-gate.yml --ref $(git branch --show-current)`

7. Wait for both workflows to finish (`gh run watch --workflow ci-quality-gate.yml`) before opening a pull request.

Ships withclaude-code-skill-factory

A comprehensive toolkit for generating production-ready Claude Skills and Claude Code Agents at scale.

Get the whole plugin
Stats
866
Stars
176
Forks
Quiet
Maintenance
Python
Language
MIT
License
10mo ago
Last commit
10mo ago
Created

Repo: alirezarezvani/claude-code-skill-factory

Other commands on claude-code-skill-factory.