name: research-workflow description: Specialized workflow for theoretical biophysics research. Use when working with research documents, theoretical frameworks, mathematical derivations, or scientific papers. Triggers include creating research documents, converting between formats (Markdown/LaTeX/PDF), managing figures, citing references, or organizing theoretical frameworks. Supports scoliosis research, biomechanics, control theory, General Relativity applications, and mathematical modeling (Cosserat theory, AdS/CFT).
Research Workflow Skill
Structured workflows for theoretical biophysics research, optimized for mathematical frameworks and scientific documentation.
Quick Reference
| Task | Approach |
|---|---|
| New research document | Use structured template from assets/ |
| Markdown → LaTeX | scripts/md_to_latex.py |
| Generate PDF | scripts/generate_pdf.py |
| Embed figures | scripts/embed_figures.py |
| Domain concepts | See references/domain-knowledge.md |
| LaTeX templates | See references/latex-templates.md |
Research Document Creation
Standard Structure
Use this structure for theoretical frameworks:
- Abstract - Concise summary (150-250 words)
- Introduction - Context and motivation
- Theoretical Framework - Core mathematical derivations
- Results - Key findings and predictions
- Discussion - Implications and future work
- References - Citations in BibTeX format
Mathematical Notation
Follow these conventions:
- Vectors: Bold ($\mathbf{r}$, $\mathbf{v}$)
- Tensors: Sans-serif ($\mathsf{T}$, $\mathsf{g}_{\mu\nu}$)
- Operators: Hat notation ($\hat{H}$, $\hat{L}$)
- Physical quantities: Italics ($E$, $m$, $c$)
- Functions: Roman ($\sin$, $\log$, $\text{erf}$)
Equation Formatting
For inline math: $E = mc^2$
For display equations:
$$
\frac{\partial \mathbf{r}}{\partial t} = \mathbf{v}
$$
For aligned derivations:
$$
\begin{aligned}
F &= ma \\
&= m\frac{dv}{dt}
\end{aligned}
$$
Figure Management
Organization
Store figures in research/figures/ with descriptive names:
scoliosis_phase_diagram.pngcosserat_rod_schematic.svgenergy_optimization_plot.pdf
Embedding in Markdown

Embedding Script
Use scripts/embed_figures.py to automatically:
- Find referenced figures
- Check file existence
- Validate image formats
- Generate proper markdown syntax
Format Conversion
Markdown to LaTeX
Convert research Markdown to manuscript-ready LaTeX:
python .agent/skills/research-workflow/scripts/md_to_latex.py input.md --output manuscript.tex
Features:
- Preserves mathematical equations
- Converts markdown headings to LaTeX sections
- Handles figure references
- Generates BibTeX citations
See references/latex-templates.md for LaTeX document templates.
PDF Generation
Generate publication-ready PDFs:
python .agent/skills/research-workflow/scripts/generate_pdf.py manuscript.tex
Automatically handles:
- Multiple LaTeX compilation passes
- Bibliography generation (BibTeX)
- Figure resolution optimization
Domain Knowledge
For quick reference on theoretical concepts, see references/domain-knowledge.md which covers:
- Cosserat rod theory basics
- Control theory with delay fundamentals
- AdS/CFT correspondence in biology
- Standard notation conventions
Research Prompts
Creating Effective Prompts
Structure research prompts with:
- Objective - Clear research question
- Background - Relevant prior work
- Methodology - Proposed approach
- Constraints - Limitations and assumptions
- Deliverables - Expected outputs
Template
Use .agent/templates/research-prompt.md for consistent prompt structure.
Collaboration Workflows
Creating Word Documents
For sharing with collaborators who use Word:
Ask: "Convert the scoliosis framework to a Word document"
Uses the docx skill to create properly formatted documents with:
- Preserved equations (as images or MathType)
- Embedded figures
- Professional formatting
Creating Presentations
For conferences and talks:
Ask: "Create a presentation from the gravity paradox research"
Uses the pptx skill to generate slides with:
- Title slide
- Key equations
- Figure visualizations
- Conclusion slide
Tracked Changes
For collaborative editing:
Ask: "Add tracked changes suggesting revisions to section 3"
Uses the doc-coauthoring skill for structured document refinement.
Best Practices
Version Control
- Commit research documents to git regularly
- Use meaningful commit messages
- Tag significant versions (e.g.,
v1.0-preprint)
Citation Management
- Store references in
references.bib - Use consistent citation keys (author_year_keyword)
- Include DOIs when available
Code and Data
- Link to analysis scripts in
scripts/ - Reference data files in
data/ - Document computational methods
Reproducibility
- Include software versions in methods
- Provide environment specifications
- Document random seeds for simulations
Common Workflows
New Theoretical Framework
- Use template:
.agent/templates/theoretical-framework.md - Fill in sections systematically
- Add mathematical derivations
- Generate figures with analysis scripts
- Embed figures using
embed_figures.py - Convert to LaTeX when ready for submission
Literature Review Integration
- Collect references in BibTeX format
- Organize by topic in
references.bib - Cite using
[@author_year]syntax - Auto-generate bibliography on PDF creation
Manuscript Preparation
- Start with research Markdown document
- Refine content using doc-coauthoring skill
- Convert to LaTeX using
md_to_latex.py - Fine-tune LaTeX formatting
- Generate PDF using
generate_pdf.py - Review and iterate
Troubleshooting
LaTeX Compilation Errors
- Check equation syntax (missing
$or$$) - Verify figure paths are correct
- Ensure BibTeX file exists
- Check for special characters needing escaping
Figure Display Issues
- Verify figure file exists in specified path
- Check image format (PNG, PDF, SVG recommended)
- Ensure proper markdown syntax
- Use relative paths from document location
Mathematical Notation
- Test complex equations in isolation first
- Use
\text{}for text within math mode - Split long equations with
alignedenvironment - Reference equations with
\label{}and\ref{}