ワンクリックで
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior in SunBiz-Agent systems — before proposing any fix.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when encountering any bug, test failure, or unexpected behavior in SunBiz-Agent systems — before proposing any fix.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | systematic-debugging |
| description | Use when encountering any bug, test failure, or unexpected behavior in SunBiz-Agent systems — before proposing any fix. |
| triggers | ["bug","error","failure","crash","broken","not working","debug","stack trace","API returning wrong data"] |
| tier | stable |
Random fixes waste time and create new bugs. Quick patches mask underlying issues.
Core principle: ALWAYS find root cause before attempting fixes. Symptom fixes are failure.
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
If you haven't completed Phase 1, you cannot propose fixes.
Use for ANY technical issue in SunBiz-Agent:
Use especially when under time pressure or when a deal is at risk.
You MUST complete each phase before proceeding to the next.
BEFORE attempting ANY fix:
Read error messages completely — stack trace, status code, error body, all of it
Reproduce consistently — can you trigger it reliably? What are the exact inputs?
Check recent changes — what changed that could cause this? git log -10, recent migrations
Gather evidence in multi-component systems
For SunBiz-Agent's layered architecture (Next.js → API route → Supabase → send_gateway):
For EACH component boundary:
- Log what data enters the component
- Log what data exits
- Check env vars are set at each layer
- Verify the DB row state at each step
Trace data flow — where does the bad value originate? Trace backward to the source.
Problem: [one specific sentence]
Why 1: Why did [problem] occur? → [cause]
Why 2: Why did [cause] occur? → [deeper cause]
Why 3: Why did [deeper cause] occur? → [system issue]
Why 4: Why did [system issue] occur? → [process/design gap]
Why 5: Root cause.
Fix: [addresses root cause, not symptoms]
Prevention: [added to skill guardrails or memory/MISTAKES.md]
After resolution, log to memory/MISTAKES.md:
If the bug revealed a gap in a skill's guardrails, add the check to that skill's Guardrails section.
Mandatory compliance gate before any outbound (email, SMS, blast). Verifies consent, opt-out status, CASL footer, send window, and daily cap.
Queue a cold outreach campaign to a segmented lead list via the cold_outreach_campaigns endpoint, with CASL compliance enforced before any send.
Generates the structured daily call sheet for Ezra — 6 prioritized categories, specific opening lines for each call, and a clear action order.
Surfaces overdue follow-ups, prioritizes the call list, and recommends specific outreach actions for each stuck deal or contact.
Domain literacy for MCA and alternative business funding. Reference glossary and clarifying-question guide for when operators use ambiguous terms.
Uses historical lender feedback data to recommend the best lenders for a specific deal profile and surfaces typical terms and decline patterns.