用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Jessinra/Lorekeeper --skill github-pr-workflow命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Lorekeeper-specific BLOCKER patterns, severity tiers, and review checklist — used when reviewing any PR touching src/lorekeeper/
GitHub App bot authentication — setup, token rotation, and cron refresh for jessinra-megumi-dev[bot]
Marketing workflow for Lorekeeper — README copy, manifesto, positioning, and multi-agent A/B testing of copy variations. Load this when working on any user-facing content: README, docs/manifesto.md, positioning, comparison tables, or launch copy.
基于 SOC 职业分类
正在显示 SKILL.md
| name | github-pr-workflow |
| description | GitHub PR lifecycle: branch, commit, open, CI, merge. |
| version | 1.1.0 |
| author | Hermes Agent |
| license | MIT |
| platforms | ["linux","macos","windows"] |
| metadata | {"hermes":{"tags":["GitHub","Pull-Requests","CI/CD","Git","Automation","Merge"],"related_skills":["github-auth","github-code-review"]}} |
Complete guide for managing the PR lifecycle. All sections show the gh way — for git + curl fallbacks, see references/curl-fallback.md.
git log --oneline origin/main..HEAD # local-only commits
git log --oneline HEAD..origin/main # remote-only commits
git add -A && git stash
git pull --rebase
git stash pop
Prefer --rebase over --no-rebase — keeps history linear.
if command -v gh &>/dev/null && gh auth status &>/dev/null; then
AUTH="gh"
else
AUTH="git"
fi
echo "Using: $AUTH"
REMOTE_URL=$(git remote get-url origin)
OWNER_REPO=$(echo "$REMOTE_URL" | sed -E 's|.*github\.com[:/]||; s|\.git$||')
OWNER=$(echo "$OWNER_REPO" | cut -d/ -f1)
REPO=$(echo "$OWNER_REPO" | cut -d/ -f2)
git fetch origin
git checkout main && git pull origin main
git checkout -b feat/add-user-authentication
Branch naming: feat/, fix/, refactor/, docs/, ci/ + description.
git add src/auth.py src/models/user.py
git commit -m "feat: add JWT-based user authentication
- Add login/register endpoints
- Add unit tests for auth flow"
Commit format: type(scope): short description. Types: feat, fix, refactor, docs, test, ci, chore, perf.
git push -u origin HEAD
gh pr create \
--title "feat: add JWT-based user authentication" \
--body "## Summary\nCloses #42"
Options: --draft, --reviewer user1,user2, --label "enhancement", --base develop
Pitfall — requesting a reviewer can fail the create: @copilot is not always a valid GitHub login. Create the PR first, then add reviewer separately:
gh pr edit <PR_NUMBER> --add-reviewer <reviewer-login>
For curl fallback, see references/curl-fallback.md.
gh pr checks
gh pr checks --watch # polls every 10s
gh run list --branch $(git branch --show-current) --limit 5
gh run view <RUN_ID> --log-failed
git add <fixed_files>
git commit -m "fix: resolve CI failure in <check_name>"
git push
patch/write_filegit add . && git commit -m "fix: ..." && git pushgit commit -m "fix: ..." + git push)PR_NUMBER=8
gh api repos/$OWNER/$REPO/pulls/$PR_NUMBER/comments \
--jq '.[] | {path, body, line, commit_id}'
git add <changed_files>
git commit -m "[TICKET-N] fix: address PR review feedback"
git push
gh pr view $PR_NUMBER --json state,headRefOid
# Squash merge + delete branch
gh pr merge --squash --delete-branch
# Enable auto-merge
gh pr merge --auto --squash --delete-branch
# 1. Start from clean main
git checkout main && git pull origin main
# 2. Branch
git checkout -b fix/login-redirect-bug
# 3. (Agent makes code changes with file tools)
# 4. Commit
git add src/auth/login.py tests/test_login.py
git commit -m "fix: correct redirect URL after login"
# 5. Push
git push -u origin HEAD
# 6. Create PR (see Section 3)
# 7. Monitor CI (see Section 4)
# 8. Merge when green (see Section 7)