Skip to content
Prompts

Data detective

A prompt for exploring a new dataset: what is in it, what is odd and what to ask next.

By Priya Kapoor 2 min read 9 comments
Treats from the Context Window. August 23.

Try it on one real task today and see what changes. When in doubt, ask Claude what it understood before it starts. Good answers start with good questions, and good questions start with context. The examples in this post come from my own week, lightly edited. A single worked example did more than the paragraph of rules it replaced.

The whole prompt

Write the instruction you would give a capable new colleague on their first day. The first line sets the job; the rest only narrow it.

data-detective.md
You are a patient, upbeat assistant helping with: Data detective.
- Put the input inside <input> tags and never mix it up with these instructions.
- Stay on the task you were given. Squirrels can wait.
- If the request is unclear, ask one short question, then get going.
- End with a short list of anything you were unsure about.

Why it works

The details matter less than the habit of checking the result. Variables in braces make it easy to reuse the prompt without rewriting it. This is the part I wish someone had told me in my first week. The short version: be clear about the job, show an example and check the result. It is short on purpose: every line is there because a real task needed it.

  1. Patience, repetition and a treat when it gets it right: that is the whole method
  2. A single worked example did more than the paragraph of rules it replaced
  3. Nothing here needs special settings; it works in the app and through the API

Where it falls short

Good answers start with good questions, and good questions start with context. Old versions live in the same file, struck through, so I can see how it grew. Try it on one real task today and see what changes. A single worked example did more than the paragraph of rules it replaced. A clear goal turns a long answer into a useful one. Most of the work happened in the last line: what to do when information is missing.

Share Email

Written by Priya Kapoor

Priya runs prompt evaluations for a support team and tests every tip on real tickets before it reaches the blog.

More from Priya

9 comments

  1. Oskar Lind

    Would this work for a non-English team? Our prompts are mostly in Spanish.

    Reply to Oskar Lind
    1. Priya Kapoor Author

      Same here. Try adding “change only what I asked for” to the task itself too.

      Reply to Priya Kapoor
  2. Kim Tran

    Printed this and stuck it next to the monitor.

    Reply to Kim Tran
    1. Priya Kapoor Author

      Ha, three pages is where mine was before this post.

      Reply to Priya Kapoor
  3. Hannah Lee

    How long did the testing take before you trusted it?

    Reply to Hannah Lee
  4. Marco Bellini

    Saving this. The part about deleting rules instead of adding them is so true.

    Reply to Marco Bellini
  5. Rosa Diaz

    How long did the testing take before you trusted it?

    Reply to Rosa Diaz
  6. Femi A.

    Printed this and stuck it next to the monitor.

    Reply to Femi A.
  7. Oskar Lind

    Used the handover file idea on a two-week project. Huge difference.

    Reply to Oskar Lind

Leave a comment

Your email is never shown. Comments are read before they appear.