xiaohongshu
xiaohongshu
fix-observability
Run /check-observability, then fix the highest priority observability issue. Creates one fix per invocation. Invoke again for next issue. Use /log-observability-issues to create issues without fixing.
Full skill instructions
Fix the highest priority observability gap.
/check-observability to audit monitoringThis is a fixer. It fixes one issue at a time. Run again for next issue. Use /observability for full setup.
Invoke /check-observability skill to get prioritized findings.
Fix in this order:
No error tracking (P0):
pnpm add @sentry/nextjs
npx @sentry/wizard@latest -i nextjs
Or manual setup:
~/.claude/skills/sentry-observability/scripts/init_sentry.sh
No health endpoint (P0):
Create app/api/health/route.ts:
export async function GET() {
const checks = {
status: 'ok',
timestamp: new Date().toISOString(),
// Add service checks as needed
};
return Response.json(checks);
}
Sentry misconfigured (P1):
Add to .env.local:
NEXT_PUBLIC_SENTRY_DSN=your-dsn
SENTRY_AUTH_TOKEN=your-token
SENTRY_ORG=your-org
SENTRY_PROJECT=your-project
No structured logging (P1):
pnpm add pino
Create lib/logger.ts:
import pino from 'pino';
export const logger = pino({
level: process.env.LOG_LEVEL || 'info',
});
No alerting (P1): Create alert via Sentry CLI or scripts:
~/.claude/skills/sentry-observability/scripts/create_alert.sh --name "New Errors" --type issue
No PostHog analytics (P1):
pnpm add posthog-js
Create analytics module from template:
~/.claude/skills/observability/references/posthog-patterns.mdlib/analytics/posthog.tsCreate PostHogProvider:
components/providers/PostHogProvider.tsxUpdate app/layout.tsx:
<PostHogProvider>Add env vars to .env.example:
# PostHog [REQUIRED] - Product analytics
NEXT_PUBLIC_POSTHOG_KEY=
NEXT_PUBLIC_POSTHOG_HOST=https://us.i.posthog.com
pnpm dev
# Open browser, check PostHog debug mode shows events
# Check PostHog dashboard for incoming events
PostHog installed but not configured (P2):
Add to .env.local:
NEXT_PUBLIC_POSTHOG_KEY=phc_xxx # From PostHog project settings
NEXT_PUBLIC_POSTHOG_HOST=https://us.i.posthog.com
After fix:
# Sentry works
~/.claude/skills/sentry-observability/scripts/verify_setup.sh
# Health endpoint works
curl -s http://localhost:3000/api/health | jq
Fixed: [P0] No error tracking
Installed: @sentry/nextjs
Configured: sentry.client.config.ts, sentry.server.config.ts
Added: SENTRY_DSN to .env.local
Verified: Sentry SDK initialized
Next highest priority: [P0] No health endpoint
Run /fix-observability again to continue.
Before making changes:
git checkout -b infra/observability-$(date +%Y%m%d)
This skill fixes one issue at a time. Benefits:
Run /fix-observability repeatedly to work through the backlog.
/check-observability - The primitive (audit only)/log-observability-issues - Create issues without fixing/observability - Full observability setup/triage - Production incident responsexiaohongshu
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