Project Configuration
Claude Review Automation uses a configuration file in each project to customize review behavior.
Prerequisites
Before configuring a project, ensure:
1. CLI Authentication
For GitLab projects:
bash
# Install glab
sudo apt install glab
# Authenticate
glab auth loginFor GitHub projects:
bash
# Install gh
sudo apt install gh
# Authenticate
gh auth login2. Webhook Setup
GitLab Webhook:
- Go to Settings → Webhooks in your GitLab project
- Add webhook:
- URL:
http://<your-server>:3847/webhooks/gitlab - Trigger: Merge request events
- URL:
- Click Add webhook
GitHub Webhook:
- Go to Settings → Webhooks in your GitHub repository
- Add webhook:
- Payload URL:
http://<your-server>:3847/webhooks/github - Content type:
application/json - Events: Pull requests
- Payload URL:
- Click Add webhook
Configuration File
Create a config file at .claude/reviews/config.json in your project:
json
{
"github": false,
"gitlab": true,
"defaultModel": "opus",
"reviewSkill": "review-front",
"reviewFollowupSkill": "review-followup"
}Configuration Options
| Option | Type | Required | Description |
|---|---|---|---|
github | boolean | Yes | Enable GitHub integration |
gitlab | boolean | Yes | Enable GitLab integration |
defaultModel | string | Yes | Default Claude model (opus or sonnet) |
reviewSkill | string | Yes | Name of the skill to use for initial code reviews |
reviewFollowupSkill | string | Yes | Name of the skill to use for follow-up reviews |
Note: Set either github: true or gitlab: true, not both.
Skills Setup
Skills must be located in .claude/skills/<skill-name>/SKILL.md in your project.
Directory Structure
your-project/
├── .claude/
│ ├── reviews/
│ │ └── config.json # Review configuration
│ └── skills/
│ ├── review-front/ # Your review skill
│ │ └── SKILL.md
│ └── review-followup/ # Your follow-up skill
│ └── SKILL.mdSkill File Format
Each skill must have a SKILL.md file with YAML frontmatter:
markdown
---
name: review-front
description: Code review skill for frontend projects
---
# Your Skill Content
[Instructions for Claude...]Validation
When loading a project config, the dashboard validates:
- Config file exists at
.claude/reviews/config.json - Required fields are present (
github,gitlab,defaultModel,reviewSkill,reviewFollowupSkill) reviewSkilldirectory exists withSKILL.mdreviewFollowupSkilldirectory exists withSKILL.md
If validation fails, an error message is displayed with details.
Examples
See the /examples directory for:
config.example.json- Example configuration fileskills/review-example/- Example review skillskills/review-followup-example/- Example follow-up skillskills/TEMPLATE.md- Skill template
Loading in Dashboard
- Open the Claude Review Dashboard at
http://localhost:3847 - Enter your project path (e.g.,
/home/user/my-project) - Click "Load" to load the configuration
- The dashboard will:
- Validate the config and skills
- Display the active platform (GitHub CLI or GitLab CLI)
- Show CLI authentication status
- Apply the default model setting
The project path is saved in your browser's localStorage, so you don't need to re-enter it on page reload.