| name | embark-review |
| description | Use this skill to review code changes using semantic search to understand context and impact |
When to Use
- Before committing changes to understand what you're about to commit
- Reviewing pull requests or branches
- Understanding the impact of changes on the rest of the codebase
Review Workflow
1. Check Current Changes
First, see what's changed:
git status
git diff
git diff --staged
git diff main...HEAD
2. Understand Changed Code Context
For each significantly changed file, use semantic search to understand:
- Similar patterns: Find similar code elsewhere that might need the same change
- Callers: Find code that calls the modified functions
- Dependencies: Find code that the modified code depends on
embark search "<code chunk that was changed>"
embark search "calls to <function name> to understand impact"
embark search -p test "tests for <feature being modified>"
3. Review Checklist
For each change, verify:
Example Session
git diff --staged
embark search "authentication middleware pattern"
embark search "uses auth middleware to protect routes"
embark search -p test "auth middleware test"