一键导入
git-commit
Git commit workflow in a worktree with Python linting, formatting, and testing.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Git commit workflow in a worktree with Python linting, formatting, and testing.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | git-commit |
| description | Git commit workflow in a worktree with Python linting, formatting, and testing. |
Verify you're in a worktree (not main clone):
git rev-parse --show-toplevel
git worktree list
git diff --name-only
git diff --cached --name-only
# Format changed Python files
python -m black <changed_python_files>
python -m isort <changed_python_files>
# Fix license headers
python tests/lint/fix_license_header.py <changed_files>
# Lint
python -m pylint <changed_python_files> --rcfile=.pylintrc -rn -sn
python -m mypy <changed_python_files> --ignore-missing-imports
python -m pytest tests/ -v --tb=short
Follow .ai-instructions/code-review/generic.md checklist.
git add path/to/changed/files
git diff --staged # Final review
Never stage: __pycache__/, .env, *.egg-info/, build artifacts, coverage files
Format: type(scope): description (72 chars max)
Types: feat, fix, refactor, test, docs, style, chore, perf
git commit -m "type(scope): description
Detailed explanation if needed.
Fixes #ISSUE_NUMBER"
No AI co-author lines. (per .ai-instructions/developing/commit-guidelines.md)
git show HEAD --name-only
git log -1
Address GitHub PR review comments. Navigate to correct worktree, make fixes, push updates.
Code review for Python changes in NexRL, following project conventions.
Fix a GitHub issue using git worktree for isolation. Fetches issue, creates worktree, implements fix, then creates PR.
Create a GitHub PR from a worktree branch. Use after committing changes.
Run tests and linting for NexRL Python project.