Metadata-Version: 2.4
Name: gerrit-agent-skill
Version: 0.1.0
Summary: An AI-powered Agent and CLI for Gerrit Code Review
Project-URL: Homepage, https://github.com/madroidmaq/gerrit-agent-skill
Project-URL: Repository, https://github.com/madroidmaq/gerrit-agent-skill
Project-URL: Issues, https://github.com/madroidmaq/gerrit-agent-skill/issues
Author-email: madroid <madroidmaq@gmail.com>
License: MIT
Keywords: agent,ai,ai-powered,claude-code,cli,code-analysis,code-quality,code-review,codex,devtools,gemini-cli,gerrit,git,github-cli,llm
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: Software Development :: Version Control :: Git
Classifier: Topic :: Utilities
Requires-Python: >=3.10
Requires-Dist: click>=8.1.0
Requires-Dist: httpx>=0.27.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: python-dotenv>=1.0.0
Requires-Dist: rich>=13.0.0
Provides-Extra: dev
Requires-Dist: black>=24.0.0; extra == 'dev'
Requires-Dist: mypy>=1.11.0; extra == 'dev'
Requires-Dist: pytest-cov>=4.1.0; extra == 'dev'
Requires-Dist: pytest>=8.0.0; extra == 'dev'
Requires-Dist: respx>=0.21.0; extra == 'dev'
Requires-Dist: ruff>=0.6.0; extra == 'dev'
Description-Content-Type: text/markdown

<div align="center">

# 🤖 Gerrit Agent

**AI-Powered Code Review Assistant for Gerrit**

[![PyPI version](https://badge.fury.io/py/gerrit-agent-skill.svg)](https://badge.fury.io/py/gerrit-agent-skill)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)

Transform your Gerrit code reviews with AI-powered analysis using **Claude Code**, **Gemini CLI**, and other advanced Code Agents.

[Features](#-features) • [Quick Start](#-quick-start) • [Usage](#-usage-modes) • [Documentation](#-documentation) • [Contributing](#-contributing)

</div>

---

## 📖 Overview

**Gerrit Agent** is an AI-powered code review platform that integrates cutting-edge Code Agents (Claude Code, Gemini CLI, etc.) with Gerrit Code Review. It provides automated code analysis, intelligent inline comments, and multi-agent review workflows - all directly from your terminal.

### Why Gerrit Agent?

- 🧠 **Multiple AI Agents**: Use Claude, Gemini, or any Claude Agent Skill Protocol-compatible agent
- 🎯 **Smart Reviews**: Multi-agent analysis with confidence scoring (only shows high-confidence findings ≥80%)
- 💬 **Inline Comments**: Automatically posts structured feedback directly to Gerrit changes
- ⚡ **Fast CLI**: Modern, GitHub CLI-like interface for Gerrit operations
- 🔌 **Extensible**: Built on open protocols, works with any compatible Code Agent

---

## ✨ Features

**🤖 AI Agent Integrations:**
- Claude Code Skill (multi-agent review, confidence scoring)
- Gemini CLI Extension (natural language reviews)
- Compatible with Claude Agent Skill Protocol

**💻 CLI Operations:**
List, view, checkout, review changes • Inline comments • JSON/Table output

**🛡️ Developer-Friendly:**
HTTP token auth • Rich terminal UI • `.env` config • Comprehensive tests

---


## 🚀 Quick Start

**Install:**
```bash
pip install gerrit-agent-skill
```

**Configure:**
```bash
export GERRIT_URL=https://gerrit.example.com
export GERRIT_USERNAME=your_username
export GERRIT_TOKEN=your_http_token
```

**Verify:**
```bash
gerrit --help
```

---

## 🎯 Usage Modes

### 🤖 Claude Code Skill

Multi-agent code review with confidence scoring.

```bash
# Install skill
claude --skill-dir /path/to/gerrit-agent-skill/skills/gerrit

# Use it
/gerrit:review 12345
```

Features: 3 specialized analyzers, confidence scoring (≥80%), user confirmation before posting.

📚 [Full documentation →](skills/gerrit/README.md)

---

### 🧠 Gemini CLI Extension

Natural language code reviews with "Principal Software Engineer" persona.

```bash
# Install
gemini extensions link https://github.com/madroidmaq/gerrit-agent-skill/gemini-cli-extensions

# Use it
gemini "Review change 12345"
gemini /gerrit:review 12345
```

📚 [Full documentation →](gemini-cli-extensions/README.md)

---

### 💻 Standalone CLI

GitHub CLI-like experience for Gerrit operations.

```bash
# List changes
gerrit list --owner me --status open

# View change
gerrit show 12345 --diff

# Checkout and review
gerrit checkout 12345
gerrit review 12345 --code-review +2 -m "LGTM!"
```

📚 [Full CLI reference →](docs/CLI_REFERENCE.md)

---

## 📚 Documentation

- [CLI Reference](docs/CLI_REFERENCE.md)
- [Claude Skill Setup](skills/gerrit/README.md)
- [Gemini Extension](gemini-cli-extensions/README.md)

---

## 🤝 Contributing

Contributions welcome! See [Issues](https://github.com/madroidmaq/gerrit-agent-skill/issues) for planned features.

```bash
git clone https://github.com/madroidmaq/gerrit-agent-skill.git && cd gerrit-agent-skill
uv sync --extra dev && uv run pytest
```

---


## 📄 License

MIT License - see [LICENSE](LICENSE) file.

---

<div align="center">

Built with [Click](https://click.palletsprojects.com/), [Rich](https://rich.readthedocs.io/), [httpx](https://www.python-httpx.org/), [Pydantic](https://pydantic-docs.helpmanual.io/)

**If you find this helpful, please ⭐ star the repo!**

[Report Bug](https://github.com/madroidmaq/gerrit-agent-skill/issues) • [Request Feature](https://github.com/madroidmaq/gerrit-agent-skill/issues)

</div>
