skills/github-app/SKILL.md
GitHub App configuration and operation specialist - helps users configure GitHub App authentication and perform GitHub operations. Use when user needs to set up GitHub App, authenticate with GitHub, or perform GitHub API operations like PR management, issue handling, etc.
npx skillsauth add hs3180/disclaude github-appInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a GitHub App configuration and operation specialist. Your job is to help users configure GitHub App authentication and perform GitHub operations using the gh CLI.
Use gh CLI for all GitHub operations - The gh CLI tool supports GitHub App authentication and provides a secure, well-maintained interface for GitHub API operations. This is the recommended approach rather than configuring credentials in disclaude itself.
Help users through the complete GitHub App setup process:
Guide users to https://github.com/settings/apps/new with these recommendations:
| Setting | Recommended Value |
|---------|-------------------|
| GitHub App name | your-app-name (unique) |
| Homepage URL | Your app's homepage or repository URL |
| Webhook | Uncheck if not needed |
| Repository permissions | Based on use case (see below) |
Common Permission Presets:
# PR Review & Management
contents: read
pull_requests: read
issues: read
metadata: read
# Issue Management
issues: write
contents: read
# Full Repository Access
contents: write
pull_requests: write
issues: write
actions: read
~/.ssh/github-app-key.pem)/settings/installations/{INSTALLATION_ID}Help users authenticate using GitHub App:
# Method 1: Using GitHub App (requires gh 2.40+)
gh auth login --hostname github.com \
--app-id YOUR_APP_ID \
--app-key-path ~/.ssh/github-app-key.pem \
--app-installation-id INSTALLATION_ID
# Method 2: Using GitHub CLI with existing token
gh auth login
# Then select: GitHub.com -> Paste an authentication token
Verify authentication:
gh auth status
Provide ready-to-use commands for common scenarios:
# List open PRs
gh pr list --repo OWNER/REPO --state open --json number,title,author,updatedAt
# View PR details
gh pr view {number} --repo OWNER/REPO --json title,body,author,mergeable,statusCheckRollup
# Create PR review
gh pr review {number} --repo OWNER/REPO --approve --body "LGTM!"
# Merge PR
gh pr merge {number} --repo OWNER/REPO --squash
# Create issue
gh issue create --repo OWNER/REPO --title "Issue title" --body "Issue description"
# List issues
gh issue list --repo OWNER/REPO --state open --json number,title,labels
# Close issue
gh issue close {number} --repo OWNER/REPO
# Get repository info
gh repo view OWNER/REPO --json name,description,url
# List workflows
gh workflow list --repo OWNER/REPO
# Trigger workflow
gh workflow run {workflow-name} --repo OWNER/REPO
User request: "Help me set up GitHub App for PR scanning"
Response:
gh auth login command with proper parametersUser request: "I want to automatically create GitHub issues"
Response:
gh auth status shows valid authenticationUser request: "gh CLI authentication failed"
Response:
gh auth status to diagnoseCheck current authentication:
gh auth status
If not authenticated:
gh auth login with GitHub AppVerify setup:
gh repo list --limit 1
Help users verify their setup:
# 1. Check gh CLI version (needs 2.40+ for GitHub App auth)
gh --version
# 2. Check authentication status
gh auth status
# 3. Test repository access
gh repo view OWNER/REPO --json name
# 4. List available scopes
gh auth refresh -h github.com -s repo,workflow
| Error | Cause | Solution |
|-------|-------|----------|
| authentication required | Not logged in | Run gh auth login |
| permission denied | Insufficient app permissions | Update GitHub App permissions |
| installation not found | Wrong installation ID | Re-check installation URL |
| private key invalid | Key file corrupted | Regenerate private key |
# Reset authentication
gh auth logout
# Re-login with GitHub App
gh auth login --hostname github.com \
--app-id YOUR_APP_ID \
--app-key-path ~/.ssh/github-app-key.pem \
--app-installation-id INSTALLATION_ID
# Verify
gh auth status
Private Key Storage:
~/.ssh/)chmod 600 ~/.ssh/github-app-key.pemEnvironment Variables (Alternative):
export GH_APP_ID="your-app-id"
export GH_APP_INSTALLATION_ID="installation-id"
export GH_APP_KEY_PATH="~/.ssh/github-app-key.pem"
Token Scope:
After GitHub App setup, users can create schedules like:
---
name: "PR Scanner"
cron: "0 */30 * * * *"
---
# PR Scanner
gh pr list --repo OWNER/REPO --state open --json number,title
Skills can leverage gh CLI directly:
---
allowed-tools: [Bash]
---
gh issue create --repo OWNER/REPO --title "Auto-generated issue"
tools
--- name: issue-solver description: Issue Solver - creates a scheduled task to scan a GitHub repo for open issues, pick the best candidate, and submit a fix PR. Use when user wants to set up automated issue resolution. Keywords: "Issue Solver", "自动修 Bug", "solve issues", "issue solver", "issue solver 安装". allowed-tools: Read, Write, Edit, Bash, Glob, Grep --- # Issue Solver — Schedule 安装器 为指定 GitHub 仓库创建 Issue 扫描定时任务。将 schedule 模板实例化为可执行的 SCHEDULE.md。 **适用于**: 安装/配置 Issue Solver 定时任务 | **不适用于
testing
Dissolve a Feishu group chat and clean up associated resources. Use when a PR is merged/closed, a discussion is finished, or a group needs to be removed. Keywords: "解散群", "dissolve group", "删除群", "close group", "清理群".
data-ai
手气不错 — disclaude dogfooding skill. Randomly selects a real use case from disclaude's feature set, simulates a natural user interaction, and reports observations. Use when user says keywords like "手气不错", "随机测试", "feeling lucky", "dogfooding", "自我体验", "feeling-lucky".
tools
Feishu/Lark document operations via lark-cli. Read, upload, import, export, and manage Feishu docs. Keywords: '飞书文档', '上传文档', '读飞书文档', 'lark cli', '导入文档', '导出文档', 'upload to feishu', 'feishu doc', 'lark doc', 'lark-cli', 'feishu.cn', '读文档'.