[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M757D4NHM8T250AM5ZBWJK11":3,"skill-same:01M757D4NHM8T250AM5ZBWJK11":76},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":40,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":43,"ownerDescription":6,"updatedAt":44,"install":45,"resources":57},"01M757D4NHM8T250AM5ZBWJK11","github-app",null,"Read, update, assign, and transfer GitHub issues, push branches (including force push), create or update pull requests, issues, and comments, and record issue dependencies and sub-issues, all as a GitHub App through the gh CLI. Use for GitHub reads or writes, including \"open a PR\", \"send a pull request\", \"file\u002Fread\u002Fupdate\u002Fassign\u002Ftransfer an issue\", \"comment on the PR\u002Fissue\", \"mark an issue as blocked by \u002F blocking another\", or an App-authenticated push (with --force when asked).","gregwebs\u002Fskills-sdlc","gregwebs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1183?v=4","01M757CE9SQ3192K1V45RCV63N","Greg Weber","01M757CEAEWMH9VKD0C4BH22BV",21,"MIT","https:\u002F\u002Fgithub.com\u002Fgregwebs\u002Fskills-sdlc\u002Fblob\u002Fmain\u002Fskills\u002Fgithub-app\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: github-app\ndescription: Read, update, assign, and transfer GitHub issues, push branches (including force push), create or update pull requests, issues, and comments, and record issue dependencies and sub-issues, all as a GitHub App through the gh CLI. Use for GitHub reads or writes, including \"open a PR\", \"send a pull request\", \"file\u002Fread\u002Fupdate\u002Fassign\u002Ftransfer an issue\", \"comment on the PR\u002Fissue\", \"mark an issue as blocked by \u002F blocking another\", or an App-authenticated push (with --force when asked).\nuser-invocable: true\nallowed-tools:\n  - Read\n  - Write\n  - Bash(${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh *)\n  - Bash(${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app-issue-dependency.sh *)\n  - Bash(${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app-issue-sub-issue.sh *)\n  - Bash(git rev-parse *)\n  - Bash(git remote get-url *)\n  - Bash(git branch -c *)\n  - Bash(git switch *)\n  - Bash(git status *)\n  - Bash(git commit *)\n---\n\n# \u002Fgithub-app — GitHub as the App, through `gh`\n\n`${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh` runs the real `gh` CLI as a GitHub App\ninstallation. It exports an installation token as `GH_TOKEN` and passes your\narguments to `gh` unchanged. Flags, output, exit codes, and `--help` are\n`gh`'s own. When a command prints a URL — creating, editing or transferring\nan issue or PR — **always relay it back to the user.** `${CLAUDE_SKILL_DIR}` is\nthe directory containing this SKILL.md.\n\nThese are **outward-facing actions** (they publish to GitHub and notify people).\nThis skill only runs when explicitly requested by the user- this includes explicitly invoking another skill that explicitly invokes this skill.\nConfirm the target (repo, branch, title) before running if there's any ambiguity.\n\n## Guardrails\n\n`gh` can do anything the token allows, so these rules are the guard:\n\n- Ask the user before acting on a repository outside the current project.\n- Read the target project's `AGENTS.md` and `CONTRIBUTING.md` first and follow\n  their restrictions.\n- The App's granted scopes are the hard ceiling: `write` on `actions`,\n  `contents`, `issues`, `pull_requests`, and `workflows`; the remaining 20\n  scopes are read-only. That still allows deleting branches and editing\n  workflows: it is a ceiling, not a guard.\n- Never move or delete the default branch through `gh` (for example\n  `gh api …\u002Fgit\u002Frefs\u002Fheads\u002Fmain` or `gh repo sync --force`); the `git push`\n  guard does not cover it.\n- Report a `403` to the user. Never work around it.\n- Never run bare `gh`: it acts as the user, not the App.\n\n## Setup reference\n\nThree files live outside this repo, in `~\u002F.config\u002Fgithub-app\u002F` (override with\n`GITHUB_APP_SECRETS_DIR`):\n\n- `client-id` — the App's client ID (used as the JWT `iss` claim)\n- `installation-id` — the installation scope id\n- `private-key.pem` — the App's private key (signs the JWT)\n\nThese files should only be accessible to the user (permission 0600).\n\nIf these files are missing, the skill is not configured.\nIf the skill needs to be used, prompt the user to add these files.\n\nThe token is minted for you and cached in `${XDG_CACHE_HOME:-~\u002F.cache}\u002Fgh-app\u002F`\nuntil five minutes before it expires. You never handle the private key.\nRequires `gh`, `jq`, `curl`, and OpenSSL.\n\n## Commands\n\n| Action | Command |\n|---|---|\n| Push the current branch | `${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh git push` |\n| Open a PR | `${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh pr create --base BASE --head HEAD --title TITLE --body-file FILE` |\n| Update a PR | `${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh pr edit NUMBER --title TITLE --body-file FILE` |\n| Read an issue | `${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh issue view NUMBER --json number,title,state,labels,body` |\n| File an issue | `${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh issue create --title TITLE --body-file FILE` |\n| Update an issue | `${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh issue edit NUMBER --body-file FILE` |\n| Assign an issue | `${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh issue edit NUMBER --add-assignee USER` |\n| Transfer an issue | `${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh issue transfer NUMBER OWNER\u002FREPO` |\n| Comment on an issue or PR | `${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh issue comment NUMBER --body-file FILE` |\n| Link blocked-by | `${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app-issue-dependency.sh add --blocked NUMBER --blocker NUMBER` |\n| Remove blocked-by | `${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app-issue-dependency.sh remove --blocked NUMBER --blocker NUMBER` |\n| List blocking edges | `${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app-issue-dependency.sh list --issue NUMBER` |\n| Link sub-issue | `${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app-issue-sub-issue.sh add --parent NUMBER --child NUMBER` |\n\nAnything else `gh` does, run through `${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh`\nwith `gh`'s own arguments, for example `api`, `pr view`, or `run view`. Use the\n`github-actions-ci` skill for check status and waiting.\n\nCommands act on the repository of the directory they run in, which `gh`\nresolves for itself.\n\nWith more than one remote (for example a fork with `upstream`), that resolution\ndoes not follow the remote `git push` uses: with no default set,\n`{owner}\u002F{repo}` and `issue create` resolve to `upstream`, so a write lands in\nthe wrong repository. Name the repository explicitly instead. Use `origin`, the\nremote `git push` uses:\n\n```text\ngit remote get-url origin\n```\n\nThat prints `git@github.com:OWNER\u002FREPO.git` or\n`https:\u002F\u002Fgithub.com\u002FOWNER\u002FREPO.git`, possibly without the trailing `.git`;\n`OWNER\u002FREPO` is the part after the host.\nPass it as `--repo OWNER\u002FREPO` to the `gh` subcommands that accept it and to\nboth issue scripts, and use a `repos\u002FOWNER\u002FREPO\u002F...` path with `gh api`, which\nhas no `--repo`. Pass `--repo` for another repository only when the user asked\nfor it, and ask first (see Guardrails). `repo set-default --view` shows only a\ndefault that was set explicitly, not what `gh` would otherwise resolve; never\nrun `repo set-default` without an argument, because it fails when not run\ninteractively. Run `repo set-default OWNER\u002FREPO` only when the user asks for\nit, because it writes `remote.\u003Cname>.gh-resolved` into the repository's config.\n\nOther skills call the same scripts as\n`${CLAUDE_SKILL_DIR}\u002F..\u002Fgithub-app\u002Fscripts\u002Fgh-app.sh` (and likewise for the two\nissue scripts). Skill directories are siblings both in this repo and when\ninstalled.\n\n## Recording blocked-by \u002F blocking dependencies\n\n`gh` has no command for issue dependencies or sub-issues, so two bundled\nscripts call `gh api` and resolve issue numbers to the database ids GitHub\nneeds.\n\nGitHub stores a dependency as a single directed edge: \"issue A blocks issue B\"\nis recorded as \"B is blocked_by A\". Name the issue that **cannot start** with\n`--blocked`:\n\n```\n${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app-issue-dependency.sh add --blocked 42 --blocker 40\n```\n\nreads as \"issue 42 is blocked by issue 40\". `list --issue N` prints both\ndirections (`blocked by:` \u002F `blocking:`). To undo a link, pass the same pair to\n`remove`.\n\n## Permission-efficient command shapes\n\nRun the scripts directly. Do not prefix them with `PATH=...` or call the GitHub\nAPI with raw `curl`. Stable command prefixes are:\n\n```text\n${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh\n${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app-issue-dependency.sh\n${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app-issue-sub-issue.sh\n```\n\nGitHub requires network access. In a restricted Codex sandbox, request network\nescalation on the first attempt with one of these prefixes; do not first run a\ncommand that is expected to fail DNS and then retry it. A previously persisted\napproval can then match without another prompt.\n\n## Body text: always use `--body-file`, never `--body`\n\nWrite the body to a temp file, then pass `--body-file`. Do this even for\none-liners.\n\nIn Codex, create these temp body files with `exec_command` and a direct write\nunder `\u002Fprivate\u002Ftmp` (for example, `printf '%s\\n' 'body text' >\n\u002Fprivate\u002Ftmp\u002Fpr-body.md`). Do **not** use `apply_patch` for `\u002Fprivate\u002Ftmp`\nbody files; `apply_patch` is for repository edits and can trigger an\nunnecessary approval prompt for absolute paths outside the workspace.\n\nDo **not** ask the user for permission before creating these temp body files\nunder `\u002Fprivate\u002Ftmp`. They are required workflow scratch files, they are outside\nthe repo, and `\u002Fprivate\u002Ftmp` is an allowed writable temp location in Codex.\nOnly ask for approval if the GitHub action itself is ambiguous or if a command\nrequires escalated permissions.\n\nReasons:\n\n- This sandbox mangles `!` into `\\!` in Bash-tool arguments and heredocs, so an\n  inline `--body \"...!...\"` corrupts the body. The Write tool is unaffected.\n- Multiline \u002F Markdown bodies with backticks, quotes, and `$` are painful to\n  quote safely on a command line.\n\n```\n# 1. Write the body to \u002Fprivate\u002Ftmp\u002Fpr-body.md\n# 2. Pass it\n${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh pr create --base main --head my-branch \\\n  --title \"...\" --body-file \u002Fprivate\u002Ftmp\u002Fpr-body.md\n```\n\n## Opening a PR\n\n1. **The head branch must already be pushed to origin.** If it isn't, push it\n   first with `${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh git push`. Confirm with\n   the user before pushing if they haven't asked.\n2. `--base` is usually `main`; `--head` is the current feature branch\n   (`git rev-parse --abbrev-ref HEAD`).\n3. Follow repository instructions or conventions for PR Body contents.\n4. Write the body file, run the command, relay the printed PR URL.\n\n## Pushing and force pushing\n\n`${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh git push` pushes the current branch to\n`origin` and sets its upstream. It ignores your global git configuration and\nauthenticates as the App for that one command. It refuses `main`, a detached\nHEAD, and any argument other than these force flags:\n\n```\n${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh git push --force\n${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh git push --force-with-lease\n```\n\nForce push rewrites remote history and is destructive — run it only when the\nuser has explicitly asked, and confirm the branch first. Prefer\n`--force-with-lease`, which refuses if the remote branch has moved since your\nlast fetch.\n\n## Filing an issue\n\n```\n${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh issue create --title \"Title\" \\\n  --body-file \"$TMPDIR\u002Fissue-body.md\" --label bug --label \"needs triage\"\n```\n`--label` repeats per label. Relay the printed issue URL.\n\n## Transferring an issue\n\n```\n${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh issue transfer 42 OWNER\u002FDESTINATION\n```\n\nOnly issues (not PRs) can move. Both repositories must share an owner, and the\ndestination must have issues enabled. The installation must cover both\nrepositories. Labels and milestones carry over only where the destination has\nmatching ones. The issue number may change: relay the printed URL. If the\ncommand fails, check where the issue now is (read-only) before retrying,\nbecause GitHub may already have moved it.\n\n## Assigning an issue\n\n```\n${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh issue edit 42 --add-assignee alice,bob\n${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh issue edit 42 --remove-assignee alice\n```\n\n`--add-assignee` adds to the current assignees; it does not replace them.\nAssignees must be users with access to the repo. PRs take the same flags via\n`pr edit`.\n\n## Commenting on an issue or PR\n\n```\n${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh issue comment 1 --body-file \"$TMPDIR\u002Fcomment.md\"\n```\n\nGitHub treats PR conversation comments as issue comments, so an issue number or\na PR number works here.\n\n## Failure modes\n\n- **`403 Resource not accessible by integration`** — the installation lacks the\n  needed permission scope. Granting it in the App settings also requires the\n  owner to *accept* the upgraded grant at\n  https:\u002F\u002Fgithub.com\u002Fsettings\u002Finstallations. Report this to the user; you can't\n  fix it from here. A cached token keeps its old scopes: once the grant is\n  accepted, delete `${XDG_CACHE_HOME:-~\u002F.cache}\u002Fgh-app\u002Ftoken.*` so the next\n  call mints a new one.\n- **`401 Bad credentials`** — the cached token is no longer valid: the App was\n  reinstalled or the token revoked, or this machine's clock is more than five\n  minutes behind GitHub's. Delete `${XDG_CACHE_HOME:-~\u002F.cache}\u002Fgh-app\u002Ftoken.*`\n  and retry; the next call mints a new token. If it persists, report it.\n- **`gh-app-token: failed to obtain installation access token`** — the Setup\n  reference files are missing or wrong, or GitHub is unreachable. Report it; do\n  not fall back to bare `gh`.\n- **`422` on `pr create`** — usually the head branch isn't pushed, a PR already\n  exists for that branch, or base == head. Read `gh`'s error output.\n- Any other failure is `gh`'s own error and exit code. Report it as-is; do not\n  route around it with `curl`.\n","# \u002Fgithub-app — GitHub as the App, through `gh`\n\n`${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh` runs the real `gh` CLI as a GitHub App\ninstallation. It exports an installation token as `GH_TOKEN` and passes your\narguments to `gh` unchanged. Flags, output, exit codes, and `--help` are\n`gh`'s own. When a command prints a URL — creating, editing or transferring\nan issue or PR — **always relay it back to the user.** `${CLAUDE_SKILL_DIR}` is\nthe directory containing this SKILL.md.\n\nThese are **outward-facing actions** (they publish to GitHub and notify people).\nThis skill only runs when explicitly requested by the user- this includes explicitly invoking another skill that explicitly invokes this skill.\nConfirm the target (repo, branch, title) before running if there's any ambiguity.\n\n## Guardrails\n\n`gh` can do anything the token allows, so these rules are the guard:\n\n- Ask the user before acting on a repository outside the current project.\n- Read the target project's `AGENTS.md` and `CONTRIBUTING.md` first and follow\n  their restrictions.\n- The App's granted scopes are the hard ceiling: `write` on `actions`,\n  `contents`, `issues`, `pull_requests`, and `workflows`; the remaining 20\n  scopes are read-only. That still allows deleting branches and editing\n  workflows: it is a ceiling, not a guard.\n- Never move or delete the default branch through `gh` (for example\n  `gh api …\u002Fgit\u002Frefs\u002Fheads\u002Fmain` or `gh repo sync --force`); the `git push`\n  guard does not cover it.\n- Report a `403` to the user. Never work around it.\n- Never run bare `gh`: it acts as the user, not the App.\n\n## Setup reference\n\nThree files live outside this repo, in `~\u002F.config\u002Fgithub-app\u002F` (override with\n`GITHUB_APP_SECRETS_DIR`):\n\n- `client-id` — the App's client ID (used as the JWT `iss` claim)\n- `installation-id` — the installation scope id\n- `private-key.pem` — the App's private key (signs the JWT)\n\nThese files should only be accessible to the user (permission 0600).\n\nIf these files are missing, the skill is not configured.\nIf the skill needs to be used, prompt the user to add these files.\n\nThe token is minted for you and cached in `${XDG_CACHE_HOME:-~\u002F.cache}\u002Fgh-app\u002F`\nuntil five minutes before it expires. You never handle the private key.\nRequires `gh`, `jq`, `curl`, and OpenSSL.\n\n## Commands\n\n| Action | Command |\n|---|---|\n| Push the current branch | `${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh git push` |\n| Open a PR | `${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh pr create --base BASE --head HEAD --title TITLE --body-file FILE` |\n| Update a PR | `${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh pr edit NUMBER --title TITLE --body-file FILE` |\n| Read an issue | `${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh issue view NUMBER --json number,title,state,labels,body` |\n| File an issue | `${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh issue create --title TITLE --body-file FILE` |\n| Update an issue | `${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh issue edit NUMBER --body-file FILE` |\n| Assign an issue | `${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh issue edit NUMBER --add-assignee USER` |\n| Transfer an issue | `${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh issue transfer NUMBER OWNER\u002FREPO` |\n| Comment on an issue or PR | `${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh issue comment NUMBER --body-file FILE` |\n| Link blocked-by | `${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app-issue-dependency.sh add --blocked NUMBER --blocker NUMBER` |\n| Remove blocked-by | `${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app-issue-dependency.sh remove --blocked NUMBER --blocker NUMBER` |\n| List blocking edges | `${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app-issue-dependency.sh list --issue NUMBER` |\n| Link sub-issue | `${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app-issue-sub-issue.sh add --parent NUMBER --child NUMBER` |\n\nAnything else `gh` does, run through `${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh`\nwith `gh`'s own arguments, for example `api`, `pr view`, or `run view`. Use the\n`github-actions-ci` skill for check status and waiting.\n\nCommands act on the repository of the directory they run in, which `gh`\nresolves for itself.\n\nWith more than one remote (for example a fork with `upstream`), that resolution\ndoes not follow the remote `git push` uses: with no default set,\n`{owner}\u002F{repo}` and `issue create` resolve to `upstream`, so a write lands in\nthe wrong repository. Name the repository explicitly instead. Use `origin`, the\nremote `git push` uses:\n\n```text\ngit remote get-url origin\n```\n\nThat prints `git@github.com:OWNER\u002FREPO.git` or\n`https:\u002F\u002Fgithub.com\u002FOWNER\u002FREPO.git`, possibly without the trailing `.git`;\n`OWNER\u002FREPO` is the part after the host.\nPass it as `--repo OWNER\u002FREPO` to the `gh` subcommands that accept it and to\nboth issue scripts, and use a `repos\u002FOWNER\u002FREPO\u002F...` path with `gh api`, which\nhas no `--repo`. Pass `--repo` for another repository only when the user asked\nfor it, and ask first (see Guardrails). `repo set-default --view` shows only a\ndefault that was set explicitly, not what `gh` would otherwise resolve; never\nrun `repo set-default` without an argument, because it fails when not run\ninteractively. Run `repo set-default OWNER\u002FREPO` only when the user asks for\nit, because it writes `remote.\u003Cname>.gh-resolved` into the repository's config.\n\nOther skills call the same scripts as\n`${CLAUDE_SKILL_DIR}\u002F..\u002Fgithub-app\u002Fscripts\u002Fgh-app.sh` (and likewise for the two\nissue scripts). Skill directories are siblings both in this repo and when\ninstalled.\n\n## Recording blocked-by \u002F blocking dependencies\n\n`gh` has no command for issue dependencies or sub-issues, so two bundled\nscripts call `gh api` and resolve issue numbers to the database ids GitHub\nneeds.\n\nGitHub stores a dependency as a single directed edge: \"issue A blocks issue B\"\nis recorded as \"B is blocked_by A\". Name the issue that **cannot start** with\n`--blocked`:\n\n```\n${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app-issue-dependency.sh add --blocked 42 --blocker 40\n```\n\nreads as \"issue 42 is blocked by issue 40\". `list --issue N` prints both\ndirections (`blocked by:` \u002F `blocking:`). To undo a link, pass the same pair to\n`remove`.\n\n## Permission-efficient command shapes\n\nRun the scripts directly. Do not prefix them with `PATH=...` or call the GitHub\nAPI with raw `curl`. Stable command prefixes are:\n\n```text\n${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh\n${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app-issue-dependency.sh\n${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app-issue-sub-issue.sh\n```\n\nGitHub requires network access. In a restricted Codex sandbox, request network\nescalation on the first attempt with one of these prefixes; do not first run a\ncommand that is expected to fail DNS and then retry it. A previously persisted\napproval can then match without another prompt.\n\n## Body text: always use `--body-file`, never `--body`\n\nWrite the body to a temp file, then pass `--body-file`. Do this even for\none-liners.\n\nIn Codex, create these temp body files with `exec_command` and a direct write\nunder `\u002Fprivate\u002Ftmp` (for example, `printf '%s\\n' 'body text' >\n\u002Fprivate\u002Ftmp\u002Fpr-body.md`). Do **not** use `apply_patch` for `\u002Fprivate\u002Ftmp`\nbody files; `apply_patch` is for repository edits and can trigger an\nunnecessary approval prompt for absolute paths outside the workspace.\n\nDo **not** ask the user for permission before creating these temp body files\nunder `\u002Fprivate\u002Ftmp`. They are required workflow scratch files, they are outside\nthe repo, and `\u002Fprivate\u002Ftmp` is an allowed writable temp location in Codex.\nOnly ask for approval if the GitHub action itself is ambiguous or if a command\nrequires escalated permissions.\n\nReasons:\n\n- This sandbox mangles `!` into `\\!` in Bash-tool arguments and heredocs, so an\n  inline `--body \"...!...\"` corrupts the body. The Write tool is unaffected.\n- Multiline \u002F Markdown bodies with backticks, quotes, and `$` are painful to\n  quote safely on a command line.\n\n```\n# 1. Write the body to \u002Fprivate\u002Ftmp\u002Fpr-body.md\n# 2. Pass it\n${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh pr create --base main --head my-branch \\\n  --title \"...\" --body-file \u002Fprivate\u002Ftmp\u002Fpr-body.md\n```\n\n## Opening a PR\n\n1. **The head branch must already be pushed to origin.** If it isn't, push it\n   first with `${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh git push`. Confirm with\n   the user before pushing if they haven't asked.\n2. `--base` is usually `main`; `--head` is the current feature branch\n   (`git rev-parse --abbrev-ref HEAD`).\n3. Follow repository instructions or conventions for PR Body contents.\n4. Write the body file, run the command, relay the printed PR URL.\n\n## Pushing and force pushing\n\n`${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh git push` pushes the current branch to\n`origin` and sets its upstream. It ignores your global git configuration and\nauthenticates as the App for that one command. It refuses `main`, a detached\nHEAD, and any argument other than these force flags:\n\n```\n${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh git push --force\n${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh git push --force-with-lease\n```\n\nForce push rewrites remote history and is destructive — run it only when the\nuser has explicitly asked, and confirm the branch first. Prefer\n`--force-with-lease`, which refuses if the remote branch has moved since your\nlast fetch.\n\n## Filing an issue\n\n```\n${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh issue create --title \"Title\" \\\n  --body-file \"$TMPDIR\u002Fissue-body.md\" --label bug --label \"needs triage\"\n```\n`--label` repeats per label. Relay the printed issue URL.\n\n## Transferring an issue\n\n```\n${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh issue transfer 42 OWNER\u002FDESTINATION\n```\n\nOnly issues (not PRs) can move. Both repositories must share an owner, and the\ndestination must have issues enabled. The installation must cover both\nrepositories. Labels and milestones carry over only where the destination has\nmatching ones. The issue number may change: relay the printed URL. If the\ncommand fails, check where the issue now is (read-only) before retrying,\nbecause GitHub may already have moved it.\n\n## Assigning an issue\n\n```\n${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh issue edit 42 --add-assignee alice,bob\n${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh issue edit 42 --remove-assignee alice\n```\n\n`--add-assignee` adds to the current assignees; it does not replace them.\nAssignees must be users with access to the repo. PRs take the same flags via\n`pr edit`.\n\n## Commenting on an issue or PR\n\n```\n${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh issue comment 1 --body-file \"$TMPDIR\u002Fcomment.md\"\n```\n\nGitHub treats PR conversation comments as issue comments, so an issue number or\na PR number works here.\n\n## Failure modes\n\n- **`403 Resource not accessible by integration`** — the installation lacks the\n  needed permission scope. Granting it in the App settings also requires the\n  owner to *accept* the upgraded grant at\n  https:\u002F\u002Fgithub.com\u002Fsettings\u002Finstallations. Report this to the user; you can't\n  fix it from here. A cached token keeps its old scopes: once the grant is\n  accepted, delete `${XDG_CACHE_HOME:-~\u002F.cache}\u002Fgh-app\u002Ftoken.*` so the next\n  call mints a new one.\n- **`401 Bad credentials`** — the cached token is no longer valid: the App was\n  reinstalled or the token revoked, or this machine's clock is more than five\n  minutes behind GitHub's. Delete `${XDG_CACHE_HOME:-~\u002F.cache}\u002Fgh-app\u002Ftoken.*`\n  and retry; the next call mints a new token. If it persists, report it.\n- **`gh-app-token: failed to obtain installation access token`** — the Setup\n  reference files are missing or wrong, or GitHub is unreachable. Report it; do\n  not fall back to bare `gh`.\n- **`422` on `pr create`** — usually the head branch isn't pushed, a PR already\n  exists for that branch, or base == head. Read `gh`'s error output.\n- Any other failure is `gh`'s own error and exit code. Report it as-is; do not\n  route around it with `curl`.\n",{"name":5,"description":7,"allowed-tools":24,"user-invocable":36},[25,26,27,28,29,30,31,32,33,34,35],"Read","Write","Bash(${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app.sh *)","Bash(${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app-issue-dependency.sh *)","Bash(${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fgh-app-issue-sub-issue.sh *)","Bash(git rev-parse *)","Bash(git remote get-url *)","Bash(git branch -c *)","Bash(git switch *)","Bash(git status *)","Bash(git commit *)",true,"main","4107310104a727eddf4ff7564540a1d55a5e9422","skills\u002Fgithub-app",1,"https:\u002F\u002Fgithub.com\u002Fgregwebs\u002Fskills-sdlc","https:\u002F\u002Fgithub.com\u002Fgregwebs","https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fgregabramowitzweber","2026-11-12 21:43:42",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":36},[47,50,53],{"tool":48,"command":49},"npx","npx skills add gregwebs\u002Fskills-sdlc --skill github-app",{"tool":51,"command":52},"bunx","bunx skills add gregwebs\u002Fskills-sdlc --skill github-app",{"tool":54,"command":55},"pnpm","pnpm dlx skills add gregwebs\u002Fskills-sdlc --skill github-app","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgregwebs\u002Fskills-sdlc\u002Fblob\u002Fmain\u002Fskills\u002Fgithub-app\u002FSKILL.md",[58,64,68,72],{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"scripts\u002Fgh-app-issue-dependency.sh","SCRIPT","脚本",3836,"https:\u002F\u002Fgithub.com\u002Fgregwebs\u002Fskills-sdlc\u002Fblob\u002Fmain\u002Fskills\u002Fgithub-app\u002Fscripts\u002Fgh-app-issue-dependency.sh",{"path":65,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":66,"sourceHtmlUrl":67},"scripts\u002Fgh-app-issue-sub-issue.sh",2412,"https:\u002F\u002Fgithub.com\u002Fgregwebs\u002Fskills-sdlc\u002Fblob\u002Fmain\u002Fskills\u002Fgithub-app\u002Fscripts\u002Fgh-app-issue-sub-issue.sh",{"path":69,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":70,"sourceHtmlUrl":71},"scripts\u002Fgh-app-token.sh",7575,"https:\u002F\u002Fgithub.com\u002Fgregwebs\u002Fskills-sdlc\u002Fblob\u002Fmain\u002Fskills\u002Fgithub-app\u002Fscripts\u002Fgh-app-token.sh",{"path":73,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":74,"sourceHtmlUrl":75},"scripts\u002Fgh-app.sh",2119,"https:\u002F\u002Fgithub.com\u002Fgregwebs\u002Fskills-sdlc\u002Fblob\u002Fmain\u002Fskills\u002Fgithub-app\u002Fscripts\u002Fgh-app.sh",[77,85,92,99,106,113],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":84},"01M78SFA6PHFHHTGWBDHJQBJHZ","easy-issues","Find and work through easy issue-tracker tasks autonomously, simplest first, using one fresh subagent per issue in sequence. Use for clearing straightforward bugs, documentation fixes, and tiny features without operator help.","https:\u002F\u002Fgithub.com\u002Fgregwebs\u002Fskills-sdlc\u002Fblob\u002Fmain\u002Fskills\u002Fexperimental\u002Feasy-issues\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M757E63FW42JCM5ACS9A7APJ","wrap-up","After implementing, commit and finish your work","https:\u002F\u002Fgithub.com\u002Fgregwebs\u002Fskills-sdlc\u002Fblob\u002Fmain\u002Fskills\u002Fwrap-up\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M757E4D8DYA9QMRQMZNAA442","verify","Verify software by intentional testing.","https:\u002F\u002Fgithub.com\u002Fgregwebs\u002Fskills-sdlc\u002Fblob\u002Fmain\u002Fskills\u002Fverify\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M757E2T6F62NE29Q1XTN5EP8","update-working-copy","Fetch the latest from the remote. Update the working branch or switch to main if the branch is defunct.","https:\u002F\u002Fgithub.com\u002Fgregwebs\u002Fskills-sdlc\u002Fblob\u002Fmain\u002Fskills\u002Fupdate-working-copy\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":19},"01M757E0PYSK3HW3WS9BPR5EEF","tickets","Break a plan, spec, or conversation into tracer-bullet issues for this repo, creating a parent tracking issue with sub-issues when publishing multiple tickets.","https:\u002F\u002Fgithub.com\u002Fgregwebs\u002Fskills-sdlc\u002Fblob\u002Fmain\u002Fskills\u002Ftickets\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":19},"01M757DZ6KRKPYTHXBHG3D3EXK","spec","Turn the current conversation into a spec and publish it to the project issue tracker: no interview, just synthesis of what you've already discussed.","https:\u002F\u002Fgithub.com\u002Fgregwebs\u002Fskills-sdlc\u002Fblob\u002Fmain\u002Fskills\u002Fspec\u002FSKILL.md",[],[]]