Candid for Next.js
Get Candid running with your Next.js project.
Install Candid
claude plugin marketplace add ron-myers/candid
claude plugin install candid@candidInitialize Standards
/candid-init --template reactThis generates a Technical.md with React and Next.js-specific rules.
Recommended Rules for Next.js
Add these to your Technical.md:
## Next.js
- API routes validate all request parameters
- getServerSideProps handles errors gracefully
- Pages use appropriate data fetching method (SSG vs SSR vs ISR)
- No client-side secrets exposed (use NEXT_PUBLIC_ prefix intentionally)
- Image component used for all images (not img tags)
- Dynamic imports used for heavy components
- Middleware handles authentication consistentlyFocus Modes for Next.js
Before deploying to Vercel
/candid-review --focus securityCheck for exposed secrets, API vulnerabilities, and authentication issues.
After adding new pages
/candid-review --focus performanceEnsure optimal data fetching and bundle size.
Run Your First Review
Make some changes and run:
/candid-reviewCandid will analyze your Next.js code against your Technical.md standards.
Last updated on