github-pr-fix
0
总安装量
1
周安装量
安装命令
npx skills add https://github.com/holon-run/holon --skill github-pr-fix
Agent 安装分布
amp
1
cline
1
opencode
1
cursor
1
continue
1
kimi-cli
1
Skill 文档
GitHub PR Fix Skill
github-pr-fix focuses on remediation: diagnose PR problems, apply fixes, push commits, and publish review replies.
Prerequisites
ghCLI authentication is required.- Prefer
ghxfor context collection and publish operations. GITHUB_TOKEN/GH_TOKENmust allow PR read-write operations.
Runtime Paths
GITHUB_OUTPUT_DIR: output artifacts directory (caller-provided preferred; otherwise temp dir).GITHUB_CONTEXT_DIR: context directory (default${GITHUB_OUTPUT_DIR}/github-context).
Inputs (Manifest-First)
Required input:
${GITHUB_CONTEXT_DIR}/manifest.jsonfromghx context collect.
Optional inputs:
- Any artifact listed as
status=presentinmanifest.artifacts[].
Do not assume fixed github/*.json files.
Resolve available context through artifact metadata (id, path, status, description).
Workflow
1. Collect context
Preferred:
skills/ghx/scripts/ghx.sh context collect <pr_ref>
Fallback:
- Direct
ghcollection only whenghxis unavailable; still produce equivalent manifest contract.
2. Diagnose and prioritize
Prioritize in this order:
- Build/compile failures
- Failing tests and runtime regressions
- Type/import/module errors
- Lint/style issues
- Non-blocking refactor suggestions
Use existing review threads/comments to avoid duplicate or stale responses.
3. Implement fixes
- Apply minimal targeted fixes for blocking issues first.
- Run relevant verification commands.
- Commit and push before posting review replies.
4. Publish review replies
Preferred:
- Use
ghxpublish capabilities for reply workflows.
Fallback:
- Use direct
gh apireply operations only ifghxpublish path is unavailable.
5. Finalize outputs
Required outputs under ${GITHUB_OUTPUT_DIR}:
summary.mdmanifest.jsonpublish-results.json
Remediation Standards
- Do not mark issues fixed without verification evidence.
- If verification is partial, state exact limits and risk.
- Defer non-blocking large refactors with explicit rationale.
- Keep review replies concrete: what changed, where, and any remaining risk.
Output Contract
summary.md
Must include:
- PR reference and diagnosis summary
- fixes applied
- verification commands and outcomes
- reply publish result summary
- deferred/follow-up items
manifest.json
Execution metadata for this skill, including:
provider: "github-pr-fix"- PR reference
- fix/reply counters
status(completed|partial|failed)
publish-results.json
Publish execution record from ghx or equivalent fallback format.
Completion Criteria
A successful run requires all of the following:
- Blocking fixes are committed and pushed to the PR branch.
publish-results.jsonexists.- Reply publish contains no failed required reply action.
If replies are planned but not published, the run is not successful.
Notes
- This skill defines diagnosis/remediation/reply behavior.
ghxdefines context artifact semantics and publish command surfaces.