Vibe Coder · Unit 9: Claude Code Commands and Extensions · Lesson 10 of 10

Claude Code in GitHub

Engineers: have Claude Code respond to issues and pull requests in your repository, reviewing changes and proposing fixes.

Read the short notes and pictures.Do everything inside a blue frame.

Agents in your repository

With the GitHub integration, Claude Code runs in your CI when someone mentions it or when an event you choose happens. It reads the repository, follows CLAUDE.md, and replies in the thread or opens a pull request.

A 3D scene of coloured blocks and cards. On a pull request: @claude review this for security issues, Two findings, with line references..
Mention it on a pull request for a review.

What to use it for

First-pass review

On every pull request, before a person looks.

Small fixes

Typos, failing lint, a clear bug with a test.

Triage

Label and summarise new issues.

A 3D scene of coloured blocks and cards. On an issue: mention it, it writes a fix, opens a pull request.
On an issue it can open a pull request with a fix.

Setting it up

  1. Install the integration

    Following the official setup guide.

  2. Store the credential as a secret

    Never in the workflow file.

  3. Limit what it can do

    Pull requests, not direct pushes.

  4. Require human approval to merge

    Branch protection does this.

ActivityBuild stepYour Claude Code setup

Add an automated review

Set up Claude Code in your repository so that it reviews each pull request. Open a small pull request, read its review, and require approval before merge.

Done when

Your Claude Code setup is complete: rules, commands, a skill, a subagent, hooks, a plugin and CI review.

Keep these

  • Claude Code can run inside GitHub.
  • It reviews pull requests and proposes fixes.
  • Keep merges behind human approval.