[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CA8F5F14B3W7MP5EK3T84F":3,"skill-same:01M6CA8F5F14B3W7MP5EK3T84F":117},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":70,"commitSha":71,"skillDirectory":72,"forksCount":73,"repositoryHtmlUrl":74,"repositoryHomepageUrl":17,"ownerHtmlUrl":75,"ownerBlogUrl":17,"ownerDescription":17,"updatedAt":76,"install":77,"resources":90},"01M6CA8F5F14B3W7MP5EK3T84F","github-pr-workflow","GitHub PR 全流程操作","GitHub PR lifecycle: branch, commit, open, CI, merge.","GitHub PR 完整生命周期：分支、提交、发起 PR、CI、合并。","adnichols\u002Fai-configs","adnichols","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F493746?v=4","01M6C33VRY9WF6XWYPT1AFA7JJ","Aaron Nichols","01M6C33VWTNKGRM92E9G643V4W",5,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fadnichols\u002Fai-configs\u002Fblob\u002Fmain\u002F_hermes\u002Fdefault\u002Fprofiles\u002Fnerd\u002Fskills\u002Fgithub\u002Fgithub-pr-workflow\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BR5V701HCN066VEP7H4812","代码仓库协作管理","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"github","pr workflow","github pr workflow","pr","workflow","auth","commit","merge","pr lifecycle","automation","code","git","pull-requests","code-review","pull","ci","lifecycle","open","branch","review","2026-11-10 10:12:30",false,"---\nname: github-pr-workflow\ndescription: \"GitHub PR lifecycle: branch, commit, open, CI, merge.\"\nversion: 1.1.0\nauthor: Hermes Agent\nlicense: MIT\nmetadata:\n  hermes:\n    tags: [GitHub, Pull-Requests, CI\u002FCD, Git, Automation, Merge]\n    related_skills: [github-auth, github-code-review]\n---\n\n# GitHub Pull Request Workflow\n\nComplete guide for managing the PR lifecycle. Each section shows the `gh` way first, then the `git` + `curl` fallback for machines without `gh`.\n\n## Prerequisites\n\n- Authenticated with GitHub (see `github-auth` skill)\n- Inside a git repository with a GitHub remote\n- For Aaron's repositories under `~\u002Fcode\u002F`, also load the repo-appropriate coding workflow before committing\u002Fpushing. If Aaron asks for Linear-backed OpenCode-driven work, first verify the independently maintained OpenCode command and both helper scripts required by `hermes-opencode-linear-build`. If they are absent, use a maintained Pi\u002FCodex workflow. When the compatibility workflow is provisioned, OpenCode owns `\u002Fcmd:linear-build-workspace`, including commit\u002Fpush\u002FPR; Hermes remains read-only unless Aaron explicitly authorizes a bypass.\n\n## Operating discipline for Aaron\n\n- Prefer one clear command per purpose. Avoid oversized shell chains that combine validation, inspection, release checks, and quoting-heavy commands into one brittle invocation.\n- If a command fails due quoting or timeout, split the task into smaller commands instead of retrying a giant combined command.\n- Keep secrets out of PR bodies, comments, diffs, and skill\u002Freference updates; redact credential values.\n- For user-visible UI\u002Fdesktop changes, PRs should include validation evidence: screenshots at minimum and video when practical. Prefer committed `docs\u002Fpr-evidence\u002F\u003Cissue-or-slug>\u002F` artifacts or repo-approved artifact links so GitHub can render the evidence from the PR body\u002Fcomment.\n\n### Quick Auth Detection\n\n```bash\n# Determine which method to use throughout this workflow\nif command -v gh &>\u002Fdev\u002Fnull && gh auth status &>\u002Fdev\u002Fnull; then\n  AUTH=\"gh\"\nelse\n  AUTH=\"git\"\n  # Ensure we have a token for API calls\n  if [ -z \"$GITHUB_TOKEN\" ]; then\n    if [ -f ~\u002F.hermes\u002F.env ] && grep -q \"^GITHUB_TOKEN=\" ~\u002F.hermes\u002F.env; then\n      GITHUB_TOKEN=$(grep \"^GITHUB_TOKEN=\" ~\u002F.hermes\u002F.env | head -1 | cut -d= -f2 | tr -d '\\n\\r')\n    elif grep -q \"github.com\" ~\u002F.git-credentials 2>\u002Fdev\u002Fnull; then\n      GITHUB_TOKEN=$(grep \"github.com\" ~\u002F.git-credentials 2>\u002Fdev\u002Fnull | head -1 | sed 's|https:\u002F\u002F[^:]*:\\([^@]*\\)@.*|\\1|')\n    fi\n  fi\nfi\necho \"Using: $AUTH\"\n```\n\n### Extracting Owner\u002FRepo from the Git Remote\n\nMany `curl` commands need `owner\u002Frepo`. Extract it from the git remote:\n\n```bash\n# Works for both HTTPS and SSH remote URLs\nREMOTE_URL=$(git remote get-url origin)\nOWNER_REPO=$(echo \"$REMOTE_URL\" | sed -E 's|.*github\\.com[:\u002F]||; s|\\.git$||')\nOWNER=$(echo \"$OWNER_REPO\" | cut -d\u002F -f1)\nREPO=$(echo \"$OWNER_REPO\" | cut -d\u002F -f2)\necho \"Owner: $OWNER, Repo: $REPO\"\n```\n\n---\n\n## 1. Branch Creation\n\nThis part is pure `git` — identical either way:\n\n```bash\n# Make sure you're up to date\ngit fetch origin\ngit checkout main && git pull origin main\n\n# Create and switch to a new branch\ngit checkout -b feat\u002Fadd-user-authentication\n```\n\nBranch naming conventions:\n- `feat\u002Fdescription` — new features\n- `fix\u002Fdescription` — bug fixes\n- `refactor\u002Fdescription` — code restructuring\n- `docs\u002Fdescription` — documentation\n- `ci\u002Fdescription` — CI\u002FCD changes\n\n## 2. Making Commits\n\nUse the appropriate implementation mechanism for the repository, then commit. For Aaron's `~\u002Fcode\u002F` repos, repo file changes should come from the active repo coding workflow (OpenCode when Aaron requested OpenCode, Codex where still specified by current repo\u002Fuser preference); do not use Hermes file tools for those mutations unless explicitly authorized. For generic\u002Fnon-Aaron contexts, file tools (`write_file`, `patch`) are acceptable.\n\n```bash\n# Stage specific files\ngit add src\u002Fauth.py src\u002Fmodels\u002Fuser.py tests\u002Ftest_auth.py\n\n# Commit with a conventional commit message\ngit commit -m \"feat: add JWT-based user authentication\n\n- Add login\u002Fregister endpoints\n- Add User model with password hashing\n- Add auth middleware for protected routes\n- Add unit tests for auth flow\"\n```\n\nCommit message format (Conventional Commits):\n```\ntype(scope): short description\n\nLonger explanation if needed. Wrap at 72 characters.\n```\n\nTypes: `feat`, `fix`, `refactor`, `docs`, `test`, `ci`, `chore`, `perf`\n\n## 3. Pushing and Creating a PR\n\n### Push the Branch (same either way)\n\n```bash\ngit push -u origin HEAD\n```\n\n### Pre-PR Rebase Gate\n\nBefore opening any PR for Aaron's repos, make sure the branch is rebased onto the latest intended target branch and conflicts are resolved. Do this after final local validation\u002Freview fixes and before `gh pr create`.\n\n```bash\ngit fetch origin \u003Cbase-branch>\ngit rebase origin\u002F\u003Cbase-branch>\ngit status --short\ngit merge-base --is-ancestor origin\u002F\u003Cbase-branch> HEAD\n```\n\nIf the rebase introduces conflicts, resolve them through the repo's active implementation workflow (OpenCode\u002FCodex as appropriate), rerun impacted validation and code reviews, refresh visual evidence if user-visible behavior changed, then push. Do not open a PR from a branch that is behind, conflicted, or not proven to contain the latest target branch tip.\n\nIf a branch was already pushed before rebase, prefer a normal push when possible. If history was rewritten and the remote branch must be updated, use `git push --force-with-lease`, never plain `--force`.\n\n### Create the PR\n\n**With gh:**\n\n```bash\ngh pr create \\\n  --title \"feat: add JWT-based user authentication\" \\\n  --body \"## Summary\n- Adds login and register API endpoints\n- JWT token generation and validation\n\n## Test Plan\n- [ ] Unit tests pass\n\nCloses #42\"\n```\n\nOptions: `--draft`, `--reviewer user1,user2`, `--label \"enhancement\"`, `--base develop`\n\n**With git + curl:**\n\n```bash\nBRANCH=$(git branch --show-current)\n\ncurl -s -X POST \\\n  -H \"Authorization: token $GITHUB_TOKEN\" \\\n  -H \"Accept: application\u002Fvnd.github.v3+json\" \\\n  https:\u002F\u002Fapi.github.com\u002Frepos\u002F$OWNER\u002F$REPO\u002Fpulls \\\n  -d \"{\n    \\\"title\\\": \\\"feat: add JWT-based user authentication\\\",\n    \\\"body\\\": \\\"## Summary\\nAdds login and register API endpoints.\\n\\nCloses #42\\\",\n    \\\"head\\\": \\\"$BRANCH\\\",\n    \\\"base\\\": \\\"main\\\"\n  }\"\n```\n\nThe response JSON includes the PR `number` — save it for later commands.\n\nTo create as a draft, add `\"draft\": true` to the JSON body.\n\n## 4. Monitoring CI Status\n\n### Check CI Status\n\n**With gh:**\n\n```bash\n# One-shot check\ngh pr checks\n\n# Watch until all checks finish (polls every 10s)\ngh pr checks --watch\n```\n\n**With git + curl:**\n\n```bash\n# Get the latest commit SHA on the current branch\nSHA=$(git rev-parse HEAD)\n\n# Query the combined status\ncurl -s \\\n  -H \"Authorization: token $GITHUB_TOKEN\" \\\n  https:\u002F\u002Fapi.github.com\u002Frepos\u002F$OWNER\u002F$REPO\u002Fcommits\u002F$SHA\u002Fstatus \\\n  | python3 -c \"\nimport sys, json\ndata = json.load(sys.stdin)\nprint(f\\\"Overall: {data['state']}\\\")\nfor s in data.get('statuses', []):\n    print(f\\\"  {s['context']}: {s['state']} - {s.get('description', '')}\\\")\"\n\n# Also check GitHub Actions check runs (separate endpoint)\ncurl -s \\\n  -H \"Authorization: token $GITHUB_TOKEN\" \\\n  https:\u002F\u002Fapi.github.com\u002Frepos\u002F$OWNER\u002F$REPO\u002Fcommits\u002F$SHA\u002Fcheck-runs \\\n  | python3 -c \"\nimport sys, json\ndata = json.load(sys.stdin)\nfor cr in data.get('check_runs', []):\n    print(f\\\"  {cr['name']}: {cr['status']} \u002F {cr['conclusion'] or 'pending'}\\\")\"\n```\n\n### Poll Until Complete (git + curl)\n\n```bash\n# Simple polling loop — check every 30 seconds, up to 10 minutes\nSHA=$(git rev-parse HEAD)\nfor i in $(seq 1 20); do\n  STATUS=$(curl -s \\\n    -H \"Authorization: token $GITHUB_TOKEN\" \\\n    https:\u002F\u002Fapi.github.com\u002Frepos\u002F$OWNER\u002F$REPO\u002Fcommits\u002F$SHA\u002Fstatus \\\n    | python3 -c \"import sys,json; print(json.load(sys.stdin)['state'])\")\n  echo \"Check $i: $STATUS\"\n  if [ \"$STATUS\" = \"success\" ] || [ \"$STATUS\" = \"failure\" ] || [ \"$STATUS\" = \"error\" ]; then\n    break\n  fi\n  sleep 30\ndone\n```\n\n## 5. Auto-Fixing CI Failures\n\nWhen CI fails, diagnose and fix. This loop works with either auth method.\n\n### Step 1: Get Failure Details\n\n**With gh:**\n\n```bash\n# List recent workflow runs on this branch\ngh run list --branch $(git branch --show-current) --limit 5\n\n# View failed logs\ngh run view \u003CRUN_ID> --log-failed\n```\n\n**With git + curl:**\n\n```bash\nBRANCH=$(git branch --show-current)\n\n# List workflow runs on this branch\ncurl -s \\\n  -H \"Authorization: token $GITHUB_TOKEN\" \\\n  \"https:\u002F\u002Fapi.github.com\u002Frepos\u002F$OWNER\u002F$REPO\u002Factions\u002Fruns?branch=$BRANCH&per_page=5\" \\\n  | python3 -c \"\nimport sys, json\nruns = json.load(sys.stdin)['workflow_runs']\nfor r in runs:\n    print(f\\\"Run {r['id']}: {r['name']} - {r['conclusion'] or r['status']}\\\")\"\n\n# Get failed job logs (download as zip, extract, read)\nRUN_ID=\u003Crun_id>\ncurl -s -L \\\n  -H \"Authorization: token $GITHUB_TOKEN\" \\\n  https:\u002F\u002Fapi.github.com\u002Frepos\u002F$OWNER\u002F$REPO\u002Factions\u002Fruns\u002F$RUN_ID\u002Flogs \\\n  -o \u002Ftmp\u002Fci-logs.zip\ncd \u002Ftmp && unzip -o ci-logs.zip -d ci-logs && cat ci-logs\u002F*.txt\n```\n\n### Step 2: Fix and Push\n\nAfter identifying the issue, use the appropriate repo implementation mechanism. For Aaron's `~\u002Fcode\u002F` repos, route fixes through the active repo coding workflow (OpenCode when in OpenCode workflow, Codex when explicitly using Codex) and then verify the resulting diff; for generic contexts, direct file tools (`patch`, `write_file`) may be used:\n\n```bash\ngit add \u003Cfixed_files>\ngit commit -m \"fix: resolve CI failure in \u003Ccheck_name>\"\ngit push\n```\n\n### Step 3: Verify\n\nRe-check CI status using the commands from Section 4 above.\n\n### Auto-Fix Loop Pattern\n\nWhen asked to auto-fix CI, follow this loop:\n\n1. Check CI status → identify failures\n2. Read failure logs → understand the error\n3. Apply the fix through the active repo implementation workflow for Aaron's `~\u002Fcode\u002F` repos; use `read_file` + `patch`\u002F`write_file` only in generic contexts or when Aaron explicitly authorizes direct Hermes edits\n4. Commit and push the focused fix\n5. Wait for CI → re-check status\n6. Repeat if still failing (up to 3 attempts, then ask the user)\n\n### Retargeting or Rebasing an Existing PR\n\nWhen a PR review request says it \"needs to be rebased onto `\u003Cbase>`\" or otherwise retargeted before merge, do the mechanical GitHub work before final review:\n\n1. Inspect PR metadata and current merge state:\n   ```bash\n   gh pr view \u003CN> --json number,url,baseRefName,headRefName,headRefOid,mergeStateStatus,mergeable,statusCheckRollup\n   ```\n2. Check out or use the PR branch worktree, then rebase onto the requested base:\n   ```bash\n   git fetch origin \u003Cbase-branch>\n   git rebase origin\u002F\u003Cbase-branch>\n   git status --short --branch\n   git merge-base --is-ancestor origin\u002F\u003Cbase-branch> HEAD\n   ```\n3. If history changed, update the remote branch with `git push --force-with-lease`, never plain `--force`.\n4. If the PR's GitHub base is still wrong, update it explicitly:\n   ```bash\n   gh pr edit \u003CN> --base \u003Cbase-branch>\n   ```\n5. Re-check PR metadata; require `baseRefName=\u003Cbase-branch>` and `mergeStateStatus`\u002F`mergeable` to be acceptable before posting review findings.\n6. Rerun read-only review against the new base (`origin\u002F\u003Cbase-branch>...HEAD`) because conflict resolution or base changes can change the effective diff. If no checks are configured, report `no checks reported` as informational rather than CI failure.\n\nFor Aaron's macOS setup, if a plain `gh`\u002F`git fetch` invocation cannot see GitHub credentials, retry via `HOME=\u002FUsers\u002Fanichols zsh -lc '\u003Ccommand>'` before treating auth as unavailable.\n\n### Addressing PR Review Feedback\n\nWhen asked to \"check the PR for feedback\" and update it:\n\n1. Gather all feedback surfaces, not just CI:\n   ```bash\n   gh pr view \u003CN> --json number,url,title,state,reviewDecision,mergeable,headRefName,headRefOid,comments,reviews,statusCheckRollup\n   gh api repos\u002F$OWNER\u002F$REPO\u002Fpulls\u002F\u003CN>\u002Fcomments --paginate\n   gh api repos\u002F$OWNER\u002F$REPO\u002Fissues\u002F\u003CN>\u002Fcomments --paginate\n   gh api repos\u002F$OWNER\u002F$REPO\u002Fpulls\u002F\u003CN>\u002Freviews --paginate\n   ```\n2. For inline review threads, also inspect thread resolution state; REST pull comments do not tell you whether the conversation is resolved:\n  ```bash\n  gh api graphql \\\n    -f owner=$OWNER -f repo=$REPO -F number=\u003CN> \\\n    -f query='query($owner:String!,$repo:String!,$number:Int!){ repository(owner:$owner,name:$repo){ pullRequest(number:$number){ reviewThreads(first:50){ nodes{ id isResolved comments(first:10){ nodes{ databaseId body author{login} } } } } } } }'\n  ```\n  For file-based GraphQL queries and thread reply\u002Fresolve mutations, see `references\u002Fpr-review-thread-graphql.md`. Important CLI quirk: use `-F query=@\u002Fpath\u002Fquery.graphql` for query files; `-f query=@file` can send a literal `@file` and fail with a GraphQL parse error.\n  For the OpenCode-backed PR feedback loop, including gather → OpenCode remediation artifact → commit\u002Fpush → reply\u002Fresolve → re-query, see `references\u002Fopencode-pr-feedback-fix-cycle.md`.\n3. Apply the requested fixes locally on the PR branch; include focused tests for the review point when possible. For Aaron's repos, route code changes through the active implementation workflow (OpenCode\u002FCodex\u002Fetc.) rather than direct Hermes edits unless explicitly authorized.\n4. Run targeted validation and diff hygiene before committing.\n5. Commit and push follow-up fixes.\n6. Reply to the inline comment\u002Fthread and add a top-level PR comment with what changed and validation evidence.\n7. Resolve addressed review threads after verifying the fix and posting the reply:\n   ```bash\n   gh api graphql \\\n     -f threadId=\u003CPRRT_...> \\\n     -f query='mutation($threadId:ID!){ resolveReviewThread(input:{threadId:$threadId}){ thread{ id isResolved } } }'\n   ```\n8. Re-check PR metadata\u002Fchecks after pushing. If no checks are configured, report that explicitly; `gh pr checks` may exit nonzero with `no checks reported`, which is an informational state rather than a failed check.\n\n## 6. Merging\n\n**With gh:**\n\n```bash\n# Squash merge. Branch deletion belongs to worktree-cleanup: after the merge, run it from outside the branch's worktree (if it has one)\ngh pr merge --squash\n\n# Enable auto-merge (merges when all checks pass)\ngh pr merge --auto --squash\n```\n\n**With git + curl:**\n\n```bash\nPR_NUMBER=\u003Cnumber>\n\n# Merge the PR via API (squash)\ncurl -s -X PUT \\\n  -H \"Authorization: token $GITHUB_TOKEN\" \\\n  https:\u002F\u002Fapi.github.com\u002Frepos\u002F$OWNER\u002F$REPO\u002Fpulls\u002F$PR_NUMBER\u002Fmerge \\\n  -d \"{\n    \\\"merge_method\\\": \\\"squash\\\",\n    \\\"commit_title\\\": \\\"feat: add user authentication (#$PR_NUMBER)\\\"\n  }\"\n\n# Leave branch deletion to worktree cleanup. Deleting the branch here can remove\n# a checked-out worktree and its lab claim before the lab is released.\n# If this branch has a Paseo or aoe worktree and the worktree-cleanup skill is\n# installed, run it from outside that worktree after the merge:\n#   python3 ~\u002F.agents\u002Fskills\u002Fworktree-cleanup\u002Fscripts\u002Fworktree_cleanup.py --path \u003Cworktree>\ngit checkout main && git pull origin main\n```\n\nMerge methods: `\"merge\"` (merge commit), `\"squash\"`, `\"rebase\"`\n\n### Enable Auto-Merge (curl)\n\n```bash\n# Auto-merge requires the repo to have it enabled in settings.\n# This uses the GraphQL API since REST doesn't support auto-merge.\nPR_NODE_ID=$(curl -s \\\n  -H \"Authorization: token $GITHUB_TOKEN\" \\\n  https:\u002F\u002Fapi.github.com\u002Frepos\u002F$OWNER\u002F$REPO\u002Fpulls\u002F$PR_NUMBER \\\n  | python3 -c \"import sys,json; print(json.load(sys.stdin)['node_id'])\")\n\ncurl -s -X POST \\\n  -H \"Authorization: token $GITHUB_TOKEN\" \\\n  https:\u002F\u002Fapi.github.com\u002Fgraphql \\\n  -d \"{\\\"query\\\": \\\"mutation { enablePullRequestAutoMerge(input: {pullRequestId: \\\\\\\"$PR_NODE_ID\\\\\\\", mergeMethod: SQUASH}) { clientMutationId } }\\\"}\"\n```\n\n## 7. Complete Workflow Example\n\n```bash\n# 1. Start from clean main\ngit checkout main && git pull origin main\n\n# 2. Branch\ngit checkout -b fix\u002Flogin-redirect-bug\n\n# 3. (Agent makes code changes with file tools)\n\n# 4. Commit\ngit add src\u002Fauth\u002Flogin.py tests\u002Ftest_login.py\ngit commit -m \"fix: correct redirect URL after login\n\nPreserves the ?next= parameter instead of always redirecting to \u002Fdashboard.\"\n\n# 5. Push\ngit push -u origin HEAD\n\n# 6. Create PR (picks gh or curl based on what's available)\n# ... (see Section 3)\n\n# 7. Monitor CI (see Section 4)\n\n# 8. Merge when green (see Section 6)\n```\n\n## Useful PR Commands Reference\n\n| Action | gh | git + curl |\n|--------|-----|-----------|\n| List my PRs | `gh pr list --author @me` | `curl -s -H \"Authorization: token $GITHUB_TOKEN\" \"https:\u002F\u002Fapi.github.com\u002Frepos\u002F$OWNER\u002F$REPO\u002Fpulls?state=open\"` |\n| View PR diff | `gh pr diff` | `git diff main...HEAD` (local) or `curl -H \"Accept: application\u002Fvnd.github.diff\" ...` |\n| Add comment | `gh pr comment N --body \"...\"` | `curl -X POST ...\u002Fissues\u002FN\u002Fcomments -d '{\"body\":\"...\"}'` |\n| Request review | `gh pr edit N --add-reviewer user` | `curl -X POST ...\u002Fpulls\u002FN\u002Frequested_reviewers -d '{\"reviewers\":[\"user\"]}'` |\n| Close PR | `gh pr close N` | `curl -X PATCH ...\u002Fpulls\u002FN -d '{\"state\":\"closed\"}'` |\n| Check out someone's PR | `gh pr checkout N` | `git fetch origin pull\u002FN\u002Fhead:pr-N && git checkout pr-N` |\n","# GitHub Pull Request Workflow\n\nComplete guide for managing the PR lifecycle. Each section shows the `gh` way first, then the `git` + `curl` fallback for machines without `gh`.\n\n## Prerequisites\n\n- Authenticated with GitHub (see `github-auth` skill)\n- Inside a git repository with a GitHub remote\n- For Aaron's repositories under `~\u002Fcode\u002F`, also load the repo-appropriate coding workflow before committing\u002Fpushing. If Aaron asks for Linear-backed OpenCode-driven work, first verify the independently maintained OpenCode command and both helper scripts required by `hermes-opencode-linear-build`. If they are absent, use a maintained Pi\u002FCodex workflow. When the compatibility workflow is provisioned, OpenCode owns `\u002Fcmd:linear-build-workspace`, including commit\u002Fpush\u002FPR; Hermes remains read-only unless Aaron explicitly authorizes a bypass.\n\n## Operating discipline for Aaron\n\n- Prefer one clear command per purpose. Avoid oversized shell chains that combine validation, inspection, release checks, and quoting-heavy commands into one brittle invocation.\n- If a command fails due quoting or timeout, split the task into smaller commands instead of retrying a giant combined command.\n- Keep secrets out of PR bodies, comments, diffs, and skill\u002Freference updates; redact credential values.\n- For user-visible UI\u002Fdesktop changes, PRs should include validation evidence: screenshots at minimum and video when practical. Prefer committed `docs\u002Fpr-evidence\u002F\u003Cissue-or-slug>\u002F` artifacts or repo-approved artifact links so GitHub can render the evidence from the PR body\u002Fcomment.\n\n### Quick Auth Detection\n\n```bash\n# Determine which method to use throughout this workflow\nif command -v gh &>\u002Fdev\u002Fnull && gh auth status &>\u002Fdev\u002Fnull; then\n  AUTH=\"gh\"\nelse\n  AUTH=\"git\"\n  # Ensure we have a token for API calls\n  if [ -z \"$GITHUB_TOKEN\" ]; then\n    if [ -f ~\u002F.hermes\u002F.env ] && grep -q \"^GITHUB_TOKEN=\" ~\u002F.hermes\u002F.env; then\n      GITHUB_TOKEN=$(grep \"^GITHUB_TOKEN=\" ~\u002F.hermes\u002F.env | head -1 | cut -d= -f2 | tr -d '\\n\\r')\n    elif grep -q \"github.com\" ~\u002F.git-credentials 2>\u002Fdev\u002Fnull; then\n      GITHUB_TOKEN=$(grep \"github.com\" ~\u002F.git-credentials 2>\u002Fdev\u002Fnull | head -1 | sed 's|https:\u002F\u002F[^:]*:\\([^@]*\\)@.*|\\1|')\n    fi\n  fi\nfi\necho \"Using: $AUTH\"\n```\n\n### Extracting Owner\u002FRepo from the Git Remote\n\nMany `curl` commands need `owner\u002Frepo`. Extract it from the git remote:\n\n```bash\n# Works for both HTTPS and SSH remote URLs\nREMOTE_URL=$(git remote get-url origin)\nOWNER_REPO=$(echo \"$REMOTE_URL\" | sed -E 's|.*github\\.com[:\u002F]||; s|\\.git$||')\nOWNER=$(echo \"$OWNER_REPO\" | cut -d\u002F -f1)\nREPO=$(echo \"$OWNER_REPO\" | cut -d\u002F -f2)\necho \"Owner: $OWNER, Repo: $REPO\"\n```\n\n---\n\n## 1. Branch Creation\n\nThis part is pure `git` — identical either way:\n\n```bash\n# Make sure you're up to date\ngit fetch origin\ngit checkout main && git pull origin main\n\n# Create and switch to a new branch\ngit checkout -b feat\u002Fadd-user-authentication\n```\n\nBranch naming conventions:\n- `feat\u002Fdescription` — new features\n- `fix\u002Fdescription` — bug fixes\n- `refactor\u002Fdescription` — code restructuring\n- `docs\u002Fdescription` — documentation\n- `ci\u002Fdescription` — CI\u002FCD changes\n\n## 2. Making Commits\n\nUse the appropriate implementation mechanism for the repository, then commit. For Aaron's `~\u002Fcode\u002F` repos, repo file changes should come from the active repo coding workflow (OpenCode when Aaron requested OpenCode, Codex where still specified by current repo\u002Fuser preference); do not use Hermes file tools for those mutations unless explicitly authorized. For generic\u002Fnon-Aaron contexts, file tools (`write_file`, `patch`) are acceptable.\n\n```bash\n# Stage specific files\ngit add src\u002Fauth.py src\u002Fmodels\u002Fuser.py tests\u002Ftest_auth.py\n\n# Commit with a conventional commit message\ngit commit -m \"feat: add JWT-based user authentication\n\n- Add login\u002Fregister endpoints\n- Add User model with password hashing\n- Add auth middleware for protected routes\n- Add unit tests for auth flow\"\n```\n\nCommit message format (Conventional Commits):\n```\ntype(scope): short description\n\nLonger explanation if needed. Wrap at 72 characters.\n```\n\nTypes: `feat`, `fix`, `refactor`, `docs`, `test`, `ci`, `chore`, `perf`\n\n## 3. Pushing and Creating a PR\n\n### Push the Branch (same either way)\n\n```bash\ngit push -u origin HEAD\n```\n\n### Pre-PR Rebase Gate\n\nBefore opening any PR for Aaron's repos, make sure the branch is rebased onto the latest intended target branch and conflicts are resolved. Do this after final local validation\u002Freview fixes and before `gh pr create`.\n\n```bash\ngit fetch origin \u003Cbase-branch>\ngit rebase origin\u002F\u003Cbase-branch>\ngit status --short\ngit merge-base --is-ancestor origin\u002F\u003Cbase-branch> HEAD\n```\n\nIf the rebase introduces conflicts, resolve them through the repo's active implementation workflow (OpenCode\u002FCodex as appropriate), rerun impacted validation and code reviews, refresh visual evidence if user-visible behavior changed, then push. Do not open a PR from a branch that is behind, conflicted, or not proven to contain the latest target branch tip.\n\nIf a branch was already pushed before rebase, prefer a normal push when possible. If history was rewritten and the remote branch must be updated, use `git push --force-with-lease`, never plain `--force`.\n\n### Create the PR\n\n**With gh:**\n\n```bash\ngh pr create \\\n  --title \"feat: add JWT-based user authentication\" \\\n  --body \"## Summary\n- Adds login and register API endpoints\n- JWT token generation and validation\n\n## Test Plan\n- [ ] Unit tests pass\n\nCloses #42\"\n```\n\nOptions: `--draft`, `--reviewer user1,user2`, `--label \"enhancement\"`, `--base develop`\n\n**With git + curl:**\n\n```bash\nBRANCH=$(git branch --show-current)\n\ncurl -s -X POST \\\n  -H \"Authorization: token $GITHUB_TOKEN\" \\\n  -H \"Accept: application\u002Fvnd.github.v3+json\" \\\n  https:\u002F\u002Fapi.github.com\u002Frepos\u002F$OWNER\u002F$REPO\u002Fpulls \\\n  -d \"{\n    \\\"title\\\": \\\"feat: add JWT-based user authentication\\\",\n    \\\"body\\\": \\\"## Summary\\nAdds login and register API endpoints.\\n\\nCloses #42\\\",\n    \\\"head\\\": \\\"$BRANCH\\\",\n    \\\"base\\\": \\\"main\\\"\n  }\"\n```\n\nThe response JSON includes the PR `number` — save it for later commands.\n\nTo create as a draft, add `\"draft\": true` to the JSON body.\n\n## 4. Monitoring CI Status\n\n### Check CI Status\n\n**With gh:**\n\n```bash\n# One-shot check\ngh pr checks\n\n# Watch until all checks finish (polls every 10s)\ngh pr checks --watch\n```\n\n**With git + curl:**\n\n```bash\n# Get the latest commit SHA on the current branch\nSHA=$(git rev-parse HEAD)\n\n# Query the combined status\ncurl -s \\\n  -H \"Authorization: token $GITHUB_TOKEN\" \\\n  https:\u002F\u002Fapi.github.com\u002Frepos\u002F$OWNER\u002F$REPO\u002Fcommits\u002F$SHA\u002Fstatus \\\n  | python3 -c \"\nimport sys, json\ndata = json.load(sys.stdin)\nprint(f\\\"Overall: {data['state']}\\\")\nfor s in data.get('statuses', []):\n    print(f\\\"  {s['context']}: {s['state']} - {s.get('description', '')}\\\")\"\n\n# Also check GitHub Actions check runs (separate endpoint)\ncurl -s \\\n  -H \"Authorization: token $GITHUB_TOKEN\" \\\n  https:\u002F\u002Fapi.github.com\u002Frepos\u002F$OWNER\u002F$REPO\u002Fcommits\u002F$SHA\u002Fcheck-runs \\\n  | python3 -c \"\nimport sys, json\ndata = json.load(sys.stdin)\nfor cr in data.get('check_runs', []):\n    print(f\\\"  {cr['name']}: {cr['status']} \u002F {cr['conclusion'] or 'pending'}\\\")\"\n```\n\n### Poll Until Complete (git + curl)\n\n```bash\n# Simple polling loop — check every 30 seconds, up to 10 minutes\nSHA=$(git rev-parse HEAD)\nfor i in $(seq 1 20); do\n  STATUS=$(curl -s \\\n    -H \"Authorization: token $GITHUB_TOKEN\" \\\n    https:\u002F\u002Fapi.github.com\u002Frepos\u002F$OWNER\u002F$REPO\u002Fcommits\u002F$SHA\u002Fstatus \\\n    | python3 -c \"import sys,json; print(json.load(sys.stdin)['state'])\")\n  echo \"Check $i: $STATUS\"\n  if [ \"$STATUS\" = \"success\" ] || [ \"$STATUS\" = \"failure\" ] || [ \"$STATUS\" = \"error\" ]; then\n    break\n  fi\n  sleep 30\ndone\n```\n\n## 5. Auto-Fixing CI Failures\n\nWhen CI fails, diagnose and fix. This loop works with either auth method.\n\n### Step 1: Get Failure Details\n\n**With gh:**\n\n```bash\n# List recent workflow runs on this branch\ngh run list --branch $(git branch --show-current) --limit 5\n\n# View failed logs\ngh run view \u003CRUN_ID> --log-failed\n```\n\n**With git + curl:**\n\n```bash\nBRANCH=$(git branch --show-current)\n\n# List workflow runs on this branch\ncurl -s \\\n  -H \"Authorization: token $GITHUB_TOKEN\" \\\n  \"https:\u002F\u002Fapi.github.com\u002Frepos\u002F$OWNER\u002F$REPO\u002Factions\u002Fruns?branch=$BRANCH&per_page=5\" \\\n  | python3 -c \"\nimport sys, json\nruns = json.load(sys.stdin)['workflow_runs']\nfor r in runs:\n    print(f\\\"Run {r['id']}: {r['name']} - {r['conclusion'] or r['status']}\\\")\"\n\n# Get failed job logs (download as zip, extract, read)\nRUN_ID=\u003Crun_id>\ncurl -s -L \\\n  -H \"Authorization: token $GITHUB_TOKEN\" \\\n  https:\u002F\u002Fapi.github.com\u002Frepos\u002F$OWNER\u002F$REPO\u002Factions\u002Fruns\u002F$RUN_ID\u002Flogs \\\n  -o \u002Ftmp\u002Fci-logs.zip\ncd \u002Ftmp && unzip -o ci-logs.zip -d ci-logs && cat ci-logs\u002F*.txt\n```\n\n### Step 2: Fix and Push\n\nAfter identifying the issue, use the appropriate repo implementation mechanism. For Aaron's `~\u002Fcode\u002F` repos, route fixes through the active repo coding workflow (OpenCode when in OpenCode workflow, Codex when explicitly using Codex) and then verify the resulting diff; for generic contexts, direct file tools (`patch`, `write_file`) may be used:\n\n```bash\ngit add \u003Cfixed_files>\ngit commit -m \"fix: resolve CI failure in \u003Ccheck_name>\"\ngit push\n```\n\n### Step 3: Verify\n\nRe-check CI status using the commands from Section 4 above.\n\n### Auto-Fix Loop Pattern\n\nWhen asked to auto-fix CI, follow this loop:\n\n1. Check CI status → identify failures\n2. Read failure logs → understand the error\n3. Apply the fix through the active repo implementation workflow for Aaron's `~\u002Fcode\u002F` repos; use `read_file` + `patch`\u002F`write_file` only in generic contexts or when Aaron explicitly authorizes direct Hermes edits\n4. Commit and push the focused fix\n5. Wait for CI → re-check status\n6. Repeat if still failing (up to 3 attempts, then ask the user)\n\n### Retargeting or Rebasing an Existing PR\n\nWhen a PR review request says it \"needs to be rebased onto `\u003Cbase>`\" or otherwise retargeted before merge, do the mechanical GitHub work before final review:\n\n1. Inspect PR metadata and current merge state:\n   ```bash\n   gh pr view \u003CN> --json number,url,baseRefName,headRefName,headRefOid,mergeStateStatus,mergeable,statusCheckRollup\n   ```\n2. Check out or use the PR branch worktree, then rebase onto the requested base:\n   ```bash\n   git fetch origin \u003Cbase-branch>\n   git rebase origin\u002F\u003Cbase-branch>\n   git status --short --branch\n   git merge-base --is-ancestor origin\u002F\u003Cbase-branch> HEAD\n   ```\n3. If history changed, update the remote branch with `git push --force-with-lease`, never plain `--force`.\n4. If the PR's GitHub base is still wrong, update it explicitly:\n   ```bash\n   gh pr edit \u003CN> --base \u003Cbase-branch>\n   ```\n5. Re-check PR metadata; require `baseRefName=\u003Cbase-branch>` and `mergeStateStatus`\u002F`mergeable` to be acceptable before posting review findings.\n6. Rerun read-only review against the new base (`origin\u002F\u003Cbase-branch>...HEAD`) because conflict resolution or base changes can change the effective diff. If no checks are configured, report `no checks reported` as informational rather than CI failure.\n\nFor Aaron's macOS setup, if a plain `gh`\u002F`git fetch` invocation cannot see GitHub credentials, retry via `HOME=\u002FUsers\u002Fanichols zsh -lc '\u003Ccommand>'` before treating auth as unavailable.\n\n### Addressing PR Review Feedback\n\nWhen asked to \"check the PR for feedback\" and update it:\n\n1. Gather all feedback surfaces, not just CI:\n   ```bash\n   gh pr view \u003CN> --json number,url,title,state,reviewDecision,mergeable,headRefName,headRefOid,comments,reviews,statusCheckRollup\n   gh api repos\u002F$OWNER\u002F$REPO\u002Fpulls\u002F\u003CN>\u002Fcomments --paginate\n   gh api repos\u002F$OWNER\u002F$REPO\u002Fissues\u002F\u003CN>\u002Fcomments --paginate\n   gh api repos\u002F$OWNER\u002F$REPO\u002Fpulls\u002F\u003CN>\u002Freviews --paginate\n   ```\n2. For inline review threads, also inspect thread resolution state; REST pull comments do not tell you whether the conversation is resolved:\n  ```bash\n  gh api graphql \\\n    -f owner=$OWNER -f repo=$REPO -F number=\u003CN> \\\n    -f query='query($owner:String!,$repo:String!,$number:Int!){ repository(owner:$owner,name:$repo){ pullRequest(number:$number){ reviewThreads(first:50){ nodes{ id isResolved comments(first:10){ nodes{ databaseId body author{login} } } } } } } }'\n  ```\n  For file-based GraphQL queries and thread reply\u002Fresolve mutations, see `references\u002Fpr-review-thread-graphql.md`. Important CLI quirk: use `-F query=@\u002Fpath\u002Fquery.graphql` for query files; `-f query=@file` can send a literal `@file` and fail with a GraphQL parse error.\n  For the OpenCode-backed PR feedback loop, including gather → OpenCode remediation artifact → commit\u002Fpush → reply\u002Fresolve → re-query, see `references\u002Fopencode-pr-feedback-fix-cycle.md`.\n3. Apply the requested fixes locally on the PR branch; include focused tests for the review point when possible. For Aaron's repos, route code changes through the active implementation workflow (OpenCode\u002FCodex\u002Fetc.) rather than direct Hermes edits unless explicitly authorized.\n4. Run targeted validation and diff hygiene before committing.\n5. Commit and push follow-up fixes.\n6. Reply to the inline comment\u002Fthread and add a top-level PR comment with what changed and validation evidence.\n7. Resolve addressed review threads after verifying the fix and posting the reply:\n   ```bash\n   gh api graphql \\\n     -f threadId=\u003CPRRT_...> \\\n     -f query='mutation($threadId:ID!){ resolveReviewThread(input:{threadId:$threadId}){ thread{ id isResolved } } }'\n   ```\n8. Re-check PR metadata\u002Fchecks after pushing. If no checks are configured, report that explicitly; `gh pr checks` may exit nonzero with `no checks reported`, which is an informational state rather than a failed check.\n\n## 6. Merging\n\n**With gh:**\n\n```bash\n# Squash merge. Branch deletion belongs to worktree-cleanup: after the merge, run it from outside the branch's worktree (if it has one)\ngh pr merge --squash\n\n# Enable auto-merge (merges when all checks pass)\ngh pr merge --auto --squash\n```\n\n**With git + curl:**\n\n```bash\nPR_NUMBER=\u003Cnumber>\n\n# Merge the PR via API (squash)\ncurl -s -X PUT \\\n  -H \"Authorization: token $GITHUB_TOKEN\" \\\n  https:\u002F\u002Fapi.github.com\u002Frepos\u002F$OWNER\u002F$REPO\u002Fpulls\u002F$PR_NUMBER\u002Fmerge \\\n  -d \"{\n    \\\"merge_method\\\": \\\"squash\\\",\n    \\\"commit_title\\\": \\\"feat: add user authentication (#$PR_NUMBER)\\\"\n  }\"\n\n# Leave branch deletion to worktree cleanup. Deleting the branch here can remove\n# a checked-out worktree and its lab claim before the lab is released.\n# If this branch has a Paseo or aoe worktree and the worktree-cleanup skill is\n# installed, run it from outside that worktree after the merge:\n#   python3 ~\u002F.agents\u002Fskills\u002Fworktree-cleanup\u002Fscripts\u002Fworktree_cleanup.py --path \u003Cworktree>\ngit checkout main && git pull origin main\n```\n\nMerge methods: `\"merge\"` (merge commit), `\"squash\"`, `\"rebase\"`\n\n### Enable Auto-Merge (curl)\n\n```bash\n# Auto-merge requires the repo to have it enabled in settings.\n# This uses the GraphQL API since REST doesn't support auto-merge.\nPR_NODE_ID=$(curl -s \\\n  -H \"Authorization: token $GITHUB_TOKEN\" \\\n  https:\u002F\u002Fapi.github.com\u002Frepos\u002F$OWNER\u002F$REPO\u002Fpulls\u002F$PR_NUMBER \\\n  | python3 -c \"import sys,json; print(json.load(sys.stdin)['node_id'])\")\n\ncurl -s -X POST \\\n  -H \"Authorization: token $GITHUB_TOKEN\" \\\n  https:\u002F\u002Fapi.github.com\u002Fgraphql \\\n  -d \"{\\\"query\\\": \\\"mutation { enablePullRequestAutoMerge(input: {pullRequestId: \\\\\\\"$PR_NODE_ID\\\\\\\", mergeMethod: SQUASH}) { clientMutationId } }\\\"}\"\n```\n\n## 7. Complete Workflow Example\n\n```bash\n# 1. Start from clean main\ngit checkout main && git pull origin main\n\n# 2. Branch\ngit checkout -b fix\u002Flogin-redirect-bug\n\n# 3. (Agent makes code changes with file tools)\n\n# 4. Commit\ngit add src\u002Fauth\u002Flogin.py tests\u002Ftest_login.py\ngit commit -m \"fix: correct redirect URL after login\n\nPreserves the ?next= parameter instead of always redirecting to \u002Fdashboard.\"\n\n# 5. Push\ngit push -u origin HEAD\n\n# 6. Create PR (picks gh or curl based on what's available)\n# ... (see Section 3)\n\n# 7. Monitor CI (see Section 4)\n\n# 8. Merge when green (see Section 6)\n```\n\n## Useful PR Commands Reference\n\n| Action | gh | git + curl |\n|--------|-----|-----------|\n| List my PRs | `gh pr list --author @me` | `curl -s -H \"Authorization: token $GITHUB_TOKEN\" \"https:\u002F\u002Fapi.github.com\u002Frepos\u002F$OWNER\u002F$REPO\u002Fpulls?state=open\"` |\n| View PR diff | `gh pr diff` | `git diff main...HEAD` (local) or `curl -H \"Accept: application\u002Fvnd.github.diff\" ...` |\n| Add comment | `gh pr comment N --body \"...\"` | `curl -X POST ...\u002Fissues\u002FN\u002Fcomments -d '{\"body\":\"...\"}'` |\n| Request review | `gh pr edit N --add-reviewer user` | `curl -X POST ...\u002Fpulls\u002FN\u002Frequested_reviewers -d '{\"reviewers\":[\"user\"]}'` |\n| Close PR | `gh pr close N` | `curl -X PATCH ...\u002Fpulls\u002FN -d '{\"state\":\"closed\"}'` |\n| Check out someone's PR | `gh pr checkout N` | `git fetch origin pull\u002FN\u002Fhead:pr-N && git checkout pr-N` |\n",{"name":5,"author":56,"license":16,"version":57,"metadata":58,"description":7},"Hermes Agent","1.1.0",{"hermes":59},{"tags":60,"related_skills":67},[61,62,63,64,65,66],"GitHub","Pull-Requests","CI\u002FCD","Git","Automation","Merge",[68,69],"github-auth","github-code-review","main","64e2fc9afa7bb3da1138eb73399144d0e7e73e9d","_hermes\u002Fdefault\u002Fprofiles\u002Fnerd\u002Fskills\u002Fgithub\u002Fgithub-pr-workflow",4,"https:\u002F\u002Fgithub.com\u002Fadnichols\u002Fai-configs","https:\u002F\u002Fgithub.com\u002Fadnichols","2026-11-06 00:28:38",{"source":9,"skillName":5,"commands":78,"prompt":88,"zipAvailable":89},[79,82,85],{"tool":80,"command":81},"npx","npx skills add adnichols\u002Fai-configs --skill github-pr-workflow",{"tool":83,"command":84},"bunx","bunx skills add adnichols\u002Fai-configs --skill github-pr-workflow",{"tool":86,"command":87},"pnpm","pnpm dlx skills add adnichols\u002Fai-configs --skill github-pr-workflow","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fadnichols\u002Fai-configs\u002Fblob\u002Fmain\u002F_hermes\u002Fdefault\u002Fprofiles\u002Fnerd\u002Fskills\u002Fgithub\u002Fgithub-pr-workflow\u002FSKILL.md",true,[91,97,101,105,109,113],{"path":92,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Fci-troubleshooting.md","REFERENCE","参考文档",4879,"https:\u002F\u002Fgithub.com\u002Fadnichols\u002Fai-configs\u002Fblob\u002Fmain\u002F_hermes\u002Fdefault\u002Fprofiles\u002Fnerd\u002Fskills\u002Fgithub\u002Fgithub-pr-workflow\u002Freferences\u002Fci-troubleshooting.md",{"path":98,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":99,"sourceHtmlUrl":100},"references\u002Fconventional-commits.md",2417,"https:\u002F\u002Fgithub.com\u002Fadnichols\u002Fai-configs\u002Fblob\u002Fmain\u002F_hermes\u002Fdefault\u002Fprofiles\u002Fnerd\u002Fskills\u002Fgithub\u002Fgithub-pr-workflow\u002Freferences\u002Fconventional-commits.md",{"path":102,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":103,"sourceHtmlUrl":104},"references\u002Fopencode-pr-feedback-fix-cycle.md",2086,"https:\u002F\u002Fgithub.com\u002Fadnichols\u002Fai-configs\u002Fblob\u002Fmain\u002F_hermes\u002Fdefault\u002Fprofiles\u002Fnerd\u002Fskills\u002Fgithub\u002Fgithub-pr-workflow\u002Freferences\u002Fopencode-pr-feedback-fix-cycle.md",{"path":106,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":107,"sourceHtmlUrl":108},"references\u002Fpr-review-thread-graphql.md",2890,"https:\u002F\u002Fgithub.com\u002Fadnichols\u002Fai-configs\u002Fblob\u002Fmain\u002F_hermes\u002Fdefault\u002Fprofiles\u002Fnerd\u002Fskills\u002Fgithub\u002Fgithub-pr-workflow\u002Freferences\u002Fpr-review-thread-graphql.md",{"path":110,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":111,"sourceHtmlUrl":112},"templates\u002Fpr-body-bugfix.md",513,"https:\u002F\u002Fgithub.com\u002Fadnichols\u002Fai-configs\u002Fblob\u002Fmain\u002F_hermes\u002Fdefault\u002Fprofiles\u002Fnerd\u002Fskills\u002Fgithub\u002Fgithub-pr-workflow\u002Ftemplates\u002Fpr-body-bugfix.md",{"path":114,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":115,"sourceHtmlUrl":116},"templates\u002Fpr-body-feature.md",580,"https:\u002F\u002Fgithub.com\u002Fadnichols\u002Fai-configs\u002Fblob\u002Fmain\u002F_hermes\u002Fdefault\u002Fprofiles\u002Fnerd\u002Fskills\u002Fgithub\u002Fgithub-pr-workflow\u002Ftemplates\u002Fpr-body-feature.md",[118,148,174,195,211,230],{"skillNo":119,"name":120,"nameZh":121,"description":122,"descriptionZh":123,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":124,"categories":125,"keywords":132,"publishedAt":51},"01M6CB7RN791P5RRRCJWWC7DAR","blocked-page-recovery","网页抓取受阻恢复","Use when a fetch fails: 403\u002F429, paywall, WAF, bot wall.","当抓取失败时使用：403\u002F429 状态码、付费墙（paywall）、WAF、机器人验证墙（bot wall）。","https:\u002F\u002Fgithub.com\u002Fadnichols\u002Fai-configs\u002Fblob\u002Fmain\u002F_hermes\u002Fdefault\u002Fskills\u002Fweb\u002Fblocked-page-recovery\u002FSKILL.md",[126,129],{"categoryNo":127,"categoryName":128,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRK8296DVQW3GCBXC89NVG","网页搜索与信息研究",{"categoryNo":130,"categoryName":131,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BTGTEHKD89NSZ5CT4Y5AGV","数据工程师",[133,134,135,136,137,138,139,140,141,142,143,144,145,146,147],"recovery","page","blocked page recovery","bot","fallback","use","fetch","hermes agent","hermes","Citations","waf","windows","research","linux","macos",{"skillNo":149,"name":150,"nameZh":151,"description":152,"descriptionZh":153,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":154,"categories":155,"keywords":160,"publishedAt":51},"01M6CB7NQY2VVYCQJ1QBXACQF4","writing-plans","软件实施计划编写","Use when creating or updating executable software plans. Keep plans as local files unless the user explicitly asks to register them in Doct.","在创建或更新可执行的软件计划时使用。除非用户明确要求将计划注册到 Doct，否则请将计划保留为本地文件。","https:\u002F\u002Fgithub.com\u002Fadnichols\u002Fai-configs\u002Fblob\u002Fmain\u002F_hermes\u002Fdefault\u002Fskills\u002Fsoftware-development\u002Fwriting-plans\u002FSKILL.md",[156,157],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":158,"categoryName":159,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BTBRTQXJ9T5TABNS7XP1A0","任务规划与分解",[161,162,163,164,35,165,166,167,168,169,170,171,138,172,140,141,173],"writing","writing plans","documentation","test","design","user","development","planning","files","implementation","html","ops","plan",{"skillNo":175,"name":176,"nameZh":177,"description":178,"descriptionZh":179,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":180,"categories":181,"keywords":186,"publishedAt":51},"01M6CB7JME246KZQHP73Z2STDF","test-driven-development","测试驱动开发","TDD: enforce RED-GREEN-REFACTOR, tests before code.","TDD：强制执行「红-绿-重构」（RED-GREEN-REFACTOR）循环，先写测试再写代码。","https:\u002F\u002Fgithub.com\u002Fadnichols\u002Fai-configs\u002Fblob\u002Fmain\u002F_hermes\u002Fdefault\u002Fskills\u002Fsoftware-development\u002Ftest-driven-development\u002FSKILL.md",[182,183],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":184,"categoryName":185,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[164,167,187,188,189,140,141,190,173,191,41,192,147,193,146,194,144],"test driven development","red-green-refactor","superpowers","quality","refactor","debugging","tdd","testing",{"skillNo":196,"name":197,"nameZh":198,"description":199,"descriptionZh":200,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":201,"categories":202,"keywords":207,"publishedAt":51},"01M6CB7FQ407KQTD4Z9VAWKY54","systematic-debugging","系统化根因调试","4-phase root cause debugging: understand bugs before fixing.","四阶段根因调试：先理解缺陷，再着手修复。","https:\u002F\u002Fgithub.com\u002Fadnichols\u002Fai-configs\u002Fblob\u002Fmain\u002F_hermes\u002Fdefault\u002Fskills\u002Fsoftware-development\u002Fsystematic-debugging\u002FSKILL.md",[203,204],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":205,"categoryName":206,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRSRYQ3M8N5063NNQPF2B1","调试与故障排查",[192,208,167,189,140,141,209,173,210,144,164,146,147],"systematic debugging","troubleshooting","investigation",{"skillNo":212,"name":213,"nameZh":214,"description":215,"descriptionZh":216,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":217,"categories":218,"keywords":223,"publishedAt":51},"01M6CB7D57MK88HE5YPZHKH68Q","spike","技术预研验证","Throwaway experiments to validate an idea before build.","在正式构建前，通过一次性（可丢弃的）实验来验证某个想法。","https:\u002F\u002Fgithub.com\u002Fadnichols\u002Fai-configs\u002Fblob\u002Fmain\u002F_hermes\u002Fdefault\u002Fskills\u002Fsoftware-development\u002Fspike\u002FSKILL.md",[219,220],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":221,"categoryName":222,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8CA7BPYYPVSH8VYED4N4P5Y","技术预研与概念验证",[213,144,224,225,145,226,146,147,227,228,229,140,141,173,168],"validate","experiments","prototype","feasibility","sketch","experiment",{"skillNo":231,"name":232,"nameZh":233,"description":234,"descriptionZh":235,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":236,"categories":237,"keywords":242,"publishedAt":51},"01M6CB7APAQ37YE5YE1MAAFT42","simplify-code","代码变更并行清理精简","Parallel 3-agent cleanup of recent code changes.","并行使用 3 个智能体（agent）对近期代码变更进行清理精简。","https:\u002F\u002Fgithub.com\u002Fadnichols\u002Fai-configs\u002Fblob\u002Fmain\u002F_hermes\u002Fdefault\u002Fskills\u002Fsoftware-development\u002Fsimplify-code\u002FSKILL.md",[238,239],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":240,"categoryName":241,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BT7QVANT4709358VEJK53E","代码实现",[243,244,41,245,140,141,246,173,191,44,247,248,167,144,164,146,50,147],"simplify code","simplify","subagent","parallel","delegation","cleanup"]