Skip to main content
skill CX Codex

dril-dataset-construction — Claude Code skill: how it works & setup

dril-dataset-construction implements the DRIL methodology to assemble economic datasets from primary sources via AI agents. Ideal for constructing panel data, legal variables, and cited codebooks.

no license ★ 240 updated 2026-09-18

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add franklee16/academic-research-skills --skill dril-dataset-construction -a claude-code
Open on GitHub

What dril-dataset-construction does

This skill brings the Deep Research on a Loop (DRIL) framework from Afonso et al. (NBER w35188) into Claude Code. It turns open-ended web digging into a standardized data extraction routine across enumerable units like countries and years. The pipeline separates protocol design from per-unit data collection.

During the design stage, the agent writes a frozen protocol consisting of codebook.yaml and a unit index in units.csv. The execution phase then iterates through every mapped row, issuing search queries, scoring variables against rules, and compiling answers into dataset.csv. Every coded cell pairs with exact quotes and source locators inside evidence_records.json.

Reviewing the codebook requires domain knowledge. You must inspect it before full-scale extraction begins. If target dimensions remain vague, the agent cannot freeze a valid instrument.

What it helps with

  • Build cross-country panel datasets from primary legal and government documents
  • Generate formal codebooks with explicit coding rules and value types
  • Extract institutional variables while preserving verbatim citation evidence
  • Log search queries and document missing data reasons systematically

Example prompts for the agent

  • Build a dataset on central bank independence for OECD countries between 2010 and 2023 using DRIL.
  • Create a codebook and unit space to compare subnational borrowing rules across Latin America.
  • Collect corporate tax rates across our target countries and document exact legal citations for each year.

How to install dril-dataset-construction

1Skills CLI (Vercel)

npx skills add franklee16/academic-research-skills --skill dril-dataset-construction -a claude-code

2Manually: put the files in place

~/.claude/skills/dril-dataset-construction/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/dril-dataset-construction/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about dril-dataset-construction

How do I install dril-dataset-construction in Claude Code?

Run npx skills add franklee16/academic-research-skills --skill dril-dataset-construction -a claude-code in your terminal. This configures the skill inside ~/.claude/skills/dril-dataset-construction/SKILL.md.

What is the DRIL methodology?

DRIL structures automated web research by separating research design from data collection. An agent codes variables against a frozen codebook and records exact text excerpts for every extracted observation.

What prerequisites are needed before running this skill?

You need a stated research goal and an approximate set of target units, such as a country list and date range. You also need domain understanding to inspect and approve the generated codebook before data extraction starts.

Similar skills

All skills for Science and research →

From the same set98

The whole set →
paper-analysis paper-analysis — a skill that walks you through a critical reading of a research paper using the 7-step Cornwell framework. Give it a DOI, a URL, or a local PDF and get a structured appraisal back. CX Codex +1 ★ 240repo stars consistency-checker consistency-checker runs a pre-submission consistency check on finance and accounting manuscripts before journal submission or revision. CX Codex +1 ★ 240repo stars quality-checks-diagnosis quality-checks-diagnosis helps choose the right survey check and interpret failures. Use it when you need to distinguish inattention from unclear instructions or a weak experimental treatment. CX Codex +1 ★ 240repo stars avoid-leading-questions avoid-leading-questions reviews a draft survey question, names the bias behind it, and gives a concrete rewrite for each of the three cases it covers. CX Codex +1 ★ 240repo stars extract-figures extract-figures pulls figures, charts, diagrams, and images from .docx, converts EMF/WMF assets to PNG, and prepares LaTeX usage notes. CX Codex +1 ★ 240repo stars aer-referee-sim aer-referee-sim runs a finished manuscript through a mock AER desk screen and three referees, then returns a verdict and a prioritized revise list. CX Codex +1 ★ 240repo stars practitioner-finance-voice The practitioner-finance-voice skill rewrites academic finance drafts into the direct tone of practitioner outlets like FAJ and JPM. It frames findings for portfolio managers without fabricating facts. CX Codex +1 ★ 240repo stars comments-synthesis comments-synthesis turns feedback from several discussants, referees or workshop readers of one paper into a single revision plan, with the points they repeat ranked first. CX Codex +1 ★ 240repo stars

Project sponsors

Companies that keep this analytics open