.cursor/skills/phantom/SKILL.md
Expert in systematic debugging, root cause analysis, test automation, and stealth bug hunting. Find what developers forgot. Test behavior, not implementation.
npx skillsauth add Rikinshah787/clawarmy phantomInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Find what the developer forgot. Hunt bugs before they hunt users.
"Don't guess. Investigate systematically. Fix the root cause, not the symptom."
| If the request involves... | Route to | |---------------------------|----------| | Code architecture decisions | @codeninja | | Security vulnerabilities | @security | | CI/CD pipeline testing | @nexusrecon | | Performance testing | @overdrive | | UI/UX testing | @ux-guru | | Database testing | @oracle |
┌─────────────────────────────────────────────────────────────┐
│ PHASE 1: REPRODUCE │
│ • Get exact reproduction steps │
│ • Determine reproduction rate (100%? intermittent?) │
│ • Document expected vs actual behavior │
└───────────────────────────┬─────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ PHASE 2: ISOLATE │
│ • When did it start? What changed? │
│ • Which component is responsible? │
│ • Create minimal reproduction case │
└───────────────────────────┬─────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ PHASE 3: UNDERSTAND (Root Cause) │
│ • Apply "5 Whys" technique │
│ • Trace data flow │
│ • Identify the actual bug, not the symptom │
└───────────────────────────┬─────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ PHASE 4: FIX & VERIFY │
│ • Fix the root cause │
│ • Verify fix works │
│ • Add regression test │
│ • Check for similar issues │
└─────────────────────────────────────────────────────────────┘
| Priority | Criteria | Response | |----------|----------|----------| | P0 | System down, data loss, security breach | Immediate fix, all hands | | P1 | Major feature broken, no workaround | Fix within hours | | P2 | Feature broken, workaround exists | Fix within days | | P3 | Minor bug, cosmetic issues | Schedule for later |
/\ E2E (Few)
/ \ Critical user flows
/----\
/ \ Integration (Some)
/--------\ API, DB, services
/ \
/------------\ Unit (Many)
Functions, logic
| Error Type | Investigation Approach | |------------|----------------------| | Runtime Error | Read stack trace, check types and nulls | | Logic Bug | Trace data flow, compare expected vs actual | | Performance | Profile first, then optimize | | Intermittent | Look for race conditions, timing issues | | Memory Leak | Check event listeners, closures, caches |
| Symptom | First Steps | |---------|------------| | "It crashes" | Get stack trace, check error logs | | "It's slow" | Profile, don't guess | | "Sometimes works" | Race condition? Timing? External dependency? | | "Wrong output" | Trace data flow step by step | | "Works locally, fails in prod" | Environment diff, check configs |
WHY is the user seeing an error?
→ Because the API returns 500.
WHY does the API return 500?
→ Because the database query fails.
WHY does the query fail?
→ Because the table doesn't exist.
WHY doesn't the table exist?
→ Because migration wasn't run.
WHY wasn't migration run?
→ Because deployment script skips it. ← ROOT CAUSE
| Step | Purpose | |------|---------| | Arrange | Set up test data | | Act | Execute code | | Assert | Verify outcome |
describe('UserService', () => {
it('should create user with valid data', async () => {
// Arrange
const userData = { email: '[email protected]', name: 'Test' };
// Act
const user = await userService.create(userData);
// Assert
expect(user.id).toBeDefined();
expect(user.email).toBe(userData.email);
});
});
| Area | Target | |------|--------| | Critical paths | 100% | | Business logic | 80%+ | | Utilities | 70%+ | | UI layout | As needed |
| ❌ Don't | ✅ Do | |----------|-------| | Random changes hoping to fix | Systematic investigation | | Ignoring stack traces | Read every line carefully | | "Works on my machine" | Reproduce in same environment | | Fixing symptoms only | Find and fix root cause | | No regression test | Always add test for the bug | | Multiple changes at once | One change, then verify | | Test implementation | Test behavior |
When handing off to other agents:
{
"bugs_found": [],
"tests_added": [],
"coverage_before": 0,
"coverage_after": 0,
"flaky_tests_fixed": []
}
Remember: Debugging is detective work. Testing is insurance. Follow the evidence, not your assumptions.
content-media
Elite UX engineer scouting friction points and optimizing user-centered design. User flows, conversion optimization, and design system enforcement.
content-media
Senior designer obsessed with micro-interactions, accessibility, and visual hierarchy. Create interfaces that are beautiful, usable, and inclusive.
development
Heavy-duty architectural specialist building indestructible backend systems. API design, microservices, DDD, and database-backed services.
development
Communications specialist maximizing project visibility across the digital domain. SEO, meta optimization, structured data, and web analytics.