Loading...
Loading...
Review code changes for quality, correctness, and best practices. Use when asked to review a PR, review changes, or assess code quality before merge.
npx skill4agent add cartridge-gg/controller code-review# For a PR
gh pr view <PR_NUMBER>
gh pr diff <PR_NUMBER>
# For local changes
git diff origin/main...HEAD
git log origin/main..HEAD --onelineanypnpm build# Lint and format check
pnpm lint:check
# Type checking via build
pnpm build
# Unit tests
pnpm test
# Visual regression (if UI changes)
pnpm test:storybook## Summary
Brief overall assessment of the changes.
## Positive Aspects
- What's done well
## Required Changes
- Critical issues that must be fixed
## Suggestions
- Nice-to-have improvements
## Questions
- Clarifications neededanyunknown**[Blocking]** Security concern in `packages/keychain/src/hooks/connection.ts:45`
The origin validation is missing for this postMessage handler. This could allow malicious sites to send messages to the iframe.
Suggested fix:
```typescript
if (event.origin !== expectedOrigin) {
return;
}undefined