skills/32-dylantmoore-stata-skill/plugins/stata-skill-contributor/skills/stata-skill-contributor/SKILL.md
Guide for contributing to the stata-skill project. Use when the user wants to run the eval pipeline, analyze test results, improve reference docs, add new package documentation, or work on roadmap items. Covers the testing infrastructure, multi-agent analysis workflow, cost estimates, and links to prior eval results and improvement history.
npx skillsauth add brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research stata-skill-contributorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill helps you contribute to the stata-skill project — the Stata reference skill for Claude Code. It covers how to run the evaluation pipeline, analyze results, and make data-driven improvements to the skill documentation.
Running the eval pipeline uses Claude Agent SDK query() calls, which consume API credits.
| What | Approximate cost | |------|-----------------| | Single task, 1 run | $0.50 - $1.50 | | Single task, 5 runs | $2.50 - $7.50 | | All 24 tasks, 1 run each | $12 - $36 | | All 24 tasks, 5 runs each | $60 - $120 | | Full A/B comparison (2 arms × 24 tasks × 5 runs) | $120 - $240 | | Multi-agent post-test analysis (5 Sonnet subagents) | $3 - $8 |
Start small: run 1-3 tasks relevant to your change before running the full suite. Use --runs 1 to validate the pipeline works before scaling up.
| File | What it is |
|------|-----------|
| tests/eval.py | Evaluation harness — sends tasks to Claude, judges responses |
| tests/rubric.md | 7-category scoring rubric (max 55 points) |
| tests/tasks/task_*.md | 24 test task definitions |
| tests/runner-only-plugin/ | Minimal baseline plugin (execution instructions only) |
| tests/results/ | All run directories and aggregate JSON results |
| tests/EVAL_RESULTS_2026-03-22.md | Prior eval results with full analysis and run index |
| ROADMAP.md | Open problems and improvement directions |
| CONTRIBUTING.md | General contribution guide (adding packages, filing issues) |
# Single task, single run — fast sanity check (~$1)
python tests/eval.py tests/tasks/task_01_data_cleaning.md
# Single task, 5 runs — measure variance (~$5)
python tests/eval.py tests/tasks/task_01_data_cleaning.md --runs 5
# Save results as a named baseline
python tests/eval.py tests/tasks/task_01_data_cleaning.md --runs 5 \
--save tests/results/my_baseline.json
# Compare against a baseline
python tests/eval.py tests/tasks/task_01_data_cleaning.md --runs 5 \
--compare tests/results/my_baseline.json
# 1. Save baseline BEFORE your edit
python tests/eval.py tests/tasks/task_16_multiple_imputation.md --runs 5 \
--save tests/results/before_mi_fix.json
# 2. Make your edit to the reference doc
# 3. Re-run and compare
python tests/eval.py tests/tasks/task_16_multiple_imputation.md --runs 5 \
--compare tests/results/before_mi_fix.json
Look for: mean score going up, SD staying flat or going down, no new failure modes.
# Full skill (default) — loads the complete plugin
python tests/eval.py tests/tasks/task_*.md
# Runner-only — minimal plugin with just execution instructions, no reference docs
python tests/eval.py tests/tasks/task_*.md --runner-only
# No skill — no plugin at all
python tests/eval.py tests/tasks/task_*.md --no-skill
# Alternative skill version — point at a different plugin directory
python tests/eval.py tests/tasks/task_*.md --skill-path /path/to/modified/plugin
The runner-only baseline is the meaningful comparison. It isolates what the reference material adds beyond "here's how to run Stata." The no-skill baseline is weaker (agent can't even execute code).
Run multiple tasks in parallel by launching separate processes:
python tests/eval.py tests/tasks/task_01_data_cleaning.md --runs 5 \
--save tests/results/v3_task01.json &
python tests/eval.py tests/tasks/task_07_did.md --runs 5 \
--save tests/results/v3_task07.json &
wait
Batch 3-4 tasks at a time to avoid resource exhaustion. Run directories are created atomically, so parallel execution is safe.
Each run creates tests/results/run_NNN/ containing:
| File | Contents |
|------|----------|
| transcript.json | The test agent's full response |
| judge_findings.md | Per-category scores with justifications |
| metadata.json | Score, model, skill_mode, cost, duration, timestamp |
| code_files/ | Any .do/.log files the agent wrote |
Aggregate results are saved to the --save path as a JSON list of per-run results.
After running evals, dispatch Sonnet subagents to analyze the results in parallel. This is the workflow that surfaces actionable improvements.
# Quick script to build the comparison table from saved results
import json, statistics
for i in range(1, 25):
tn = f"{i:02d}"
with open(f"tests/results/v3_task{tn}.json") as f:
full = [r["score"] for r in json.load(f) if r["score"] is not None]
with open(f"tests/results/v3_runner_task{tn}.json") as f:
runner = [r["score"] for r in json.load(f) if r["score"] is not None]
fm, rm = statistics.mean(full), statistics.mean(runner)
print(f"Task {tn}: full={fm:.1f} runner={rm:.1f} delta={fm-rm:+.1f}")
Launch 4-5 parallel subagents, each investigating a specific pattern in the results. The prompts below are templates — adapt them to your actual results.
Agent 1 — Regression analysis (skill hurts):
Investigate tasks where the full skill scores LOWER than runner-only. Read the result JSONs, the relevant reference docs, and the judge reasoning for low-scoring runs. Identify specific examples in the reference docs that teach wrong patterns. Compare what the with-skill agent does vs the runner-only agent.
Agent 2 — Redundancy analysis (skill adds nothing):
Investigate tasks where full skill and runner-only score identically. Read the reference docs that would be triggered. Determine whether the content is redundant — the model already knows this material from training. Identify which reference files could be deprioritized or trimmed.
Agent 3 — High-variance analysis (unreliable tasks):
Investigate tasks with SD > 10. Compare the LOW-scoring run vs HIGH-scoring run for each. Identify what went wrong — wrong syntax in the doc? Agent misinterpretation? Context collapse (agent wrote code for wrong task)? Quote specific code that failed.
Agent 4 — Biggest wins analysis (what works):
Investigate the 5 tasks with the largest positive deltas. Read the runner-only judge reasoning to identify specific knowledge gaps. Categorize: community package syntax, Stata-specific idioms, workflow patterns, gotcha avoidance.
Agent 5 — Graphics/weak area analysis:
Investigate the lowest-scoring full-skill tasks. Compare successful vs failed runs. Identify missing content in the reference docs.
Each agent returns specific, evidence-backed proposals. Typical findings:
Fix bugs first, add missing gotchas second, then re-run to verify improvement.
See tests/EVAL_RESULTS_2026-03-22.md for a complete example of this workflow applied to the full 24-task suite. That analysis:
mi estimate pattern, wrong ssc install command, wrong variable names)graph box/twoway incompatibility, DiD event-study syntax, nlcom clobbers e())See ROADMAP.md for bigger-picture improvement directions:
--runs 5 --save on the relevant tasks--compare against the baselineCONTRIBUTING.md for details.tools
Recommend AND run open-source AI tools, agents, Claude Code / Codex skills, and MCP servers for any stage of a literature review — searching, reading, extracting, synthesizing, screening, citation-checking, and paper writing. Use when the user asks "what tool should I use to..." OR "install/run/use <tool> to ..." for research/lit-review work: automating a survey or related-work section, PDF→Markdown extraction for LLMs (MinerU/marker/docling), PRISMA / systematic review (ASReview), citation-backed Q&A over PDFs (PaperQA2), wiring papers into Claude/Cursor via MCP (arxiv/paper-search/zotero servers), or chatting with a Zotero library. Ships a launcher (scripts/litrun.py) that installs each tool in an isolated venv and runs it. Curated catalog of 70+ vetted projects. 支持中英文(用于「文献综述工具选型」与「一键安装/运行」)。
development
Route empirical-research requests through the Auto-Empirical Research Skills catalog when this whole repository is installed as one skill in Codex, CodeBuddy, Claude Code, or another IDE. Use to choose and load the right vendored AERS skill for causal inference, econometrics, replication, data acquisition, manuscript writing, peer review and referee responses, citation checking, de-AIGC editing, or full empirical-paper workflows without reading the entire repository at once.
documentation
Use when the project collects primary data or runs a field, lab, or survey experiment, before the intervention begins — write the pre-analysis plan, size the sample from a power calculation, and register with the AEA RCT Registry. Apply after the design is chosen in aer-identification and before any outcome data are seen.
tools
Guide economists to authoritative data sources with explicit, confirmed data specifications before retrieval; interfaces with Playwright MCP to navigate portals and extract real data, not articles about data.