xiaohongshu
xiaohongshu
gmacko-dev-pr-review
Use when (1) reviewing a pull request against coding standards, (2) verifying PR meets acceptance criteria from feature plan, (3) checking for common issues before merge. Reviews PRs against plan and project standards.
Full skill instructions
Review pull requests against coding standards, INITIAL_PLAN.md, and feature acceptance criteria.
digraph pr_review {
rankdir=TB;
node [shape=box];
start [label="Start Review" shape=ellipse];
fetch [label="1. Fetch PR Context"];
plan [label="2. Check Against Plan"];
standards [label="3. Check Coding Standards"];
security [label="4. Security Review"];
tests [label="5. Test Coverage"];
summary [label="6. Generate Summary"];
decision [label="7. Recommendation"];
done [label="Review Complete" shape=ellipse];
start -> fetch -> plan -> standards;
standards -> security -> tests -> summary -> decision -> done;
}
[Type]: Description)interface over type for objectsany types (use unknown if needed)@repo/* workspace packages@/* internal aliases.env files modified (only .env.example)useMemo/useCallbackGet PR details:
# Get PR info
gh pr view [number] --json title,body,labels,files,additions,deletions
# Get diff
gh pr diff [number]
# Get related issues
gh pr view [number] --json linkedIssues
Identify:
If PR relates to a feature plan:
docs/ai/handoffs/{feature}-plan.md## Plan Alignment Check
Plan: docs/ai/handoffs/dark-mode-plan.md
Issue: #456
### Acceptance Criteria
- [x] Toggle switches theme (IMPLEMENTED)
- [x] Preference persisted (IMPLEMENTED)
- [ ] Respects system preference (NOT FOUND)
### Scope Notes
- PR includes additional animation (not in plan) - ASK about scope
Review code against project standards:
## Code Quality Review
### TypeScript
- [x] Strict mode compliance
- [x] No `any` types
- [!] Line 45: Consider using `unknown` instead of type assertion
### Naming
- [x] File naming correct
- [x] Component naming correct
- [!] Line 23: Variable `x` should be more descriptive
### Imports
- [x] Import order correct
- [!] Line 5: External import should come before @repo import
### Patterns
- [x] tRPC procedures follow patterns
- [x] Error handling present
Check for security issues:
## Security Review
- [x] No hardcoded secrets
- [x] .env files not modified
- [x] Auth checks in place
- [x] Input validation present
- [!] Line 78: Consider rate limiting this endpoint
Verify testing:
## Test Coverage
- [ ] Unit tests for ThemeToggle component
- [x] Integration test for theme API
- [!] No E2E tests for theme switching flow
### Manual Testing Checklist
- [ ] Web: Theme toggles correctly
- [ ] Web: Preference persists on refresh
- [ ] Mobile: Theme toggles correctly
- [ ] Mobile: Preference persists
Create review summary:
# PR Review Summary
**PR**: #123 - [Feature]: Add dark mode support
**Reviewer**: AI Assistant
**Date**: 2025-01-05
## Overall Assessment
**Recommendation**: APPROVE with minor suggestions
## Highlights
- Clean implementation of theme switching
- Good use of Zustand for state management
- Proper separation of web/mobile code
## Issues Found
### Must Fix (Blocking)
None
### Should Fix (Non-blocking)
1. **Line 45**: Use `unknown` type instead of assertion
2. **Line 78**: Add rate limiting to theme endpoint
### Consider (Suggestions)
1. Add unit tests for ThemeToggle
2. Consider adding system preference detection
3. Animation could be smoother
## Checklist Completion
- Plan alignment: 2/3 criteria met
- Code quality: 8/10 checks passed
- Security: All checks passed
- Tests: Partial coverage
## Files Reviewed
- `packages/store/src/stores/theme.ts` - OK
- `apps/web/src/components/theme-toggle.tsx` - Minor issues
- `apps/mobile/src/screens/settings.tsx` - OK
- `packages/api/src/routers/user.ts` - Suggestion
Provide clear recommendation:
| Status | Meaning |
|---|---|
| APPROVE | Good to merge |
| APPROVE_WITH_SUGGESTIONS | Can merge, improvements optional |
| REQUEST_CHANGES | Must address issues before merge |
| NEEDS_DISCUSSION | Requires clarification |
LGTM! Clean implementation that follows our patterns.
Minor suggestions:
- Consider adding tests for edge cases
- The animation could be smoother
Approved for merge.
Good progress! A few things need attention before merge:
**Must fix:**
1. Line 45: Security issue - input not validated
2. Line 78: Missing auth check
**Questions:**
- Is the scope creep (animations) intentional?
Please address the blocking issues and I'll re-review.
| Rationalization | Correction |
|---|---|
| "It's a small change, no review needed" | ALL PRs get reviewed, even small ones |
| "Tests can be added later" | At minimum, document what needs testing |
| "Security isn't my concern" | ALWAYS check for secrets and auth |
| "The code works, that's enough" | Standards matter for maintainability |
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience