Agent Skills › Tracer-Cloud/opensre › operating-github-cli

operating-github-cli

GitHub

提供经过认证的 GitHub CLI (gh) 封装,支持 Issue、PR、仓库管理及任意 API 调用。优先于原生 shell 命令执行,用于日常代码协作与项目管理操作。

integrations/github/tools/github_cli/SKILL.md Tracer-Cloud/opensre

Trigger Scenarios

用户请求创建、查看或关闭 GitHub Issue 用户请求管理 Pull Request 如合并或评论 用户需要查询 GitHub 仓库信息或使用 gh api

Install

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

Non-standard path

npx skills add https://github.com/Tracer-Cloud/opensre/tree/main/integrations/github/tools/github_cli -g -y

Use without installing

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

指定 Agent (Claude Code)

npx skills add Tracer-Cloud/opensre --skill operating-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": "operating-github-cli",
    "tools": [
        "github_cli"
    ],
    "description": "Default GitHub skill for the action agent. Use github_cli for any GitHub request — create\/list\/view\/close issues and PRs, assign, labels, repos, releases, checks, github.com\/owner\/repo URLs, or gh api. Prefer over shell_run\/!gh. Run these with github_cli in the current agent turn.\n"
}

operating-github-cli

Authenticated gh for OpenSRE. Reads and writes — no approval gate. Prefer over shell_run / !gh. Pass args after gh; optional repo as owner/name → -R. Blocked top-level: auth, extension, workflow, run, secret, codespace, ssh-key, gpg-key, config.

Capabilities

Intent Example args
Create issue ["issue", "create", "--title", "…", "--body", "…"]
List / view issues ["issue", "list"] / ["issue", "view", "42"]
Close / comment / edit ["issue", "close", "42"] / ["issue", "comment", "42", "--body", "…"]
List / view / close / merge PRs ["pr", "list"] / ["pr", "view", "45"] / ["pr", "close", "45"] / ["pr", "merge", "45"]
Repos / search ["repo", "list"] / ["search", "issues", "crash"]
Arbitrary API ["api", "repos/OWNER/REPO/issues"]

After github_cli returns

Use summary when present. Reply short and chat-like.

  • Simple (create/close/comment/merge, URL/#n): plain prose, one sentence.
  • Structured reads: light chat markdown — short lead-in + bullets (* #42 — title); no tables/headers.
  • Mutate extras: at most 2–4 bullets. No GraphQL/JSON dumps. No "I found:".
  • Failure: one sentence from error / error_type — say it failed to run.

Prefer dedicated tools when they clearly fit

Slack propose/execute; workflow digests; investigation code/commit search. PR CI fix-and-push → fix_github_pr_ci. Security/quality alerts → fix_github_security_alert.

Limitations

gh on PATH; OpenSRE token auth. Action-only — not in gather/investigation.

Version History

  • 4303874 Current 2026-09-22 10:48

    技能名称从 github-cli 重构为 operating-github-cli,采用动名词命名规范并更新元数据。

  • 34b77c8 2026-09-03 06:27

    移除多源根因分析(RCA)调查工具引用,更新偏好建议以适配单Agent聊天核心架构。

  • 087938e 2026-08-27 19:28

    重构为统一 ReAct 代理架构,移除规划器到助手的交接,简化工具调用流程并修复相关回归问题。

  • 8bfe7b1 2026-08-19 21:46

Same Skill Collection

core/agent_harness/prompts/skills/architecture_audit/SKILL.md
core/agent_harness/prompts/skills/delivering-morning-briefings/SKILL.md
core/agent_harness/prompts/skills/fixing-github-security-alerts/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_ci_health/SKILL.md
core/agent_harness/prompts/skills/github_cli/SKILL.md
core/agent_harness/prompts/skills/github_security_fix/SKILL.md
core/agent_harness/prompts/skills/investigating-incidents-with-runbooks/SKILL.md
core/agent_harness/prompts/skills/morning_report/SKILL.md
core/agent_harness/prompts/skills/onboarding-github-ci/SKILL.md
core/agent_harness/prompts/skills/repair-github-ci/SKILL.md
core/agent_harness/prompts/skills/reporting-github-ci-failures/SKILL.md
integrations/github/tools/ci_fix/SKILL.md
integrations/github/tools/security_fix/SKILL.md
integrations/github/tools/workflow/SKILL.md
integrations/posthog/tools/skills/posthog-summary/SKILL.md
integrations/posthog/tools/skills/summarizing-posthog-analytics/SKILL.md
integrations/sentry/tools/skills/sentry-summary/SKILL.md
integrations/sentry/tools/skills/summarizing-sentry-issues/SKILL.md
integrations/yandex_cloud/tools/SKILL.md
tools/github_cli/SKILL.md
tools/system/python_execution_tool/skills/github-star-velocity/SKILL.md
tools/system/python_execution_tool/skills/measuring-github-star-velocity/SKILL.md
core/agent_harness/prompts/skills/cicd_analytics_demo/SKILL.md

Metadata

Files
0
Version
4303874
Hash
8237659d
Indexed
2026-08-19 21:46

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-27 14:36
浙ICP备14020137号-1