Agent SkillsTracer-Cloud/opensre › github-cli

github-cli

GitHub

通过 GitHub CLI 执行 Issue、PR、Release 等仓库管理的创建、查看、修改及合并操作,支持仓库分析与搜索。

core/agent_harness/prompts/skills/github_cli/SKILL.md Tracer-Cloud/opensre

Trigger Scenarios

请求创建或管理 GitHub Issue 请求处理 Pull Request(如合并、评论) 查询仓库信息、Releases 或进行代码搜索 提供 GitHub 仓库 URL 并请求相关操作

Install

npx skills add Tracer-Cloud/opensre --skill github-cli -g -y
More Options

Non-standard path

npx skills add https://github.com/Tracer-Cloud/opensre/tree/main/core/agent_harness/prompts/skills/github_cli -g -y

Use without installing

npx skills use Tracer-Cloud/opensre@github-cli

指定 Agent (Claude Code)

npx skills add Tracer-Cloud/opensre --skill github-cli -a claude-code -g -y

安装 repo 全部 skill

npx skills add Tracer-Cloud/opensre --all -g -y

预览 repo 内 skill

npx skills add Tracer-Cloud/opensre --list

SKILL.md

Frontmatter
{
    "name": "github-cli",
    "description": "GitHub issues\/PRs\/repos\/releases via github_cli (not star history, not CI fix, not security-alert remediation) and also use it for GitHub analytics"
}

══════════════════════════════════════════════════════════ GITHUB CLI SKILL — interactive-shell action agent: ══════════════════════════════════════════════════════════

WHEN TO USE (call github_cli; do NOT assistant_handoff):

  • Create / list / view / edit / close / comment / assign / label GitHub issues
  • Create / list / view / close / merge / comment / checks on pull requests
  • Repo list/view, releases, labels, workflow runs, search, or gh api
  • github.com/owner/repo URLs or "open an issue / merge this PR" requests
  • Follow-ups like "create an issue from that" after a prior scan/report

Do NOT use this skill for:

  • Live incident RCA (investigation_start) — including multi-source asks that name github issues alongside Sentry/PostHog/Datadog while diagnosing a crash
  • Star history / day-by-day stars / stars gained / star velocity — emit assistant_handoff so gather can call get_github_star_history. Do NOT use github_cli, gh api stargazers, or shell_run for these; paginated stargazer scans via gh routinely undercount or report false zeros.
  • Observability lookups (Sentry/Datadog/Grafana/PostHog) — those stay handoffs
  • Slack → GitHub propose/execute mutations (workflow tools)
  • Architecture audit (architecture_* tools + architecture audit skill)
  • GitHub PR CI remediation / failing checks fixes / "fix CI and push" — use fix_github_pr_ci when available
  • GitHub security alert remediation / vulnerable dependencies / code-scanning fixes — use fix_github_security_alert when available

HARD RULES:

  • Prefer github_cli over shell_run / !gh / raw gh.
  • Never emit assistant_handoff for these requests just to "let gather create the issue" — github_cli is action-only and will not run in gather.
  • Never call github_cli with auth / extension / workflow / run / secret / codespace / ssh-key / gpg-key / config — those are blocked (token leakage / CI code execution / secret mutation).
  • Pass args after the gh binary; optional repo as owner/name → -R.
  • After the tool returns, end with a short chat-like reply from result.summary. Simple confirms (create/close/merge + URL/#n): plain prose, no markdown. Multi-item reads: light markdown that still reads like chat (short lead-in + bullets; prefer bullets over tables/headers). No GraphQL dumps. No "I found:" for simple confirms.

Compact examples:

  1. "create an issue titled X with body Y" → github_cli(args=["issue", "create", "--title", "X", "--body", "Y"], repo?)
  2. "list open PRs" → github_cli(args=["pr", "list", "--state", "open"], repo?)
  3. "merge PR 45 with squash auto" → github_cli(args=["pr", "merge", "45", "--squash", "--auto"], repo?)
  4. "comment on issue 12: …" → github_cli(args=["issue", "comment", "12", "--body", "…"], repo?)

Version History

  • 8bfe7b1 Current 2026-08-19 21:46

Same Skill Collection

core/agent_harness/prompts/skills/architecture_audit/SKILL.md
core/agent_harness/prompts/skills/github_ci_fix_onboarding/SKILL.md
core/agent_harness/prompts/skills/github_ci_fix/SKILL.md
core/agent_harness/prompts/skills/github_security_fix/SKILL.md
core/agent_harness/prompts/skills/morning_report/SKILL.md
integrations/github/tools/ci_fix/SKILL.md
integrations/github/tools/github_cli/SKILL.md
integrations/github/tools/security_fix/SKILL.md
integrations/github/tools/workflow/SKILL.md
integrations/posthog/tools/skills/posthog-summary/SKILL.md
integrations/sentry/tools/skills/sentry-summary/SKILL.md
integrations/yandex_cloud/tools/SKILL.md
tools/github_cli/SKILL.md
tools/system/python_execution_tool/skills/github-star-velocity/SKILL.md

Metadata

Files
0
Version
8bfe7b1
Hash
3cb4e0bb
Indexed
2026-08-19 21:46

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-21 21:34
浙ICP备14020137号-1 $mapa de visitantes$