スキル一覧に戻る
graycarl

github

by graycarl

My shell setup scripts

0🍴 0📅 2026年1月24日
GitHubで見るManusで実行

SKILL.md


name: github description: Manage GitHub Pull Requests using GitHub CLI (gh). Create, merge, view status, and comment on PRs. Use this skill when the user wants to interact with GitHub repositories.

GitHub Skill

This skill provides a set of tools to manage GitHub Pull Requests directly from the agent. It wraps the gh CLI to provide simplified workflows for creating, merging, and reviewing PRs.

Prerequisites

  • GitHub CLI (gh): Must be installed and authenticated.
    gh auth login
    
  • jq: Required for parsing JSON responses in view-comments.sh.

Usage

Important Convention: When creating a PR or adding a comment, always append the signature -- From Agent PI to the body text.

1. Create a Pull Request

Create a new PR from the current branch.

./scripts/create-pr.sh "<Title>" "<Body>" ["<BaseBranch>"]
  • BaseBranch is optional (defaults to repository default, usually main or master).
  • Note: Use single quotes around the title and body if they contain special characters.

2. Check Status

View the status of relevant PRs or details of a specific one.

# Overview of current branch PRs and review requests
./scripts/check-status.sh

# Detailed view of a specific PR
./scripts/check-status.sh <pr-number>

3. Merge a Pull Request

Merge a PR using the merge commit strategy (preserves commit history).

./scripts/merge-pr.sh <pr-number>

4. View Comments (Conversation + Code Reviews)

Fetch and display all comments, including general discussion and specific code review comments (line comments), sorted chronologically.

./scripts/view-comments.sh <pr-number>

5. Add a Comment

Post a new comment to the PR discussion.

./scripts/add-comment.sh <pr-number> "<Comment Text>"

Workflow Example

  1. Check Status: ./scripts/check-status.sh to see if there's an open PR.
  2. View Comments: ./scripts/view-comments.sh 123 to read feedback.
  3. Add Comment: ./scripts/add-comment.sh 123 "Fixed the typo."
  4. Merge: ./scripts/merge-pr.sh 123 once approved.

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です