| name | context-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
jbcontext search "<code chunk that was changed>"
jbcontext search "calls to <function name> to understand impact"
jbcontext search -p test "tests for <feature being modified>"
3. Review Checklist
For each change, verify:
Example Session
git diff --staged
jbcontext search "authentication middleware pattern"
jbcontext search "uses auth middleware to protect routes"
jbcontext search -p test "auth middleware test"