Token导航 LogoToken导航

Agent Skill · 研究检索

gitcode-cli(gitcode CLI 搜索)

gitcode-cli 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

gitcode-cli 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 67,870。

总安装 240周安装 10GitHub Stars 18下载 80核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:gitcode-cli(gitcode CLI 搜索)
来源仓库:https://github.com/openharmonyinsight/openharmony-skills
仓库路径:skills/gitcode-cli
安装命令:
npx skills add https://github.com/openharmonyinsight/openharmony-skills --skill gitcode-cli
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/openharmonyinsight/openharmony-skills --skill gitcode-cli

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于查找、检索和筛选相关信息。适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位候选结果。通过 npx skills add 命令从指定仓库安装使用。建议确认权限范围和维护状态,注意可能触发联网或命令执行。可结合原始 README 进一步了解具体功能和使用方法。

来源仓库内路径:skills/gitcode-cli

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/openharmonyinsight/openharmony-skills --skill…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

gitcode-cli 怎么安装?

在终端执行 npx skills add https://github.com/openharmonyinsight/openharmony-skills --skill gitcode-cl…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

gitcode-cli 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

gitcode-cli 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

gitcode-cli 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

gitcode-cli 用的人多吗?

公开数据是累计安装 240 次,近一周安装 10 次,下载 80 次,GitHub 18 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

gitcode-cli 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
gitcode-cli

gitcode CLI 搜索 · 本页

24018接触敏感数据未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

oh-gc CLI — GitCode Command Line Tool

Version: 0.7.4 | Updated: 2026-04-10

oh-gc is a CLI for GitCode, modeled after GitHub CLI (gh). Manages authentication, issues, pull requests, releases, and repo configuration from the terminal.

Package: npm install -g @oh-gc/cli (requires Node.js 18+)

⚠️ MANDATORY FIRST STEP — DO NOT SKIP

Run oh-gc --version as the VERY FIRST command before ANY other oh-gc command.

  • If not found → npm install -g @oh-gc/cli@{version} (use the version shown at the top of this document)
  • If the version does not match {version} → npm install -g @oh-gc/cli@{version} to install the exact matching version
  • Do NOT run oh-gc auth, oh-gc issue, oh-gc pr, or any other command until the version is confirmed matching.

Prerequisites

After confirming the version matches, check the following:

  1. Token configured? Run oh-gc auth status

- If not logged in → oh-gc auth login (prompts for GitCode personal access token) - Token obtained at: GitCode → 个人设置 → 访问令牌

  1. Repository context? Either:

- Inside a git repo with a gitcode.com remote (remote name configurable via oh-gc repo set-remote <name>), OR - Use --repo owner/repo flag to specify any repository

Global Flags

All commands support:

  • --json — output raw JSON instead of formatted table
  • --help — show command help

Repository Flag

Most commands that operate on a repository support the --repo flag, which allows specifying a target repository without being inside a git clone:

  • --repo owner/repo — target repository in OWNER/REPO format

This is useful for:

  • Operating on repositories you haven't cloned locally
  • Cross-repo operations (e.g., creating a PR from fork to upstream)
  • CI/CD scripts that need to interact with multiple repositories
# List issues in any repository
oh-gc issue list --repo openharmony/arkui_ace_engine

# Create an issue without cloning
oh-gc issue create --repo owner/repo --title "Bug report"

# View a PR on another repo
oh-gc pr view 123 --repo owner/repo

# Cross-repo PR (fork to upstream) — use owner:branch for --head
oh-gc pr create --repo upstream-owner/repo --head myname:my-feature --base main

Command Reference

Authentication

oh-gc auth login          # Log in with personal access token (interactive prompt)
oh-gc auth logout         # Remove stored token
oh-gc auth status         # Show current user info

Token stored at ~/.config/gitcode-cli/config.json.

Issues

# List
oh-gc issue list                              # Open issues (default)
oh-gc issue list --state closed               # Closed issues
oh-gc issue list --state all                  # All issues
oh-gc issue list --assignee alice             # Filter by assignee
oh-gc issue list --search "login bug"         # Search by keyword
oh-gc issue list --limit 50                   # Max results (default: 30)

