query-events
Run custom queries on Sentry events and issues with advanced filtering
What this skill does
# Query Sentry Events ## Name sentry:query-events - Run custom queries on Sentry events and issues with advanced filtering ## Synopsis ``` /query-events [arguments] ``` ## Description Run custom queries on Sentry events and issues using advanced filtering to find specific errors, analyze patterns, or extract insights. ## Implementation This command provides flexible querying capabilities for Sentry data with support for filters on environment, release, user, tags, and more. ## Usage ``` /query-events [project-name] [query-expression] ``` ## What This Command Does 1. Asks for the Sentry project name 2. Accepts a custom query expression or builds one interactively 3. Applies filters for: - Environment (production, staging, etc.) - Release version - User properties - Tags and custom attributes - Time range - Event type (error, transaction, etc.) - Issue status (resolved, unresolved) 4. Executes the query using Sentry MCP tools 5. Presents results with relevant context 6. Suggests follow-up investigations ## Prerequisites - Sentry MCP server must be installed and configured - OAuth authentication with Sentry must be completed - Access to the target Sentry project ## Example Interaction ``` User: /query-events api-service Find all errors in production for user emails ending in @enterprise.com in the last 7 days Claude: Running custom query on api-service... ## Query Results **Query:** Errors in production environment for enterprise users (last 7 days) **Filters Applied:** - Environment: production - User email: *@enterprise.com - Event type: error - Time range: Last 7 days - Status: unresolved ### Results: 23 matching issues, 456 total events ### Top Issues for Enterprise Users 1. **API Rate Limit Exceeded** - Events: 189 - Users: 12 - Pattern: Heavy API usage from automated systems - Tags: tier=enterprise, api_version=v2 2. **Database Connection Timeout** - Events: 134 - Users: 8 - Pattern: Concurrent query limit reached - Tags: tier=enterprise, db_pool=primary 3. **Insufficient Storage Quota** - Events: 78 - Users: 5 - Pattern: Enterprise plans hitting 10GB limit - Tags: tier=enterprise, feature=uploads 4. **Permission Denied: Admin Action** - Events: 34 - Users: 4 - Pattern: Users attempting cross-org actions - Tags: tier=enterprise, action=admin 5. **GraphQL Query Complexity Exceeded** - Events: 21 - Users: 3 - Pattern: Complex nested queries - Tags: tier=enterprise, api=graphql ### Insights - Enterprise users hitting different limits than standard users - Rate limiting and connection pooling need enterprise-tier scaling - Storage quotas may need adjustment for enterprise plans ### Affected Users - [email protected] (89 events) - [email protected] (67 events) - [email protected] (145 events) - [email protected] (98 events) ### Recommendations 1. **Immediate**: Increase rate limits for enterprise tier 2. **High**: Scale database connection pool for enterprise workloads 3. **Medium**: Review storage quotas and upgrade paths 4. **Low**: Document GraphQL query complexity limits Would you like me to investigate any specific issue or user in detail? ``` ## Query Syntax Examples ``` # Find errors in specific environment environment:production is:unresolved # Find issues affecting a specific user user.email:[email protected] # Find events from a specific release release:v2.3.0 # Find slow transactions event.type:transaction transaction.duration:>2000 # Combine multiple filters environment:production release:v2.* user.id:12345 level:error # Find issues with specific tags tag.payment_method:stripe tag.status:failed ``` ## Arguments - `project-name` (optional): Sentry project slug - `query-expression` (optional): Sentry query syntax or natural language description ## Tips - Use Sentry's query syntax for precise filtering - Combine multiple filters for targeted investigations - Save common queries for reuse - Use wildcard patterns for flexible matching - Filter by custom tags for domain-specific analysis - Narrow time ranges for faster queries ## Related Commands - `/investigate-errors`: Pre-built error investigation workflow - `/analyze-performance`: Performance-specific queries - `/check-releases`: Release-filtered queries
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.