cp

cp is a command for Claude Code from alirezarezvani/claude-code-skill-factory. It costs 14 tokens per session (234 once invoked), scanned A, a copy of cp, MIT.

A command that stages, commits, and pushes the current Git branch while following the project's commit and review rules. Git is the version-control system used to track code changes.

In plain words
What is it for?
Use it after editing code to prepare a conventional commit, push the branch, start the branch checks, and wait for them before opening a pull request.
Why use it?
It reduces missed checks, incorrectly formatted commit messages, and premature pull requests by running the required validation and remote workflows.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/alirezarezvani/claude-code-skill-factory/cp
Clone the repo
git clone --depth 1 https://github.com/alirezarezvani/claude-code-skill-factory

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cp

README.md
[![agentmods](https://agentmods.dev/badge/commands/alirezarezvani/claude-code-skill-factory/cp.svg)](https://agentmods.dev/commands/alirezarezvani/claude-code-skill-factory/cp)
Your own site
<a href="https://agentmods.dev/commands/alirezarezvani/claude-code-skill-factory/cp"><img src="https://agentmods.dev/badge/commands/alirezarezvani/claude-code-skill-factory/cp.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 234 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 89% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00014 $0.00234
Opus 5 $0.00007 $0.00117
Sonnet 5 $0.00003 $0.00047
Haiku 4.5 $0.00001 $0.00023

Measured 4d ago against content hash a0c8a7ea2985, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

89% identical to cp — 4 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/commands/git/cp.md · 17 lines

What it actually says

  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.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 17 lines · 14 tokens per session scan A a0c8a7ea2985

Subscribe to this mod's changes

cp is a command published in the GitHub repository alirezarezvani/claude-code-skill-factory (855 stars, last pushed 9mo ago), licensed MIT. It adds 14 tokens to every session and 234 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 89% identical to cp, differing in 4 lines, and is treated as a copy.