mixtapetools
repository·main·Indexed 19 days ago
https://github.com/scunning1975/mixtapetoolsA suite of tools, templates, and methodologies for empirical economics researchers using Claude Code. It features the Referee 2 systematic audit and replication protocol for code integrity, a GTD (Get Things Done) research pipeline for hypothesis and decision management, and a Health Inspector Model for independent auditing. The toolkit includes a CLAUDE.md template for persistent project context and a LaTeX Beamer theme for academic presentations.
What's inside mixtapetools
- This research investigates how competitive forces shape ideological diversity in the newspaper market. It specifically examines whether households prefer like-minded news, how newspapers use political orientation to differentiate from competitors, and whether market competition enhances or reduces ideological diversity. The study provides a structural model for a two-sided market (readers and advertisers) using 1924 US daily newspaper data as a historical experiment.
Understand the MixtapeTools philosophy and workflow
mainMixtapeTools is a collection of tools, templates, and philosophies designed for empirical economics research using Claude Code. The core philosophy treats Claude as a thinking partner rather than an autonomous agent or a simple code generator. The workflow emphasizes iterative steering, where the user thinks through the AI to maintain clarity.
Key principles of the workflow include:
- External memory via markdown: Using markdown files to provide institutional memory across Claude sessions to combat AI amnesia.
- Cross-software replication: Ensuring results are consistent across different environments (e.g., R, Stata, and Python).
- Adversarial review (Referee 2): Using fresh Claude instances to audit work to avoid self-grading bias.
- Verification through visualization: Prioritizing visual inspection of data to catch errors that numbers might hide.
- Documentation as first-class output: Treating documentation as an essential part of the research process.
Understand the Dashboard Tabs and their purposes
mainThe dashboard is organized into functional groups to prevent redundancy. Each tab serves a specific role in the research/audit lifecycle:
Output Group
- Narrative: The current best understanding of truth (present-tense). It is populated from
narrative.mdor auto-assembled from confirmed hypotheses and insights. It features Drift detection (warning if a narrative references a non-confirmed hypothesis) and Inline status badges for hypothesis IDs.
Structure Group
- Overview: Project management view showing operational health, hypothesis counts, and recent audit cards.
- Courtroom: Evaluates the five stages of proof (Show Bite, Event Studies, Falsification, Main Results, Mechanisms) to determine if evidence supports a causal claim.
- Checklist: A mechanical recipe of nine DiD (Difference-in-Differences) steps. Status is based on file existence, not quality.
- Code: A view-only unified code viewer. It distinguishes between Pipeline scripts (in the DAG, marked with freshness dots) and Stale scripts (not in the DAG).
- Data: A catalog of raw source datasets, not intermediate files.
Evidence Group
- Hypotheses: The audit trail of all claims (conjecture, testing, confirmed, complicated, rejected).
- Insights: A chronological log of empirical findings requiring exact numbers and hypothesis links.
- Decisions: A record of binding design choices that constrain downstream work.
- Figures: A gallery of PNGs from
output/figures/presented as flippable cards showing provenance. - Tables: A viewer for LaTeX (
.tex) and CSV files fromoutput/tables/.
Reference Group
- Skills: A reference list of available Claude Code skills.
- Narrative: The current best understanding of truth (present-tense). It is populated from
Differentiate Rhetorical Appeals by Audience Type
mainThe weight of Ethos, Pathos, and Logos should shift depending on whether you are teaching or presenting research.
Classroom (Focus: Orientation)
Students are often less expert and more vulnerable to confusion. The goal is to guide them safely.
- Ethos: "I can guide you safely through this."
- Pathos: "You can learn this; the difficulty is manageable."
- Logos: "Each step follows, and you can see why."
- Strategy: Use more signposting, repetition, worked examples, and slower notation introduction.
Research Seminar (Focus: Credibility)
Peers are more expert and skeptical. The goal is to establish credibility under uncertainty.
- Ethos: "I know the literature, the method, and the threats."
- Pathos: "This problem matters, and the tension is real."
- Logos: "The evidence supports this claim under clearly stated assumptions."
- Strategy: Lead with the question/stakes, identify variation early, use assertion titles, and show one proof object per slide.
Define the nature of a slide deck
mainA slide deck is a form of sequential visual rhetoric designed to accompany a spoken argument. To use this medium effectively, understand its four constitutive properties:
- Sequential: Decks are ordered (Slide 1 $\rightarrow$ Slide 2 $\rightarrow$ Slide 3). This temporal order creates a narrative that imposes a specific sequence of ideas on the audience.
- Visual: Meaning is carried through visual composition (typography, color, imagery, white space, data visualization) rather than just text. The visual channel conveys patterns and relationships that text cannot.
- Rhetoric: Decks aim to persuade. They should utilize the Aristotelian framework: establishing credibility (ethos), engaging emotion (pathos), and presenting logical argument (logos).
- Designed to accompany spoken argument: A deck is not a document. The slides should act as visual anchors, evidence containers, or structural markers. If a slide contains everything the speaker says, it has failed as a slide and become a document pretending to be a presentation.
Apply the Pyramid Principle for top-down structure
mainBased on Barbara Minto's principle, effective business communication should be structured top-down to respect the audience's time and skepticism:
- State the conclusion first.
- Provide supporting arguments.
- Provide evidence for those arguments.
Do not make the audience wait to discover your point; lead with the takeaway and then prove it.
Structure of a Hypothesis Record (H01 Example)
mainIn the
gtd(Get Things Done) system, hypotheses are documented using a structured Markdown format that includes metadata, a claim, a 'Courtroom' for causal identification, a 'Kills It' section for falsification criteria, and an 'Evidence' section for tracking results.Metadata Schema
id: Unique identifier (e.g.,H01).title: A concise statement of the hypothesis.status: Current state (e.g.,testing).parent/children: Links to hierarchical sub-claims.date_proposed/date_resolved: Temporal tracking.
Causal Identification (Courtroom)
To ensure scientific rigor, each hypothesis defines:
- Estimand: The specific effect being measured.
- Population: The target group.
- Variation: The source of causal identification (e.g., staggered rollout).
- Mechanism: How the variation occurs.
- Falsification: The design used to rule out null hypotheses (e.g., placebo tests).
- Sub-claims: Granular breakdowns (e.g., by urban vs. rural).
--- id: H01 title: Free tutoring increases attendance status: testing parent: null children: [H01a, H01b] date_proposed: 2026-04-01 date_resolved: null --- ## Claim Districts that adopted the free after-school tutoring program experienced increased daily attendance rates... ## Courtroom - **Estimand**: ATT of the tutoring program on daily attendance rate (percentage points) - **Population**: Students in grades 3-8... - **Variation**: Staggered district-level adoption... - **Mechanism**: Districts opted in through a competitive grant application... - **Falsification**: Same design in Fall 2025 (pre-program) should yield null - **Sub-claims**: Urban districts (H01a) and rural districts (H01b)... ## Kills It 1. Pre-trends are not parallel... 2. Placebo estimate is statistically significant... 3. Effect disappears when controlling for confounders... ## Evidence - [2026-04-10: Urban ATT = 2.3pp](../insights/2026-04-10_urban_att.md)Optimize Slide Content using the MB/MC Ratio
mainOptimize your deck by equalizing the marginal benefit (MB) to marginal cost (MC) ratio across all slides.
$$\frac{MB_1}{MC_1} = \frac{MB_2}{MC_2} = \cdots = \frac{MB_n}{MC_n}$$
- MB (Marginal Benefit): The incremental insight, evidence, or emotional resonance gained by adding information.
- MC (Marginal Cost): The cognitive load, attention demanded, or risk of overwhelming the audience.
The Audit
For every slide, ask:
- "If I added one more element, would the benefit justify the cognitive cost?"
- "If I removed one element, would I lose more than I'd gain in clarity?"
Overloaded slides (low MB/MC) have too much text or competing ideas. Underloaded slides (high MB/MC) waste opportunities to reinforce points.
$$\frac{MB_1}{MC_1} = \frac{MB_2}{MC_2} = \cdots = \frac{MB_n}{MC_n}$$Understand the rhetorical framework for academic slide decks
mainAcademic slide decks should be treated as performance media rather than static documents. Unlike a paper, a deck is experienced in time and serves as a visual anchor for a spoken argument.
To create effective decks, use Aristotle's three artistic proofs to balance persuasion:
- Ethos (Character): Persuasion through the speaker's perceived character and judgment.
- Pathos (Emotion): Persuasion through the emotional state and disposition of the audience.
- Logos (Logic): Persuasion through the structure of the argument, specifically using examples and reasoning.
Effective academic presentation requires balancing all three. A deck with only logos is a "hostile data dump"; a deck with only pathos is "inspirational noise"; and a polished deck without ethos looks like "consulting theater."
What /bibcheck audits and what it ignores
main/bibcheckis a bounded tool focused on the accuracy of the.bibentries themselves. It does not evaluate the relationship between the citations and your manuscript.What it checks:
- Existence: Verifies the paper exists via DOI or canonical landing page.
- Field consistency: Ensures title, authors, year, journal, volume, issue, pages, and publisher all belong to the same paper.
- Field correctness: Checks for wrong years, wrong abbreviations, wrong volumes, or incorrect page ranges.
- Format integrity: Ensures parseable BibTeX and valid Unicode in author names.
What it does NOT check:
- Whether the citation supports the claim it is attached to (use
/referee2for this). - Whether the cited paper's findings are correctly characterized in the manuscript text (use
/referee2). - Whether the manuscript is missing citations it should have.
Understand the patterns of effective slide decks
mainEffective slide decks are characterized by specific patterns that distinguish them from poor-quality or contextually inappropriate presentations. When evaluating or creating a deck, look for these three dimensions of patterns:
1. Domain-Specific Patterns
Different professional domains have evolved distinct norms:
- Management Consulting: Often follows rigid templates emphasizing recommendations and supporting evidence.
- Academic Economics: Typically leads with literature review and methodology before presenting conclusions.
- Product Marketing: Often leads with user stories and emotional hooks before presenting features.
2. Quality-Based Patterns
Effective decks share specific characteristics that separate them from ineffective ones:
- Effective Characteristics: Clarity of central message, economy of means, appropriate evidence, logical flow, and visual coherence.
- Ineffective Characteristics: Unclear purpose, overwhelming detail, missing evidence for claims, jumbled structure, and visual noise.
3. Context-Based Patterns
The level of detail and polish should match the intended setting:
- Board Presentations: Require high polish and specific information density.
- Team Working Sessions: May require more interaction and different levels of completion.
- Classroom Lectures/Academic Job Talks: Require specific structural orientations suited to teaching or formal defense.
Apply the 'Comics' analogy to slide sequencing
mainJust as Scott McCloud defines comics as "sequential art" where meaning emerges from the juxtaposition of images, a slide deck's effectiveness depends on what happens between slides.
While comics aim for narrative absorption, decks aim for cognitive engagement. The "space between slides" in a deck is not fictional time, but the progression of ideas through argumentative space. Use transitions and sequencing to control attention and reveal information progressively.