cp
Skill56 starsChanged 9 months agoMITView on GitHub
Local verify-commit-push wrapper for Codex. Use only when the user explicitly says `/cp` or clearly asks to finish the current work by running the relevant local checks, staging intended files explicitly, committing on the current branch, and pushing. This workflow may commit directly to `main` or `master` when that is the repo's chosen operating model.
- Reads credentials
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. About 0 are common, 18 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈18
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 8
Use this as a thin finish mode after implementation is done.
- Distinctive: line 19
Run the closest local verification to the repo's normal safety checks before committing.
- Distinctive: line 20
Prefer repo-native commands over invented ones.
- Distinctive: line 21
Prefer the narrowest safe checks first: changed-file lint/format checks, affected package tests, or targeted builds.
- Distinctive: line 22
If the repo's only reliable gate is broader, run the broader command.
- Distinctive: line 23
If a broad local check fails because of unrelated dirty files outside the intended change set, stop and report that clearly instead of …
- Distinctive: line 25
If a commit message was not provided, generate a concise conventional commit message that matches the repo style.
- Distinctive: line 26
Commit on the current branch.
- Distinctive: line 28
If the repo explicitly requires short-lived branches, follow that instead.
- Distinctive: line 30
If upstream is missing, push with upstream tracking.
- Distinctive: line 34
Never use git add ., git add -A, or similar broad staging.
- Distinctive: line 35
Never commit unrelated local changes from other tasks or sessions.
- Very specific: line 36
Never commit secrets, .env files, credentials, or generated noise by accident.
- Distinctive: line 37
Never silently skip verification.
- Distinctive: line 38
Never force push unless the user explicitly asks for it.
- Distinctive: line 39
Do not create or require a PR unless the user explicitly asks for one.
- Distinctive: line 50
Do not use this for "just commit" or "just push" if the user clearly asked for only one of those actions.
- Distinctive: line 51
Do not infer permission to push a different branch than the current one.
- Distinctive: line 52
Do not hide skipped or excluded files.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Cp
Use this as a thin finish mode after implementation is done.
cp is the local gate before push: verify first, then commit and push the intended changes on the current branch.
Default Flow
- Inspect:
git status- current branch
- intended files for this task
- recent commit message style if needed
- Run the closest local verification to the repo's normal safety checks before committing.
- Prefer repo-native commands over invented ones.
- Prefer the narrowest safe checks first: changed-file lint/format checks, affected package tests, or targeted builds.
- If the repo's only reliable gate is broader, run the broader command.
- If a broad local check fails because of unrelated dirty files outside the intended change set, stop and report that clearly instead of fixing or staging those unrelated files.
- Stage only the intended files explicitly.
- If a commit message was not provided, generate a concise conventional commit message that matches the repo style.
- Commit on the current branch.
- Committing directly to
mainormasteris allowed when that is the repo or user's chosen workflow. - If the repo explicitly requires short-lived branches, follow that instead.
- Push the current branch.
- If upstream is missing, push with upstream tracking.
Rules
- Never use
git add .,git add -A, or similar broad staging. - Never commit unrelated local changes from other tasks or sessions.
- Never commit secrets,
.envfiles, credentials, or generated noise by accident. - Never silently skip verification; state what ran and what was skipped.
- Never force push unless the user explicitly asks for it.
- Do not create or require a PR unless the user explicitly asks for one.
Good Targets
- "/cp"
- "커밋하고 푸시해줘"
- "메인에 올려"
- "이제 검증하고 바로 푸시해"
Avoid
- Do not use this for "just commit" or "just push" if the user clearly asked for only one of those actions.
- Do not infer permission to push a different branch than the current one.
- Do not hide skipped or excluded files; mention them briefly if they matter.
Finish
Return:
- branch pushed
- verification run or skipped
- commit message
- commit hash
- intentionally excluded files if any
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

