bughunt
Use when performing comprehensive bug hunting, code auditing, or finding all issues in a codebase before release or after major changes
What this skill does
# Bughunt Skill Comprehensive bug hunting that dispatches parallel agents to find bugs across all layers, then deduplicates findings and produces a prioritized BUGHUNT.md report. ## The Iron Law ``` WHEN YOU THINK YOU'RE DONE, YOU'RE NOT. ``` Every hunter follows three passes. The second pass catches the bugs that hide after you feel "done." ## Severity & Confidence Rubric All hunters use the same two-axis classification: **Severity** | Level | Definition | |-------|-----------| | CRITICAL | Data loss, auth bypass, RCE, or crash in production | | HIGH | Functional breakage, security risk, or data corruption | | MEDIUM | Degraded behavior, edge case failure, or bad UX | | LOW | Code quality, minor inconsistency, non-critical smell | **Confidence** | Level | Definition | |-------|-----------| | HIGH | Direct evidence — code traced, pattern confirmed | | MEDIUM | Strong pattern — likely real but not fully verified | | LOW | Theoretical — possible concern without direct proof | Only CRITICAL/HIGH findings at LOW confidence require a note explaining why they couldn't be verified. ## Quick Reference | Hunter | Focus | Severity Range | Color | |--------|-------|----------------|-------| | frontend-hunter | React, CSS, a11y | CRITICAL–LOW | yellow | | backend-hunter | API, logic, data | CRITICAL–LOW | cyan | | type-safety-hunter | TypeScript, `any` | HIGH–LOW | blue | | error-handling-hunter | try/catch, boundaries | HIGH–LOW | red | | edge-case-hunter | null, empty, boundaries | HIGH–LOW | magenta | | security-hunter | XSS, injection, secrets | CRITICAL–HIGH | red | | database-hunter | queries, RLS, N+1 | CRITICAL–HIGH | green | | auth-hunter | sessions, tokens, perms | CRITICAL–HIGH | red | | api-hunter | endpoints, validation | HIGH–MEDIUM | cyan | | env-hunter | config, env vars | HIGH–MEDIUM | yellow | | performance-hunter | N+1, memory, bundle | HIGH–MEDIUM | magenta | | test-hunter | flaky, coverage, assertions | MEDIUM–LOW | green | | dependency-hunter | outdated, vulnerabilities | CRITICAL–MEDIUM | blue | ## Workflow 1. Detect tech stack (package.json, config files, directory structure) 2. Dispatch applicable hunters in PARALLEL based on detected stack 3. Collect findings from all hunters 4. **Deduplicate**: merge findings at the same `file:line` across hunters — use highest severity, credit all contributing hunters 5. Write BUGHUNT.md with prioritized findings 6. Offer to clear context and run `/bugfix` ## Stack-Gated Dispatch Only dispatch hunters relevant to the detected stack: - **All codebases**: security, backend, edge-case, error-handling, dependency, env, type-safety - **Has frontend (React/Vue/HTML)**: + frontend, api - **Has database (Supabase/Prisma/SQL)**: + database, performance - **Has auth (JWT/sessions/OAuth)**: + auth - **Has tests (Jest/Vitest/pytest)**: + test ## Output: BUGHUNT.md ```markdown # Bug Hunt Report **Date:** YYYY-MM-DD **Stack:** [detected tech stack] **Hunters dispatched:** N **Deduplication:** N findings merged ## Summary | Severity | Count | High Confidence | Low Confidence | |----------|-------|-----------------|----------------| | Critical | N | N | N | | High | N | N | N | | Medium | N | N | N | | Low | N | N | N | ## Critical Issues ### [Bug Title] - **File:** `path/to/file.ts:line` - **Severity:** CRITICAL - **Confidence:** HIGH | MEDIUM | LOW - **Hunter(s):** security-hunter [, other-hunter if deduplicated] - **Finding:** [What the bug is] - **Evidence:** [Code snippet or trace] - **Fix Suggestion:** [What to do] ## High Priority [same format...] ## Medium Priority [same format...] ## Low Priority [same format...] ```
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.