code-review
What it does
This skill reviews code changes for security problems, slow code, bugs and missing error handling. It is for developers who want a second look before merging a change.
When to use it
- βWhen you want a pull request or code change checked before you merge it.
- βWhen you want to know whether a piece of code is safe from injection or authentication problems.
- βWhen you suspect slow database queries or missing edge cases in new code.
Skill link
https://github.com/TencentCloud/Octop/blob/main/src/octop/infra/agents/experts/library/engineering/skills/code-review/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βReview this pull request for security problems and missing error handling before I merge it.β
5 new skills a week. 1 minute to read.
How it works
The agent reads the diff or the files you point to and checks them for security, performance, correctness and style. It returns specific findings with suggested code changes.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
/code-review
If you see unfamiliar placeholders or need to check which tools are connected, see CONNECTORS.md.
Review code changes with a structured lens on security, performance, correctness, and maintainability.
Usage
/code-review <PR URL or file path>
Review the provided code changes: @$1
If no specific file or URL is provided, ask what to review.
How It Works
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β CODE REVIEW β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β STANDALONE (always works) β
β β Paste a diff, PR URL, or point to files β
β β Security audit (OWASP top 10, injection, auth) β
β β Performance review (N+1, memory leaks, complexity) β
β β Correctness (edge cases, error handling, race conditions) β
β β Style (naming, structure, readability) β
β β Actionable suggestions with code examples β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β SUPERCHARGED (when you connect your tools) β
β + Source control: Pull PR diff automatically β
β + Project tracker: Link findings to tickets β
β + Knowledge base: Check against team coding standards β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Review Dimensions
Security
- SQL injection, XSS, CSRF
- Authentication and authorization flaws
- Secrets or credentials in code
- Insecure deserialization
- Path traversal
- SSRF
Performance
- N+1 queries
- Unnecessary memory allocations
- Algorithmic complexity (O(nΒ²) in hot paths)
- Missing database indexes
- Unbounded queries or loops
- Resource leaks
Correctness
- Edge cases (empty input, null, overflow)
- Race conditions and concurrency issues
- Error handling and propagation
- Off-by-one errors
- Type safety
Maintainability
- Naming clarity
- Single responsibility
- Duplication
- Test coverage
- Documentation for non-obvious logic
Output
## Code Review: [PR title or file]
### Summary
[1-2 sentence overview of the changes and overall quality]
### Critical Issues
| # | File | Line | Issue | Severity |
|---|------|------|-------|----------|
| 1 | [file] | [line] | [description] | π΄ Critical |
### Suggestions
| # | File | Line | Suggestion | Category |
|---|------|------|------------|----------|
| 1 | [file] | [line] | [description] | Performance |
### What Looks Good
- [Positive observations]
### Verdict
[Approve / Request Changes / Needs Discussion]
If Connectors Available
If ~~source control is connected:
- Pull the PR diff automatically from the URL
- Check CI status and test results
If ~~project tracker is connected:
- Link findings to related tickets
- Verify the PR addresses the stated requirements
If ~~knowledge base is connected:
- Check changes against team coding standards and style guides
Tips
- Provide context β "This is a hot path" or "This handles PII" helps me focus.
- Specify concerns β "Focus on security" narrows the review.
- Include tests β I'll check test coverage and quality too.
FAQ
Can it read a pull request from a link?
Yes. You can give it a pull request URL, a diff or file paths.
What does it look for?
Issues such as injection risks, N+1 queries, memory leaks, missing edge cases and error handling gaps.
What happens if I do not say what to review?
The agent asks you what to review before starting.
Details
Original description by the author
Review code changes for security, performance, and correctness. Trigger with a PR URL or diff, "review this before I merge", "is this code safe?", or when checking a change for N+1 queries, injection risks, missing edge cases, or error handling gaps.
repo: TencentCloud/Octop
Popularity
- GitHub stars
- 11k
- Ranking position
- #11643
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
polite-greeting
11kHelps your agent open a conversation with a short, friendly and polite greeting, then move quickly to what you need.
medical-source-failover
11kHelps your agent find trusted Chinese medical guidelines, drug information and public health documents when a main source is blocked, slow or hard to read.
cowork-plugin-customizer
11kHelps your agent tailor an existing Claude plugin to an organization's tools and workflows, by replacing placeholders and adjusting skills and settings.
create-cowork-plugin
11kHelps your agent build a new Claude plugin from scratch through guided questions, covering skills, agents, hooks and a ready-to-install package.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.