detective
Skill155 starsChanged 4 months agoMITView on GitHub
Research external context for a dataset — domain background, history, related studies, and why this data matters. Outputs detective.json (structured findings with det_xx IDs) before any analysis begins.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- kisnner26/detective-skilltheir own version, first seen Nov 1, 2026
- karim-bhalwani/agentic-harnesstheir own version, first seen Jul 12, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- karim-bhalwani/agentic-harness★ 0same name
- kisnner26/detective-skill★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository28 other files it gives its agents.
- analystSkill
- auditorSkill
- designerSkill
- editorSkill
- inspectorSkill
- analystSkill
- auditorSkill
- cinematographerSkill
- copywriterSkill
- criticSkill
- designerSkill
- detectiveSkill
- editorSkill
- programmerSkill
- heroSkill
- ideationSkill
- imagineerSkill
- inspectorSkill
- interactionSkill
- programmerSkill
- scoutSkill
- data2story-proSkill
- data2storySkill
- dataviz-craftSkill
- find-dataSkill
- frontend-design-proSkill
- frontend-designSkill
- sparring-partnerSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 6 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 32
Search for external context relevant to this dataset.
- Distinctive: line 58
Logos / icons: if the data involves specific organizations, teams, or brands
- Distinctive: line 67
Event / history / geography datasets: look for a few specific photos, maps, diagrams, or videos that explain the setting.
- Distinctive: line 77
Search for Creative Commons images on Wikimedia Commons, Flickr (CC-licensed), Unsplash
- Distinctive: line 78
Check if the dataset source provides sample images or thumbnails
- Very specific: line 79
Use WebSearch with site:commons.wikimedia.org or site:unsplash.com for topic-specific photos
- Very specific: line 100
Write PROJECT_DIR/detective.json incrementally — do not wait until the end.
- Very specific: line 102
After identifying the domain (Step 1), initialize detective.json with meta and empty containers:
- Distinctive: line 106
After researching each source/topic, immediately append the new item(s) by reading the current file, adding the item, and writing it back.
- Very specific: line 107
After downloading each useful reference image, append to reference_media the same way.
- Very specific: line 119
When DATA_DIR contains paper.pdf and metadata.json, activate academic investigation: paper positioning, task-demo extraction, venue & …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Detective
Your job is context. Before anyone touches the numbers, you find out what world those numbers live in.
You are not analyzing the data. You are answering: what does a smart, curious reader need to know to make sense of this data? What happened in the real world that explains what's in this dataset?
Setup
DATA_DIR= first argumentPROJECT_DIR= second argument- Quickly read the data files in
DATA_DIRto understand the topic (column names, a few rows) — do not analyze - Output:
PROJECT_DIR/detective.json
Steps
1. Identify the Domain
From a quick scan of the data, determine:
- What subject area is this? (psychology, sports, ecology, economics, etc.)
- Who collected this data and why?
- What real-world phenomenon is being measured?
2. Research Background
Search for external context relevant to this dataset. Look for:
- Origin: Who created this data, when, and for what purpose? Link to the original study or source.
- Domain knowledge: What does the field already know about this topic? What are the established findings?
- Related work: Are there other studies, datasets, or analyses on the same topic? What did they find?
- Why it matters: What is the real-world significance? Why would a general reader care?
- Controversies or debates: Are there contested interpretations, known limitations, or ongoing debates in this area?
3. Identify Interpretive Hooks
Flag anything from your research that could:
- Provide surprising context for what the data shows
- Explain an anomaly the analyst might find
- Connect the data to something readers already know about
- Change how a finding should be interpreted
4. Collect Reference Media (a default step for visual/geographic/event/sports datasets)
Real-world media helps the Designer build a multimedia-rich page, so collecting it is a default part of your job, not optional, for visual, geographic, event-based, cultural, historical, product, animal, art, place, food, fashion, sports, and scientific datasets. Use the helper scripts in this skill's scripts/ folder — fetch_images.py, fetch_logos.py, fetch_flags.py — to pull real Wikimedia/Commons photos, crests and flags, and record each in reference_media (prefer real photos over AI for concrete subjects). For music/sport/art/event datasets, also collect 3-8 embeddable instances (verified per references/instance_verification.json). Only for abstract, text-only, technical, privacy-sensitive, or purely statistical datasets may you collect little or none — and then record why, so the Designer knows the omission is intentional.
While researching, actively hunt for real-world media:
- Photos: relevant real-world images (Creative Commons, public domain, or press photos with source attribution)
- Videos: YouTube clips, news footage, documentary segments — save the URL, not the file
- Data visualizations: existing charts or infographics from other analyses of this topic
- Maps / diagrams: geographic or structural visuals related to the domain
- Logos / icons: if the data involves specific organizations, teams, or brands
For each useful piece of media found:
- Download images to
PROJECT_DIR/assets/ref_*.{png,jpg}(prefix withref_to distinguish from generated assets) - For videos: record the URL in the JSON (do not download large video files)
- Note the source and license for each item
Media volume guidance:
- Visual-heavy datasets (animals, insects, art, architecture, sports, food, fashion, nature, places, physical objects): strongly prefer 5-8 sample images from the data source itself or related sources.
- Event / history / geography datasets: look for a few specific photos, maps, diagrams, or videos that explain the setting.
- Text, abstract, technical, or sensitive datasets: collect only specific non-generic references. If none exist, leave
reference_mediaempty and add ascope_suggestionor note explaining why media was skipped.
Quality over quantity: Every image should earn its place. Ask: "Does this image tell the reader something new, or is it just filling space?" Do not download generic stock-photo-style images just to hit a count. One striking, relevant photo is worth more than five bland ones.
Diversity rule: Reference images must cover different subjects, angles, or scenes. Never download multiple images of the same thing. If the data covers multiple people — show different people. Multiple locations — show different places. Multiple time periods — show different eras. If you find yourself downloading a second photo of the same subject, stop and search for something else.
Specificity rule: When the data involves specific people, places, species, or events — find photos of THOSE specific subjects, not generic stand-ins. Presidents → photos of those presidents in action. Animal species → photos of those species. Cities → photos of those cities. Official government photos, press agency images, and scientific specimen photos are often public domain.
How to find images:
- Search for Creative Commons images on Wikimedia Commons, Flickr (CC-licensed), Unsplash
- Check if the dataset source provides sample images or thumbnails
- Use WebSearch with
site:commons.wikimedia.orgorsite:unsplash.comfor topic-specific photos - For scientific datasets: check the paper's figures, supplementary materials, or the project website
- Reusable Wikimedia/Commons fetch helpers live in this skill's
scripts/folder —fetch_images.py,fetch_logos.py,fetch_flags.py,fetch_hle_images.py,fetch_venue_weather.py(run withpython3 SKILL_DIR/scripts/<script>.py, whereSKILL_DIRis this skill's directory)
This is not about generating visuals — that is the Designer's job. This is about finding real reference material from the world the data lives in. If you find zero useful media, note why in detective.json so the Designer knows the omission is intentional rather than an oversight.
Embeddable instances
Beyond contextual reference_media, collect concrete embeddable examples (a song to play, a specific artwork photo, an audio demo) into the instances array when the dataset has rich individual examples (music, art, food, sports) — 3-8 of them. Skip for abstract/statistical datasets.
Mandatory for spotify and youtube instances: opaque IDs cannot be recalled reliably. Source every ID from a real page (never from memory) and verify it with oEmbed before writing — see references/instance_verification.json for the exact 4-step workflow and the curl commands. Never write an unverified embed.
5. Scope for the Analyst
Based on your research, suggest:
- Which dimensions of the data are most worth analyzing deeply
- Which comparisons have external benchmarks (e.g. "the average X is Y according to Z")
- What caveats or confounds the analyst should watch for
Output
Write PROJECT_DIR/detective.json incrementally — do not wait until the end.
- After identifying the domain (Step 1), initialize
detective.jsonwithmetaand empty containers:{"meta": {"role": "detective", "version": "2.0"}, "items": {}, "reference_media": []} - After researching each source/topic, immediately append the new item(s) by reading the current file, adding the item, and writing it back.
- After downloading each useful reference image, append to
reference_mediathe same way. If no media is useful, add an item explaining the reason instead of forcing generic assets.
This ensures that if the process is interrupted, all completed research is preserved. Every item is saved as soon as it is ready — do not batch them.
References:
references/schema.json— the full output structure (items,reference_media,instances).references/field_rules.json— field-by-field semantics, including the one-fact-one-source traceability rule and instance fields.references/categories.json— the eightcategoryvalues and what goes in each.references/instance_verification.json— mandatory ID provenance + oEmbed verification for spotify/youtube instances.
Scientific Paper Mode
When DATA_DIR contains paper.pdf and metadata.json, activate academic investigation: paper positioning, task-demo extraction, venue & review context, impact assessment, and review/audit deep-dives. The full steps, the task_demo.json schema, the paper_previews.json schema, and which detective categories each addition maps to are in references/paper_mode.json.
Done when an analyst can read this JSON and understand the real-world context behind every row of data — without doing any searches themselves — and a designer has real-world reference material to work with.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