# View
oh-gc issue view 12                           # Show issue detail + recent comments

# Create
oh-gc issue create                            # Interactive mode
oh-gc issue create --title "Bug" --body "..."         # With flags
oh-gc issue create --repo owner/repo --title "Bug"    # On another repo
oh-gc issue create --assignee alice --labels "bug,P0" # With metadata

# Comment
oh-gc issue comment 12                        # Interactive prompt
oh-gc issue comment 12 --body "Confirmed"     # With flag

# Close/Reopen
oh-gc issue close 12                          # Close an issue
oh-gc issue reopen 12                         # Reopen a closed issue

# Labels
oh-gc issue labels 12 bug,feature             # Add labels
oh-gc issue labels 12 bug --remove            # Remove label

# History
oh-gc issue history 12                        # View modification history of an issue

# Reactions
oh-gc issue reactions 12                      # List emoji reactions on issue

# Linked PRs
oh-gc issue prs 12                            # List PRs linked to an issue
oh-gc issue prs 12 --mode 1                   # Only mergeable PRs

# Related branches
oh-gc issue branches 12                       # List branches related to an issue
oh-gc issue branches 12 --set feature-x,fix-y # Set related branches

# Comment management
oh-gc issue comment-get <id>                  # Get a single comment
oh-gc issue comment-edit <id> --body "new"    # Edit a comment
oh-gc issue comment-delete <id>               # Delete a comment
oh-gc issue comment-history <id>              # View comment edit history
oh-gc issue comment-reactions <id>            # List reactions on a comment

Pull Requests

# List
oh-gc pr list                                 # Open PRs (default)
oh-gc pr list --state merged                  # Merged PRs
oh-gc pr list --state all                     # All PRs
oh-gc pr list --author alice                  # Filter by author
oh-gc pr list --reviewer bob                  # Filter by reviewer
oh-gc pr list --assignee carol                # Filter by assignee
oh-gc pr list --limit 50                      # Max results (default: 30)

# View
oh-gc pr view 5                               # Show PR detail

# Create
oh-gc pr create                               # Interactive mode
oh-gc pr create --title "Fix bug" --base main         # From current branch
oh-gc pr create --head feature --base main --draft    # Draft PR
oh-gc pr create --repo owner/repo --head myname:feature  # Cross-repo PR (fork→upstream, use owner:branch)

# Update
oh-gc pr update 5 --title "New title"         # Update title
oh-gc pr update 5 --body "New description"    # Update body
oh-gc pr update 5 --state closed              # Close PR
oh-gc pr update 5 --state open                # Reopen PR
oh-gc pr update 5 --draft                     # Mark as draft
oh-gc pr update 5 --labels "bug,wip"          # Set labels

# Close/Reopen
oh-gc pr close 5                              # Close a PR
oh-gc pr reopen 5                             # Reopen a closed PR

# Diff
oh-gc pr diff 5                               # Show full diff with colors
oh-gc pr diff 5 --name-only                   # Only changed file names
oh-gc pr diff 5 --color never                 # No color (for piping)

# Merge
oh-gc pr merge 5                              # Merge commit (default)
oh-gc pr merge 5 --method squash              # Squash merge
oh-gc pr merge 5 --method rebase              # Rebase merge

# Comment
oh-gc pr comment 5 --body "LGTM!"                                    # General comment
oh-gc pr comment 5 --body "Fix this" --path src/main.ts --line 10    # Line comment
oh-gc pr comment 5 --repo owner/repo --body "Note"                   # On another repo

# List/delete comments
oh-gc pr comments 5                                   # List all comments
oh-gc pr comments 5 --limit 10 --latest               # Latest 10 comments first
oh-gc pr comments 5 --full-body                       # Show full comment bodies
oh-gc pr comments 5 --comment-type diff_comment       # Only diff/line comments
oh-gc pr comments 5 --comment-type pr_comment         # Only general comments
oh-gc pr comments 5 --delete 12345                    # Delete by note_id

# Reactions
oh-gc pr reactions 5                          # List emoji reactions on PR

# Commits
oh-gc pr commits 5                            # List commits in PR

