setting-up-support-agent

setting-up-support-agent is a cursor rule for Cursor from krishnanpandya007/support-technician-setup. It costs 101 tokens per session (3,818 once invoked), scanned A, original, MIT.

A workflow for building a customer-support agent for a web app, including its help content, read-only data tools, diagnostic guidance, persona, and configuration.

In plain words
What is it for?
Use it when turning a web app into a support kit that answers questions from documentation and user-specific live data.
Why use it?
It provides a structured way to create support that can inspect a user’s situation while preventing data changes and escalating needed fixes to a person.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions subagents.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/krishnanpandya007/support-technician-setup/setting-up-support-agent
Clone the repo
git clone --depth 1 https://github.com/krishnanpandya007/support-technician-setup

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for setting-up-support-agent

README.md
[![agentmods](https://agentmods.dev/badge/rules/krishnanpandya007/support-technician-setup/setting-up-support-agent.svg)](https://agentmods.dev/rules/krishnanpandya007/support-technician-setup/setting-up-support-agent)
Your own site
<a href="https://agentmods.dev/rules/krishnanpandya007/support-technician-setup/setting-up-support-agent"><img src="https://agentmods.dev/badge/rules/krishnanpandya007/support-technician-setup/setting-up-support-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 101 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,818 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00101 $0.03818
Opus 5 $0.00051 $0.01909
Sonnet 5 $0.00020 $0.00764
Haiku 4.5 $0.00010 $0.00382

Measured 5d ago against content hash b96b25ba2ccb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

setting-up-support-agent scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/setting-up-support-agent.mdc · 162 lines

How it starts

The opening of the file, as written. The whole thing — 162 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Setting Up a Support Agent

Overview

This is the orchestrator. It turns a web app into a deployable support kit by running the stage skills in order, assembling their outputs, shipping a runtime, then telling the operator the local, off-model steps only a human can do. The end goal is a support agent that diagnoses an end user's real situation from read-only live state, resolves what it can from the knowledge base, and escalates a proposed fix to a human when a change is needed — it never mutates anything.

Runtime brain (default agent). At runtime the kit is driven by an LLM tool-agent: the model diagnoses by freely calling the kit's read-only tools and composes the answer. There is no decision tree to author for control flow — the runbooks are consumed as advisory guidance ("symptom → when to escalate"), not walked. Safety does not rest on branching; it rests on two hard, structural facts:

  1. A scoped read-only DB role (column-grants + row-level security) — there is no write tool, so the model physically cannot change data, and RLS confines every read to the acting user.
  2. A single explicit escalate_to_human tool — the only way the agent can "act", logged prominently; the agent is instructed never to claim it made a change. A deterministic walker mode (the runbooks as an actual decision tree) remains available for auditable/offline runs, but agent is the shipped default.

Core principle: this skill coordinates; it does not re-implement. Each stage is delegated to its own skill, which owns the rules for that artifact. Between stages there is a mandatory human-review gate.

Decisions to gather first (ask only what you cannot infer)

  1. End-user app path — the source of the knowledge base. This is the app real users use, NOT an admin/back-office tool. If only an admin codebase is offered, stop and say the end-user app is required for the knowledge base.
  2. Backend source path — where the read-only tools and runbooks are derived from (often the admin/back-office code). May differ from the end-user app.
  3. Schema exposure modegrounded | aliased | blind (default to blind: the model never sees real schema; names are bound locally by support-binder). Applies to schema-backed connections (SQL, and non-SQL where it has a schema); it does not apply to API/custom connections.
  4. Escalation channel — Telegram, email, or both.
  5. User follow-up channel — how a user is told their issue was resolved (e.g. email).
  6. Connection types (read-only). Ask the operator: "Besides tool→SQL connections, does the agent need other read-only connection types to diagnose a user's live state — external API calls (HTTP), a non-SQL data store, or custom read-only executions? Select all that apply." Multi-select; default = SQL only. Every selected type MUST be read-only — non-negotiable; discovering-support-tools enforces it per type. The chosen set becomes the connections list in the config.
  7. SQL engine (only if SQL is enabled) — Postgres/Supabase is the supported target today.
  8. Brain model — which AI model powers the agent brain at runtime. Ask the operator (it must support tool/function calling). This becomes runtime.model in the config and drives the runtime by default. (e.g. nvidia_nim/qwen/qwen3-coder-480b-a35b-instruct, a llama-3.x-70b-instruct, or a Claude model.)

Read the full file on GitHub · 162 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 162 lines · 3,818 tokens per session scan A b96b25ba2ccb

Subscribe to this mod's changes

setting-up-support-agent is a cursor rule published in the GitHub repository krishnanpandya007/support-technician-setup (2 stars, last pushed 2mo ago), licensed MIT. It adds 101 tokens to every session and 3,818 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.