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★ 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 (
@claudementions) - 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
Установить claude-code-github-workflows в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(gh pr view *)ReadWriteEditGrepGlobWebFetchmcp__githubВложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic