com um clique
github-issue-solve
// Solve a GitHub issue by collecting context, implementing a fix, and opening or updating a pull request.
// Solve a GitHub issue by collecting context, implementing a fix, and opening or updating a pull request.
Review a GitHub pull request by collecting PR context, analyzing risks, and publishing one structured review.
Guidance for safe, reliable GitHub CLI workflows across issues, pull requests, and reviews.
Fix a GitHub pull request by addressing feedback or CI failures, pushing changes, and publishing replies.
| name | github-issue-solve |
| description | Solve a GitHub issue by collecting context, implementing a fix, and opening or updating a pull request. |
Use this skill when you need to turn a GitHub issue into a concrete code change and publish the result as a pull request.
gh commandsgh CLI authentication is required.GITHUB_TOKEN/GH_TOKEN must allow issue/PR read-write operations.GITHUB_OUTPUT_DIR: output artifacts directory (caller-provided preferred; otherwise temp dir).GITHUB_CONTEXT_DIR: context directory (default ${GITHUB_OUTPUT_DIR}/github-context).Preferred input when already available:
${GITHUB_CONTEXT_DIR}/manifest.jsonOptional inputs:
status=present in manifest.artifacts[].If no manifest is provided, collect issue metadata and comments directly with gh:
gh issue view <issue_number> --repo <owner/repo> --json number,title,body,state,url,author,createdAt,updatedAt,labels
gh api repos/<owner>/<repo>/issues/<issue_number>/comments --paginate
Do not assume fixed file names under github/.
Resolve usable inputs from manifest.artifacts[] by id/path/status/description.
${GITHUB_CONTEXT_DIR}/manifest.json exists, use it.gh.feature/issue-<number> or fix/issue-<number>).Use raw gh commands with --body-file:
gh pr create --repo <owner/repo> --title "<title>" --body-file <summary.md> --head <branch> --base <base>
gh pr edit <pr_number> --repo <owner/repo> --title "<title>" --body-file <summary.md>
Publish completion is mandatory; do not report success without a real PR side effect.
Required outputs under ${GITHUB_OUTPUT_DIR}:
summary.mdmanifest.jsonsummary.mdMust include:
pr_number, pr_url, branch)manifest.jsonExecution metadata for this skill, including:
provider: "github-issue-solve"pr_number, pr_url)status (completed|failed)Mark run as failed if any of the following is true:
Do not report success from artifacts alone.