agentleFS
dgk-devdgk-dev/dgk-gpt/skills/cp/SKILL.md

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
  1. Distinctive:

    Use this as a thin finish mode after implementation is done.

    line 8
  2. Distinctive:

    Run the closest local verification to the repo's normal safety checks before committing.

    line 19
  3. Distinctive:

    Prefer repo-native commands over invented ones.

    line 20
  4. Distinctive:

    Prefer the narrowest safe checks first: changed-file lint/format checks, affected package tests, or targeted builds.

    line 21
  5. Distinctive:

    If the repo's only reliable gate is broader, run the broader command.

    line 22
  6. Distinctive:

    If a broad local check fails because of unrelated dirty files outside the intended change set, stop and report that clearly instead of …

    line 23
  7. Distinctive:

    If a commit message was not provided, generate a concise conventional commit message that matches the repo style.

    line 25
  8. Distinctive:

    Commit on the current branch.

    line 26
  9. Distinctive:

    If the repo explicitly requires short-lived branches, follow that instead.

    line 28
  10. Distinctive:

    If upstream is missing, push with upstream tracking.

    line 30
  11. Distinctive:

    Never use git add ., git add -A, or similar broad staging.

    line 34
  12. Distinctive:

    Never commit unrelated local changes from other tasks or sessions.

    line 35
  13. Very specific:

    Never commit secrets, .env files, credentials, or generated noise by accident.

    line 36
  14. Distinctive:

    Never silently skip verification.

    line 37
  15. Distinctive:

    Never force push unless the user explicitly asks for it.

    line 38
  16. Distinctive:

    Do not create or require a PR unless the user explicitly asks for one.

    line 39
  17. Distinctive:

    Do not use this for "just commit" or "just push" if the user clearly asked for only one of those actions.

    line 50
  18. Distinctive:

    Do not infer permission to push a different branch than the current one.

    line 51
  19. Distinctive:

    Do not hide skipped or excluded files.

    line 52

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Inspect:
  • git status
  • current branch
  • intended files for this task
  • recent commit message style if needed
  1. 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.
  1. 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.
  2. Stage only the intended files explicitly.
  3. If a commit message was not provided, generate a concise conventional commit message that matches the repo style.
  4. Commit on the current branch.
  • Committing directly to main or master is allowed when that is the repo or user's chosen workflow.
  • If the repo explicitly requires short-lived branches, follow that instead.
  1. 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, .env files, 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.