원클릭으로
commit-prep
Prepare code for git commit by running format checks, lints, tests, and generating a commit message. Use before committing changes.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Prepare code for git commit by running format checks, lints, tests, and generating a commit message. Use before committing changes.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Draft or refresh a Hugging Face model card (MODEL_CARD.md / README model section). Use when publishing BitNet/trit/HF checkpoints or training runs.
Run a minimal train/import smoke for ML crates (Rust or Python HF). Use before claiming a training path works.
Run the standard Rust local gate (fmt, clippy -D warnings, build, test). Use before commits/PRs on Rust crates.
Detect drift from tzervas fleet standards (workflows, badges, issue tiers, Copilot off). Use when auditing a repo or filing fleet-gap issues.
Two-pass pull request review — triage by size/risk, then grounded file:line checklist. Use when reviewing PRs or before merge.
Review Rust unsafe blocks for SAFETY comments (what/why/invariants). Use when writing or reviewing unsafe Rust.
| name | commit-prep |
| description | Prepare code for git commit by running format checks, lints, tests, and generating a commit message. Use before committing changes. |
| metadata | {"author":"tz-forge","version":"1.0","source":"adapted from SpectreOS skills/commit-prep (product-specific paths removed)"} |
| allowed-tools | Bash(cargo:*) Bash(git:*) Bash(uv:*) Bash(python:*) |
Prepare code changes for commit with quality checks and a clear message.
git status
git diff
git diff --cached
# Preferred generic gate
./scripts/check.sh
# Apply formatters when supported
./scripts/check.sh --fix
# Faster path when supported
./scripts/check.sh --quick
If scripts/check.sh is absent:
Rust
cargo fmt --check
cargo clippy --all-targets --all-features -- -D warnings
cargo test --all-features
Python
uv run ruff format --check .
uv run ruff check .
uv run pytest -q
--fix or cargo fmt / ruff formatgit add path/to/file.rs # preferred
# avoid blind `git add .` when secrets or build artifacts may be present
Add, Fix, Update, RefactorRefs #n on feature/dev; Closes #n / Fixes #n only for main deliveryType prefixes: feat:, fix:, refactor:, test:, docs:, perf:, chore:
git commit -m "$(cat <<'EOF'
feat: add deny.toml allowlist for common OSS licenses
Align cargo-deny with fleet defaults so CI does not fail on
MIT/Apache transitive deps.
Refs #42
EOF
)"
Refs vs Closes)Commit Preparation Results
==========================
Files changed: N
Quality checks: ✅ / ❌ (list)
Suggested commit message:
-------------------------
...
Ready to commit? yes/no