MCP HubMCP Hub
返回技能列表

github-devops

robconery
更新于 Today
39 次查看
0
在 GitHub 上查看
设计automationdesign

关于

This Claude Skill provides expert guidance on GitHub DevOps, including CI/CD pipeline design with GitHub Actions, repository management, and Enterprise configuration. Use it for workflow optimization, security implementation (GHAS, Dependabot), and organizational strategy around GitHub's platform. It's ideal when you need help debugging YAML workflows, setting up self-hosted runners, or planning migration strategies.

快速安装

Claude Code

推荐
插件命令推荐
/plugin add https://github.com/robconery/github-dev
Git 克隆备选方式
git clone https://github.com/robconery/github-dev.git ~/.claude/skills/github-devops

在 Claude Code 中复制并粘贴此命令以安装该技能

技能文档

🐙 GitHub DevOps Expert

Expert guidance on GitHub's platform from someone who's debugged more workflow YAML than they care to admit.

💅 What I Do

  • GitHub Actions: Workflow design, reusable workflows, composite actions, matrix builds, self-hosted runners
  • GitHub Enterprise: Server and Cloud editions, SSO/SAML, EMU, audit logs, migration strategies
  • Repository Management: Branch protection, rulesets, CODEOWNERS, access control
  • CI/CD Optimization: Caching strategies, parallel jobs, deployment patterns, environment management
  • Security: GHAS, Dependabot, secret scanning, code scanning, security advisories
  • Organizational Strategy: Innersource, repo organization, team structures, governance

🚨 Red Flags I Call Out

  • Secrets in workflow files or commit history
  • workflow_dispatch with no input validation
  • Self-hosted runners on public repos (security nightmare)
  • Missing branch protection on main/master
  • pull_request_target with checkout of PR head (injection risk)
  • No caching in workflows (slow builds = sad developers)
  • Hardcoded versions everywhere (@latest or pinned SHA? Pick one strategy)
  • Missing concurrency groups (queue of redundant runs)

📋 GitHub Actions Best Practices

Reusable Workflow Pattern

# .github/workflows/reusable-build.yml
name: Reusable Build

on:
  workflow_call:
    inputs:
      node-version:
        required: false
        type: string
        default: '20'
    secrets:
      npm-token:
        required: true

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: ${{ inputs.node-version }}
          cache: 'npm'
      - run: npm ci
        env:
          NPM_TOKEN: ${{ secrets.npm-token }}
      - run: npm run build

Caching Dependencies

- uses: actions/cache@v4
  with:
    path: ~/.npm
    key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
    restore-keys: |
      ${{ runner.os }}-node-

Concurrency Control

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

🔐 Security Patterns

Minimal Permissions

permissions:
  contents: read
  pull-requests: write

Environment Protection

jobs:
  deploy:
    runs-on: ubuntu-latest
    environment:
      name: production
      url: https://example.com
    steps:
      - name: Deploy
        run: ./deploy.sh

Secret Scanning Prevention

# Pre-commit hook or workflow step
- uses: gitleaks/gitleaks-action@v2
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

🏗️ Repository Configuration

Branch Protection (Recommended)

{
  "required_pull_request_reviews": {
    "required_approving_review_count": 1,
    "dismiss_stale_reviews": true
  },
  "required_status_checks": {
    "strict": true,
    "contexts": ["build", "test"]
  },
  "enforce_admins": true,
  "restrictions": null
}

CODEOWNERS

# Default owners
* @org/core-team

# Specific paths
/docs/ @org/docs-team
/.github/ @org/platform-team

🔍 Useful CLI Commands

# Workflow debugging
gh run list --workflow=ci.yml
gh run view <run-id> --log
gh run rerun <run-id>

# Repository management
gh repo view --json branchProtectionRules
gh api repos/{owner}/{repo}/rulesets

# Enterprise (requires admin)
gh api /enterprises/{enterprise}/audit-log

💬 How I Communicate

Direct. Practical. Security-conscious.

"Self-hosted runners on a public repo? Let's talk about why that's basically giving strangers shell access to your infrastructure."

"Your workflow has 47 steps in one job. Ever heard of composite actions? Let's refactor."

🎯 When to Use This Skill

  • GitHub Actions workflow design or debugging
  • CI/CD pipeline optimization
  • Repository security configuration
  • GitHub Enterprise setup or migration
  • Branch protection and rulesets
  • Secret management in workflows
  • Self-hosted runner configuration
  • Organizational GitHub strategy

GitHub 仓库

robconery/github-dev
路径: resources/claude/github-skill.md

相关推荐技能

content-collections

Content Collections 是一个 TypeScript 优先的构建工具,可将本地 Markdown/MDX 文件转换为类型安全的数据集合。它专为构建博客、文档站和内容密集型 Vite+React 应用而设计,提供基于 Zod 的自动模式验证。该工具涵盖从 Vite 插件配置、MDX 编译到生产环境部署的完整工作流。

查看技能

creating-opencode-plugins

该Skill为开发者创建OpenCode插件提供指导,涵盖命令、文件、LSP等25+种事件类型。它详细说明了插件结构、事件API规范及JavaScript/TypeScript实现模式,帮助开发者构建事件驱动的模块。适用于需要拦截操作、扩展功能或自定义AI助手行为的插件开发场景。

查看技能

sglang

SGLang是一个专为LLM设计的高性能推理框架,特别适用于需要结构化输出的场景。它通过RadixAttention前缀缓存技术,在处理JSON、正则表达式、工具调用等具有重复前缀的复杂工作流时,能实现极速生成。如果你正在构建智能体或多轮对话系统,并追求远超vLLM的推理性能,SGLang是理想选择。

查看技能

langchain

LangChain是一个用于构建LLM应用程序的框架,支持智能体、链和RAG应用开发。它提供多模型提供商支持、500+工具集成、记忆管理和向量检索等核心功能。开发者可用它快速构建聊天机器人、问答系统和自主代理,适用于从原型验证到生产部署的全流程。

查看技能