From emasoft-orchestrator-agent
Trigger with Claude Code action requests. Use when setting up Claude Code in GitHub Actions for automated PR reviews, @claude mention responses, and issue triage.
npx claudepluginhub emasoft/emasoft-plugins --plugin emasoft-orchestrator-agentThis skill uses the workspace's default tool permissions.
- GitHub repository with Actions enabled
README.mdreferences/op-configure-api-key.mdreferences/op-configure-permissions.mdreferences/op-customize-workflow.mdreferences/op-setup-issue-triage-workflow.mdreferences/op-setup-mention-workflow.mdreferences/op-setup-pr-review-workflow.mdtemplates/workflows/claude-issue-triage.ymltemplates/workflows/claude-mention.ymltemplates/workflows/claude-pr-review.ymlSets up GitHub Actions workflows with Claude Code for automated PR reviews, @claude mention responses, and issue triage, including templates, secrets, and permissions.
Provides YAML templates and patterns for GitHub Actions workflows integrating Claude Code for PR reviews, issue triage, CI failure fixes, and automation triggers. Use when creating or modifying Claude-integrated workflows.
Integrates Claude Code into CI/CD pipelines using GitHub Actions, GitLab CI, pre-commit hooks for automated PR reviews, code generation, test validation, security scanning, headless mode, and cost control.
Share bugs, ideas, or general feedback.
templates/workflows/ based on your use case (PR review, @claude mention, or issue triage).github/workflows/ directoryANTHROPIC_API_KEY secret in your repository settings under Settings > Secrets and variables > ActionsThe claude-code-action is Anthropic's official GitHub Action for running Claude Code in CI/CD workflows. This skill provides ready-to-use workflow templates for common integration patterns.
| Template | Purpose | Location |
|---|---|---|
| claude-pr-review.yml | Automatic PR code review | templates/workflows/ |
| claude-mention.yml | @claude mention responses | templates/workflows/ |
| claude-issue-triage.yml | Automated issue triage | templates/workflows/ |
Select the workflow template that matches your use case from templates/workflows/.
Copy the YAML file to your repository's .github/workflows/ directory:
# Example: Set up PR review
cp claude-pr-review.yml /path/to/repo/.github/workflows/
Add required secrets in your repository settings:
ANTHROPIC_API_KEY with your Anthropic API keyFile: templates/workflows/claude-pr-review.yml
Triggers:
Features:
Review Categories:
File: templates/workflows/claude-mention.yml
Triggers:
Features:
File: templates/workflows/claude-issue-triage.yml
Triggers:
Features:
Edit the claude_args section in any workflow:
claude_args: |
--model "claude-sonnet-4-20250514" # or claude-opus-4-5-20251101
Modify the --allowedTools argument to limit what Claude can do:
--allowedTools "Read,Glob,Grep" # Read-only, no bash
Edit the prompt section to customize Claude's behavior for your project's specific needs.
# .github/workflows/claude-review.yml
name: Claude PR Review
on:
pull_request:
types: [opened, synchronize, ready_for_review]
jobs:
review:
runs-on: ubuntu-latest
steps:
- uses: anthropics/claude-code-action@v1
with:
prompt: "Review this PR for code quality and potential bugs"
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
# .github/workflows/claude-mention.yml
name: Claude Mention
on:
issue_comment:
types: [created]
jobs:
respond:
if: contains(github.event.comment.body, '@claude')
runs-on: ubuntu-latest
steps:
- uses: anthropics/claude-code-action@v1
with:
prompt: "Respond to this comment helpfully"
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
.github/workflows/ANTHROPIC_API_KEY secret is settimeout-minutes in workflowtemplates/workflows/claude-pr-review.yml - PR review templatetemplates/workflows/claude-mention.yml - Mention handler templatetemplates/workflows/claude-issue-triage.yml - Issue triage template| Field | Type | Description |
|---|---|---|
| Workflow File | YAML | GitHub Actions workflow configured in .github/workflows/ |
| API Key Secret | Secret | ANTHROPIC_API_KEY configured in repository settings |
| Permissions | Config | Repository permissions set to "Read and write" |
| Status | Boolean | Workflow enabled and ready to trigger |
Copy this checklist and track your progress:
.github/workflows/ directoryANTHROPIC_API_KEY secret in repository settingsclaude_args model if needed (default: sonnet)--allowedTools for security requirements