{"slug":"theory-design","title":"theory-design","summary":"Design a coherent theoretical framework for a new statistics / ML theory research topic, paper-type aware. Three modes — Theory paper (explain phenomena or provide new theoretical tools), Methodology paper (propose a new method with theoretical guarantees), Application paper (app","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-12-03T17:29:26.819885Z","repo":{"url":"https://github.com/gyf9712/stat-theory-skills","stars":11,"forks":2,"license":"MIT","updatedAt":"2026-12-02T01:38:38Z"},"bodyHtml":"<hr>\n<h2>name: theory-design\ndescription: &gt;-\nDesign a coherent theoretical framework for a new statistics / ML theory\nresearch topic, paper-type aware. Three modes — Theory paper (explain phenomena\nor provide new theoretical tools), Methodology paper (propose a new method with\ntheoretical guarantees), Application paper (apply existing methods to scientific\ndata with assumption verification). Each mode walks a different logical order:\nthe centerpiece of a theory paper is the theorem itself, of a methodology paper\nthe estimator, of an application paper the empirical findings. Mandatory literature\nanchoring step (recent top-venue papers) identifies the field's theoretical\ninertia and positioning options BEFORE any phase decision, then constrains every\nsubsequent decision. Produces FRAMEWORK_DESIGN.md + LITERATURE_ANCHOR.md that\ndownstream skills (proof-writer, theory-simulation, proofcheck) consume. Use when\nuser says \"design theory framework\", \"理论框架设计\", \"新课题怎么开始\", \"新方向\ndesign\", \"from scratch theory\", \"构建理论框架\", \"start a new topic\", or asks for\nthe logical order to build a statistics paper's theoretical content from a blank\npage.\nargument-hint: [topic-or-rough-idea]\nallowed-tools: Bash(*), Read, Write, Edit, Grep, Glob, Agent, WebSearch, WebFetch, mcp__codex__codex, mcp__codex__codex-reply\nmodel: opus</h2>\n<h1>Theory-Design — Paper-Type-Aware Theoretical Framework Design</h1>\n<blockquote>\n<p>\uD83D\uDD2C <strong>Model Recommendation</strong>: Run this skill on <strong>Claude Opus</strong> for best results.\nFramework design requires deep reasoning across mathematical and methodological\ndimensions. If your session is not on Opus, run <code>/model opus</code>.</p>\n</blockquote>\n<p>Goes from \"I have a new research topic\" to a structured <strong>FRAMEWORK_DESIGN.md</strong>\nthat downstream skills can consume. The skill's central insight: <strong>the logical\norder of theoretical-framework design depends on what kind of paper you're writing.</strong></p>\n<h2>Context: $ARGUMENTS</h2>\n<hr>\n<h2>Pipeline Position</h2>\n<pre><code>research-refine  →  /theory-design  →  /proof-writer  →  /theory-simulation  →  /proofcheck  →  /theory-sharpen  →  /proof-repair\n(rough idea)        (framework)        (theorems)        (verify)              (audit)         (improve)           (fix)\n</code></pre>\n<p>This skill is the <strong>planning layer</strong> — chooses the framework, declares assumptions,\nsets target results — before any theorem is written or experiment run.</p>\n<hr>\n<h2>Step 0: Declare paper type (MANDATORY first decision)</h2>\n<p>Statistics papers come in three types with <strong>fundamentally different logical\norders</strong>. The skill REFUSES to proceed until the user declares type. If unsure,\nthe skill helps classify based on the topic description.</p>\n<h3>The three paper types</h3>\n<table>\n<thead>\n<tr>\n<th>Type</th>\n<th>Contribution</th>\n<th>Theory's role</th>\n<th>Estimator</th>\n<th>Lower bound</th>\n<th>Simulation</th>\n<th>Real data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>THEORY</strong></td>\n<td>New theoretical tool, explanation of phenomenon, impossibility result</td>\n<td>The contribution itself</td>\n<td>Often none/abstract</td>\n<td>Often equally important to upper bound</td>\n<td>Illustrative</td>\n<td>Rarely</td>\n</tr>\n<tr>\n<td><strong>METHODOLOGY</strong></td>\n<td>A new method (estimator/test/algorithm)</td>\n<td>Guarantees statistical correctness of method</td>\n<td>The centerpiece</td>\n<td>Sometimes</td>\n<td>Validating</td>\n<td>Usually demonstrating</td>\n</tr>\n<tr>\n<td><strong>APPLICATION</strong></td>\n<td>New empirical insight on scientific data</td>\n<td>Supports / justifies method choice</td>\n<td>Uses existing</td>\n<td>Almost never</td>\n<td>Almost never</td>\n<td>The main event</td>\n</tr>\n</tbody>\n</table>\n<h3>Decision aid (if user is unsure)</h3>\n<p>Ask in order:</p>\n<ol>\n<li><p><strong>Is your contribution primarily</strong>:</p>\n<ul>\n<li>a new mathematical insight / theorem / theoretical tool → THEORY</li>\n<li>a new procedure / algorithm / estimator → METHODOLOGY</li>\n<li>a new finding from analyzing real data → APPLICATION</li>\n</ul>\n</li>\n<li><p><strong>What would the \"main result\" section show?</strong></p>\n<ul>\n<li>A theorem (rate, distribution, lower bound, characterization) → THEORY</li>\n<li>Properties of a procedure (consistency, rate, coverage of the procedure) → METHODOLOGY</li>\n<li>Tables/figures of empirical estimates and p-values from real data → APPLICATION</li>\n</ul>\n</li>\n<li><p><strong>What does the reviewer most care about?</strong></p>\n<ul>\n<li>Mathematical novelty and proof rigor → THEORY</li>\n<li>Whether the method works better than competitors + has theoretical backing → METHODOLOGY</li>\n<li>Substantive scientific conclusion + valid inference → APPLICATION</li>\n</ul>\n</li>\n</ol>\n<p>If still unclear: the topic might be a hybrid; force a choice and revisit.</p>\n<h3>Mode routing</h3>\n<p>Based on declared type, the skill runs ONE of three workflows:</p>\n<ul>\n<li><strong>Theory mode</strong> → Step T1-T7</li>\n<li><strong>Methodology mode</strong> → Step M1-M7</li>\n<li><strong>Application mode</strong> → Step A1-A7</li>\n</ul>\n<p>But FIRST, regardless of mode, run Step 0.5.</p>\n<hr>\n<h2>Step 0.5: MANDATORY Literature Anchoring</h2>\n<p><strong>This step is NON-NEGOTIABLE.</strong> A theoretical framework designed without\nliterature context is almost certainly either:</p>\n<ul>\n<li>Reinventing what's already done</li>\n<li>Deviating from field conventions for no reason</li>\n<li>Missing the \"theoretical inertia\" — how the community frames this problem</li>\n<li>Unpositioned — making it hard to assess the contribution</li>\n</ul>\n<p>Build the literature anchor BEFORE any phase decision. Every subsequent phase\nmust reference back to this anchor when making a choice.</p>\n<h3>0.5.cache: Cache-consult first (mandatory)</h3>\n<p>Before invoking any web search, consult the durable literature cache at <code>~/.claude/literature_cache/</code>. The protocol lives in <code>../stat-shared-references/literature-cache-protocol.md</code> (router with Minimum Load Map). For theory-design Step 0.5 the typical loads are:</p>\n<ul>\n<li><code>literature-cache-protocol.md</code> (router) — always.</li>\n<li><code>citation-purpose-protocol.md</code> — for <code>lineage_positioning</code> and <code>benchmark_claim</code> role identification of the anchor papers.</li>\n<li><code>applicability-axes.md</code> — when matching cached papers to the topic signature's axis declarations (data structure, regime, framework, etc.).</li>\n</ul>\n<p>Procedure: read the INDEX (and any relevant domain shards under <code>~/.claude/literature_cache/domains/</code>) to identify which papers in the topic's theoretical line are already cached at <code>source_checked</code> or higher. Result-scoped loads only. The cache hits become the starting set; the four parallel-agent searches in 0.5B target only the cache misses.</p>\n<p>Cache hits at <code>independently_checked</code> or higher are admissible as lineage anchors and benchmarks without a fresh fetch. Cache hits at <code>source_checked</code> are admissible for background and prose-only positioning; promotion to <code>independently_checked</code> is required if the paper enters the positioning argument as a benchmark.</p>\n<h3>0.5A: Topic signature for search</h3>\n<p>Build a structured topic signature for the search queries:</p>\n<pre><code>Topic signature:\n- Primary subject:     [1-3 word phrase, e.g., \"treatment effect estimation\"]\n- Method/technique:    [e.g., \"doubly robust\", \"Poisson equation\", \"lasso\", \"M-estimation\"]\n- Data structure:      [iid / TS / mixing / Markov / panel / spatial / sequential / network]\n- Modeling framework:  [parametric / semiparametric / nonparametric]\n- Regime:              [classical / proportional / high-d / non-asymptotic / online]\n- Application area (if applicable): [causal inference / genomics / finance / etc.]\n</code></pre>\n<h3>0.5B: Multi-source T1 literature search (parallel)</h3>\n<p>Run in parallel — use Agent tool for each search agent:</p>\n<p><strong>Agent 1: T1 statistics journals (last 5 years preferred)</strong></p>\n<pre><code>Search Semantic Scholar API:\n  query = [topic signature components]\n  year = current_year - 5 .. current_year\n  venue ∈ {Annals of Statistics, JASA T&amp;M, JASA ACS, AOAS, JRSS-B, Biometrika,\n            Bernoulli, EJS, Statistica Sinica, Biostatistics, JCGS}\n  fields = title, authors, year, abstract, venue, citationCount, externalIds\n\nApply filters:\n  - Sort by recency; prefer last 3 years\n  - Drop low-citation older papers\n  - Keep top 10-15 most-relevant\n</code></pre>\n<p><strong>Agent 2: T1 ML/AI conferences (last 5 years preferred)</strong></p>\n<pre><code>WebSearch + Semantic Scholar:\n  query = [topic signature components]\n  venue ∈ {NeurIPS, ICML, ICLR, COLT, AISTATS, JMLR, UAI}\n  \nSame filtering rules.\n</code></pre>\n<p><strong>Agent 3: T1 econometrics journals (if applicable)</strong></p>\n<pre><code>Search:\n  venue ∈ {Econometrica, Journal of Econometrics (JOE), Review of Economic Studies,\n            Quantitative Economics, JBES, Econometric Theory, RFS, JF}\n</code></pre>\n<p><strong>Agent 4: Highly-cited \"consensus\" papers (last 10 years)</strong></p>\n<pre><code>Search:\n  query = broader topic signature\n  sort = citationCount desc\n  year = current_year - 10 .. current_year\n  limit = 10\n\nPurpose: identify what the field considers CANONICAL recent work\n(papers that define the current framework).\n</code></pre>\n<h3>0.5C-0.5F: Extract, summarise inertia, choose positioning, derive constraints</h3>\n<p>For each anchor paper, record: problem framing, theoretical anchor, assumption profile,\nresult type, proof technique, and position in the literature. Write the results to\n<code>LITERATURE_ANCHOR.md</code>.</p>\n<p>Then produce three things, in order, because each constrains the next:</p>\n<ol>\n<li><strong>Theoretical inertia of the field</strong> — the default data structure, the default\nassumption set, the default result type, and the technique the field currently\nreaches for. This is what a referee will unconsciously expect. Name the classical\nmachinery cluster the framework extends (minimax lower bounds, empirical process\ntheory, semiparametric efficiency, local asymptotics, high-dimensional\nregularization, Bayesian asymptotics) or declare it frontier-native (conformal\ninference, e-values, computational-statistical trade-offs); naming neither is\nusually a sign the literature search missed the field's actual machinery.</li>\n<li><strong>Positioning options</strong> — <code>INCREMENTAL</code> (accept the inertia, push one dimension),\n<code>LATERAL</code> (change the object or the setting), or <code>DISRUPTIVE</code> (reject a default the\nfield has stopped questioning). Name the cost of each; disruptive positioning buys\nnovelty and spends referee goodwill.</li>\n<li><strong>Constraints derived from the anchor</strong> — what the chosen positioning now forbids.\nThese bind every later phase decision; a framework that violates its own anchor\nconstraints is incoherent, and the X-series checks will catch it.</li>\n</ol>\n<p>Filled specimens for all four artifacts:\n<code>../stat-shared-references/examples/literature-anchor-example.md</code>.</p>\n<h2>THEORY MODE (T1-T7)</h2>\n<p>Centerpiece: the theorem itself. Estimator often degenerate or absent.</p>\n<h3>T1: Phenomenon / object identification</h3>\n<pre><code>Q1.1: What mathematical phenomenon, object, or impossibility are you trying to\n      characterize, explain, or formalize?\n      (Examples: BBP transition in high-dim regression; new concentration\n       inequality for dependent data; minimax lower bound for a new class)\n\nQ1.2: Is this an explanation of an observed effect, the introduction of a new\n      abstraction, or both?\n\nQ1.3: Why is the current theoretical toolkit insufficient?\n      State precisely the technical step that cannot be handled by existing tools.\n</code></pre>\n<h3>T2: Mathematical landscape mapping</h3>\n<pre><code>Q2.1: What existing theoretical frameworks are most relevant?\n      (Empirical process / RKHS / random matrix / convex analysis / information\n       theory / Markov chains / ...)\n\nQ2.2: Which tools from each framework can be reused?\n      Which need extension or replacement?\n\nQ2.3: Are there sibling results in adjacent fields (probability, optimization,\n      info theory) that solved analogous structures?\n\nQ2.4: Do a quick T1 literature scan for related results in the last 5 years.\n      Save findings to FRAMEWORK_DESIGN.md as the \"landscape\" section.\n</code></pre>\n<h3>T3: Conceptual framework &amp; notation</h3>\n<pre><code>Q3.1: At what level of abstraction does the theory live?\n      (Pointwise theorem / parameter class / function class / operator level)\n\nQ3.2: What is the right notation system?\n      Compatible with which existing literature?\n      Where to introduce new notation? (do so sparingly)\n\nQ3.3: What is the underlying probability space / σ-algebra / filtration setup\n      if dependence or sequential structure is involved?\n</code></pre>\n<h3>T4: Formal problem setup</h3>\n<pre><code>Q4.1: Define the spaces, parameter classes Θ, function classes F, etc.\n      Be explicit about: domain, range, topology, measure.\n\nQ4.2: Regularity on the PROBLEM (not on methods):\n      - Smoothness of underlying object?\n      - Identifiability conditions?\n      - Boundedness / tail behavior?\n\nQ4.3: Asymptotic regime (which path is taken to ∞?)\n      Same axes as theory-sharpen: classical / proportional / sparse / non-asymptotic / online.\n</code></pre>\n<h3>T5: Target theorems (conjectures + impossibility)</h3>\n<p>This is where theory papers differ most from methodology: <strong>both upper and lower\nbounds are equally first-class citizens.</strong></p>\n<pre><code>Q5.1: Upper-bound conjecture: what positive result do you AIM to prove?\n      Write a placeholder theorem statement.\n\nQ5.2: Lower-bound conjecture: what impossibility result is needed to certify the\n      rate / characterization is sharp?\n      (Minimax via Fano / Le Cam / Assouad; or worst-case lower bound)\n\nQ5.3: Are upper and lower bounds going to match? (If not, the gap is itself a\n      contribution or a future-work problem.)\n\nQ5.4: Auxiliary theorems: are there secondary results (consistency, structural\n      characterization, phase transitions) that strengthen the paper?\n\nQ5.5: For each target theorem: sketch the regime / parameter range where it should hold.\n</code></pre>\n<h3>T6: Proof strategy &amp; lemma scaffold</h3>\n<pre><code>Q6.1: High-level path: direct / contradiction / induction / coupling /\n      reduction / construction / variational?\n\nQ6.2: Major decomposition (if any): e.g., bias + variance, oracle + remainder,\n      martingale + drift, signal + noise, low-rank + sparse.\n\nQ6.3: Key tools needed: chaining / localization / Bernstein / Poisson equation /\n      decoupling / spike-and-slab / random matrix concentration / etc.\n\nQ6.4: Anticipated hardest step: where do you expect the proof to fight back?\n      Have related papers handled similar difficulties?\n\nQ6.5: Lemma scaffold: list 3-8 auxiliary lemmas you anticipate needing.\n      (proof-writer can later be invoked to draft each)\n\nQ6.6: Sketch a proof outline (≤ 1 page) BEFORE detailed proving.\n</code></pre>\n<h3>T7: Connections (open to downstream)</h3>\n<pre><code>Q7.1: What method designs does this theory enable / inform?\n      (Theory paper authors should NOT design the method here; they should\n       enumerate what becomes possible.)\n\nQ7.2: Who will cite this paper? (theorists / methodologists / applied users)\n      What is the chain of impact?\n\nQ7.3: Open problems your theory raises but doesn't solve.\n      These go in the Discussion section and seed future papers.\n\nQ7.4: Follow-through for each main result: a corollary, recovery of a known\n      result, a boundary case, a link to prior work. Decide INCLUDE (with\n      the claim) or NONE (with a reason) for each; never add one to fill a\n      slot. Record in PROOF_ARCHITECTURE.md (Main Results + Result\n      Follow-Through tables).\n</code></pre>\n<p>After T1-T7, FRAMEWORK_DESIGN.md is complete. Hand off:</p>\n<ul>\n<li>T5 conjectures → <code>/proof-writer</code> to draft theorem statements</li>\n<li>T6 lemma scaffold → <code>/proof-writer</code> to draft each lemma</li>\n<li>Optional simulation illustration → <code>/theory-simulation</code> (lightweight DESIGN mode)</li>\n<li>After proofs drafted → <code>/proofcheck</code></li>\n</ul>\n<hr>\n<h2>METHODOLOGY MODE (M1-M7)</h2>\n<p>Centerpiece: a new method. Theory exists to guarantee the method.</p>\n<h3>M1: Practical problem &amp; method gap</h3>\n<pre><code>Q1.1: What practical statistical problem motivates the new method?\n      (Examples: causal inference under unmeasured confounding; high-dim variable\n       selection with grouped sparsity; nonparametric test for monotonicity)\n\nQ1.2: What can existing methods NOT do, or do poorly?\n      Be precise: name the existing methods and the specific gap.\n\nQ1.3: Who needs the new method? (Sub-discipline / data modality / problem class)\n</code></pre>\n<h3>M2: Method design (CENTERPIECE — differs most from theory papers)</h3>\n<pre><code>Q2.1: Define the estimator / algorithm / procedure precisely.\n      Pseudo-code or formula.\n\nQ2.2: Tuning parameters: list each (λ, h, K, ...).\n      How will each be chosen in practice? (CV, plug-in, BIC, oracle?)\n\nQ2.3: Computational considerations:\n      - Closed-form vs iterative?\n      - Complexity in n, d?\n      - Scalability claim — paper will need /theory-simulation computational audit\n        if claimed.\n\nQ2.4: Does the method use cross-fitting / sample splitting / debiasing?\n\nQ2.5: Sanity checks: can the method be a wrong choice?\n      Are there degenerate inputs where it fails?\n</code></pre>\n<h3>M3: Model setup for analysis</h3>\n<pre><code>Q3.1: Under what DGP / model class will you ANALYZE the method?\n      (Should be realistic enough to be useful, not so general that proofs become\n       impossible.)\n\nQ3.2: Data structure (i.i.d. / mixing / Markov / panel / spatial / sequential)?\n\nQ3.3: Asymptotic regime to target (n→∞, d→∞, sparsity, ...)?\n\nQ3.4: Pre-declare which assumptions will likely show up in analysis (without\n      committing yet — this is the rough plan).\n</code></pre>\n<h3>M4: Identification</h3>\n<pre><code>Q4.1: Is the target estimand identified under your model?\n      What conditions are needed?\n\nQ4.2: Can identification fail for plausible data configurations?\n      Address weak / partial / no identification explicitly.\n\nQ4.3: Are identification conditions VERIFIABLE in data, or only theoretical?\n      (E.g., positivity in causal inference is verifiable; no-unobserved-confounding\n       is not.)\n</code></pre>\n<h3>M5: Theoretical guarantees needed</h3>\n<pre><code>Q5.1: Required guarantees (in order of necessity):\n      - Consistency? (almost always required)\n      - Rate of convergence? (required for parametric / nonparametric / high-dim)\n      - Asymptotic distribution / CLT? (required for inference)\n      - Coverage of CIs? (if paper claims inference)\n      - Uniformity over Θ? (if claimed; otherwise weaker pointwise suffices)\n      - Structural recovery? (if claimed)\n\nQ5.2: Robustness guarantees:\n      - To misspecification?\n      - To contamination / outliers?\n      - To dependence violations?\n\nQ5.3: What's the MINIMAL assumption set that gives the guarantees?\n      Iterate this — start broad, narrow down.\n\nQ5.4: Computational guarantees if relevant:\n      - Convergence of iterative procedure?\n      - Step size conditions?\n      - Local-vs-global optimum?\n</code></pre>\n<h3>M6: Simulation + real-data validation plan</h3>\n<p>(Methodology papers REQUIRE both. Application is mostly demonstration.)</p>\n<pre><code>Q6.1: Simulation plan: hand off to /theory-simulation DESIGN mode\n      - rate verification along asymptotic path\n      - inference diagnostics (coverage, size, power, EmpSE/ModSE)\n      - stress tests on each critical assumption\n      - paired comparison against ≥1 competitor\n\nQ6.2: Real data application:\n      - Which dataset? Why is it the right test case?\n      - Is the application demonstrating practicality, not proving anything new?\n      - What assumption-checking will be done on the data?\n</code></pre>\n<h3>M7: Proof strategy</h3>\n<pre><code>Q7.1: Proof approach: M-estimation framework / influence function expansion /\n      empirical process / regularization theory / etc.\n\nQ7.2: Decomposition: typically bias + variance, or oracle + remainder for\n      cross-fitting.\n\nQ7.3: Key technical lemmas (often more \"technical labor\" than in theory papers):\n      list 3-10 lemmas needed.\n\nQ7.4: Are you proving NEW theory, or using EXISTING theory?\n      For methodology papers, the proof is usually technical labor applying\n      existing theory to your specific method. State this honestly.\n</code></pre>\n<p>After M1-M7, hand off:</p>\n<ul>\n<li>M2 method definition → can be implemented in code</li>\n<li>M5 target guarantees → <code>/proof-writer</code> to write theorem statements</li>\n<li>M6 validation plan → <code>/theory-simulation</code> (DESIGN mode)</li>\n<li>M7 proof strategy → <code>/proof-writer</code> for each guarantee</li>\n<li>After proofs → <code>/proofcheck</code></li>\n</ul>\n<hr>\n<h2>APPLICATION MODE (A1-A7)</h2>\n<p>Centerpiece: the empirical insight. Method is chosen, not invented.</p>\n<h3>A1: Scientific question &amp; data</h3>\n<pre><code>Q1.1: What scientific / economic / medical question motivates this paper?\n      Articulate as a sharp hypothesis or estimation target.\n\nQ1.2: What data answers this question?\n      - Source, size, structure\n      - Strengths and weaknesses\n      - Why this data and not other data?\n\nQ1.3: Who is the audience? (Domain experts? Statisticians?)\n      Tone and depth of statistical detail varies.\n\nQ1.4: What is the substantive prior? (Effect direction, magnitude, mechanism?)\n</code></pre>\n<h3>A2: Existing-method selection</h3>\n<pre><code>Q2.1: Which existing methods match (data structure, question)?\n      List 2-3 candidates with pros/cons.\n\nQ2.2: Why this specific method?\n      State the trade-off and justify.\n\nQ2.3: Is any method modification needed?\n      If yes — this might be METHODOLOGY mode, not APPLICATION; reconsider.\n\nQ2.4: What recent methodological developments could improve this analysis?\n      (Don't necessarily use them — but show awareness.)\n</code></pre>\n<h3>A3: Assumption verification on THIS dataset (distinguishes APP from METH)</h3>\n<p>This is the central technical content of application papers.</p>\n<pre><code>Q3.1: For each assumption of the chosen method, ask:\n      - Is it VERIFIABLE in the data? How?\n      - If verifiable: what is the test/diagnostic? What's the result?\n      - If not: what plausibility argument substitutes for verification?\n\nQ3.2: Standard checks for common methods:\n      - Causal inference: positivity (verifiable), no-unmeasured-confounding (sensitivity)\n      - Regression: linearity (residual plots), homoskedasticity (Breusch-Pagan), normality (QQ)\n      - Time series: stationarity (KPSS), mixing structure\n      - High-dim: sparsity heuristics, RE condition (approximate check)\n\nQ3.3: For untestable assumptions: design sensitivity analyses (Rosenbaum-style,\n      E-value, partial identification bounds, etc.)\n</code></pre>\n<h3>A4: Empirical findings (the main result)</h3>\n<pre><code>Q4.1: Primary estimand and its estimate; effect size, direction.\n\nQ4.2: Comparison: does this estimate confirm, refine, or contradict prior literature?\n\nQ4.3: Subgroup / heterogeneity analyses: preregistered or exploratory?\n      Multiplicity correction if exploratory.\n\nQ4.4: Reporting standards for the field (CONSORT, STROBE, REMARK, etc.)\n</code></pre>\n<h3>A5: Inference &amp; uncertainty quantification</h3>\n<pre><code>Q5.1: What standard error / confidence interval procedure is used?\n      Does the chosen method's theoretical assumptions for inference hold here?\n\nQ5.2: Bootstrap, asymptotic, or finite-sample?\n      Validity check: does the inference procedure have theoretical backing in\n      the regime of this data (n, d, structure)?\n\nQ5.3: Multiple testing strategy if applicable.\n\nQ5.4: Coverage / size diagnostics on simulated data calibrated to the real data\n      (optional but strengthens the paper).\n</code></pre>\n<h3>A6: Sensitivity analyses</h3>\n<pre><code>Q6.1: To untestable assumptions:\n      - Causal: unmeasured confounding (Rosenbaum sensitivity, E-value)\n      - Missing data: NMAR scenarios\n      - Model: alternative specifications\n\nQ6.2: To outliers / influential observations:\n      - Influence diagnostics\n      - Trimmed / robust estimators as comparison\n\nQ6.3: To pre-processing decisions:\n      - Variable transformations\n      - Sample inclusion / exclusion\n\nQ6.4: Pre-specify which sensitivity results would CHANGE the conclusion.\n</code></pre>\n<h3>A7: Connection to literature &amp; implications</h3>\n<pre><code>Q7.1: How do findings update the scientific literature?\n      Specific claims that this paper supports, modifies, or refutes.\n\nQ7.2: Policy / clinical / scientific implications.\n      Be honest about external validity.\n\nQ7.3: Open questions and future-work directions.\n</code></pre>\n<p>After A1-A7, hand off:</p>\n<ul>\n<li>A3 verification → coded diagnostics</li>\n<li>A4-A5 main analysis → coded analysis pipeline</li>\n<li>A6 sensitivity → coded sensitivity analyses</li>\n<li>Optional methodology gap notes → could spawn a METHODOLOGY paper later</li>\n</ul>\n<hr>\n<h2>Step X: Cross-type quality checks (run for ALL modes)</h2>\n<p>After the type-specific workflow, run these universal checks:</p>\n<h3>X1: Internal consistency</h3>\n<pre><code>- Does the model in Step 3/4 (depending on mode) match what the assumptions reference?\n- Does the target result (T5 / M5 / A4) align with what the proof / method / data\n  can actually deliver?\n- Is the asymptotic regime consistent throughout?\n</code></pre>\n<h3>X2: Novelty / contribution audit (literature-anchored)</h3>\n<pre><code>- Is the contribution clearly stated in 1-2 sentences?\n- Does it match the paper-type's expected contribution kind?\n- Cross-reference against LITERATURE_ANCHOR.md:\n  * Is the contribution genuinely distinct from the 10-15 recent T1 papers?\n  * Is there a \"kill shot\" risk — a recent paper that scoops 80% of this?\n  * Is the contribution magnitude appropriate for the positioning chosen\n    (incremental / lateral / disruptive)?\n- For DISRUPTIVE positioning: does the framework actually justify the deviation?\n- For INCREMENTAL positioning: is the refinement substantial enough to publish?\n</code></pre>\n<p>Cross-check with <code>/novelty-check</code> or <code>/research-lit</code> if available.</p>\n<h3>X2.5: Positioning audit (literature-anchored)</h3>\n<p>Re-examine the positioning from Step 0.5E against the now-detailed framework:</p>\n<pre><code>## Positioning Verification\n\n### Chosen positioning: [INCREMENTAL / LATERAL / DISRUPTIVE]\n\n### Coherence check\n- Does each phase decision match the positioning?\n  * INCREMENTAL: Did you adopt the inertia's defaults except where you refine?\n  * LATERAL: Did you justify the angle change?\n  * DISRUPTIVE: Did you build the case for the new framework?\n\n### Drift check\n- During T1-T7 / M1-M7 / A1-A7, did the framework drift from the chosen positioning?\n  Example: started INCREMENTAL but ended up using a non-standard regime — should\n  either re-route to LATERAL or revert.\n\n### Citation strategy alignment\n- Which 5-10 papers from LITERATURE_ANCHOR.md will be cited prominently?\n- Citation structure: predecessors → competitors → adjacent → applications\n- For each, what role do they play?\n  * \"Our paper extends [predecessor] by...\"\n  * \"Unlike [competitor], we...\"\n  * \"[Adjacent] uses similar tools in a different setting...\"\n  * \"[Application] motivates the practical need...\"\n</code></pre>\n<p>If positioning has drifted, decide: revert framework to match original positioning,\nor update positioning to match what framework evolved into. Either is fine; the\nmismatch is the problem.</p>\n<h3>X3: Reviewer hot-button check</h3>\n<p>What will a top-stat-journal referee almost certainly ask?</p>\n<ul>\n<li>For THEORY: matching lower bound? Adaptive version? Connections to known frameworks?</li>\n<li>For METHODOLOGY: tuning robustness? Computational feasibility? Realistic assumptions?</li>\n<li>For APPLICATION: assumption verifiability? Sensitivity? Pre-registration?</li>\n</ul>\n<p>Pre-empt these in the framework.</p>\n<h3>X4: Codex independent review — discussion, not acceptance</h3>\n<p>Send the draft framework to Codex per <code>../stat-shared-references/codex-protocol.md</code>.\nCodex is an adversarial reviewer to discuss with, never an oracle to defer to.</p>\n<p>Every finding gets an explicit disposition — ACCEPT, PUSH BACK, or REQUEST\nCLARIFICATION — with reasoning recorded. A framework decision is not changed because\nCodex asserted it; it is changed because the argument holds. Escalate to the user any\nfinding that would change the paper type, the positioning, or a headline claim.</p>\n<p>Record the exchange in <code>FRAMEWORK_REVIEW.md</code>: one row per finding (finding, severity,\nCodex position, disposition, reasoning), plus the round-by-round history and any\nescalations.</p>\n<p>Per-finding evaluation shape and a worked dialogue:\n<code>../stat-shared-references/examples/theory-design-codex-dialogue-example.md</code>.</p>\n<h2>Output: FRAMEWORK_DESIGN.md</h2>\n<p>Final structure of the document this skill produces:</p>\n<pre><code># Framework Design: [Topic]\n\n## Paper type: [THEORY / METHODOLOGY / APPLICATION]\n## Justification: [why this type]\n\n## Phase 1: [paper-type-specific phase 1 — Phenomenon / Practical-problem / Scientific-question]\n...\n\n## Phase 2: [...]\n...\n\n## Phase 7: [...]\n\n## Cross-type checks\n- Internal consistency: ...\n- Novelty audit: ...\n- Reviewer hot-button: ...\n- Codex review: ... (if run)\n\n## Handoff plan\n- [downstream skill] receives [artifact] for [purpose]\n- ...\n</code></pre>\n<hr>\n<h2>Assumption lock initialization (all modes)</h2>\n<p>The framework shares <strong>one</strong> assumption system, not a fresh set per theorem. After the\nassumption profile is settled (T-mode Step T5/T6, M-mode Q5.3 minimal set, A-mode A3), promote\nthose prose assumptions into a canonical, ID-addressable store <code>assumptions.lock.md</code>, per\n<code>../stat-shared-references/assumptions-lock-protocol.md</code>. Write the <code>## Assumption Registry</code>\ntable (assign <code>A1, A2, …</code>, tag each with an <code>applicability-axes.md</code> axis and a strength/regime\nclass, and set <code>Relation to other IDs</code> for any variant) and seed an empty <code>## Theorem Invocation Matrix</code> for <code>proof-writer</code> to fill.</p>\n<p>This is the single source of truth every downstream package invokes by ID. Do <strong>not</strong> state a\nmaximal assumption set that every theorem inherits — the store is a registry, not a global\npremise; each theorem later lists only the subset it uses.</p>\n<p>Hand <code>assumptions.lock.md</code> to <code>/proof-writer</code> alongside <code>FRAMEWORK_DESIGN.md</code>.</p>\n<p><strong>Proof architecture (THEORY / METHODOLOGY).</strong> Proof structure is fixed here, not in later\naudits; audit loops do not change it. From the T6/M7 lemma scaffold, initialize\n<code>PROOF_ARCHITECTURE.md</code> per <code>../stat-shared-references/proof-architecture-register.md</code>. Classify\nevery known result as <code>IMPORT</code> or <code>REPROVE_ATTRIBUTED</code> (<code>KR-</code> rows), and every step that two or more\nresults will use as <code>EXTRACT</code> or <code>INLINE</code> with a reason (<code>SI-</code> rows). <code>PENDING</code> is allowed until\npackages exist. Also list the Main Results (<code>MR-</code> rows; for a methodology paper, its guarantees)\nand the Q7.4 follow-through decisions. Pass the register to <code>/proof-writer</code> with the lock file.</p>\n<hr>\n<h2>Quick start (single command)</h2>\n<pre><code>/theory-design \"doubly robust estimator for treatment effect under unmeasured confounding\"\n</code></pre>\n<p>Skill will:</p>\n<ol>\n<li>Help classify (likely METHODOLOGY)</li>\n<li>Walk M1-M7 with interactive Q&amp;A</li>\n<li>Run cross-type checks</li>\n<li>Output FRAMEWORK_DESIGN.md</li>\n<li>Recommend next skill (most likely /proof-writer for the consistency theorem)</li>\n</ol>\n<hr>\n<h2>Output Summary</h2>\n<pre><code>Framework design complete for [Topic].\n\nPaper type: [TYPE]\nPhases completed: 7 + cross-type checks\nCodex review: [done / skipped]\n\nKey decisions made:\n- [decision 1]\n- [decision 2]\n- ...\n\nFiles created:\n- FRAMEWORK_DESIGN.md — the design document\n- (optional) NOVELTY_NOTES.md — what's new vs literature\n- (optional) codex_review.md — independent assessment\n\nNext steps:\n- Run /proof-writer for target theorem T5/M5\n- Run /theory-simulation DESIGN mode for validation plan (if methodology)\n- Run /proofcheck after first draft of proofs\n- Run /theory-sharpen periodically to assess sharpenability\n</code></pre>\n","files":[{"path":"SKILL.md","sizeBytes":30624,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-12-03T17:29:42.973546Z","sha256":"46A7A2CA0233A80B4C1F049FA07F2E835170EA5CA320EB34B6B9F385B4A20885","sizeBytes":12598},"review":null,"source":{"repositoryUrl":"https://github.com/gyf9712/stat-theory-skills","path":"skills/theory-design","license":"MIT","commit":"412fb6597426d1bfdde2ea584189170e5760b737","subtreeSha":"DF380A05CA9A3BCF24A00DA1114DE14A6EBA175C0EF85489F3229A459AFC489D","lastSyncedAt":"2026-12-03T17:29:26.158411Z"},"reviewedAt":"2026-12-03T17:29:55.138332Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/gyf9712/stat-theory-skills/tree/master/skills/theory-design"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install gyf9712-stat-theory-skills@llmmart"},{"target":"git","command":"git clone https://github.com/gyf9712/stat-theory-skills.git"}]}