Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ The JS and Python versions are kept in lock-step by `release-please` and guarded
## Extensions Catalog

<!-- BEGIN AUTO-GENERATED CATALOG -->
This repository contains **2 marketplace(s)** with **68 extensions** (58 skills, 10 plugins).
This repository contains **2 marketplace(s)** with **69 extensions** (59 skills, 10 plugins).

### large-codebase

Expand All @@ -115,7 +115,7 @@ OpenHands skills for interacting, improving, and refactoring large codebases

Official skills and plugins for OpenHands — the open-source AI software engineer.

**64 extensions** (56 skills, 8 plugins)
**65 extensions** (57 skills, 8 plugins)

| Name | Type | Description | Commands |
|------|------|-------------|----------|
Expand All @@ -130,6 +130,7 @@ Official skills and plugins for OpenHands — the open-source AI software engine
| bitbucket-data-center | skill | Bitbucket Data Center (self-hosted Bitbucket Server) specifics — authenticate with BITBUCKET_DATA_CENTER_TOKEN, use t... | — |
| city-weather | plugin | Get current weather, time, and precipitation forecast for any city using the free Open-Meteo API. Provides slash comm... | — |
| code-review | skill | Rigorous code review focusing on data structures, simplicity, security, pragmatism, and risk/safety evaluation. Provi... | `/codereview`, `/codereview-roasted` |
| code-review-calibration | skill | Investigate a repository's commit history, bug fixes, reverts, house conventions, testing strategy, CI coverage, and ... | — |
| code-simplifier | skill | Simplifies and refines code across three dimensions - code reuse, code quality, and efficiency - while preserving all... | `/simplify` |
| datadog | skill | Query and analyze Datadog logs, metrics, APM traces, and monitors using the Datadog API. Use when debugging productio... | — |
| deno | skill | Common project operations using Deno (tasks, run/test/lint/fmt, and dependency management). | — |
Expand Down
14 changes: 14 additions & 0 deletions marketplaces/openhands-extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,20 @@
"risk"
]
},
{
"name": "code-review-calibration",
"source": "./skills/code-review-calibration",
"description": "Investigate a repository's commit history, bug fixes, reverts, house conventions, testing strategy, CI coverage, and past PR reviews, then write a calibrated code-review skill whose failure patterns, conventions, and hotspots are all cited from that repository.",
"category": "code-quality",
"keywords": [
"code-review",
"calibration",
"git-history",
"failure-patterns",
"conventions",
"hotspots"
]
},
{
"name": "datadog",
"source": "./skills/datadog",
Expand Down
1 change: 1 addition & 0 deletions skills/code-review-calibration/.claude-plugin
1 change: 1 addition & 0 deletions skills/code-review-calibration/.codex-plugin
20 changes: 20 additions & 0 deletions skills/code-review-calibration/.plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "code-review-calibration",
"version": "1.0.0",
"description": "Investigate a repository's commit history, bug fixes, reverts, house conventions, testing strategy, CI coverage, and past PR reviews, then write a calibrated code-review skill whose failure patterns, conventions, and hotspots are all cited from that repository.",
"author": {
"name": "OpenHands",
"email": "contact@all-hands.dev"
},
"homepage": "https://github.com/OpenHands/extensions",
"repository": "https://github.com/OpenHands/extensions",
"license": "MIT",
"keywords": [
"code-review",
"calibration",
"git-history",
"failure-patterns",
"conventions",
"hotspots"
]
}
42 changes: 42 additions & 0 deletions skills/code-review-calibration/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Code Review Calibration

Generate a code review skill that is calibrated to one specific repository, by investigating that repository's own history and conventions.

## What It Does

Most review guidance is generic, so the author has already heard it. This skill investigates a repo in two halves and writes what it learns to `.agents/skills/code-review.md`:

- **How the codebase breaks** - fix-density hotspots, reverts, fix-inducing commits (SZZ), and temporal coupling between files.
- **How the codebase works** - house conventions and idioms, testing strategy and regression-test discipline, what CI already enforces, and ownership/blast-radius signals.

The result is a reviewer that can say "use `scopedQuery()`, the same omission caused `9f2a1bc`" instead of "consider filtering by tenant."

## When to Use

- "Write a code review skill for this repo"
- "Recalibrate the reviewer to our codebase"
- "Where do bugs cluster here?"
- "What are our testing conventions?"
- The current review skill is producing generic feedback
- Onboarding to an unfamiliar codebase and needing to know its idioms and dangerous areas

## Requirements

- A git repository with real history. Very young or fully squash-merged repos yield weak patterns, and the skill is instructed to say so rather than pad the output.
- Optional: GitHub CLI (`gh`), authenticated. Enables the PR review-comment phase, which shows what the team already knows is easy to get wrong.

## Output

Writes or updates `.agents/skills/code-review.md`. Generated sections are wrapped in `<!-- BEGIN GENERATED -->` / `<!-- END GENERATED -->` markers so later runs can refresh the evidence without discarding hand-written content.

Ground rules the generated file must satisfy:

- Every failure pattern cites two or more commit SHAs. Uncitable observations are nits and get dropped.
- Six to twelve patterns. Beyond roughly fifteen the review loses focus.
- Patterns that a design change made impossible move to a Retired section rather than being deleted.

## Related Skills

- `code-review` - perform a code review
- `learn-from-code-review` - distill PR review feedback into guidelines
- `agent-memory` - persist repository knowledge in AGENTS.md
Loading
Loading