基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/nex-agi/NexRL --skill address-pr-comments命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
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.
Git commit workflow in a worktree with Python linting, formatting, and testing.
| name | address-pr-comments |
| description | Address GitHub PR review comments. Navigate to correct worktree, make fixes, push updates. |
PR_NUM=<number>
BRANCH=$(gh pr view $PR_NUM --repo "$REPO" --json headRefName -q '.headRefName')
# Find and enter the worktree
git worktree list | grep "$BRANCH"
cd <worktree-path>
gh api graphql -f query='
query {
repository(owner: "china-qijizhifeng", name: "NexRL") {
pullRequest(number: '$PR_NUM') {
reviewThreads(first: 50) {
nodes {
id isResolved
comments(first: 1) {
nodes { id databaseId body path line }
}
}
}
}
}
}'
python -m black <changed_files>
python -m isort <changed_files>
python -m pylint <changed_files> --rcfile=.pylintrc -rn -sn
python -m pytest tests/ -v --tb=short
git add -A
git commit -m "chore(pr): address review comments for #${PR_NUM}"
git push origin "$BRANCH"
Reply to each addressed comment via gh API, then resolve the thread.
ISSUE_NUM=$(echo "$BRANCH" | grep -oP 'issue-\K\d+')
if [ -n "$ISSUE_NUM" ]; then
gh issue comment "$ISSUE_NUM" --repo china-qijizhifeng/NexRL \
--body "📝 PR comments addressed and pushed."
fi