param087/saas-starter-skills/observability-and-errors
Claude Code and agent skill by param087/saas-starter-skills
- community
Checking that the SKILL.md file is still in the repository.
Use when adding logging, error tracking, or product analytics — capture errors with context to Sentry, emit structured logs with a request/tenant id, and track key events without leaking PII or secrets.
Install
npx vskill@latest install param087/saas-starter-skills/observability-and-errorsSKILL.md
The same SKILL.md was published earlier as param087/saas-starter-skills/observability-and-errors.
Observability & Errors
Overview
You can't fix what you can't see. A production SaaS needs three signals: error tracking (Sentry) for exceptions with stack + context, structured logs (JSON with a correlation id) for tracing a request, and product analytics (PostHog) for what users actually do. Add a global error boundary, attach tenant/user/request context to every signal, and scrub secrets and PII before anything leaves the process.
When to use
- Standing up a new app's logging/monitoring.
- Debugging issues you can't reproduce locally.
- You need to know which features are used or where users drop off.
Structured logging with context
Generate a requestId per request and thread it (and orgId) through logs and into Sentry's scope — now one search reconstructs a whole request across services.
Error tracking
Use Next.js error.tsx / global-error.tsx boundaries to show a friendly fallback and report the error.
Analytics (sparingly)
- Track meaningful events (
project_created,subscription_upgraded), not every click. - Identify by stable user id; set org as a group. Keep a typed event list so names don't drift.
Pitfalls
- Logging secrets/PII — tokens, passwords, full request bodies, card data. Scrub before logging; send ids, not emails.
- `console.log` soup — unstructured strings are ungreppable. Emit JSON with a correlation id.
- Swallowing errors —
catch {}hides outages. Capture with context, then handle. - No source maps in prod — Sentry stack traces are useless without them; upload on build.
- Tracking everything — noisy analytics cost money and bury the signal. Track decisions, not clicks.
Hand-off
Errors, logs, and events you can actually act on. deployment-and-ci wires source maps + env keys; background-jobs and payments-stripe report failures here.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/observability-and-errors/SKILL.md
Popularity
- Repository stars
- 2
- 7-day trend score
- 5
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/param087/saas-starter-skills/observability-and-errors)