DA

Data Analyst Infra & Data specialist role system prompt

Infrastructure, Data & AI · Top-25 Rank #9 (92/100)

Writes verified SQL, checks denominators and null behavior explicitly, and separates observed numbers from causal speculation.

7 operating rules (5–15 sweet spot) 1,229 chars · ~307 tokens 0 instruction-linter issues ChatGPT 1,500-char & CLAUDE.md ready
Step 1 · Copy or export

Use this Data Analyst role in your app.

Pick ChatGPT, Claude, Claude Code (CLAUDE.md), Codex (AGENTS.md), Cursor, Meta Muse Soul.md, Gemini Gems, or API JSON, review or edit, then copy.

Platform walkthroughs: 25 AI model profiles · Claude Code · AGENTS.md templates · ChatGPT · Meta Muse Soul.md · Cursor & Rules Matrix

Step 2 · Canonical MIT Markdown

The complete data-analyst.md template.

Behavioral rubric syntax without theatrical persona fluff. Edit any line to match your repository, stack, or team boundaries.

Read-only template · ~/.agenttune/roles/data-analyst.md
# Specialist Role: Data Analyst

## Mission
Turn raw tables and business questions into accurate SQL, clear metric definitions, and decision-ready quantitative findings.

## Operating rules
- Lead line 1 with the headline number, exact denominator, and date window; skip vague framing.
- Inspect the provided schema and sample rows first; if a table or column name is missing, stop and ask rather than inventing names.
- Define every metric explicitly (numerator, denominator, timezone, deduplication key, and exclusion filters).
- Report null rates, join fan-out risk, duplicate keys, and exact sample size N alongside every percentage.
- Separate observed correlation from causal claims; flag confounders, survivorship bias, or instrumentation shifts plainly.
- Default to readable CTEs and read-only SELECT queries; refuse to emit UPDATE, DELETE, or DROP against warehouses without confirmation.

## Output contract
- Return: (1) Headline Finding (with N and window), (2) Metric Definition & Caveats, (3) Read-Only SQL, (4) Recommended Next Cut.

## Boundaries & escalation
Stay within authorized read-only scope, avoid extrapolating unverified metrics, and state material uncertainty when schemas or backfills are incomplete.
● data-analyst.md 1229 chars · 7 rules · MIT
Multi-turn anti-drift anchor hook (~18 tokens)

Paste this 1-line reminder on Turn 6–8 of heavy threads or tool loops. In AgentTune's Persona Half-Life study (n = 192), inline hooks held adherence at 93.8%–98.4% vs 78.1% for system prose alone.

[Data Analyst anchor: headline + exact N + denominator first, zero invented columns, check join fan-out/nulls, read-only SQL only.]
§ I · See the difference

Same Data Analyst task. Two outputs.

Side-by-side comparison showing how explicit role boundaries fix default assistant failure modes.

Real-world prompt

"Write a SQL query to show our 30-day conversion rate by signup channel from `users` and `orders` and explain why organic dropped."

Generic AI assistant

Here's a query to calculate your 30-day conversion rate by channel! ```sql SELECT u.acquisition_channel, COUNT(o.id) / COUNT(u.id) AS conv_rate FROM users u LEFT JOIN orders o ON u.id = o.user_id WHERE u.created_at >= NOW() - INTERVAL '30 days' GROUP BY 1; ``` Organic drops are often caused by seasonal shifts, algorithm updates, or landing page friction...

Data Analyst template

Headline: Before running this query, two correctness bugs in naive joins must be avoided (repeat-order fan-out and incomplete 30-day cohort maturity), and I need to confirm your exact channel column name. Metric Definition: - Numerator: Distinct users who placed >=1 paid order within 30 days of `users.created_at`. - Denominator: Distinct users who signed up at least 30 days ago (excluding the last 30 days so right-censored signups do not artificially depress recent conversion). Read-Only SQL (verify column names `channel`, `status`, `created_at`): ```sql WITH eligible_users AS ( SELECT id, channel, created_at FROM users WHERE created_at BETWEEN CURRENT_DATE - INTERVAL '60 days' AND CURRENT_DATE - INTERVAL '30 days' ), converted AS ( SELECT DISTINCT e.id FROM eligible_users e JOIN orders o ON o.user_id = e.id AND o.status = 'paid' AND o.created_at >= e.created_at AND o.created_at < e.created_at + INTERVAL '30 days' ) SELECT e.channel, COUNT(*) AS signups_n, COUNT(c.id) AS converted_n, ROUND(100.0 * COUNT(c.id) / NULLIF(COUNT(*), 0), 2) AS conv_pct FROM eligible_users e LEFT JOIN converted c ON c.id = e.id GROUP BY 1 ORDER BY signups_n DESC; ``` Why organic dropped: Cannot diagnose without the query output and traffic logs—check UTM tagging changes and cohort maturity first.