# Reviewers
oh-gc pr reviewers 5 alice,bob                # Assign reviewers
oh-gc pr reviewers 5 alice --append           # Add to existing reviewers
oh-gc pr reviewers 5 alice --remove           # Remove reviewer

# Testers
oh-gc pr testers 5 alice,bob                  # Assign testers
oh-gc pr testers 5 alice --append             # Add to existing testers
oh-gc pr testers 5 alice --remove             # Remove tester

# Review & Test approval
oh-gc pr review 5                             # Approve PR review
oh-gc pr review 5 --force                     # Force approve
oh-gc pr test 5                               # Mark test passed
oh-gc pr test 5 --force                       # Force mark

# Labels
oh-gc pr labels 5 bug,enhancement             # Add labels
oh-gc pr labels 5 bug --remove                # Remove label
oh-gc pr labels 5 bug,feature --replace       # Replace all labels

# Link issues
oh-gc pr link 5 1,2,3                         # Link issues to PR
oh-gc pr link 5 1,2 --remove                  # Unlink issues

# Operation logs
oh-gc pr logs 5                               # Show PR operation history

# Files
oh-gc pr files 5                              # List changed files in PR

# History
oh-gc pr history 5                            # View PR modification history

# Linked issues
oh-gc pr linked-issues 5                      # List issues linked to PR

# Assignees
oh-gc pr assignees 5 --add alice,bob          # Assign users
oh-gc pr assignees 5 --reset                  # Reset assignee status
oh-gc pr assignees 5 --reset --all            # Reset all assignees
oh-gc pr assignees 5 --remove alice           # Remove assignee

# PR settings
oh-gc pr settings                             # View repo PR settings
oh-gc pr settings-update --merge-method squash --delete-branch-on-merge  # Update settings

# Option reviewers
oh-gc pr option-reviewers 5                   # List users eligible to review

# Comment management
oh-gc pr comment-get <id>                     # Get a single PR comment
oh-gc pr comment-edit <id> --body "new"       # Edit a PR comment
oh-gc pr comment-delete <id>                  # Delete a PR comment
oh-gc pr comment-history <id>                 # View comment edit history
oh-gc pr comment-reactions <id>               # List reactions on a comment

Releases

oh-gc release create                          # Use version from package.json
oh-gc release create v1.0.0                   # Specific version
oh-gc release create --prerelease             # Mark as prerelease
oh-gc release create v1.0.0 --notes "..."     # Custom release notes

Repo Configuration

oh-gc repo list                               # List your repositories
oh-gc repo list --org myorg                   # List org repositories
oh-gc repo create myrepo                      # Create a new repository
oh-gc repo create myrepo --org myorg          # Create under an org
oh-gc repo delete --yes                       # Delete current repo (no prompt)
oh-gc repo fork                               # Fork current repo to your account
oh-gc repo fork --org myorg                   # Fork into an organization
oh-gc repo forks                              # List forks of current repo
oh-gc repo settings                           # View repo advanced settings
oh-gc repo settings --disable-fork           # Update a setting
oh-gc repo languages                          # Show language breakdown
oh-gc repo contributors                       # List contributors
oh-gc repo contributors --stats               # Show detailed contribution stats
oh-gc repo events                             # List repository events
oh-gc repo events --filter push               # Filter by event type
oh-gc repo stats --branch main                # Commit stats per author
oh-gc repo stats --downloads                  # Download stats by date
oh-gc repo archive --password secret          # Archive a repository
oh-gc repo archive --open --password secret   # Unarchive a repository
oh-gc repo transition                         # View permission inheritance mode
oh-gc repo transition --mode 2               # Set to independent mode
oh-gc repo module --wiki --issues            # Enable wiki and issues modules
oh-gc repo module --no-fork                  # Disable fork module
oh-gc repo roles                              # List customized roles
oh-gc repo list --user alice                  # List user's public repos
oh-gc repo list --visibility private          # List private repositories
oh-gc repo get-remote                         # Show which remote oh-gc uses
oh-gc repo set-remote upstream                # Use a different remote
oh-gc repo view                               # View repository info
oh-gc repo update --description "..."         # Update repository settings
oh-gc repo transfer <new-owner>               # Transfer repository ownership

Remote override stored at .gitcode/oh-gc-config.json in repo root.

Search

oh-gc search repos "keyword"                  # Search repositories
oh-gc search issues "keyword"                 # Search issues across repos
oh-gc search code "keyword"                   # Search code across repos

User

oh-gc user view                               # View your profile
oh-gc user view alice                         # View another user's profile
oh-gc user edit --name "New Name" --bio "..."  # Update your profile
oh-gc user edit --avatar "https://..."          # Update avatar
oh-gc user emails                             # List your email addresses
oh-gc user followers                          # List your followers
oh-gc user following                          # List users you follow
oh-gc user events alice                       # List user activity events
oh-gc user events alice --year 2024           # Filter events by year
oh-gc user search alice                       # Search users
oh-gc user search bob --sort joined_at        # Sort by registration time
oh-gc user namespace alice                    # Get namespace by path
oh-gc user namespaces                         # List all your namespaces
oh-gc user namespaces --mode project          # Filter namespace mode
oh-gc user keys                               # List your SSH keys
oh-gc user key-add --title "My Key" --key "ssh-rsa ..."  # Add SSH key
oh-gc user key-delete 123                     # Delete SSH key by ID
oh-gc user starred                            # List your starred repos
oh-gc user starred alice                      # List another user's starred repos
oh-gc user subscriptions                      # List your watched repos
oh-gc user subscriptions alice                # List another user's watched repos
oh-gc user issues                             # List your issues across all repos
oh-gc user issues --state closed --filter created  # Filter user issues
oh-gc user issues --since "2024-01-01T00:00:00Z"  # Issues updated since date
oh-gc user prs                                # List your PRs across all repos
oh-gc user prs --state merged --scope assigned_to_me  # Filter user PRs
oh-gc user prs --source-branch feature --target-branch main  # Filter by branches
oh-gc user orgs alice                         # List user's organizations
oh-gc user membership myorg                   # View your org membership
oh-gc user leave-org myorg                    # Leave an organization

Branches

oh-gc branch list                             # List all branches
oh-gc branch list --protected                 # List only protected branches
oh-gc branch get <name>                       # Get branch details
oh-gc branch create <name> --ref <sha/branch> # Create a new branch
oh-gc branch delete <name>                    # Delete a branch
oh-gc branch protect <name>                   # Set branch protection rules
oh-gc branch protect <name> --enforce-admins                    # Enforce protection for admins
oh-gc branch protect <name> --require-status-checks ci,lint     # Require status checks
oh-gc branch protect <name> --dismiss-stale-reviews             # Dismiss stale PR reviews
oh-gc branch protect <name> --unprotect       # Remove branch protection
oh-gc branch protect-rules                    # List all branch protection rules
oh-gc branch protect-rule-create <pattern> --pusher <roles> --merger <roles>  # Create protection rule
oh-gc branch protect-rule-update <pattern> --pusher <roles> --merger <roles>  # Update protection rule
oh-gc branch protect-rule-delete <pattern>    # Delete protection rule

Commits

oh-gc commit list                             # List commits
oh-gc commit list --sha main                  # List commits from specific branch
oh-gc commit get <sha>                        # Get commit details
oh-gc commit diff <sha>                       # View commit diff
oh-gc commit compare <base> <head>            # Compare two commits or branches
oh-gc commit comments <sha>                   # List comments on a commit
oh-gc commit comment <sha> --body "text"      # Create a commit comment

Files

oh-gc file get <path>                         # Get file contents (base64 encoded)
oh-gc file raw <path> --ref main              # Get raw file contents
oh-gc file list                               # List repository files
oh-gc file create <path> --content "text" --message "msg"  # Create a file
oh-gc file update <path> --sha <sha> --content "text" --message "msg"  # Update a file
oh-gc file delete <path> --sha <sha> --message "msg"       # Delete a file

Collaborators

oh-gc collaborator list                       # List repository collaborators
oh-gc collaborator add <username>             # Add a collaborator
oh-gc collaborator remove <username>          # Remove a collaborator
oh-gc collaborator permission <username>      # Get collaborator permission level

