بنقرة واحدة
error-monitoring-setup
Automated Sentry and error tracking setup for production applications
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Automated Sentry and error tracking setup for production applications
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Systematic framework for inventing, designing, pricing, and building digital product offers from an existing archive of tools, agents, doctrines, and skills. Use when turning a tool or capability into a sellable product, designing a new digital offer from scratch, going vertical into a new industry with an existing capability, building a product line from an AI agent stack, or creating a launch-ready product with a landing page, pricing strategy, and implementation plan. Combines deep client/market analysis, product architecture design, pricing strategy, landing page generation, and Google Drive delivery into one unified workflow.
Debug serverless and edge functions where traditional logging is limited. Use when features are deployed but not triggering, logs are missing, or runtime behavior differs from expectations in Supabase Edge Functions, AWS Lambda, Cloudflare Workers, or similar platforms.
Generate comprehensive demonstrations showing how to access projects and work across different environments (Manus terminals, personal computers, team collaboration). Use when users ask "how do I access this from another terminal/computer", "how do I share this with my team", "how do I get this on my Mac", or need clarification on Manus persistence vs GitHub usage.
Generate comprehensive App Store and Google Play submission documentation packages for mobile apps. Use when preparing iOS or Android apps for app store submission, creating submission checklists, generating marketing copy, writing privacy policies, creating TestFlight guides, or packaging all submission materials. Ideal for React Native, Expo, Flutter, or native mobile apps ready for public release.
Automate iOS TestFlight deployments using GitHub Actions after initial manual setup. Use when setting up CI/CD for iOS apps, automating TestFlight uploads, configuring GitHub Actions workflows for mobile apps, or establishing automated deployment pipelines for React Native, Expo, Flutter, or native iOS projects. Requires one-time manual Apple Developer setup before automation can begin.
Provides expert-level analysis and diagnosis for Meta Ads campaigns. Use this skill to interpret performance data, identify root causes of issues, and generate actionable recommendations, with a special focus on correctly handling the 'Breakdown Effect'.
| name | error-monitoring-setup |
| description | Automated Sentry and error tracking setup for production applications |
Automated Sentry and error tracking setup for production applications
Automate the setup of Sentry error monitoring for Next.js, React, Node.js, and Python applications. Detects project type, installs dependencies, and configures error tracking in minutes.
Time Saved: ~45 minutes per setup
Complexity: Low
Prerequisites: Node.js/Python, Sentry account
https://...@sentry.io/...)python3 /home/ubuntu/skills/error-monitoring-setup/scripts/setup_sentry.py /path/to/project <your-dsn>
// Throw a test error
throw new Error("Test error - Sentry is working!");
Visit your Sentry dashboard to see the error.
package.json, requirements.txt, etc.@sentry/nextjs, @sentry/react, @sentry/node, or sentry-sdkpython3 /home/ubuntu/skills/error-monitoring-setup/scripts/setup_sentry.py ~/my-nextjs-app https://abc123@sentry.io/456
# Output:
# 📁 Project: /home/ubuntu/my-nextjs-app
# 🔑 DSN: https://abc123...
# ✅ Detected project type: nextjs
# 📦 Installing Sentry package for nextjs...
# ✅ Sentry package installed
# 📝 Creating Sentry configuration...
# ✅ Created Sentry config files
# ✅ Sentry setup complete!
python3 /home/ubuntu/skills/error-monitoring-setup/scripts/setup_sentry.py ~/my-react-app https://abc123@sentry.io/456
# Output:
# 📁 Project: /home/ubuntu/my-react-app
# 🔑 DSN: https://abc123...
# ✅ Detected project type: react
# 📦 Installing Sentry package for react...
# ✅ Sentry package installed
# 📝 Creating Sentry configuration...
# ✅ Created Sentry config file
# ✅ Sentry setup complete!
python3 /home/ubuntu/skills/error-monitoring-setup/scripts/setup_sentry.py ~/my-python-app https://abc123@sentry.io/456
# Output:
# 📁 Project: /home/ubuntu/my-python-app
# 🔑 DSN: https://abc123...
# ✅ Detected project type: python
# 📦 Installing Sentry package for python...
# ✅ Sentry package installed
# 📝 Creating Sentry configuration...
# ✅ Created Sentry config file
# ✅ Sentry setup complete!
sentry.client.config.js - Client-side error trackingsentry.server.config.js - Server-side error trackingsentry.edge.config.js - Edge runtime error trackingsrc/sentry.js - Browser error trackingsentry.js - Server error trackingsentry_config.py - Application error trackingAutomatic - Sentry config files are automatically loaded.
Test:
// pages/index.js
export default function Home() {
return (
<button onClick={() => {
throw new Error("Test error");
}}>
Test Sentry
</button>
);
}
Import in src/index.js:
import './sentry';
import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(<App />);
Import at the top of your main file:
const Sentry = require('./sentry');
const express = require('express');
const app = express();
// Your routes...
// Error handler (must be last)
app.use(Sentry.Handlers.errorHandler());
app.listen(3000);
Import in your main file:
from sentry_config import *
from flask import Flask
app = Flask(__name__)
# Your routes...
if __name__ == '__main__':
app.run()
Edit config files to adjust:
Sentry.init({
dsn: "your-dsn",
tracesSampleRate: 0.1, // 10% of transactions (production)
replaysSessionSampleRate: 0.1, // 10% of sessions
replaysOnErrorSampleRate: 1.0, // 100% of error sessions
});
Sentry.setUser({
id: user.id,
email: user.email,
username: user.username
});
Sentry.setTag("page", "checkout");
Sentry.setTag("feature", "payment");
Sentry.setContext("order", {
id: "123",
total: 99.99,
items: 3
});
// Throw error
throw new Error("Test error - Sentry is working!");
// Or capture manually
Sentry.captureMessage("Test message");
Sentry.captureException(new Error("Test exception"));
Check DSN:
console.log(process.env.NEXT_PUBLIC_SENTRY_DSN);
Verify Initialization:
console.log("Sentry initialized");
Sentry.captureMessage("Test");
Check Network:
Manually specify project type by editing config files.
# Next.js/React/Node.js
npm install --save @sentry/nextjs
# Python
pip install sentry-sdk
environment: process.env.NODE_ENV
release: "my-app@1.0.0"
Sentry.setUser({ id: user.id });
beforeSend(event) {
// Remove sensitive data
delete event.request?.cookies;
return event;
}
scripts/setup_sentry.py - Automated Sentry setuptemplates/sentry.client.config.js - Next.js client configreferences/monitoring_guide.md - Complete monitoring guide1. User creates Sentry account
2. User gets DSN from Sentry dashboard
3. User runs setup script with project path and DSN
4. Script detects project type
5. Script installs Sentry package
6. Script creates config files
7. User tests error tracking
8. Errors appear in Sentry dashboard
✅ Sentry package installed
✅ Config files created
✅ Error tracking working
✅ Errors appear in dashboard
✅ Stack traces visible
Manual Setup: ~45 minutes
With This Skill: ~5 minutes
Savings: ~40 minutes per setup
Created: February 10, 2026
Status: Production Ready
Tested: Next.js, React, Node.js, Python