cnp

A commit-and-push command reviews the current changes, creates an English Conventional Commits message, commits the selected files, and pushes the branch to the remote repository. A remote repository is the shared copy of the project hosted elsewhere.

In plain words
What is it for?
It helps inspect changes, stage files individually, create a correctly formatted commit, and publish the current branch.
Why use it?
It packages local work for sharing while excluding sensitive files such as environment settings and credentials. It also warns about committing directly on protected branches or leaving debug logging behind.

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/circui-try/circuit/cnp
Clone the repo
git clone --depth 1 https://github.com/CIrcui-try/Circuit

Made for: Claude Code.

Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 477 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found 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.00013 $0.00477
Opus 5 $0.00006 $0.00238
Sonnet 5 $0.00003 $0.00095
Haiku 4.5 $0.00001 $0.00048

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

Security

Grade A, and why

cnp 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 2d 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.

.claude/commands/cnp.md · 28 lines

What it actually says

현재 브랜치의 변경사항을 커밋하고 리모트에 푸시하는 커맨드.

$ARGUMENTS로 커밋 메시지 힌트를 받을 수 있다. 예: /cmp 키패드 버그 수정

절차

  1. 상태 확인: git status로 변경사항을 확인한다. 변경사항이 없으면 사용자에게 알리고 중단한다.
  2. diff 확인: git diffgit diff --staged로 변경 내용을 파악한다.
  3. 커밋 로그 확인: git log --oneline -5로 최근 커밋 스타일을 확인한다.
  4. 커밋 메시지 작성: 변경 내용을 분석하여 영어 Conventional Commits 스타일로 커밋 메시지를 작성한다. $ARGUMENTS가 있으면 의미만 힌트로 활용하고 최종 메시지는 영어로 쓴다.
  5. 스테이징: 변경된 파일을 개별적으로 git add한다. .env, 자격 증명 파일 등 민감한 파일은 제외한다.
  6. 커밋 및 푸시: 확인 없이 바로 커밋하고 푸시한다.
  7. 푸시: 리모트 트래킹 브랜치가 있으면 git push, 없으면 git push -u origin <브랜치이름>으로 푸시한다.

주의사항

  • develop이나 main 브랜치에서 직접 커밋하려는 경우 사용자에게 경고하고 확인을 받는다.
  • 커밋 메시지는 반드시 영어로 작성한다. 한국어를 쓰지 않는다.
  • .env, credentials.json 등 민감한 파일이 변경사항에 포함되어 있으면 스테이징에서 제외하고 사용자에게 알린다.
  • console.log가 포함된 변경사항이 있으면 사용자에게 알린다.
  • 위 경고 상황을 제외하면 확인 없이 바로 진행한다.
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. 2d ago First seen · 28 lines · 13 tokens per session scan A dcfb6e796a56

Subscribe to this mod's changes

cnp is a command published in the GitHub repository CIrcui-try/Circuit (5 stars, last pushed 3mo ago), licensed MIT. It adds 13 tokens to every session and 477 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.