Labels

oh-gc label list                              # List repository labels
oh-gc label create                            # Create a new label
oh-gc label update <name>                     # Update a label
oh-gc label delete <name>                     # Delete a label

Milestones

oh-gc milestone list                          # List milestones
oh-gc milestone get <number>                  # Get milestone details
oh-gc milestone create                        # Create a new milestone
oh-gc milestone update <number>               # Update a milestone
oh-gc milestone delete <number>               # Delete a milestone

Webhooks

oh-gc hook list                               # List repository webhooks
oh-gc hook get <id>                           # Get webhook details
oh-gc hook create                             # Create a webhook
oh-gc hook delete <id>                        # Delete a webhook

Tags

oh-gc tag list                                # List repository tags
oh-gc tag create <name> --ref <sha/branch>    # Create a tag
oh-gc tag delete <name>                       # Delete a tag
oh-gc tag protect <name>                      # Protect a tag
oh-gc tag protect-get <name>                  # Get protected tag details
oh-gc tag protect-create <name> --access-level 40  # Create protected tag rule
oh-gc tag protect-update <name> --access-level 30  # Update protected tag rule
oh-gc tag protect-delete <name>               # Delete protected tag rule

Organizations

oh-gc org list                                # List your organizations
oh-gc org view <org>                          # Get organization details
oh-gc org members <org>                       # List organization members

Workflow: Full PR Lifecycle

Complete workflow from code change to merged PR:

