← 返回 Skills 市场
GitCode PR comment fix
作者
do_while_true
· GitHub ↗
· v1.0.0
· MIT-0
115
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install pr-comment-fix
功能描述
按 GitCode PR 检视意见修改代码。需 GITCODE_TOKEN。Use when 用户要修改 PR 检视意见。
安全使用建议
This skill appears coherent and focused on GitCode PR review workflows, but before installing or running it: (1) review the included script text yourself to confirm it behaves as stated (it uses the GitCode API and standard-library Python only); (2) only provide a GitCode token with the minimal scope needed and avoid pasting tokens into chat messages — prefer setting GITCODE_TOKEN in the environment or passing --token at runtime; (3) be aware the SKILL.md directs the agent to edit files in your repository (it requires the agent to open/modify local files after you confirm the change scope), so run it in the correct repo and ensure you have backups or version control; (4) note the script has a Windows fallback that calls PowerShell to read environment variables (this only tries to obtain GITCODE_TOKEN but is a privileged local read), so if you are uncomfortable with that behavior run on a non-Windows environment or inspect/modify the script before use; (5) rotate or revoke the token when no longer needed.
功能分析
Type: OpenClaw Skill
Name: pr-comment-fix
Version: 1.0.0
The skill bundle provides a utility to fetch, reply to, and resolve GitCode PR comments to assist in code remediation. The core logic in `scripts/pr_comment_fix_tool.py` uses the Python standard library to interact with the official GitCode API (api.gitcode.com) and includes robust error handling and rate-limiting logic. The `SKILL.md` instructions explicitly enforce a safe operational flow, requiring the AI agent to obtain user confirmation before modifying local code or sending API updates, effectively mitigating risks of unintended actions.
能力评估
Purpose & Capability
Name/description, required env var (GITCODE_TOKEN), SKILL.md, README, and included script all target GitCode PR review workflows (fetching unresolved diff comments, optionally replying and marking discussions resolved). The resources requested (a GitCode token) are appropriate for that purpose.
Instruction Scope
SKILL.md prescribes a strict flow: fetch context JSON, present items to the user, await explicit scope confirmation, then (if confirmed) apply local code changes and optionally reply/resolve on GitCode. The provided script implements the fetch/reply/resolve API interactions; the SKILL.md intentionally places code edits under the agent/user control rather than as an automated 'apply' subcommand. The instructions explicitly forbid sending replies or resolving remote discussions without user confirmation.
Install Mechanism
No install spec or external downloads; the skill is instruction-only with a Python script that uses only the standard library. This is a low-risk delivery model (nothing written to disk by an installer).
Credentials
Only GITCODE_TOKEN is required (declared as primaryEnv). The script reads the token from the environment or a CLI flag. On Windows it includes a fallback to query system/user environment variables via a PowerShell call, which is intended to locate GITCODE_TOKEN but is the only additional system access; no other credentials or unrelated env variables are requested.
Persistence & Privilege
The skill does not request permanent/always-inclusion (always:false), does not modify other skills or system configuration, and has no install step that persists components beyond the script files. Autonomous invocation is allowed by default but is not combined with other red flags here.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install pr-comment-fix - 安装完成后,直接呼叫该 Skill 的名称或使用
/pr-comment-fix触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of pr-comment-fix skill.
- Enables users to update local code based on unresolved GitCode PR review comments, requiring a valid PR URL and GITCODE_TOKEN.
- Provides a step-by-step workflow: fetch PR review context, summarize issues and confirm user selection, apply code fixes, perform local validation, and summarize changes.
- Optional support for replying to and resolving PR comments on GitCode upon user request.
- CLI tool relies on Python 3.7+ with no external dependencies.
元数据
常见问题
GitCode PR comment fix 是什么?
按 GitCode PR 检视意见修改代码。需 GITCODE_TOKEN。Use when 用户要修改 PR 检视意见。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 115 次。
如何安装 GitCode PR comment fix?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install pr-comment-fix」即可一键安装,无需额外配置。
GitCode PR comment fix 是免费的吗?
是的,GitCode PR comment fix 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
GitCode PR comment fix 支持哪些平台?
GitCode PR comment fix 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 GitCode PR comment fix?
由 do_while_true(@autoxj)开发并维护,当前版本 v1.0.0。
推荐 Skills