Workflows:Review logo

Workflows:Review

CommunityPopular
brycewang-stanford
workflows:review

Run multi-agent econometric review on estimation code, identification arguments, and research artifacts

Overview

Publisherbrycewang-stanford
RepositoryAuto-Empirical-Research-Skills
Skill nameworkflows:review
Stars
4.6K
Forks
543
Bundled files
1
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by brycewang-stanford on GitHub. Read the source before you install it.

Installation

Install the Workflows:Review AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills/tree/main/skills/11-James-Traina-compound-science/skills/workflows-review
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills.git /tmp/Auto-Empirical-Research-Skills
mkdir -p .claude/skills
cp -r /tmp/Auto-Empirical-Research-Skills/skills/11-James-Traina-compound-science/skills/workflows-review .claude/skills/brycewang-stanford-workflows-review
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Workflows:Review in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Workflows:Review on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Workflows:Review is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Review Command

Pipeline mode: This command operates fully autonomously. All decisions are made automatically.

Perform exhaustive econometric and methodological review using multi-agent parallel analysis. Domain-specific reviewers check estimation quality, identification strategy, numerical stability, and mathematical rigor.

Input

<review_target> #$ARGUMENTS </review_target>

Execution Workflow

Phase 1: Scope Detection

  1. Eligibility Check

    Before launching review agents, verify there is something to review. If no research artifacts are found (no estimation code, no proofs, no pipeline files, no data scripts, no output files), state "No research artifacts found to review" and stop. Do not launch agents against an empty target.

  2. Determine Review Target

    The review is artifact-centric: it reviews research files (estimation code, proofs, pipelines, data scripts), not git metadata. Determine the target in priority order:

    • File paths or directories (e.g., estimation.py, src/models/, proof.tex) → review those artifacts directly
    • Plan reference (e.g., plan-3) → find the plan in docs/plans/, review files it references
    • PR number → fetch file list with gh pr view --json files
    • Empty → auto-detect: scan the project for estimation code, proofs, pipeline files, and data scripts. If git shows recent changes, include those.
  3. Classify Artifacts

    Scan the target files and classify by type:

    estimation_code: *.py with statsmodels/scipy.optimize/pyblp/linearmodels imports
                     *.R with fixest/lfe/AER/gmm imports
                     *.jl with Optim/NLsolve imports
                     *.do with reg/ivregress/gmm commands
    simulation_code: Monte Carlo loops, DGP code, bias/RMSE computation
    proofs:          *.tex with theorem/proof environments, *.md with derivation sections
    pipeline_files:  Makefile, Snakefile, dvc.yaml, master.do
    data_code:       data loading, cleaning, merge operations
    output_files:    tables/*, figures/*, *.csv result files

    This classification drives which domain reviewers to launch.

  4. Load Review Settings

    Read compound-science.local.md in the project root. If found, use review_agents from YAML frontmatter. If the markdown body contains review context (e.g., "focus on identification strategy" or "this is a replication package"), pass it to each agent as additional instructions.

    If no settings file exists, use defaults:

    yaml
    review_agents:
      - econometric-reviewer
      - numerical-auditor
      - identification-critic
Protected Artifacts

The following paths are compound-science pipeline artifacts and must never be flagged for deletion or removal by any review agent:

  • docs/plans/*.md — Plan files created by /workflows:plan
  • docs/brainstorms/*.md — Brainstorm files created by /workflows:brainstorm
  • docs/solutions/*.md — Solution documents created by /workflows:compound
  • docs/simulations/*.md — Simulation study documentation

If a review agent flags any file in these directories for cleanup or removal, discard that finding during synthesis.

Phase 2: Agent Dispatch

Entry condition: Phase 1 classified at least one artifact; review settings loaded. Exit condition: All dispatched agents have returned findings.

Launch domain reviewers in parallel using the Task tool. The specific agents depend on artifact classification from Phase 1.

Always Run (Core Domain Review)

<parallel_tasks>

Launch econometric-reviewer, numerical-auditor, and identification-critic in parallel:

Task econometric-reviewer(changed files + review context)
  → Checks: identification strategy, endogeneity, standard errors, instrument validity,
    sample selection, asymptotic properties, correct package usage

Task numerical-auditor(changed files + review context)
  → Checks: floating-point stability, convergence diagnostics, integration accuracy,
    RNG seeding, matrix conditioning, overflow/underflow, gradient accuracy

Task identification-critic(changed files + review context)
  → Checks: completeness of identification argument, exclusion restriction plausibility,
    functional form assumptions, parametric vs nonparametric claims, support conditions,
    point vs set identification

</parallel_tasks>

Conditional Agents (Run Based on Artifact Types)

<conditional_agents>

WRITTEN ARTIFACTS: If PR contains proofs, derivations, or paper sections: (Files matching: *.tex, *.md with theorem/proof/lemma/proposition content, docs/proofs/*)

Task journal-referee(written artifact files + review context)
  → Simulates top-5 journal referee: contribution clarity, relation to literature,
    identification concerns, economic vs statistical significance, R&R concerns
    (robustness, external validity, mechanism)

PIPELINE/DATA CODE: If PR contains pipeline files or data processing: (Files matching: Makefile, Snakefile, dvc.yaml, *.do, data loading/cleaning code)

Task reproducibility-auditor(pipeline files + review context)
  → Checks: intermediate files generated by code (no manual steps), seeds documented,
    package versions pinned, end-to-end pipeline, relative paths, data not committed

TABLES/FIGURES: If tables or figures were generated: (Files matching: tables/*, figures/*, *.tex with tabular content, *.csv result files)

Task econometric-reviewer(output files + estimation code + review context)
  → Checks: table numbers match underlying code output, no manual edits to generated tables,
    statistical summaries consistent with estimation logs, formatting correct

</conditional_agents>

Always Run Post-Review
Search docs/solutions/ for past issues related to this PR's modules and patterns
  → Flag matches as "Known Pattern" with links to solution docs
  → See workflows-compound/references/solution-schema.md for category detection and search workflow

Phase 3: Finding Assembly

Wait for all Phase 2 agents to complete before proceeding.

  1. Collect All Findings

    Gather outputs from all parallel agents into a unified findings list.

  2. Categorize by Severity

    SeverityCriteriaAction
    CRITICALIncorrect identification argument, biased estimator, wrong standard errors, numerical instability producing wrong results, missing convergence checkMust fix before proceeding
    WARNINGSuboptimal estimation approach, missing robustness check, incomplete diagnostics, weak instruments not flagged, reproducibility gapShould fix
    NOTEStyle improvements, alternative approaches worth considering, minor efficiency gains, documentation gapsNice to have
  3. Deduplicate and Cross-Reference

    • Remove duplicate findings across agents (e.g., econometric-reviewer and identification-critic may both flag the same exclusion restriction)
    • Surface solution search results: if past solutions are relevant, tag findings as "Known Pattern — see docs/solutions/[path]"
    • Discard any findings that recommend deleting files in protected artifact directories
  4. Estimation-Specific Synthesis

    For estimation code changes, synthesize a unified assessment:

    DimensionStatusDetails
    Identification[valid/concerns/invalid]Summary from econometric-reviewer + identification-critic
    Estimation[correct/issues/incorrect]Summary from econometric-reviewer + numerical-auditor
    Inference[valid/concerns/invalid]Standard error assessment from econometric-reviewer
    Numerical Stability[stable/warnings/unstable]Summary from numerical-auditor
    Reproducibility[complete/gaps/missing]Summary from reproducibility-auditor (if run)
    Rigor[publication-ready/needs-work/insufficient]Summary from journal-referee (if run)

Phase 4: Action

  1. Create Todos for All Findings

    Use TodoWrite to create actionable items for all CRITICAL and WARNING findings:

    TodoWrite([
      { id: "review-001", task: "[CRITICAL] description", status: "pending" },
      { id: "review-002", task: "[WARNING] description", status: "pending" },
      ...
    ])

    For NOTES: include as a summary list — do not create individual todos unless the note is actionable.

  2. Generate Review Summary

    markdown
    ## Econometric Review Complete
    
    **Review Target:** [files/directory/plan reviewed]
    
    ### Estimation Assessment
    | Dimension | Status |
    |-----------|--------|
    | Identification | [status] |
    | Estimation | [status] |
    | Inference | [status] |
    | Numerical Stability | [status] |
    | Reproducibility | [status] |
    | Rigor | [status] |
    
    ### Findings Summary
    - **CRITICAL:** [count] — must fix before proceeding
    - **WARNING:** [count] — should fix
    - **NOTE:** [count] — suggestions
    
    ### CRITICAL Findings
    1. [finding with agent source and file location]
    2. ...
    
    ### WARNING Findings
    1. [finding with agent source and file location]
    2. ...
    
    ### Notes
    - [summarized notes]
    
    ### Known Patterns (from docs/solutions/)
    - [any matches from solution search]
    
    ### Review Agents Used
    - econometric-reviewer
    - numerical-auditor
    - identification-critic
    - [conditional agents if triggered]
    - docs/solutions/ search
    
    ### Next Steps
    1. Address CRITICAL findings (must fix before proceeding)
    2. Address WARNING findings (recommended)
    3. Run `/workflows:compound` to document any novel solutions

Review Perspectives

The review evaluates changes from multiple research-relevant angles:

Methodological Rigor

  • Is the identification strategy valid and complete?
  • Are the maintained assumptions stated and plausible?
  • Does the estimation approach match the identification argument?
  • Are diagnostics and specification tests appropriate?

Numerical Quality

  • Does estimation code handle floating-point correctly?
  • Are convergence criteria appropriate?
  • Is the code robust to ill-conditioned data?
  • Are random seeds set for all stochastic operations?

Reproducibility

  • Can results be reproduced from the replication package?
  • Are all dependencies pinned?
  • Does the pipeline run end-to-end without manual steps?
  • Are data sources documented and accessible?

Contribution (Referee Perspective, if triggered)

  • Is the contribution clearly stated?
  • How does this relate to existing literature?
  • Are results economically meaningful (not just statistically significant)?
  • What would a skeptical referee ask for?

Configuring Review Agents

Review agents are configured in compound-science.local.md at the project root. The YAML frontmatter controls which agents run:

yaml
---
review_agents:
  - econometric-reviewer
  - numerical-auditor
  - identification-critic
  # Uncomment to always include:
  # - journal-referee
  # - reproducibility-auditor
---

The markdown body provides additional context passed to all review agents:

markdown
## Review Context
Focus on identification strategy — this paper uses a shift-share instrument
and we need to verify the exclusion restriction argument is complete.

To create or modify settings, edit compound-science.local.md directly.


Severity Scale

All review findings must use this severity scale:

SeverityMeaningAction RequiredResearch Example
P0Invalidates core resultMust fix before proceedingIdentification failure, wrong estimator for the DGP
P1Materially affects conclusionsShould fixWrong standard errors, convergence failure, missing first-stage
P2Weakens but doesn't invalidateFix if straightforwardMissing robustness check, incomplete sensitivity analysis
P3Style or documentationAuthor's discretionCode comments, variable naming, table formatting

Aggregate verdict: Ready / Ready with fixes / Not ready


Phase 5: Handoff

Pipeline mode (when invoked from /lfg or /slfg):

  • Skip the interactive menu
  • Auto-invoke /workflows:compound to document findings

Standalone mode (when invoked directly by the user):

  • After the Phase 4 review summary, present options:
    1. Document findings (Recommended if issues were found) — Immediately run /workflows:compound to capture solutions
    2. Fix findings — Run /workflows:work to implement fixes for review findings
    3. End session — Stop here; the review summary is displayed

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Workflows:Review AI skill do?

Run multi-agent econometric review on estimation code, identification arguments, and research artifacts

Why use Workflows:Review on TypingMind?

Because you install it once and use it with any model. Workflows:Review is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Workflows:Review in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills/tree/main/skills/11-James-Traina-compound-science/skills/workflows-review. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Workflows:Review?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Workflows:Review?

As many as you like. As long as a model supports skills, you can use Workflows:Review with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Workflows:Review AI skill free?

It is published on GitHub by brycewang-stanford. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