Step 1: Create PR
  oh-gc pr create --title "Add feature X" --base main
  → outputs PR number (e.g., #42)

Step 2: Assign people
  oh-gc pr reviewers 42 alice,bob
  oh-gc pr testers 42 carol

Step 3: Add metadata
  oh-gc pr labels 42 feature,v2.0
  oh-gc pr link 42 15,16           # Link related issues

Step 4: Review cycle
  oh-gc pr diff 42                 # Reviewer checks diff
  oh-gc pr comments 42             # Check existing feedback
  oh-gc pr comment 42 --body "LGTM"
  oh-gc pr review 42               # Approve review
  oh-gc pr test 42                 # Mark test passed

Step 5: Merge
  oh-gc pr merge 42 --method squash

Workflow: Issue Triage

Step 1: Find issues
  oh-gc issue list --search "crash"
  oh-gc issue list --state all --assignee alice

Step 2: Inspect
  oh-gc issue view 15

Step 3: Respond
  oh-gc issue comment 15 --body "Investigating, likely related to #12"

Step 4: Create follow-up
  oh-gc issue create --title "Fix crash on login" --labels "bug,P0" --assignee bob

Workflow: Cross-Repo PR (Fork → Upstream)

For contributing to repositories you don't own, use --head owner:branch format to specify the fork owner and branch:

Step 1: Create PR from fork to upstream
  oh-gc pr create --repo upstream-owner/repo --head myname:my-feature --base master --title "Fix bug"

Step 2: Manage on the upstream repo
  oh-gc pr view 42 --json    # Check status

Note: --repo targets the upstream repo. --head uses owner:branch format (colon separator) where owner is your GitCode username and branch is the branch name in your fork. Do NOT use owner/branch (slash) — the API requires a colon.

Configuration

SettingLocationHow to set
Auth token~/.config/gitcode-cli/config.jsonoh-gc auth login
Remote override.gitcode/oh-gc-config.jsonoh-gc repo set-remote <name>
Proxyhttps_proxy / HTTPS_PROXY env varAutomatic

Decision Tree

User wants to interact with GitCode
  ↓
Version matches? (oh-gc --version)
  ↓ No → npm install -g @oh-gc/cli@{version}
  ↓ Yes
Logged in? (oh-gc auth status)
  ↓ No → oh-gc auth login
  ↓ Yes
Inside git repo with gitcode.com remote?
  ↓ No → Use --repo flag, or cd to repo
  ↓ Yes
What does user want?
  ├─ List/view issues      → oh-gc issue list / issue view
  ├─ Create issue           → oh-gc issue create
  ├─ Update issue           → oh-gc issue update
  ├─ Close/reopen issue     → oh-gc issue close / issue reopen
  ├─ Comment on issue       → oh-gc issue comment
  ├─ Manage issue labels    → oh-gc issue labels
  ├─ View issue history     → oh-gc issue history
  ├─ View issue reactions   → oh-gc issue reactions
  ├─ List/view PRs          → oh-gc pr list / pr view
  ├─ Create PR              → oh-gc pr create
  ├─ Update PR              → oh-gc pr update
  ├─ Close/reopen PR        → oh-gc pr close / pr reopen
  ├─ View PR reactions      → oh-gc pr reactions
  ├─ Review PR diff         → oh-gc pr diff
  ├─ Comment on PR          → oh-gc pr comment (general) or --path --line (line-level)
  ├─ Assign reviewers       → oh-gc pr reviewers
  ├─ Assign testers         → oh-gc pr testers
  ├─ Approve review         → oh-gc pr review
  ├─ Mark test passed       → oh-gc pr test
  ├─ Manage labels          → oh-gc pr labels
  ├─ Link issues to PR      → oh-gc pr link
  ├─ Merge PR               → oh-gc pr merge
  ├─ View PR history        → oh-gc pr logs
  ├─ Create release         → oh-gc release create
  ├─ Search repos/issues    → oh-gc search repos / search issues / search code
  ├─ View user profile      → oh-gc user view
  ├─ Edit user profile      → oh-gc user edit
  ├─ List user events       → oh-gc user events
  ├─ Search users           → oh-gc user search
  ├─ Manage SSH keys        → oh-gc user keys / user key-add / user key-delete
  ├─ View starred repos     → oh-gc user starred
  ├─ View watched repos     → oh-gc user subscriptions
  ├─ View namespaces        → oh-gc user namespace / user namespaces
  ├─ Manage branches        → oh-gc branch list / branch get / branch protect
  ├─ View commits/files     → oh-gc commit list / file get
  ├─ Manage collaborators   → oh-gc collaborator list / add / remove
  ├─ Manage labels          → oh-gc label list / create / update / delete
  ├─ Manage milestones      → oh-gc milestone list / create / update
  ├─ Manage webhooks        → oh-gc hook list / create / delete
  └─ Configure remote       → oh-gc repo set-remote / repo get-remote

Error Handling

ErrorCauseFix
"Not logged in"No token configuredoh-gc auth login
"Authentication failed"Token expired or invalidRe-run oh-gc auth login with new token
"Remote not found"Not in a git repo or remote missingcd to repo, check git remote -v
"Not a GitCode repository"Remote URL isn't gitcode.comAdd a gitcode.com remote
"Could not connect"Network issue or proxy not setCheck internet; set https_proxy env var if behind proxy
"Rate limit exceeded"Too many API callsWait and retry
"API error 405"Wrong HTTP method (internal)Update oh-gc to latest version
"Can not find the branch"--head missing fork owner prefixUse --head owner:branch (colon, not slash) for cross-repo PRs

URL Format

When constructing GitCode URLs for issues and PRs, use the singular form for PRs:

  • Issue: https://gitcode.com/{owner}/{repo}/issues/{number} (plural: issues)
  • PR: https://gitcode.com/{owner}/{repo}/pull/{number} (singular: pull, NOT pulls)

Common mistake: Using /pulls/ (GitHub style) instead of /pull/. GitCode uses singular pull, not pulls.

Tips

  • Use --json to pipe output to jq for scripting: oh-gc pr list --json | jq '.[].title'
  • Use --repo owner/repo to operate on any repository without cloning it first
  • Interactive mode (no flags) prompts for required fields — useful for one-off operations
  • oh-gc pr comments --comment-type diff_comment filters to only code review comments
  • oh-gc pr reviewers --append adds reviewers without replacing existing ones
  • oh-gc pr update --state closed is the way to close a PR without merging
  • When reporting PR links to the user, always use https://gitcode.com/{owner}/{repo}/pull/{number} (singular pull)

平台分布

Codex

37.78%
按下载量换算30

Claude

29.71%
按下载量换算24

Cursor

18.17%
按下载量换算15

Gemini CLI

9.68%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills