스킬 gh-cli
📦

gh-cli

안전

GitHub CLI 参考

此技能为 GitHub CLI (gh) 提供全面的参考文档,使 AI 助手能够从命令行执行 GitHub 操作,包括仓库、议题、拉取请求、Actions 等。

지원: Claude Codex Code(CC)
📊 69 적절함
1

스킬 ZIP 다운로드

2

Claude에서 업로드

설정 → 기능 → 스킬 → 스킬 업로드로 이동

3

토글을 켜고 사용 시작

테스트해 보기

"gh-cli" 사용 중입니다. 显示最近的 5 个拉取请求

예상 결과:

  • Pull Request #123: Add user authentication
  • Status: open | Reviews: 2 approved
  • Pull Request #122: Fix login bug
  • Status: merged | Reviews: 1 approved
  • Pull Request #121: Update dependencies
  • Status: closed | Reviews: 0

"gh-cli" 사용 중입니다. 创建一个标题为 'Memory leak in dashboard' 的议题

예상 결과:

Issue created successfully!
https://github.com/owner/repo/issues/456
Title: Memory leak in dashboard
State: open
Created at: 2026-03-13T08:15:00Z

보안 감사

안전
v1 • 3/13/2026

This is a documentation/reference skill for the GitHub CLI. All static scanner findings are false positives. The skill contains only markdown documentation with command examples - no executable code, no credential access, no file system manipulation. The detected patterns (external_commands, network, filesystem, env_access) are all legitimate documentation content showing how to use the gh CLI tool.

1
스캔된 파일
2,188
분석된 줄 수
1
발견 사항
1
총 감사 수
중간 위험 문제 (1)
Static Scanner False Positives - Documentation Skill
The static scanner detected 350 potential issues, but all are false positives. This is a markdown documentation file, not executable code. The findings represent: command examples in code blocks (external_commands), GitHub URLs for CLI installation (network), example SSH key paths in docs (filesystem), and environment variable documentation (env_access). No actual security risks present.
감사자: claude

품질 점수

38
아키텍처
100
유지보수성
85
콘텐츠
33
커뮤니티
100
보안
70
사양 준수

만들 수 있는 것

开发工作流自动化

直接从 AI 对话中自动化常见的 GitHub 操作,如创建议题、管理 PR 和检查工作流状态。

仓库管理

通过 CLI 使用自然语言命令创建、克隆、分支和管理 GitHub 仓库。

CI/CD 集成

通过 CLI 监视和管理 GitHub Actions 工作流、检查构建状态和下载产物。

이 프롬프트를 사용해 보세요

检查仓库状态
Use the gh-cli skill to show me the status of the current repository including open issues and PRs.
创建拉取请求
Use gh-cli to create a pull request with title 'Add new feature' and description from the file feature.txt.
列出最近的议题
Use gh-cli to list the last 10 open issues labeled 'bug' in the owner/repo repository.
监视工作流运行
Use gh-cli to check the status of the latest GitHub Actions workflow run and show any failed jobs.

모범 사례

  • Always authenticate with gh auth login before performing operations
  • Use --json flag for machine-readable output that can be parsed
  • Specify repository with --repo owner/repo when not in a git repository
  • Use --web flag to open GitHub web interface when visual confirmation is needed

피하기

  • Running gh commands without first verifying authentication status
  • Using personal access tokens in command line (use gh auth login instead)
  • Ignoring errors from gh commands assuming they succeeded
  • Not checking rate limits before making bulk API calls

자주 묻는 질문

如何使用此技能进行 GitHub 身份验证?
Run 'gh auth login' interactively or use 'gh auth login --with-token' with a personal access token.
此技能是否需要安装 gh CLI?
Yes, the gh CLI must be installed on your system. Use 'brew install gh' on macOS or your package manager on Linux.
我可以将此技能与 GitHub Enterprise 一起使用吗?
Yes, use 'gh auth login --hostname enterprise.github.com' to authenticate with GitHub Enterprise instances.
如何指定不同的仓库?
Use the --repo flag: 'gh issue list --repo owner/repo' or set GH_REPO environment variable.
我可以获取用于解析的 JSON 输出吗?
Yes, use --json flag: 'gh repo view --json name,description' returns machine-readable JSON.
如何检查我的身份验证状态?
Run 'gh auth status' to see current authentication state and available scopes.

개발자 세부 정보

작성자

github

라이선스

MIT

참조

main

파일 구조

📄 SKILL.md