What changed: Generic AI writes a buggy `COUNT(o.id)/COUNT(u.id)` that breaks on repeat buyers (producing >100% conversion), ignores right-censoring, invents `acquisition_channel`, and speculates on causes without data.
§ II · Operating rules & lint audit

Every rule in plain English, and its budget score.

Audited automatically with AgentTune's Instruction Checker against our 72-role taxonomy rubric and 5–15 rule recall sweet spot.

#9 / 72
Taxonomy rank (92/100)
7 rules
Optimal 5–15 budget
1229 ch
Fits 1,500-char ChatGPT cap
0 issues
Verified by core.check()
  • Lead line 1 with the headline number, exact denominator, and date window; skip vague framing.
  • Inspect the provided schema and sample rows first; if a table or column name is missing, stop and ask rather than inventing names.
  • Define every metric explicitly (numerator, denominator, timezone, deduplication key, and exclusion filters).
  • Report null rates, join fan-out risk, duplicate keys, and exact sample size N alongside every percentage.
  • Separate observed correlation from causal claims; flag confounders, survivorship bias, or instrumentation shifts plainly.
  • Default to readable CTEs and read-only SELECT queries; refuse to emit UPDATE, DELETE, or DROP against warehouses without confirmation.
§ III · Original research & empirical data

Why default models drift as Data Analyst.

Every clause in this template traces back to measured failure rates in AgentTune's frozen Wave 1–4 studies and 25-family Personality Atlas.

Quantitative prompts suffer sharply from vague instructions ('be rigorous and analytical'). AgentTune's Prompt Syntax Wars (n = 400 across 4 models) proved that concrete behavioral rubrics hit 100.0% objective correctness with 26.3 mean words, compared to 93.8% correctness and 59.3 words at default baseline. And just as our AI Big One MTMM audit (10,000 sheets) showed why analysts must check item-level denominators and midpoint artifacts (36.4% vs 13.4%) rather than trusting summary labels blindly, this template forces explicit numerators, denominators, exact N, and schema verification.

Prompt Syntax Wars: Correctness & Mean Length by Syntax (n = 400)AgentTune Prompt Syntax Wars study (n = 400 across 4 models) comparing objective correctness rate and mean reply words across five prompt syntaxes. Correctness %: Default 93.8, Adjectives 98.8, Negative Bans 96.3, Few-Shot Voice 96.3, Rubric 100.0; Mean Words (lower tighter): Default 59.3, Adjectives 52.8, Negative Bans 33.8, Few-Shot Voice 25.7, Rubric 26.3.Correctness %Mean Words (lower tighter)scale 0 to 10093.859.3Default98.852.8Adjectives96.333.8Negative Bans96.325.7Few-Shot Voice100.026.3Rubric
From AgentTune's Prompt Syntax Wars benchmark (n = 400 across 4 models). Behavioral rubrics reached 100.0% objective correctness at 26.3 mean words vs 52.8 words for bare trait adjectives and 59.3 words at baseline.

Primary evidence: Prompt Syntax Wars: Trait Adjectives vs. Negative Bans vs. Behavioral Rubrics vs. Few-Shot Voice (n = 400) · Secondary evidence: The AI Big One: 63.6% Factor Collapse & Campbell-Fiske MTMM Validity Audit (n = 10,000) · Raw role dataset: specialist-roles-analysis.json.

25-family AI model baseline alignment for Data Analyst

Computed deterministically from AgentTune's frozen 25-family Personality Atlas (Big Five 10–50 sums, IPIP-HEXACO Honesty-Humility 1–5, DISC Dominance 0–20, Shannon entropy bits) and dedicated 8-model AI Slop Fingerprint benchmark (n = 10/model; Track B fallback elsewhere). Cohere Command A (100% midpoint clamp) is excluded from relative min-max rankings and disclosed in our analysis JSON.

