Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

claude-code-github-workflows

БесплатноБез исполняемых скриптовНе проверен

Claude Code GitHub Actions workflow patterns — PR reviews, issue triage, CI/CD integration. Use when creating or modifying workflows that integrate Claude Code.

laurigatesот laurigates★ 61 звезда на GitHub

Об этом скилле

Claude Code GitHub Workflows

When to Use This Skill

Use this skill when... Use the linked sibling instead when...
Designing a new anthropics/claude-code-action@v1 workflow (PR review, issue triage, CI auto-fix) Configuring the auth method or hardening permissions — see github-actions-auth-security
Choosing trigger events (issue_comment, pull_request, workflow_run) and if: guards Wiring MCP servers and --allowedTools patterns — see github-actions-mcp-config
Adding path filters, custom trigger phrases, or external-contributor flows Debugging a failing workflow run — see github-actions-inspection
Authoring the prompt: block (review focus areas, triage labelling, auto-fix instructions) Building a self-hosted reusable auto-fix workflow — see github-workflow-auto-fix --reusable

Expert knowledge for designing GitHub Actions workflows that integrate Claude Code for automated code assistance, PR reviews, and issue triage.

Core Expertise

Workflow Design Patterns

  • Automated pull request reviews with inline comments
  • Issue triage and automated responses
  • CI failure auto-fix workflows
  • Custom trigger configurations and event handling

Trigger Configurations

  • Issue comment triggers (@claude mentions)
  • Pull request events (opened, synchronize, ready_for_review)
  • Workflow run triggers (CI failure handling)
  • Path-filtered reviews for specific directories

Display name convention

Every workflow's name: follows <Domain>: <Action> [<target>] (quoted, since YAML treats : as a key separator). Use the Claude: domain for Claude Code-driven workflows; use Auto-fix: for workflow_run-triggered remediation. See .claude/rules/workflow-naming.md for the canonical rule and active domains. The example snippets below dogfood the convention.

When a workflow's on.workflow_run.workflows lists another workflow's display name, the listed string must match the target workflow's name: exactly — update both sides in the same change.

Essential Workflow Template

name: "Claude: @mentions"

on:
  issue_comment:
    types: [created]
  pull_request_review_comment:
    types: [created]
  issues:
    types: [opened, assigned]

jobs:
  claude:
    if: |
      (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
      (github.event_name == 'issues' && contains(github.event.issue.body, '@claude'))
    runs-on: ubuntu-latest
    permissions:
      contents: write
      pull-requests: write
      issues: write
      id-token: write
      actions: read
    steps:
      - name: Checkout repository
        uses: actions/[email protected]
        with:
          fetch-depth: 1

      - name: Run Claude Code
        uses: anthropics/[email protected]
        with:
          anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
          claude_args: |
            --model opus
            --effort medium

Automation Patterns

When you need a complete template beyond the essential one above, open references/automation-patterns.md: comprehensive PR review, CI failure auto-fix (workflow_run), issue triage and labeling, path-filtered review, custom trigger phrase, and external-contributor handling. Read the pull_request_target security caveat there before using the external-contributor template.

claude-code-action v1 Gotchas

Hard-won facts that produce silently-broken workflows (each cost real debugging in production; see laurigates/.github#17–#19):

Outputs are fixed — counts need --json-schema

The action exposes only execution_file, branch_name, github_token, structured_output, and session_id. Referencing anything else (steps.scan.outputs.total) evaluates to empty with no error — and prompting Claude to print TOTAL: <n> in a comment does not create a step output. Any metric a workflow needs out of a Claude step goes through structured output:

- id: scan
  uses: anthropics/[email protected]
  with:
    claude_args: >-
      --json-schema '{"type":"object","properties":{"total_issues":{"type":"integer"}},"required":["total_issues"]}'
    prompt: |
      ...analysis instructions...
      Report the count in the structured output field total_issues.

# Read it back — the || '{}' guard is REQUIRED: job outputs evaluate even
# when the step was skipped, and fromJSON('') errors.
outputs:
  issues: ${{ fromJSON(steps.scan.outputs.structured_output || '{}').total_issues }}

The same guarded expression works in if: gates (fromJSON(... || '{}').critical > 0) — an unguarded comparison against a missing output silently never fires.

The same law covers comment markers: anything CI greps for in an agent's output must be written by a workflow step, not requested from the model — see REFERENCE.md § A marker the model has to emit.

Bots are blocked by default

allowed_bots defaults to empty

Полный SKILL.md на GitHub

Установить claude-code-github-workflows в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash(gh pr view *)
Read
Write
Edit
Grep
Glob
WebFetch
mcp__github

Вложенные файлы

REFERENCE.mdreferences/automation-patterns.md

FAQ

Что делает скилл claude-code-github-workflows?

Claude Code GitHub Actions workflow patterns — PR reviews, issue triage, CI/CD integration. Use when creating or modifying workflows that integrate Claude Code.

Как установить скилл claude-code-github-workflows?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл claude-code-github-workflows запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить claude-code-github-workflows с