Token导航 LogoToken导航TokenDH.com
运维和基础设施external-servicegithub未标认证来源可访问clear审计提醒

github-modesGitHub modes 运维

Agent Skill

用于围绕 GitHub 仓库、Issue、Pull Request、分支、提交和代码协作流程提供辅助能力。它适合让 Agent 查询项目状态、整理变更、辅助创建或检查协作事项,并把仓库中的信息转成可执行的下一步。使用时需要区分只读查询和写入操作;涉及创建 PR、修改 Issue、推送分支或访问私有仓库时,应确认 token 权限、目标仓库范围和用户授权。

总安装

442

周安装

19

GitHub Stars

8

下载量

155
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:github-modes(GitHub modes 运维)
来源仓库:https://github.com/vamseeachanta/workspace-hub
仓库路径:skills/github-modes
安装命令:
npx skills add https://github.com/vamseeachanta/workspace-hub --skill github-modes
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/vamseeachanta/workspace-hub --skill github-modes

简介

用于切换和管理 GitHub 仓库的不同工作模式。

  • 支持开发、测试、生产等环境配置。
  • 可一键切换相关分支和权限设置。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • 简化多环境协作开发流程。github-modes 属于运维和基础设施类 Skill,可作为该场景下的辅助能力补充。
  • 模式定义需提前在配置文件中设定。

SKILL.md

GitHub Integration Modes Skill

Overview

This skill provides comprehensive GitHub integration modes for workflow orchestration, PR management, issue tracking, and repository coordination. Each mode is optimized for specific GitHub workflows with batch operation support.

Key Capabilities:

  • GitHub workflow orchestration and coordination
  • Pull request management and review automation
  • Issue tracking and project management
  • Release coordination and deployment
  • Repository architecture and organization
  • CI/CD pipeline coordination

Quick Start

# Verify GitHub CLI authentication
gh auth status

# Check repository access
gh repo view

# List open PRs
gh pr list

# List issues
gh issue list

# Check workflow runs
gh run list --limit 5

GitHub Workflow Modes

1. gh-coordinator

GitHub workflow orchestration and coordination

# Coordinate multiple GitHub operations
gh issue create --title "Feature: New Integration" --body "Description here"
gh pr create --title "Implement feature" --body "Closes #123"
gh workflow run ci.yml
  • Coordination Mode: Hierarchical
  • Max Parallel Operations: 10
  • Best For: Complex GitHub workflows, multi-repo coordination

2. pr-manager

Pull request management and review coordination

# Create PR with reviewers
gh pr create \
  --title "Feature implementation" \
  --body "## Summary\n- Feature 1\n- Feature 2" \
  --reviewer user1,user2 \
  --assignee @me

# Review PR
gh pr review 123 --approve --body "LGTM!"

# Merge with squash
gh pr merge 123 --squash --delete-branch
  • Review Mode: Automated
  • Multi-reviewer: Yes
  • Best For: PR reviews, merge coordination, conflict resolution

3. issue-tracker

Issue management and project coordination

# Create structured issue
gh issue create \
  --title "Bug: Login failure" \
  --body "## Description\n...\n## Steps to Reproduce\n1. ..." \
  --label "bug,priority:high" \
  --assignee @me \
  --milestone "v2.0"

# Update issue
gh issue edit 123 --add-label "in-progress"

# Close with comment
gh issue close 123 --comment "Fixed in #456"
  • Issue Workflow: Automated
  • Label Management: Smart
  • Best For: Project management, issue coordination, progress tracking

4. release-manager

Release coordination and deployment

# Create release
gh release create v1.2.0 \
  --title "Release v1.2.0" \
  --notes "## What's New\n- Feature 1\n- Bug fix 2" \
  --target main

# Upload release assets
gh release upload v1.2.0 ./dist/*.zip

# List releases
gh release list
  • Release Pipeline: Automated
  • Versioning: Semantic
  • Best For: Release management, version coordination, deployment pipelines

Repository Management Modes

5. repo-architect

Repository structure and organization

# Create repository
gh repo create my-project --public --description "Project description"

# Clone with specific options
gh repo clone owner/repo -- --depth=1

# Fork repository
gh repo fork owner/repo --clone

# Set repository settings
gh repo edit --enable-issues --enable-wiki=false
  • Structure Optimization: Yes
  • Multi-repo: Support
  • Best For: Repository setup, structure optimization, multi-repo management

6. code-reviewer

Automated code review and quality assurance

# Get PR diff
gh pr diff 123

# Get changed files
gh pr view 123 --json files --jq '.files[].path'

# Add review comment
gh pr review 123 --comment --body "Consider refactoring this function"

# Request changes
gh pr review 123 --request-changes --body "Please address the following..."
  • Review Quality: Deep
  • Security Analysis: Yes
  • Best For: Code quality, security reviews, performance analysis

7. branch-manager

Branch management and workflow coordination

# Create feature branch via API
gh api repos/:owner/:repo/git/refs \
  -f ref='refs/heads/feature/new-feature' \
  -f sha=$(gh api repos/:owner/:repo/git/refs/heads/main --jq '.object.sha')

# Delete branch
gh api repos/:owner/:repo/git/refs/heads/old-branch --method DELETE

# List branches
gh api repos/:owner/:repo/branches --jq '.[].name'
  • Branch Strategy: GitFlow
  • Merge Strategy: Intelligent
  • Best For: Branch coordination, merge strategies, workflow management

Integration Modes

8. sync-coordinator

Multi-package synchronization

# Sync files across repos
gh api repos/:owner/:repo/contents/file.md --jq '.content' | base64 -d

# Create sync PR
gh pr create \
  --title "Sync: Update shared configurations" \
  --head sync/config-update \
  --base main

9. ci-orchestrator

CI/CD pipeline coordination

# Trigger workflow
gh workflow run ci.yml --ref main

# Check workflow status
gh run list --workflow=ci.yml --limit=5

# View run details
gh run view $RUN_ID

# Download artifacts
gh run download $RUN_ID

10. security-guardian

Security and compliance management

# List secret scanning alerts
gh api repos/:owner/:repo/secret-scanning/alerts

# List code scanning alerts
gh api repos/:owner/:repo/code-scanning/alerts

# Check Dependabot alerts
gh api repos/:owner/:repo/dependabot/alerts

Batch Operations

All GitHub modes support batch operations for maximum efficiency:

# Parallel issue creation
gh issue create --title "Task 1" --body "..." &
gh issue create --title "Task 2" --body "..." &
gh issue create --title "Task 3" --body "..." &
wait

# Batch label management
for issue in 1 2 3 4 5; do
  gh issue edit $issue --add-label "sprint-24" &
done
wait

# Parallel PR reviews
for pr in 10 11 12; do
  gh pr review $pr --approve --body "Automated approval" &
done
wait

MCP Tool Integration

Swarm Coordination

// Initialize GitHub workflow swarm

// Execute workflow with coordination
  task: "GitHub workflow coordination",
  strategy: "parallel",
  priority: "high"
}

// Store workflow state
  action: "store",
  key: "github/workflow/state",
  value: {
    mode: "pr-manager",
    activePRs: [123, 124, 125],
    status: "reviewing"
  }
}

GitHub-Specific Tools

// Repository analysis
  repo: "owner/repo",
  analysis_type: "code_quality"
}

// PR management
  repo: "owner/repo",
  action: "review",
  pr_number: 123
}

// Issue tracking
  repo: "owner/repo",
  action: "triage"
}

Usage Examples

Complete PR Workflow

# 1. Create feature branch
git checkout -b feature/new-feature

# 2. Make changes and commit
git add .
git commit -m "feat: Add new feature"
git push -u origin feature/new-feature

# 3. Create PR with full metadata
gh pr create \
  --title "feat: Add new feature" \
  --body "## Summary
- Implements feature X
- Adds tests for Y

## Testing
- [x] Unit tests pass
- [x] Integration tests pass

Closes #123" \
  --reviewer tech-lead,senior-dev \
  --assignee @me \
  --label "enhancement,needs-review" \
  --milestone "v2.0"

# 4. Wait for reviews and CI
gh pr checks 456 --watch

# 5. Merge when ready
gh pr merge 456 --squash --delete-branch

Automated Issue Management

# Triage unlabeled issues
gh issue list --label "" --json number,title | \
  jq -r '.[] | "\(.number): \(.title)"'

# Bulk close stale issues
gh issue list --label "stale" --json number | \
  jq -r '.[].number' | while read num; do
    gh issue close $num --comment "Closing stale issue"
  done

# Create linked issues
PARENT=$(gh issue create --title "Epic: Feature Set" --body "Parent issue")
gh issue create --title "Sub-task 1" --body "Part of #$PARENT"
gh issue create --title "Sub-task 2" --body "Part of #$PARENT"

Best Practices

1. Authentication

  • Use gh auth login for initial setup
  • Store tokens securely in GitHub Secrets
  • Use GITHUB_TOKEN in workflows
  • Rotate tokens regularly

2. Rate Limiting

  • Batch operations when possible
  • Use GraphQL for complex queries
  • Implement exponential backoff
  • Cache API responses

3. Workflow Design

  • Use reusable workflows
  • Implement proper error handling
  • Add meaningful commit messages
  • Follow semantic versioning

4. Security

  • Enable branch protection
  • Require PR reviews
  • Use signed commits
  • Enable security scanning

Configuration Options

ModeMax ParallelBatch OptimizedPrimary Use
gh-coordinator10YesComplex workflows
pr-manager5YesPR reviews
issue-tracker20YesIssue management
release-manager3NoReleases
repo-architect5YesRepo setup
code-reviewer5YesCode review
branch-manager10YesBranch ops

Related Skills


Version History

  • 1.0.0 (2026-01-02): Initial skill conversion from github-modes agent

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

30.2%
按下载量换算47

windsurf

24.13%
按下载量换算37

trae

18.28%
按下载量换算28

OpenCode

12.01%
按下载量换算19

Cursor

7.96%
按下载量换算12

Codex

3.52%
按下载量换算5

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills