원클릭으로
commit
Validate code with lints and tests, then commit and push
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Validate code with lints and tests, then commit and push
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Quickly commit, push, and create a PR while leaving validation to GitHub checks
Quickly commit and push local changes while leaving validation to GitHub checks
Step-by-step guide for adding new pages to the Yew frontend
Step-by-step guide for adding new OAuth integrations to Lightfriend
Step-by-step guide for modifying database schema using Diesel migrations
Run formatting and linting checks on the codebase
| name | commit |
| description | Validate code with lints and tests, then commit and push |
This skill ensures code quality before committing by running all checks, then commits and pushes.
cd backend && cargo fmt --check
If this fails, run cargo fmt to auto-fix, then re-check.
cd backend && cargo clippy --workspace --all-targets --all-features -- -D warnings
If clippy fails, fix the issues before proceeding. Do NOT commit code with clippy warnings.
cd backend && cargo test --workspace
If tests fail, fix the failing tests before proceeding. Do NOT commit code with failing tests.
git status
Review what will be committed. If there are no changes, inform the user and stop.
git add -A
Ask the user for a commit message, or generate one based on the changes.
IMPORTANT: Never include:
Commit message format:
git commit -m "Short description of changes"
For multi-line messages:
git commit -m "$(cat <<'EOF'
Short summary
Longer description if needed
EOF
)"
git push origin HEAD
If push fails due to upstream changes, pull first:
git pull --rebase origin HEAD && git push origin HEAD
If ANY step fails (fmt, clippy, or tests):
# Full validation + commit + push
cd backend && cargo fmt --check && cargo clippy --workspace --all-targets --all-features -- -D warnings && cargo test --workspace && cd .. && git add -A && git commit -m "message" && git push
# Auto-fix formatting
cd backend && cargo fmt
# Check only (no commit)
cd backend && cargo fmt --check && cargo clippy --workspace --all-targets --all-features -- -D warnings && cargo test --workspace