Skip to content
Back to skills

Team Review

ASecurity

Use when the user requests /team-review, multi-pass or team code review, or a review-fix-test-review cycle.

  • 9 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 23, 2026
ai-agentspythongojavabashnodecode-reviewgitapisecurity

Works with

  • claude code
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 23, 2026

npx -y skills add OXI-717/ai-native-toolkit --skill team-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Team Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Team Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/oxi-717-team-review/badge)](https://www.skillsdirectory.com/skills/oxi-717-team-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: team-review
description: Use when the user requests /team-review, multi-pass or team code review, or a review-fix-test-review cycle.
---

# Review

Run a rigorous code review with optional fix loop:

1. Detect scope.
2. Review through specialized roles.
3. Score and filter findings.
4. Optionally fix.
5. Build/test.
6. Re-review fixed changes.
7. Report remaining risks.

## Runtime Selection

**Claude Code:** if the slash command `/team-review` is available, it remains the
canonical implementation — follow `${CLAUDE_PLUGIN_ROOT}/commands/team-review.md`.
If the command file is not found, fall back to this SKILL.md.

**Codex or portable skill mode:** follow this SKILL.md. If the user explicitly
asked for `team-review`, `/team-review`, "multi-agent review", "team review",
"серия субагентов", or equivalent delegation, use Codex subagents for independent
review roles when available. For a plain "review this" request, do not delegate;
run the roles as local passes in this session.

Do not use Claude-only TeamCreate/TaskCreate/AskUserQuestion APIs in Codex.

## Arguments

Accept the same user-facing shape as `/team-review`:

```text
review [scope] [aspects] [--ask] [--no-fix]
```

Scopes:

- `staged`: `git diff --cached`
- `unstaged`: `git diff`
- `all`: `git diff HEAD`
- `unpushed`: `git diff @{u}..HEAD`
- `last` or `HEAD`: `git diff HEAD~1..HEAD`
- `pr` or `pr N`: `gh pr diff [N]`
- `full` or `project`: whole-codebase review
- paths: review only those files/directories

Auto-detect scope when omitted:

1. unstaged changes
2. staged changes
3. unpushed commits
4. last commit
5. current PR
6. otherwise stop with "No changes to review."

Aspects:

- `code`: conventions, maintainability, local instructions
- `bugs`: logic bugs, regressions, security-adjacent defects
- `tests`: missing behavioral coverage
- `errors`: swallowed errors, weak error handling, silent failure
- `simplify`: needless complexity and duplication
- `adversarial`: design challenges, hidden assumptions, tradeoffs
- `all`: all except `adversarial`

## Review Workflow

First gather:

- relevant diff or file list
- changed file paths
- latest commit context
- root and nested `AGENTS.md` / `CLAUDE.md` instructions when present
- test/build hints from package manager files, Makefile, `pyproject.toml`,
  `go.mod`, `Cargo.toml`, etc.

Then run selected reviewer roles. Use parallel subagents only when explicitly
permitted by the user request; otherwise run each role locally. Each role reports
only actionable findings with confidence >= 80.

**Refute-first stance (all roles):** the reviewer's job is to try to REJECT the
change, not to confirm it. Assume the changed lines are broken until the code
itself proves otherwise; "looks plausible" is not verification. For each changed
behavior, name the input/state/timing that would make it produce a wrong result
and check whether the code handles it. A verdict of "clean" is earned only after
an honest failed attempt to refute — never as the default when nothing jumped out.

Reviewer role prompts:

- **code-reviewer:** local instructions, conventions, readability, API contract
  consistency.
- **bug-hunter:** incorrect behavior, edge cases, state/race issues, security
  defects, migration/data-loss risks.
- **test-analyzer:** missing or weak tests for changed behavior and regression
  risk.
- **error-auditor:** swallowed exceptions, ignored return values, bad retries,
  logs that hide failures.
- **simplifier:** remove complexity only when it clearly reduces risk or code
  surface. Do not report style preferences.
- **adversarial-reviewer:** challenge assumptions. Categorize as CHALLENGE,
  RISK, or SMELL.

For delegated review, assign concrete non-overlapping roles. Ask subagents for
findings only, not edits. Continue local work while they run, then aggregate.

## Finding Standard

Keep only findings that are:

- actionable
- tied to a file/line or specific code path
- likely enough to matter (confidence >= 80)
- not just style, preference, missing comments, or speculative cleanup

Output findings first, ordered by severity:

```markdown
## Critical Issues
1. **[role]** Description — `file:line` — confidence N — fix: ...

## Important Issues
1. **[role]** Description — `file:line` — confidence N — fix: ...

## Tests
- Missing coverage or test command gaps.

## Adversarial Challenges
- **[CHALLENGE/RISK/SMELL]** Description — `file:line` — confidence N.
```

If no findings survive filtering, say the reviewed scope looks clean and mention
test gaps or commands not run.

## Fix Loop

Default behavior matches `/team-review`: fix findings unless the user passed
`--no-fix` or the scope is a remote PR that should stay read-only. If `--ask` is
present, ask before editing.

When fixing:

1. Apply minimal targeted edits only for accepted findings.
2. Do not refactor beyond the issue.
3. Run the most relevant build/test commands.
4. Re-review only the files changed by fixes.
5. Repeat up to 3 total fix/re-review loops.

If a finding cannot be fixed safely in the loop, leave it as remaining risk and
explain why. Create GitHub issues only when the repository has `gh` configured
and the user asked for issue creation or the original `/team-review` workflow clearly
requires it.

## Full Project Mode

For `full` / `project`, map the codebase before reviewing:

```bash
find . -type f \( -name "*.ts" -o -name "*.tsx" -o -name "*.js" -o -name "*.jsx" -o -name "*.py" -o -name "*.go" -o -name "*.rs" -o -name "*.java" -o -name "*.sh" -o -name "*.yml" -o -name "*.yaml" -o -name "*.json" -o -name "*.toml" \) \
  -not -path "*/node_modules/*" -not -path "*/.git/*" -not -path "*/dist/*" -not -path "*/build/*" -not -path "*/.next/*" -not -path "*/vendor/*" -not -path "*/__pycache__/*" -not -path "*/target/*" \
  | head -500
```

Split by directory/domain. Review chunks plus cross-cutting architecture and
security concerns. Keep output focused on real defects, architectural risks, and
high-value simplifications.

## Build/Test Detection

Prefer existing project commands. Detect conservatively:

- `package.json`: `npm test`, `npm run build` when scripts exist
- `Makefile`: `make test`, `make build`, or `make`
- `pyproject.toml` / `setup.py`: `python -m pytest` or repo command
- `go.mod`: `go test ./...`, `go build ./...`
- `Cargo.toml`: `cargo test`, `cargo build`
- `CMakeLists.txt`: configured build/test commands if present
- nginx configs: `nginx -t` when available

If commands are missing or unsafe for the current environment, say so.

## Final Report

End with:

- reviewed scope
- issues fixed and remaining
- build/test results
- files modified
- verdict: `CLEAN`, `ISSUES REMAINING`, or `NEEDS MANUAL REVIEW`

Keep the report concise. Findings and residual risk matter more than describing
the process.

Files in this skill

  • SKILL.md6.7 KB
  • agents/openai.yaml259 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.