monitoring-setup
from shipshitdev/library
Claude, Cursor, Codex skills and commands
3 stars0 forksUpdated Jan 25, 2026
npx skills add https://github.com/shipshitdev/library --skill monitoring-setupSKILL.md
Monitoring Setup Expert
Overview
This skill enables AI assistants to set up comprehensive monitoring for NestJS and Next.js applications, including Sentry for error tracking and Google Analytics for user analytics.
When to Use This Skill
This skill activates when users:
- Need to set up error tracking (Sentry)
- Want to configure Google Analytics
- Need monitoring for production applications
- Want to track application errors and user behavior
Sentry Setup
NestJS Backend
- Install:
npm install @sentry/node @sentry/profiling-node - Initialize in
main.tsbefore app creation - Configure DSN via
SENTRY_DSNenvironment variable - Set appropriate sample rates for production
Next.js Frontend
- Install:
npm install @sentry/nextjs - Run:
npx @sentry/wizard@latest -i nextjs - Configure client/server/edge configs
- Set
NEXT_PUBLIC_SENTRY_DSNfor client-side
Google Analytics Setup
Next.js Setup
- Add Google Analytics script to root layout
- Use
NEXT_PUBLIC_GA_MEASUREMENT_ID(format: G-XXXXXXXXXX) - Create analytics utility functions for event tracking
- Set up page view tracking
Common Events
- User signup/login
- Purchases/conversions
- Feature usage
- Custom business events
Best Practices
- Use different DSNs for dev/prod
- Set appropriate sample rates
- Respect user privacy (GDPR/CCPA)
- Don't track sensitive data
- Set up alerts for critical errors
Integration
This skill integrates with /monitoring-setup command for automated setup workflows.
Repository
shipshitdev/libraryParent repository
Repository Stats
Stars3
Forks0