← Back to Skills Marketplace
autoxj

GitCode PR comment fix

by do_while_true · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
115
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install pr-comment-fix
Description
按 GitCode PR 检视意见修改代码。需 GITCODE_TOKEN。Use when 用户要修改 PR 检视意见。
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install pr-comment-fix
  3. After installation, invoke the skill by name or use /pr-comment-fix
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug pr-comment-fix
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is GitCode PR comment fix?

按 GitCode PR 检视意见修改代码。需 GITCODE_TOKEN。Use when 用户要修改 PR 检视意见。 It is an AI Agent Skill for Claude Code / OpenClaw, with 115 downloads so far.

How do I install GitCode PR comment fix?

Run "/install pr-comment-fix" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is GitCode PR comment fix free?

Yes, GitCode PR comment fix is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does GitCode PR comment fix support?

GitCode PR comment fix is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created GitCode PR comment fix?

It is built and maintained by do_while_true (@autoxj); the current version is v1.0.0.

💬 Comments