code-review

Run automated code review using cubic review with amp review fallback. Use when the user wants to review code changes, check PR quality, analyze code for issues, or run automated code review tools.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "code-review" with this command: npx skills add pc-style/pc-skills/pc-style-pc-skills-code-review

Code Review

Run automated code review using cubic review with amp review as fallback.

When to Use

  • Review code changes before committing
  • Check PR quality
  • Analyze code for issues
  • Any request to "review code", "run code review", or "check quality"

Workflow

1. Check What to Review

Review staged changes:

git diff --staged --stat

Review specific files:

git diff path/to/file

Review current branch vs main:

git diff main...HEAD --stat

2. Run Code Review

Primary: cubic review

cubic review

With options:

cubic review --staged
cubic review path/to/file.ts
cubic review --diff main...HEAD

3. Fallback if cubic fails

If cubic review fails or is unavailable, use amp review:

amp review

With options:

amp review --staged
amp review path/to/file.ts

Complete Flow with Fallback

# Try cubic first
cubic review

# If cubic fails, fall back to amp
amp review

What They Check

cubic review typically analyzes:

  • Code quality and best practices
  • Potential bugs and issues
  • Performance concerns
  • Security vulnerabilities
  • Style violations

amp review typically provides:

  • Similar code quality checks
  • Alternative analysis engine
  • Different rule sets and heuristics

Review Scenarios

Review all staged changes:

cubic review --staged || amp review --staged

Review before committing:

git add .
cubic review --staged || amp review --staged
# Fix issues, then commit
git commit -m "fix: resolve review issues"

Review specific file:

cubic review src/auth.ts || amp review src/auth.ts

Review branch changes:

cubic review --diff main...HEAD || amp review --diff main...HEAD

Interpreting Results

  • Address critical issues first (security, bugs)
  • Consider warnings for maintainability
  • Style issues can be auto-fixed in many cases
  • Not all suggestions need to be implemented

Best Practices

  • Run review before committing
  • Fix critical issues immediately
  • Use reviews to learn patterns
  • Don't blindly accept all suggestions
  • Consider the context of changes
  • Run in CI/CD for automated checks

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

explore-codebase

No summary provided by upstream source.

Repository SourceNeeds Review
General

blog-post

No summary provided by upstream source.

Repository SourceNeeds Review
General

git-push-origin

No summary provided by upstream source.

Repository SourceNeeds Review