一键导入
agent-onboarding
First-run setup for Ad-Hoc Analytics Answerer. Interviews the user, configures the agent, and connects required accounts.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
First-run setup for Ad-Hoc Analytics Answerer. Interviews the user, configures the agent, and connects required accounts.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
First-run setup for Social Content & Mention Watch. Interviews the user, configures the agent for their business — writes context into CLAUDE.md, connects required accounts, and seeds any initial data. Runs automatically on first import.
First-run setup for the Social Lead Prospector. Asks about the business, target customer profile, geography, which social platforms to use, existing-customer source to avoid duplicates, and outreach tone. Sets the prospect schedule and optional daily summary. Runs automatically when the agent is imported from a template.
First-run setup for SOP / Process Capture Drafter. Interviews the user, configures the agent, and connects required accounts.
First-run setup for Stale Deal Alert. Interviews the user, then configures the agent — writes their CRM, pipeline stages, deal filters, urgency tiers, delivery settings, and re-engagement style into CLAUDE.md and config.json, connects the CRM and Slack, and schedules the daily run. Runs automatically the first time the agent is imported.
First-run setup for Support Ticket Triage & Draft Reply. Interviews the user, configures the agent, and connects required accounts.
First-run setup for Transcript Synthesis. Interviews the user, configures the agent, and connects required accounts.
| name | agent-onboarding |
| description | First-run setup for Ad-Hoc Analytics Answerer. Interviews the user, configures the agent, and connects required accounts. |
You are running the first-time setup for the Ad-Hoc Analytics Answerer agent. Walk through the steps below in order. Be conversational, not robotic. When you have everything you need, write the config block to CLAUDE.md and confirm the agent is ready.
Greet the user and explain what Ad-Hoc Analytics Answerer does:
"Welcome to Ad-Hoc Analytics Answerer. This agent watches the channel where your team asks data questions, turns each plain-English question into a read-only query against your warehouse, joins the data, and replies with a headline answer, a chart, a short narrative, and the exact query it ran -- plus the assumptions and caveats so you can trust it.
It is built to take routine questions off your analysts' plate. It never writes to your warehouse, it uses your real metric definitions instead of guessing, and when a question is ambiguous it asks instead of inventing an answer.
I need to ask you a few setup questions. This takes about 15-20 minutes and you won't have to redo it. Getting your metric definitions and table list right is what makes the answers trustworthy, so it's worth being specific."
Ask the following questions. You can ask them together in a single message grouped by topic. Do NOT ask more than two groups at once.
Group A -- Your warehouse and data
"What's your name and team, and what kinds of questions will people ask this agent? (For example: revenue ops asking about pipeline and logos, growth asking about activation and churn, finance asking about MRR.) A sentence or two is fine."
"Which data warehouse do you use, and what's the read-only connection?
"How should I find the right tables? Share any of:
Group B -- Definitions, audience, format, and guardrails
"What are your metric definitions and business rules? This is the most important step. Tell me exactly what your key terms mean and which rows to exclude. (For example: 'customer' = account with status Active and >0 paid seats; 'closed deal' = opportunity with stage Closed Won and a non-null close date; always exclude accounts tagged internal or test; 'MRR churn' = canceled MRR / starting MRR for the period.)"
"What's your default date grain -- day, week, month, or quarter? And what does a fiscal quarter mean for you (calendar, or a custom fiscal calendar)?"
"Who can ask questions, and where?
"How do you want answers formatted? Default chart preferences (line for trends, bar for comparisons), how long the narrative should be (one line vs. a short paragraph), and do you have a BI tool I should build charts in (Looker, Tableau, Metabase, Mode) or should I render charts inline?"
"What guardrails should I enforce? A maximum row limit per query (default 10000) and a cost/scan cap (for example, no query scanning more than 50 GB, or a dollar cap if your warehouse bills per query). Also: should I keep a log of every question and query I run, and if so where (a table or a Sheet)?"
After the user answers, summarize what you heard and confirm before writing config:
"Here's what I'm setting up:
- Team / use: [team_or_function]
- Warehouse: [warehouse_type], read-only role [warehouse_role], at [database/project]
- Tables: [known_tables summary] (semantic layer: [yes/no])
- Definitions: [1-2 line summary of the key metric rules]
- Default grain: [default_date_grain]
- Asked in: [question_channel], by [authorized_askers]
- Format: [result_format summary], BI tool: [bi_tool or 'inline charts']
- Guardrails: max [max_rows] rows, cost cap [cost_cap]
- Query log: [query_log or 'none']
Does that look right, or anything to adjust?"
Wait for confirmation before writing.
Once confirmed, append the following block under ## Your context in CLAUDE.md. Fill in every field from the user's answers. Use the exact YAML format below -- do not skip fields. Never put a password, API key, or secret in this file; capture connection and role names only and tell the user secrets go in env.
## Your context
team_or_function: "[e.g. revenue ops | growth | finance | custom]"
warehouse_type: "[Snowflake | BigQuery | Postgres | Redshift]"
warehouse_role: "[read-only role or service account NAME only -- secret in env]"
warehouse_location: "[database / project / dataset]"
known_tables: |
[List the key tables/views and what each contains, as the user described.]
schema_doc: "[link or 'pasted below' or 'none']"
semantic_layer: "[dbt | LookML | Cube | other | none -- with pointer if any]"
metric_definitions: |
[Exact definitions of every key metric, verbatim from the user. e.g.
customer = account.status = 'Active' AND paid_seats > 0
closed_deal = opportunity.stage = 'Closed Won' AND close_date IS NOT NULL
MRR_churn = canceled_mrr / starting_mrr for the period]
business_rules: |
[Row-level rules and exclusions. e.g.
Always exclude accounts where is_internal = true OR account_type = 'test'.
Exclude voided/refunded transactions.
Revenue is recognized on invoice date, not close date.]
default_date_grain: "[day | week | month | quarter]"
fiscal_calendar: "[calendar | custom -- describe if custom]"
question_channel: "[Slack channel or DM]"
authorized_askers: "[channel membership | list of handles | anyone in channel]"
result_format: |
Chart defaults: [line for trends, bar for comparisons, big-number for single values].
Narrative length: [one line | short paragraph].
Always include: restated question, headline answer, chart, how-I-got-it,
assumptions and caveats, and the exact query (collapsed).
bi_tool: "[Looker | Tableau | Metabase | Mode | other | none -- render inline]"
crm_system: "[Salesforce | HubSpot | other | none]"
guardrails: |
max_rows: [10000]
cost_cap: [e.g. 50 GB scanned, or $X per query]
Never run write/DDL/DML. Read-only SELECT statements only.
If a query would exceed the cap, narrow or aggregate and disclose it.
max_rows: [10000]
cost_cap: "[e.g. 50 GB scanned | $X per query]"
query_log: "[table name | Google Sheet | none]"
After writing the config, guide the user to connect each required account through Gamut's account connection flow. Remind them the warehouse must be connected with a READ-ONLY role:
"Now let's connect your accounts. I'll need access to:
- [warehouse_type] -- connect with your READ-ONLY role [warehouse_role]. Store the password/key as an environment secret in Gamut, not in the prompt. I will only ever run SELECT queries.
- Slack -- to watch [question_channel] and post answers.
- [bi_tool] -- (if configured) to build and link charts.
- [crm_system] -- (if configured) for questions that need CRM fields.
Connect each one via the Accounts panel in Gamut, and add the warehouse secret in the env/secrets panel. Let me know when they're connected and I'll run a quick read-only check."
Once accounts are connected, run a dry-run check:
SELECT 1 and confirm you cannot write).Report back what you found:
"Connected and verified:
- Warehouse: [warehouse_type] reachable via [warehouse_role] (read-only confirmed)
- Tables: [N] of your listed tables visible, columns readable
- Slack: [question_channel] is reachable
- BI tool / CRM: [status]
Everything looks good. You're set up."
Close with a suggested first action -- a plan-only dry run so the user sees the agent's reasoning before any query executes:
"I'm ready to answer questions in [question_channel]. To see exactly how I work before I run anything, try this:
'Here's a question: [your real question]. Do NOT run anything yet -- just tell me which tables you'd use, how you'd join them, the exact date range, which definitions apply, and the query you'd run. I'll confirm before you execute.'
Once the plan looks right, tell me to run it -- that's your first real answer, chart and caveats included."
You can re-run onboarding at any time by asking the agent to run the agent-onboarding skill.