Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    Claude in CI: PR Review & Fixes in GitHub Actions

    2

    This skill configures Claude Code to run headless within your CI environment, automating pull request reviews and test fixes without manual intervention.

    Free

    1 useSecurity scanned
    Claude in CI: PR Review & Fixes in GitHub Actions

    Claude in CI: PR Review & Fixes in GitHub Actions

    Example session with this skill installed

    Setup a GitHub Action to review PRs for security bugs, limit to 5 turns, and restrict tools to Read and Grep only.

    • Read your context and instructions
    • Compiled the claude in ci

    I have configured a GitHub Actions workflow to perform security-focused PR reviews. The configuration uses scoped permissions and tool restrictions to maintain a secure environment.

    GitHub Actions Workflow

    name: Claude Security Review
    on:
      pull_request:
        types: [opened, synchronize]
    
    permissions:
      contents: read
      pull-requests: write
    
    jobs:
      security_audit:
        runs-on: ubuntu-latest
        timeout-minutes: 10
        concurrency:
          group: ${{ github.workflow }}-${{ github.ref }}
          cancel-in-progress: true
        steps:
          - name: Checkout Code
            uses: actions/checkout@v4
    
          - name: Claude Code Review
            uses: anthropics/claude-code-action@v1
            with:
              anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
              prompt: "Identify security vulnerabilities and critical bugs in this PR. Provide max 5 concise comments on specific lines."
              claude_args: >
                --max-turns 5
                --allowedTools Read,Grep,Glob,Bash(git diff:*)
    

    Next steps

    1. Add ANTHROPIC_API_KEY to your GitHub Repository Secrets.
    2. Verify your CLAUDE.md contains the correct build and test commands for the agent to reference.
    3. Open a test PR to confirm the agent comments correctly on the diff.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Maintaining CI/CD pipelines often involves repetitive manual labor, from triaging GitHub issues to writing changelogs. This skill configures Claude Code to run headless within your CI environment, automating pull request reviews and test fixes without manual intervention.

    What it does

    • Automated PR Review scans pull requests for bugs and security vulnerabilities, providing targeted comments.
    • Automated Test Fixing identifies failing tests on a branch and attempts to resolve them automatically.
    • Issue Triage analyzes incoming tickets to apply appropriate labels and priority levels.
    • Documentation Updates generates changelogs and release notes based on commit history.
    • Dependency Refresh executes scheduled runs to check and update project dependencies or documentation.

    How it works

    1. Job Definition specifies the trigger event, such as a pull request or a scheduled cron job.
    2. Workflow Configuration implements the official Claude Code action or generic CLI commands.
    3. Guardrail Setup configures scoped permissions, tool restrictions, and turn limits to manage costs and security.
    4. Context Provisioning ensures CLAUDE.md is optimized with build and test commands for efficient runs.
    5. Validation executes a test run to verify API secret access and output formatting.

    Frameworks & tools

    The skill supports GitHub Actions and GitLab CI/CD. It utilizes the @anthropic-ai/claude-code CLI and official Anthropic GitHub Actions.

    Why this beats prompting it yourself

    Running LLMs in CI requires strict security guardrails and cost controls that are easy to miss. This skill implements least-privilege permissions and turn-limited execution out of the box to prevent runaway API costs or unauthorized code pushes.

    Use cases

    • Review PRs for security flaws before they hit the staging environment.
    • Fix broken unit tests automatically on every push to a feature branch.
    • Generate weekly changelogs by analyzing merged pull requests.
    • Triage and label new repository issues based on project standards.

    Known limitations

    Requires a valid Anthropic API key. Running on PRs from forks requires specific security considerations to avoid secret leakage.

    Requires Anthropic API key. Fork PRs need specific security handling. Execution speed is bound by model latency and project build times.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    1 use

    Times used to date

    Free forever

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 4 days ago

    • Free with an Agensi account

    Permissions

    No special permissions declared or detected

    Listed4 days ago
    Updated1 day ago

    What's inside

    Frequently Asked Questions

    This skill provides a pre-configured automation framework for running Claude Code headless within GitHub Actions or GitLab CI/CD, handling everything from PR reviews to automated test patching.

    The skill is designed specifically for the Claude Code CLI (@anthropic-ai/claude-code) and is compatible with projects using GitHub Actions or GitLab CI/CD.

    Yes, the skill includes built-in guardrails such as turn limits and tool restrictions to prevent runaway API usage and ensure Claude stays within a defined budget per workflow run.

    Security is a priority; the skill implements least-privilege permission sets and provides specific configurations to protect your API secrets, even when handling PRs from external forks.

    You will receive the complete workflow configurations, optimized CLAUDE.md templates for context provisioning, and a setup guide for establishing secure API secret management.

    You will need an active Anthropic API key with sufficient credits and administrative access to your repository's CI/CD settings to install the necessary secrets.

    New in DevOps & Cloud