4.2 KiB
4.2 KiB
Bugsnag Skill - Testing Guide
Auto-Activation Test Scenarios
This document contains test scenarios to verify the bugsnag skill activates correctly based on user input.
✅ SHOULD Activate
These phrases should trigger automatic skill activation:
-
Direct Bugsnag mentions:
- "показать ошибки в bugsnag"
- "show bugsnag errors"
- "check bugsnag"
- "what's in bugsnag?"
-
Error details requests:
- "bugsnag details for ERROR_123"
- "show error stack trace for ERROR_456"
- "get bugsnag error context"
- "покажи стектрейс ошибки ERROR_789"
-
Error management:
- "resolve bugsnag error ERROR_123"
- "mark bugsnag error as fixed"
- "close bugsnag error ERROR_456"
- "отметить ошибку ERROR_789 как решенную"
-
Error analysis:
- "analyze bugsnag errors"
- "bugsnag error patterns"
- "проанализировать ошибки в bugsnag"
- "what error patterns in production?"
-
Generic error monitoring mentions:
- "check production errors"
- "show error tracking"
- "what's happening in error monitoring?"
❌ Should NOT Activate
These phrases should NOT trigger bugsnag skill:
-
Code errors (not monitoring):
- "найти ошибку в коде"
- "this code has a bug"
- "review this function for errors"
-
Application logs (not Bugsnag):
- "показать логи приложения"
- "show server logs"
- "check nginx logs"
-
Generic debugging:
- "debug this issue"
- "why is this not working?"
- "help me fix this"
-
Other monitoring tools:
- "check sentry errors"
- "show datadog alerts"
- "rollbar notifications"
Testing Procedure
1. Install Plugin Locally
# From repository root
/plugin marketplace add /home/danil/code/claude-code-marketplace
/plugin install dev-tools@dapi
2. Verify Skill Discovery
# Check skill is registered
/skills list
# Should show: bugsnag (dev-tools)
3. Test Auto-Activation
Start new conversation and try phrases from "SHOULD Activate" section:
User: "show bugsnag errors"
Expected: Claude should mention using bugsnag skill or invoke ./bugsnag.rb
User: "bugsnag details for ERROR_123"
Expected: Claude should invoke ./bugsnag.rb details ERROR_123
4. Test Non-Activation
Try phrases from "Should NOT Activate" section:
User: "найти ошибку в коде"
Expected: Claude uses code analysis, NOT bugsnag skill
Environment Setup for Testing
Before testing, ensure environment variables are set:
export BUGSNAG_DATA_API_KEY='your_actual_api_key'
export BUGSNAG_PROJECT_ID='your_actual_project_id'
To get these values:
- Visit https://app.bugsnag.com
- Settings → Organization → API Authentication
- Create Personal Access Token
- Get Project ID from project settings
Expected Behavior
Correct Activation Flow
- User mentions "bugsnag errors"
- Claude recognizes trigger keywords
- Claude invokes bugsnag skill
- Skill executes
./bugsnag.rb <command> - Results displayed to user
Correct Non-Activation Flow
- User asks about code errors (no "bugsnag" mention)
- Claude uses native code analysis
- Bugsnag skill does NOT activate
- Standard debugging workflow proceeds
Success Criteria
- ✅ Skill activates for all "SHOULD Activate" scenarios
- ✅ Skill does NOT activate for "Should NOT Activate" scenarios
- ✅ Commands execute correctly when activated
- ✅ Environment variables validated before execution
- ✅ Error messages are clear when API keys missing
- ✅ Help command works:
./bugsnag.rb help
Troubleshooting
Skill Not Activating
- Check skill is installed:
/skills list - Verify SKILL.md frontmatter has proper YAML
- Check description contains trigger keywords
- Restart Claude Code session
Commands Not Working
- Verify script is executable:
chmod +x bugsnag.rb - Check environment variables are set
- Test script directly:
./bugsnag.rb help - Check Ruby dependencies installed
Permission Errors
- Verify API key has correct permissions in Bugsnag
- Check project ID is correct
- Test API access with curl first