用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/cxcscmu/SkillLearnBench --skill gh-cli-search命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | gh-cli-search |
| description | Using the gh CLI to search and list GitHub issues and pull requests with date filters and label queries. |
The gh CLI provides powerful commands for listing and searching issues and PRs in any public repository. Key subcommands: gh pr list, gh issue list, and gh search variants.
# List PRs created in a date range (returns up to --limit items)
gh pr list --repo owner/repo --state all --search "created:2024-12-01..2024-12-31" --limit 500 --json number,state,author,createdAt,mergedAt,closedAt
Key flags:
--state all includes open, closed, and merged PRs--search accepts GitHub search qualifiers like created:YYYY-MM-DD..YYYY-MM-DD--json selects fields; available fields include: number, state, author, createdAt, mergedAt, closedAt, title, labels--limit N controls max results (default 30)# List issues created in a date range
gh issue list --repo owner/repo --state all --search "created:2024-12-01..2024-12-31" --limit 500 --json number,state,labels,createdAt,closedAt
Note: gh issue list excludes pull requests by default.
# Search for issues with a label containing "bug"
gh issue list --repo owner/repo --state all --search "created:2024-12-01..2024-12-31 label:bug" --limit 500 --json number,state,labels,closedAt
For labels with spaces or special characters, quote them: label:"type: bug".
--limit flag can go up to 1000 per call.gh api with --paginate.gh api for More Control# Direct API call with search endpoint
gh api search/issues --method GET \
-f q='repo:owner/repo is:pr created:2024-12-01..2024-12-31' \
-f per_page=100 \
--paginate