Code Review
sortie-ai/sortie
Reviews pull requests in this repository for the defect classes a mechanical checklist misses: documentation that outlived the code it describes, reaction and retry state that leaks or clobbers a…
Distill code review feedback from GitHub PRs into reusable skills and guidelines.
$ npx skills add OpenHands/extensions --skill learn-from-code-review -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install OpenHands/extensions learn-from-code-review --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/OpenHands/extensions.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/learn-from-code-review .claude/skills/learn-from-code-review && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "learn-from-code-review" agent skill from https://github.com/OpenHands/extensions/tree/main/skills/learn-from-code-review into .claude/skills/learn-from-code-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "learn-from-code-review", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/OpenHands/extensions/tree/main/skills/learn-from-code-reviewType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add OpenHands/extensions --skill learn-from-code-review -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install OpenHands/extensions learn-from-code-review --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OpenHands/extensions.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/learn-from-code-review .agents/skills/learn-from-code-review && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "learn-from-code-review" agent skill from https://github.com/OpenHands/extensions/tree/main/skills/learn-from-code-review into .agents/skills/learn-from-code-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "learn-from-code-review", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add OpenHands/extensions --skill learn-from-code-review -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install OpenHands/extensions learn-from-code-review --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OpenHands/extensions.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/learn-from-code-review .cursor/skills/learn-from-code-review && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "learn-from-code-review" agent skill from https://github.com/OpenHands/extensions/tree/main/skills/learn-from-code-review into .cursor/skills/learn-from-code-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "learn-from-code-review", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/OpenHands/extensions.git --path skills/learn-from-code-review--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add OpenHands/extensions --skill learn-from-code-review -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install OpenHands/extensions learn-from-code-review --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OpenHands/extensions.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/learn-from-code-review .gemini/skills/learn-from-code-review && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "learn-from-code-review" agent skill from https://github.com/OpenHands/extensions/tree/main/skills/learn-from-code-review into .gemini/skills/learn-from-code-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "learn-from-code-review", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install OpenHands/extensions learn-from-code-reviewInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add OpenHands/extensions --skill learn-from-code-review -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/OpenHands/extensions.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/learn-from-code-review .github/skills/learn-from-code-review && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "learn-from-code-review" agent skill from https://github.com/OpenHands/extensions/tree/main/skills/learn-from-code-review into .github/skills/learn-from-code-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "learn-from-code-review", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add OpenHands/extensions --skill learn-from-code-review -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install OpenHands/extensions learn-from-code-review --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OpenHands/extensions.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/learn-from-code-review .opencode/skills/learn-from-code-review && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "learn-from-code-review" agent skill from https://github.com/OpenHands/extensions/tree/main/skills/learn-from-code-review into .opencode/skills/learn-from-code-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "learn-from-code-review", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
learn-from-code-reviewDistill code review feedback from GitHub PRs into reusable skills and guidelines.
Learn From Code Review is an agent skill from OpenHands/extensions. Distill code review feedback from GitHub PRs into reusable skills and guidelines. This skill should be used when users ask to "learn from code reviews", "distill PR feedback", "improve coding standards", "extract learnings from reviews", or want to generate skills/guidelines from historical review comments.
Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files (for example `.plugin/plugin.json`, `README.md` and `commands/learn-from-reviews.md`).
It sits in Development, covering Code review and Code quality. It works with GitHub. The repository describes itself as: Public registry for OpenHands extensions. The licence is MIT.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit d008b81. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
ghFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use gh, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
GITHUB_TOKENFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Learn From Code Review loads about 1.6k tokens when it runs. Until then it costs about 83 tokens; SKILL.md has 342 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from OpenHands/extensions at commit d008b81, republished under its MIT licence (© OpenHands). 342 words, ~1,574 tokens.
.claude/skills/learn-from-code-review/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.Analyze code review comments from GitHub pull requests and distill them into reusable skills or repository guidelines that improve future code quality.
Code review feedback contains valuable institutional knowledge that often gets buried across hundreds of PRs. This skill extracts meaningful patterns from review comments and transforms them into:
.openhands/skills/ for domain-specific patternsGITHUB_TOKEN environment variable must be setgh) should be availableDetermine the repository to analyze:
# Get current repo info
gh repo view --json nameWithOwner -q '.nameWithOwner'If not in a repository, ask the user which repository to analyze.
Retrieve PR review comments from the repository:
# Fetch merged PRs from the last 30 days (adjustable)
gh pr list --repo {owner}/{repo} \
--state merged \
--limit 50 \
--json number,title,mergedAt
# For each PR, fetch review comments
gh api repos/{owner}/{repo}/pulls/{pr_number}/comments \
--jq '.[] | {body: .body, path: .path, user: .user.login, created_at: .created_at}'
# Also fetch review-level comments (not tied to specific lines)
gh api repos/{owner}/{repo}/pulls/{pr_number}/reviews \
--jq '.[] | select(.body != "") | {body: .body, user: .user.login, state: .state}'Apply noise filtering to keep only meaningful feedback:
Exclude:
Categorize remaining comments by:
For each category with sufficient examples (3+ similar comments), identify:
If clear, actionable patterns emerge, generate focused skill files. If no clear patterns emerge, report this to the user—it's fine to produce no output when the codebase already has strong conventions or when review comments don't cluster into recurring themes.
When creating skills, place them in .openhands/skills/{domain-name}/SKILL.md:
---
name: database-queries
description: Database query patterns and best practices for this repository.
---
# Database Query Guidelines
### Always Use Parameterized Queries
[Pattern description with examples]
### Connection Pool Management
[Pattern description with examples]Prefer skills over AGENTS.md updates, since AGENTS.md typically already contains general coding guidelines.
Use the create_pr tool to open a draft PR with the proposed changes. The PR description should include:
---
name: api-error-handling
description: API error handling patterns for this repository.
---
# API Error Handling
## Always Return Structured Errors
❌ Avoid:
```python
return {"error": str(e)}✅ Prefer:
return {
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid input",
"details": {"field": "email", "reason": "Invalid format"}
}
}logger.error(f"API error in {endpoint}: {e}", exc_info=True)
return error_response(e)
## Defaults
This workflow analyzes PRs from the past 30 days by default.
## Best Practices
1. **Run periodically** - Schedule monthly or quarterly to capture evolving patterns
2. **Review before merging** - Generated content is a draft; human review is essential
3. **Iterate** - Refine patterns based on team feedback
4. **Avoid duplication** - Check existing AGENTS.md and skills before adding
5. **Cite sources** - Reference PR numbers when documenting patterns
## Error Handling
Handle these common edge cases gracefully:
- **Repository has few PRs**: If fewer than 10 merged PRs exist in the timeframe, inform the user that there may not be enough data to identify patterns. Proceed with analysis but note the limited sample size.
- **No patterns emerge**: When comments don't cluster into recurring themes (common for well-established codebases), report this to the user and suggest either expanding the time range or that the codebase may already have strong conventions.
- **Token lacks repository access**: If the GitHub API returns 403/404, explain that the token may not have access to the repository and suggest checking token permissions.
- **`gh` CLI unavailable**: Fall back to direct GitHub API calls using `curl` with `$GITHUB_TOKEN`, or inform the user that `gh` needs to be installed.
## Limitations
- Only analyzes accessible repositories (requires appropriate permissions)
- Cannot capture verbal feedback from pair programming or meetings
- Patterns may reflect individual reviewer preferences vs. team consensus
- Historical comments may reference outdated code patterns
## Additional Resources
For posting structured code reviews, see the `github-pr-review` skill.
For creating new skills, see the `skill-creator` skill.© OpenHands, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 5 other files in skills/learn-from-code-review of OpenHands/extensions.
Open the folder on GitHubat commit d008b81
Learn From Code Review next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Learn From Code Review this skillOpenHands/extensions | 157 | — | ~1.6k | Automated safety check: Pass | MIT | |
| Code Reviewsortie-ai/sortie | 196 | — | ~2.9k | Automated safety check: Pass | MIT | |
| Reviewing Changesbitwarden/ios | 694 | — | ~1.1k | Automated safety check: Pass | GPL-3.0 | |
| PR Babysitteropeninterpreter/openinterpreter | 69k | 3 repos | ~4.2k | Automated safety check: Pass | Apache-2.0 | |
| WooCommerce Code Reviewwoocommerce/woocommerce | 11k | 3 repos | ~1.1k | Automated safety check: Pass | Custom licence | |
| GitHub Review Iterationprisma/orm | 48k | — | ~2.2k | Automated safety check: Pass | Apache-2.0 |
sortie-ai/sortie
Reviews pull requests in this repository for the defect classes a mechanical checklist misses: documentation that outlived the code it describes, reaction and retry state that leaks or clobbers a…
bitwarden/ios
Performs comprehensive code reviews for Bitwarden iOS projects, verifying architecture compliance, style guidelines, compilation safety, test coverage, and security requirements.
openinterpreter/openinterpreter
Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.
woocommerce/woocommerce
Reviews WooCommerce code changes against the project's standards, flagging backend PHP architecture, naming, documentation, data integrity and testing violations.
prisma/orm
Runs a loop on a GitHub pull request: fetch review state, triage comments into actions, implement them and resolve threads, repeating until nothing actionable is left.
microsoft/garnet
Checks that a pull request's title and description match its implementation and reviews the code for Garnet best practices, reporting findings without posting them.
OpenHands/extensions
Evaluate how well a codebase supports autonomous AI-assisted development.
OpenHands/extensions
Build and automate Discord integrations (bots, webhooks, slash commands, and REST API workflows).
OpenHands/extensions
Interact with GitHub repositories, pull requests, issues, and workflows using the GITHUBTOKEN environment variable and GitHub CLI.
OpenHands/extensions
Create an automation that implements GitHub issues when a configurable trigger label is applied.
OpenHands/extensions
This skill should be used when the user asks to "monitor a GitHub repository", "watch GitHub for issues or PRs", "respond to @OpenHands mentions on GitHub", "set up an OpenHands GitHub integration"…
OpenHands/extensions
Create an automation that implements GitLab issues when a configurable trigger label is applied.
Works with
Categories
Distill code review feedback from GitHub PRs into reusable skills and guidelines. Learn From Code Review is an agent skill from OpenHands/extensions. Distill code review feedback from GitHub PRs into reusable skills and guidelines.
Learn From Code Review fits situations like: tasks that involve Code review; tasks that involve Code quality.
Run `npx skills add OpenHands/extensions --skill learn-from-code-review -a claude-code`. Or copy the skill folder (skills/learn-from-code-review in OpenHands/extensions) into .claude/skills/learn-from-code-review in your project. Claude Code loads it when a task matches its description.
Run `npx skills add OpenHands/extensions --skill learn-from-code-review -a codex`. Or copy the skill folder (skills/learn-from-code-review in OpenHands/extensions) into .agents/skills/learn-from-code-review in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add OpenHands/extensions --skill learn-from-code-review -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/learn-from-code-review, .gemini/skills/learn-from-code-review, .github/skills/learn-from-code-review and .opencode/skills/learn-from-code-review in your project.
Going by SKILL.md and its folder, Learn From Code Review needs the command-line tools its instructions call (gh) and credentials named GITHUB_TOKEN. Our summary lists: Python 3; A credential in GITHUB_TOKEN.
SKILL.md contains no URLs. Its commands use gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Learn From Code Review is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.6k tokens (SKILL.md is roughly 6.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Learn From Code Review: Code Review (sortie-ai/sortie, 196 stars), Reviewing Changes (bitwarden/ios, 694 stars), PR Babysitter (openinterpreter/openinterpreter, 69k stars) and WooCommerce Code Review (woocommerce/woocommerce, 11k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
OpenHands (a GitHub organization) maintains it in OpenHands/extensions, which has 157 GitHub stars. The repository holds 78 skills in this directory. The repository was last updated on October 6, 2026.
Source: OpenHands/extensions on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.