Skills, shared rules, and automatic checks

A repository of reusable help for research and teaching.

  • 61 skills: instructions for particular tasks — review a paper, check R code, prepare a lecture.
  • 37 rules: instructions carried across tasks — plan substantial work, use consistent notation, replicate results before extending them.
  • 11 hooks: small programs that run automatically when something happens. Start a session → load saved notes. Change analysis code → flag linked paper results for rechecking.
  • 18 AI helpers (“agents”): each has a focused job — review R code, check a lesson’s clarity, or fix slides.

You do not need to memorize the collection. Rules guide Claude; hooks run at set moments. Claude can choose many skills from your request; some require a command.

github.com/pedrohcgs/claude-code-my-workflow

How I use it in my research

An example from my overdid work: the Efficient DiD paper and R package

In overdid, is estimating an event study directly better than estimating each group’s effect and combining them?

Use the paper and appendix, both R implementations, and archived simulations. Review arguments and code; compare the same target, groups, and periods.

Check small samples, long panels, and clustering. Report bias, RMSE, 95% interval coverage, runtime, memory, and Monte Carlo uncertainty. Keep the criteria registered before the runs; flag coverage below 90%.

Deliver R scripts, an R-exported table, and a two-page recommendation. Require a clean rerun and evidence for every claim. Explain theory/code gaps; verify Oracle findings independently.

Skills Claude can select: paper review → R code review → reproducibility audit.

Audit finding: faster computation came with statistical trade-offs.

How I used it for Econ730

  • Minimum wages: New Jersey versus Pennsylvania in Card & Krueger (1994).
  • Bank deregulation: states reform at different dates (Jayaratne & Strahan, 1996).
  • Democracy and growth: countries democratize and sometimes revert (Acemoglu et al., 2019).

An example of the request I would give

Create a 15-minute lesson on Card & Krueger (1994) for students who know supply and demand, not DiD. Use Table 3, rows 1–3, and my Lecture 1 HTML style.

Four slides: policy; NJ/PA table; DiD and parallel trends; discussion question (answer in notes).

Use R outputs for every number in slides and notes. Import the table exported directly by R; never retype values. Check Table 3 within 0.02 full-time-equivalent jobs and explain rounding.

Follow AEA data/code guidance. Deliver QMD, HTML, master R script, check report, and README with data sources, software versions, and run instructions. Cite Table 3; check overflow.

A careful request makes a difference

Getting started: use the guide’s full starter prompt.

  1. Fork and clone the repository; follow the guide’s setup steps.
  2. Open Claude Code in your project folder.
  3. Copy the starter prompt from the guide, fill in your project details, and review the proposed setup.

For each task after setup: explain the question and audience, name the sources to check against, define what counts as success, and specify the files you want back.

For example: “Every number in the slides must come from the R script; one command must regenerate the table and slides.”

Prompt shaping — an automatic rule: Claude clarifies what an informal request means before acting, and asks when a missing detail matters.

/interview-me — a skill: focused questions help turn a rough research idea into a written plan.

How I cross-check the work

  • How I cross-check: from Claude or Codex, I use Oracle to send the relevant files and a focused question to another model.
  • For difficult questions: access to GPT-6 Pro has been especially valuable for deeper dives into proofs, methods, and implementations.
  • What I ask for: concrete errors, counterexamples, or failing cases. I check each finding against the actual argument, sources, or computation.

This is a tool, and it is not bulletproof. Models can share the same mistake. We still have to understand the work and take responsibility for the conclusions.

These tools help me. Using them well still requires expertise and judgment.