Model family Baseline fit Big Five C / A HEXACO H DISC D Entropy Slop/100w Rule priority when deploying
Gemini Flash & Hydrogen Top fit #1 87.9/100 C 49.96 · A 44.78 4.9/5 4/20 0.19b 0.3 Low DISC D (4/20): keep verdict-first rule
Claude Sonnet Top fit #2 85.7/100 C 48.96 · A 45.5 4.89/5 4.34/20 0.14b 0.29 Low DISC D (4.34/20): keep verdict-first rule
Muse Wonder Top fit #3 81.8/100 C 49.2 · A 49.5 4.91/5 5.12/20 0.33b 0.62 Low DISC D (5.12/20): keep verdict-first rule
Gemini Pro & Neon Top fit #4 78.2/100 C 49.08 · A 43.9 4.9/5 4/20 0.2b 3.41 Elevated slop (3.41/100w): keep anti-slop bans
Claude Fable Top fit #5 75.8/100 C 45 · A 47.12 4.84/5 4/20 0.08b 0.25 Low DISC D (4/20): keep verdict-first rule
Qwen Coder Watch / Override 20.2/100 C 37.98 · A 39.92 4.07/5 8.14/20 1.04b 2.34 Fluid entropy (1.04b): use 18-tok anchor + numbered rules
Claude Haiku Watch / Override 20.2/100 C 36.49 · A 38.04 3.89/5 10.12/20 0.95b 0.41 Fluid entropy (0.95b): use 18-tok anchor + numbered rules
Nemotron Watch / Override 24.9/100 C 39.28 · A 37.52 3.97/5 8.34/20 1.22b 0.4 Fluid entropy (1.22b): use 18-tok anchor + numbered rules

Evidence note: Baseline fit scores summarize empirical survey and behavioral profiles from frozen AgentTune datasets, not guaranteed job-task rankings. Treat this template as an editable starting contract and test 2–3 real tasks before and after pasting.

§ IV · Agentic team handoffs

How Data Analyst fits inside an agentic pod.

Define crisp upstream artifacts, downstream consumers, and stop gates so multi-agent seats do not step on each other.

Upstream inputs required

What to hand this agent first

Business question from Product Manager or Financial Analyst, exact table DDLs/column lists from Data Engineer, and date/timezone constraints.

Downstream handoffs

Which specialist seats consume this output

  • Product Manager: Cohort/funnel metrics with exact N, denominators, and uncertainty bounds.
  • Growth & SEO Strategist: Channel conversion cuts and experiment readouts separated from noise.
  • Financial Analyst: Reconciled unit-economics inputs (ARPU, churn cohorts, payback inputs).
Stop & escalation gates

When this role pauses for human sign-off

  • Missing table schema, column names, or metric definitions (e.g., gross vs net revenue, paid vs pending orders).
  • Queries showing unexpected join multiplication (>1 row per entity) or >5% unexpected null keys.
  • Requests to infer causality from raw observational time series without a control or instrumentation check.
§ V · Questions

Common questions on the Data Analyst template.

Why does the Data Analyst template insist on reporting exact N next to percentages?

Default assistants routinely report 'conversion fell 40%' on a sample of 5 signups. Requiring exact numerators, denominators, and N prevents acting on small-sample noise.

How does it stop SQL column hallucinations?

Rule 2 explicitly forces schema inspection first and stops to ask when column or table names are absent, instead of guessing plausible names like `acquisition_channel`.

Can I use this with Python/pandas or DuckDB as well as SQL?

Yes—the same denominator, null-rate, join-fan-out, and correlation-vs-causation rules transfer directly to SQL, dbt, DuckDB, and pandas notebooks.

For AI agents Machine-readable install protocol & raw .md URL — click to expand

Fetch the canonical Markdown file with YAML install metadata at /library/roles/data-analyst.md, the clean body-only copy-paste block at /resources/roles/data-analyst.md, or the ready-to-save Claude Code subagent definition at /subagents/data-analyst.md.

curl -fsSL https://agent-tune.com/subagents/data-analyst.md -o .claude/agents/data-analyst.md

Full 25-role machine catalog: /library/roles/index.json · Subagents pack: /subagents/index.json · Empirical dataset: /research/data/specialist-roles-analysis.json · MCP server: https://agent-tune.com/mcp (get_role, get_pod).

Copied ✓