Support loop

From Scino/fstack · View interactive version

Support loop is an AI agent skill from the GitHub repository Scino/fstack. End-to-end founder customer support loop. Ingests a customer bug report or inquiry, investigates the codebase, reproduces the issue, triggers engineer-mode bug-fix if valid, or prepares a workaround, and drafts an empathetic, contextual customer reply. Use for /support-loop, "handle support ticket",

How to use this skill

Skill file

Support Loop (Ticket-to-Fix-to-Reply)

The ultimate superpower of a technical founder is closing the loop between user pain, code fix, and customer communication in minutes instead of weeks of tiered customer service bureaucracy.

support-loop automates this entire lifecycle:

  1. Parse the customer's inquiry.
  2. Investigate the codebase and telemetry.
  3. If it's a bug: trigger engineer-mode's Bug-fix playbook (repro test, root cause fix, verify).
  4. If it's intended behavior or user error: formulate the exact step-by-step workaround.
  5. Draft an empathetic, clear, human customer response.

When to Invoke


The 4-Phase Protocol

graph TD
    Ticket([Customer Ticket / Message]) --> Phase1[Phase 1: Ingest & Triage]
    Phase1 --> Phase2[Phase 2: Codebase Investigation]
    
    Phase2 --> Check{Is it a bug?}
    
    Check -->|"Yes: Confirmed Defect"| Phase3A["Phase 3A: engineer-mode (Bug-Fix)<br>1. Write failing test<br>2. Fix root cause<br>3. Verify green test"]
    Check -->|"No: Intended / User Error"| Phase3B["Phase 3B: Document Workaround<br>Step-by-step guide for user"]
    
    Phase3A --> Phase4[Phase 4: Draft Empathetic Customer Reply]
    Phase3B --> Phase4

Phase 1: Ingest & Triage

Extract key facts:

Phase 2: Codebase Investigation

Navigate the repository:

  1. Search for matching error strings, endpoint routes, or UI components.
  2. Trace the data flow: user input → validation → business logic → database/external API → response.
  3. Identify if the edge case is handled or unhandled.

Phase 3A: If Confirmed Bug → Trigger `engineer-mode`

Switch to engineer-mode with the Bug-fix playbook (skills/engineer-mode/playbooks/bug-fix.md):

  1. Reproduce First: Write an isolated unit test or runtime script that reliably triggers the failure.
  2. Root Cause: Trace the exact variable, null pointer, race condition, or schema mismatch.
  3. Fix: Apply the minimal, cleanest fix per principle-fix-root-causes and principle-laziness-protocol.
  4. Verify: Ensure the test passes, run existing regression tests, verify no blast radius.

Phase 3B: If Not a Bug (Intended Behavior / Workaround)

Phase 4: Draft the Customer Reply

The reply must follow strict human founder guidelines:


Example Outputs

Scenario A: Real Bug Fixed

Hey David,

Thanks so much for writing in—you caught a genuine bug in our CSV parser. When column headers contained trailing spaces or parentheses, our schema validator was silently dropping the row instead of trimming it.

We just patched this and deployed the fix to production (commit `7f4a21`).

Could you refresh your dashboard and try exporting the file again? Everything should go through smoothly now.

Really appreciate you taking the time to report this!

Best,
Fabio

Scenario B: User Configuration / Workaround

Hey David,

Thanks for reaching out!

The reason the export stopped at 10,000 rows is that our real-time browser export is capped at 10k to prevent Chrome from running out of memory on large datasets.

To export your full 85,000 rows, you can use our background export feature:
1. Go to Reports → Export.
2. Select "Send full dataset to email (CSV/Parquet)".
3. You'll receive a secure download link in your inbox in about 30 seconds.

I realize that distinction wasn't clear on the dashboard button—we're updating the UI tooltip today so it's obvious to everyone.

Let me know if the email export gets you what you need!

Best,
Fabio
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.