
Loki Mode
Run automated Claude pull-request reviews in GitHub Actions whenever PRs open or update.
Overview
Loki-mode is an agent skill for the Ship phase that wires Claude Code Review into GitHub Actions on pull requests.
Install
npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill loki-modeWhat is this skill?
- GitHub Actions workflow using anthropics/claude-code-action@v1 on ubuntu-latest
- Review prompt covers quality, bugs, performance, security, and test coverage
- Optional path filters and PR-author filters for scoped or contributor-focused runs
- Checkout with fetch-depth 1 and permissions for contents, PRs, issues, and id-token
- Instructs the agent to follow repo CLAUDE.md for style and conventions
- 5 review dimensions in default prompt: quality, bugs, performance, security, test coverage
Adoption & trust: 562 installs on skills.sh; 40.1k GitHub stars; 0/3 security scanners passed (skills.sh audits).
What problem does it solve?
You merge PRs without repeatable, repo-aware AI review unless someone manually asks an agent to read every diff.
Who is it for?
Indie builders and tiny teams on GitHub who want OAuth-driven Claude reviews on PR open and sync without building a custom bot.
Skip if: Repos not on GitHub Actions, teams that forbid third-party CI tokens on PRs, or flows that need review only on demand in the IDE.
When should I use this skill?
You want Claude to review GitHub pull requests on open or sync via GitHub Actions.
What do I get? / Deliverables
Every opened or updated PR can receive structured Claude feedback grounded in your CLAUDE.md before you approve the merge.
- GitHub Actions workflow file for Claude PR review
- Configurable review prompt block with repo and PR context
Recommended Skills
Journey fit
How it compares
Use this GitHub Action template instead of copying PR diffs into ad-hoc chat for each review.
Common Questions / FAQ
Who is loki-mode for?
Solo and small-team developers who use GitHub pull requests and want Claude to comment automatically with repo context.
When should I use loki-mode?
During Ship when you want review on PR opened or synchronize, optionally filtered by paths or contributor type, before merging to main.
Is loki-mode safe to install?
It requires a Claude Code OAuth secret and CI permissions on your repo; review the Security Audits panel on this page before enabling in production orgs.
SKILL.md
READMESKILL.md - Loki Mode
name: Claude Code Review on: pull_request: types: [opened, synchronize] # Optional: Only run on specific file changes # paths: # - "src/**/*.ts" # - "src/**/*.tsx" # - "src/**/*.js" # - "src/**/*.jsx" jobs: claude-review: # Optional: Filter by PR author # if: | # github.event.pull_request.user.login == 'external-contributor' || # github.event.pull_request.user.login == 'new-developer' || # github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR' runs-on: ubuntu-latest permissions: contents: read pull-requests: read issues: read id-token: write steps: - name: Checkout repository uses: actions/checkout@v4 with: fetch-depth: 1 - name: Run Claude Code Review id: claude-review uses: anthropics/claude-code-action@v1 with: claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} prompt: | REPO: ${{ github.repository }} PR NUMBER: ${{ github.event.pull_request.number }} Please review this pull request and provide feedback on: - Code quality and best practices - Potential bugs or issues - Performance considerations - Security concerns - Test coverage Use the repository's CLAUDE.md for guidance on style and conventions. Be constructive and helpful in your feedback. Use `gh pr comment` with your Bash tool to leave your review as a comment on the PR. # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md # or https://code.claude.com/docs/en/cli-reference for available options claude_args: '--allowed-tools "Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*)"' name: Claude Code on: issue_comment: types: [created] pull_request_review_comment: types: [created] issues: types: [opened, assigned] pull_request_review: types: [submitted] jobs: claude: if: | (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) || (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) || (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) || (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude'))) runs-on: ubuntu-latest permissions: contents: read pull-requests: read issues: read id-token: write actions: read # Required for Claude to read CI results on PRs steps: - name: Checkout repository uses: actions/checkout@v4 with: fetch-depth: 1 - name: Run Claude Code id: claude uses: anthropics/claude-code-action@v1 with: claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} # This is an optional setting that allows Claude to read CI results on PRs additional_permissions: | actions: read # Optional: Give a custom prompt to Claude. If this is not specified, Claude will perform the instructions specified in the comment that tagged it. # prompt: 'Update the pull request description to include a summary of changes.' # Optional: Add claude_args to customize behavior and configuration # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md # or https://code.claude.com/docs/en/cli-reference for available options # claude_args: '--allowed-tools Bash(gh pr:*)' name: Release on: push: paths: - 'VERSION' branches: - main jobs: release: runs-on: ubuntu-latest permissions: content