一键导入
code-review
Review code changes for quality, correctness, and best practices. Use when asked to review a PR, review changes, or assess code quality before merge.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Review code changes for quality, correctness, and best practices. Use when asked to review a PR, review changes, or assess code quality before merge.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run commands in specific workspace packages using pnpm filters. Use to execute commands in specific packages within the monorepo.
Run the test suite for the Cartridge Controller monorepo. Use when validating changes, before committing, or when asked to run tests.
Clean all build artifacts and rebuild from scratch. Use when experiencing stale build artifacts, Turbo cache issues, mysterious build failures, or after dependency updates.
Regenerate GraphQL types from API schema. Use when API schema has changed, GraphQL queries/mutations added or modified, or type errors in API calls.
Dispatch a release using GitHub Actions. Use when asked to create a release, publish to npm, or start the release process.
Run all pre-commit checks before committing changes. Use to manually verify changes pass all quality gates before committing.
| name | code-review |
| description | Review code changes for quality, correctness, and best practices. Use when asked to review a PR, review changes, or assess code quality before merge. |
This skill provides guidance for reviewing code in the Cartridge Controller monorepo, which implements a gaming-specific smart contract wallet ecosystem for StarkNet.
# 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 --oneline
any)pnpm build passes)controller/ (SDK):
keychain/ (Secure iframe):
connector/ (Integration layer):
# 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
Structure your review as:
## 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 needed
any, unknown without narrowing)**[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;
}