一键导入
source-command-tech-codereview
// Pre-PR code review for StarMapper. Analyzes recent changes for quality, security, performance, and StarMapper-specific patterns. Supports auto-fix loop and multi-agent modes.
// Pre-PR code review for StarMapper. Analyzes recent changes for quality, security, performance, and StarMapper-specific patterns. Supports auto-fix loop and multi-agent modes.
| Production-tested setup for Tailwind CSS v4 with shadcn/ui, Vite, and React. Use when: initializing React projects with Tailwind v4, setting up shadcn/ui, implementing dark mode, debugging CSS variable issues, fixing theme switching, migrating from Tailwind v3, or encountering color/theming problems. Covers: @theme inline pattern, CSS variable architecture, dark mode with ThemeProvider, component composition, vite.config setup, common v4 gotchas, and production-tested patterns.
Conventional commit with StarMapper scope auto-detection
7-category codebase health audit for StarMapper with weighted scoring and tier system. Run before major releases or architectural changes.
Code duplication analysis for StarMapper using jscpd. Detects repeated patterns across geocoding helpers, GitHub API formatting, compression utils, and cache logic.
Add a StarMapper badge (world map of stargazers) to the current repo's README. Detects OWNER/REPO from git remote and inserts the HTML block in the right place.
Recherche et debug dans les logs Vercel (production/preview). Supporte la recherche par pattern, filtre par niveau d'erreur, par route API, par déploiement. Utiliser pour diagnostiquer des erreurs de production, tracer des requêtes ou analyser des crashs.
| name | source-command-tech-codereview |
| description | Pre-PR code review for StarMapper. Analyzes recent changes for quality, security, performance, and StarMapper-specific patterns. Supports auto-fix loop and multi-agent modes. |
Use this skill when the user asks to run the migrated source command tech-codereview.
Pre-PR local review analyzing recent changes against StarMapper conventions.
/tech:codereview # Standard review of staged/recent changes
/tech:codereview --auto # Review + auto-fix loop (max 3 iterations)
/tech:codereview --multi-agent # 4 parallel agents (comprehensive)
/tech:codereview --focus security # Single dimension
/tech:codereview --focus performance
/tech:codereview --focus types
rtk git diff --staged
rtk git diff HEAD~1
rtk git status
Identify: which files changed, what kind of change (API route, component, lib, schema).
.ts/.tsx files → apply code-conventions.md rulessrc/components/** → apply design-system.md + react-ref-patterns.mdsrc/lib/geocoder* → apply defensive-code-audit.md + rate limit rulessrc/app/api/** → apply API route conventions from architecture.mdprisma/schema.prisma → apply Prisma + Neon adapter pattern rulessrc/components/map/** → apply MapLibre GL 5.x patternsfunction keyword instead of arrow functionany type without justificationssr: false on MapLibre dynamic importimport type for type-only importsw-[Npx], bg-[#xxx])console.log left in codeforEach with async callbacktoLowerCase().trim())cursor: null passed as GraphQL variablememo() opportunity on component that re-renders frequentlyuseMemo() for GeoJSON feature array constructionPromise.all() for independent async operations## Code Review — StarMapper
**Files reviewed**: [list]
**Change type**: [API route / component / lib / schema]
### 🔴 Blocking Issues (N)
1. **[Category]**: [Description]
File: `src/...` line N
Fix: [concrete fix]
### 🟡 Important Issues (N)
1. **[Category]**: [Description]
File: `src/...` line N
Suggestion: [concrete improvement]
### 🟢 Suggestions (N)
1. ...
### ✅ Patterns Verified
- [ ] Arrow functions only
- [ ] Type imports separate
- [ ] No any
- [ ] CSS tokens used (no arbitrary values)
- [ ] MapLibre ssr:false
- [ ] Geocache key normalized
- [ ] Rate limit guards present
- [ ] No console.log
Iterative fix loop (max 3 iterations):
rtk tsc + pnpm lint after each batchSafety: Never edit .env* files. Confirm before modifying > 5 files.
Launch 4 parallel specialized agents and reconcile results:
Agent 1 — Architecture & Chunk Pattern Auditor
Agent 2 — StarMapper Patterns Enforcer
Agent 3 — Performance & Rate Limit Auditor
Agent 4 — Defensive Code Auditor
|| {} on Prisma returnsforEach with asyncReconciliation: