name: understand-theory description: "Extract mathematical formulation, statistical models, and theoretical foundations from a bioinformatics method paper"
Codex Adapter
This adapter is generated from skills/understand-theory/SKILL.md. Edit the source Claude skill, then run python3 scripts/sync_codex_skills.py to refresh the Codex mirror.
Preserve the shared workflow contract: knowledge_base/, projects/<name>/literature/, fitness_summary.md, analysis_plan.md, audit files, and progress files remain the expected outputs.
Claude-to-Codex Term Map
/skill-nameexamples mean$skill-nameor explicit plugin/skill invocation in Codex.Task/TaskOutputmean delegated/fresh-agent execution when available; otherwise run phases sequentially and verify files.AskUserQuestionmeans ask the user directly when required.WebFetch/WebSearchmean Codex web/search tools when available.
Source Skill Instructions
Understand Theory Skill
You are helping build a knowledge base of single-cell bioinformatics methods. Your task is to extract the mathematical and statistical foundations from a method paper.
Prerequisites
This skill assumes /read-paper has already been run for this method. Check that knowledge_base/<method_name>/concept.md exists.
Workflow
Step 1: Locate Resources
- Check if the concept.md exists for this method
- Read the original paper PDF
- Critically: Ask user for supplementary materials if not already available:
- Supplementary PDF
- Supplementary Note
- Online methods
- GitHub documentation with mathematical details
Step 2: Identify Mathematical Components
Extract and document:
Core Algorithm / Model
- What is the mathematical formulation?
- What type of model? (probabilistic, optimization, heuristic, etc.)
- What are the key equations?
Statistical Framework
- What statistical assumptions are made?
- What distributions are used?
- What estimation methods? (MLE, Bayesian, non-parametric, etc.)
Key Variables and Notation
- Define all mathematical notation used
- Input variables
- Output variables
- Parameters to be estimated
- Hyperparameters
Objective Function (if applicable)
- What is being optimized?
- Loss function / likelihood
- Regularization terms
Algorithm Steps
- Pseudocode or step-by-step mathematical procedure
- Initialization
- Iteration / convergence criteria
Theoretical Properties
- Convergence guarantees?
- Computational complexity?
- Identifiability?
Step 3: Create Theory Documentation
Create the output file at: knowledge_base/<method_name>/theory.md
Use this template structure:
---
name: <method_name>
theory_type: <probabilistic|optimization|heuristic|hybrid>
statistical_framework: <bayesian|frequentist|non_parametric|etc>
---
# <Method Name> - Mathematical Formulation
## Overview
<Brief summary of the mathematical approach>
## Notation
| Symbol | Description |
|--------|-------------|
| ... | ... |
## Core Model / Algorithm
<Main mathematical formulation with equations>
## Statistical Assumptions
<What assumptions does the method make?>
## Key Equations
### Equation 1: <Name>
$$
<equation>
$$
<Explanation of what this equation does>
### Equation 2: <Name>
...
## Algorithm Steps
1. **Step 1**: ...
2. **Step 2**: ...
...
## Objective Function
<If applicable, what is being optimized?>
## Parameter Estimation
<How are parameters estimated?>
## Computational Complexity
<Time and space complexity if discussed>
## Theoretical Guarantees
<Convergence, identifiability, etc.>
## References to Original Formulation
<Point to specific sections/figures in the paper and supplementary>
---
*Generated by `/understand-theory` skill*
Step 4: Handle Missing Information
If supplementary materials are not available:
- Extract what's available from the main paper Methods section
- Note which mathematical details are missing
- Suggest checking the GitHub repository for additional documentation
- Flag sections that need supplementary materials to complete
Step 5: Verify and Refine
Re-read the generated theory.md and perform an editorial review:
Completeness Check
- All notation defined in the Notation table before first use
- Every key equation has an explanation of what it represents
- Algorithm steps are numbered and unambiguous
- Parameter estimation method is documented
- Computational complexity noted (if available)
Mathematical Rigor
- LaTeX equations render correctly (balanced delimiters, proper symbols)
- Variables use consistent notation throughout (no mixing X and x for same thing)
- Subscripts/superscripts are meaningful and explained
- Distributions are fully specified (e.g., "N(μ, σ²)" not just "normal distribution")
Flow and Clarity
- Document flows from high-level overview → detailed equations → algorithm steps
- Complex equations are broken into digestible components
- Connections between equations are explained (how one leads to another)
- References to paper/supplementary sections are accurate
Efficiency Improvements
- Consolidate redundant explanations
- Ensure notation table includes ALL symbols (scan equations to verify)
- Remove verbose introductions to equations ("The following equation shows...")
- Group related equations together with clear subsection headers
Make corrections directly to the file, then proceed to confirm completion.
Important Notes
- Use LaTeX notation for equations ($$...$$) for proper rendering
- Be precise with mathematical notation - define every symbol
- Distinguish between:
- User-specified hyperparameters
- Parameters estimated from data
- Fixed constants
- Note where formulas come from (main paper vs supplementary vs GitHub)
- If the method is primarily heuristic (no formal model), document the algorithmic steps clearly