commit-push-pr

A workflow for committing Git changes, pushing a branch to a remote repository, and opening a pull request. A pull request is a proposed change that others can review before it is merged.

In plain words
What is it for?
Use it when a finished change needs a commit, a remote branch, and a GitHub pull request.
Why use it?
It adds checks against committing directly to the main branch or accidentally including sensitive files, and it records tests and the reason for the change.

Skill for Claude CodeCodex

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 skills/jh941213/codex-lattice/commit-push-pr
Any agent
npx skills add jh941213/codex-lattice --skill commit-push-pr
Clone the repo
git clone --depth 1 https://github.com/jh941213/codex-lattice

Made for: Claude Code, Codex.

Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 611 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00099 $0.00611
Opus 5 $0.00049 $0.00305
Sonnet 5 $0.00020 $0.00122
Haiku 4.5 $0.00010 $0.00061

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

Security

Grade B, and why

commit-push-pr scanned grade B with 1 finding 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

`~/.codex/config.toml`의 `commit_attribution`을 설정했다면 그 값을 따른다.
skills/commit-push-pr/SKILL.md · 89 lines

What it actually says

커밋, 푸시, PR 생성

현재 변경사항을 커밋하고 푸시한 후 PR을 생성합니다.

Step 1: 사전 검증

# 현재 브랜치 확인 — main/master면 STOP
BRANCH=$(git branch --show-current)
if [ "$BRANCH" = "main" ] || [ "$BRANCH" = "master" ]; then
  echo "BLOCKED: main/master 브랜치에서 직접 커밋 금지"
  exit 1
fi

# 상태 확인
git status
git diff --stat
git log --oneline -5

Step 2: 위험 파일 확인

# 민감한 파일이 staged 되었는지 검사
git diff --cached --name-only | grep -E '\.(env|pem|key|credentials)' && echo "WARNING: 민감 파일 포함!"

Step 3: 커밋

# 변경 파일 선택적 staging (git add -A 지양)
git add [specific-files]

# 커밋 메시지 작성
git commit -m "$(cat <<'EOF'
[타입] 제목 (50자 이내)

본문 (선택 — 무엇이 아닌 왜를 설명)

Co-Authored-By: Codex <[email protected]>
EOF
)"

Codex 기본 attribution을 쓰는 경우:

Co-Authored-By: Codex <[email protected]>

~/.codex/config.tomlcommit_attribution을 설정했다면 그 값을 따른다.

타입: feat, fix, docs, style, refactor, test, chore

Step 4: 푸시

# 원격 브랜치 설정 + 푸시
git push -u origin $(git branch --show-current)

Step 5: PR 생성

gh pr create --title "[타입] 제목" --body "$(cat <<'EOF'
## 요약
- 변경 내용 1
- 변경 내용 2

## 테스트
- [ ] typecheck 통과
- [ ] lint 통과
- [ ] test 통과
EOF
)"

출력

완료 시 PR URL을 반환합니다.

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 · 89 lines · 99 tokens per session scan B b6eb94b3eb53

Subscribe to this mod's changes

commit-push-pr is a skill published in the GitHub repository jh941213/codex-lattice (19 stars, last pushed 3mo ago), licensed MIT. It adds 99 tokens to every session and 611 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.