wtff: Empowering Agents to Interact with GitHub Using the gh CLI

Preface

In environments like Cursor and Claude Code, the common practice for letting models check Issues, view PRs, or follow CI is to dictate steps or paste web links. Models often lack a unified convention: whether to use REST or the web interface, how to configure permissions, or which specific commands to use for PRs and Runs. wtff is a Skill listed on SkillHub under the dev-programming category. It converges capabilities onto the official GitHub gh CLI, using gh issue, gh pr, gh run, and gh api to cover Issues, PRs, CI, and advanced queries.

The following section introduces what it is, what it does, and how to install and enable it locally.

What is this

wtff (Coordinate @user_eb2b0784/wtf-github, current version 1.0.5, source: community) is maintained by the SkillHub publisher user_eb2b0784; the SkillHub page lists the author as Wang Tengfei. The official description is: Interacts with GitHub via the gh CLI, using gh issue, gh pr, gh run, and gh api to handle Issues, PRs, CI runs, and advanced queries.

It does not replace gh itself but provides the Agent with a set of executable skill instructions (in the universal SKILL.md format). This guides the model to prioritize installed gh subcommands when GitHub operations are needed, rather than arbitrarily piecing together unverified API calls.

Core Functions

Based on the descriptions on SkillHub and the official API page, the capability boundaries covered by wtff are as follows:

  1. Issue: Create, view, list, comment, etc., via gh issue (specific subcommands are selected by the Agent based on the task).
  2. Pull Request: Handle PR viewing, creation, merging workflows, and branch association operations via gh pr.
  3. CI / Actions: View workflow run status, logs, and failure reasons via gh run, facilitating the troubleshooting of PR checks.
  4. Advanced Queries: Access GitHub REST/GraphQL endpoints via gh api to handle scenarios not directly encapsulated by gh issue or gh pr.

The Skill tag indicates requires_api_key=false: the skill package itself does not require a separate Skill-specific API Key; actual calls still rely on the GitHub credentials already logged in on the local machine via gh (e.g., gh auth login), consistent with the official behavior of gh.

Installation and Enablement

Install SkillHub CLI

If not already installed, you can check first:

command -v skillhub && skillhub --version

If not installed, you can perform a full installation (CLI + default Skills) according to the SkillHub installation documentation:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

If only the CLI is needed:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

Install wtff

The installation method provided on the SkillHub page is: Referencing the SkillHub Installation Documentation, install @user_eb2b0784/wtf-github.

When installing, you must use --dir to point to the current Agent’s skills directory; otherwise, it defaults to ./skills/, which the Agent may fail to load. Common paths are as follows:

Environment skills Directory
Cursor ~/.cursor/skills/
Claude Code ~/.claude/skills/
Codex ~/.codex/skills/ or .agents/skills/ under the project

Example (Cursor):

skillhub install user_eb2b0784/wtf-github --dir ~/.cursor/skills/

Alternatively, you can hand the prompt to an AI: “Please install @user_eb2b0784/wtf-github based on https://skillhub.cn/install/skillhub.md.”

After installation, restart or refresh the Agent as required by your client to enable the skill.

Prerequisite: Local gh

wtff assumes that the GitHub CLI is installed and available in the environment. Please complete the gh installation and gh auth login yourself before use; the Skill documentation does not replace this step.

Typical Usage

Official materials do not include separate long example scripts; the capability description revolves around the following command families. The following commands represent the usage of gh itself, reflecting the operational scope that wtff guides the Agent through. In sessions where this Skill is enabled, you can hand natural language tasks to the Agent, allowing it to select appropriate subcommands.

Issue

gh issue list --repo OWNER/REPO
gh issue view 123 --repo OWNER/REPO

Pull Request

gh pr list --repo OWNER/REPO
gh pr view 456 --repo OWNER/REPO
gh pr checks 456 --repo OWNER/REPO

CI Runs

gh run list --repo OWNER/REPO
gh run view RUN_ID --repo OWNER/REPO --log-failed

REST / Custom Queries

gh api repos/OWNER/REPO/pulls/456

Through the steps above, the Agent should uniformly use gh for tasks such as “checking PR status,” “following failed workflows,” or “pulling metadata via API,” reducing hallucinated commands that are inconsistent with GitHub’s actual CLI behavior.

Scenarios and Notes

Who it is for

  • Those who handle GitHub Issues, PRs, and Actions within Agents daily, where the team or local machine has standardized on the use of gh.
  • Those who want the model to execute reproducible commands via Shell, rather than just generating non-executable pseudo-API snippets.

Limitations and Notes

  • Depends on the local gh version, logged-in account, and repository permissions; limitations for private repos and organization policies are the same as when not using gh.
  • SkillHub Statistics (as of page display): Rating 100000, Downloads 782, Installs 0; the installation count is a platform metric and does not represent whether local installation via --dir was successful.
  • Categorized as dev-programming; does not involve GitHub PATs embedded in the Skill package (requires_api_key=false).

Conclusion

wtff anchors GitHub-related Agent capabilities to the official gh CLI, aligning Issues, PRs, CI, and gh api advanced queries into a single line. If you are already using SkillHub in environments like Cursor, you can install it to the corresponding skills directory using the coordinate @user_eb2b0784/wtf-github.

  • SkillHub Page: https://www.skillhub.cn/skills/user_eb2b0784/wtf-github
  • Official API Entry: https://api.skillhub.cn/user_eb2b0784/wtf-github
  • Installation Instructions: https://skillhub.cn/install/skillhub.md
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye