code to paper

📁 midhunxavier/article-writing 📅 Jan 1, 1970
1
总安装量
0
周安装量
#50516
全站排名
安装命令
npx skills add https://github.com/midhunxavier/article-writing --skill Code to Paper

Skill 文档

Code to Paper Skill

Meta workflow skill that guides you through transforming your code implementation into a complete research paper. Provides interactive guidance and orchestrates other skills.

Overview

This skill helps you:

  • Plan your paper structure
  • Identify what to extract from code
  • Organize the writing workflow
  • Coordinate multiple skills
  • Track progress

Commands

/code-to-paper [--format latex|docx]

Start the interactive code-to-paper workflow.

Parameters:

  • --format latex|docx (optional): Target document format (default: latex)

Workflow Overview

┌────────────────┐     ┌────────────────┐     ┌────────────────┐
│  Your Code     │────▶│  Analysis      │────▶│  Paper Section │
│  (Python/etc)  │     │  (Structured)  │     │  (LaTeX/DOCX)  │
└────────────────┘     └────────────────┘     └────────────────┘
       │                      │                       │
   models/              notes/implementation/     sections/
   training/            - architecture.md         methodology.tex
   evaluation/          - training.md             experiments.tex

Workflow Steps

1. Code Analysis

  • Use analyze-code to extract implementation details
  • Generate structured notes about architecture, training, evaluation
  • Identify key components for methodology section

2. Research Integration

  • Use research-papers to find related work
  • Use manage-citations to build bibliography
  • Organize research materials

3. Writing Sections

  • Use write-section to write methodology from code analysis
  • Use write-section to write experiments from evaluation code
  • Use write-section to write related work from research

4. Figures and Tables

  • Use create-figures to generate architecture diagrams
  • Use create-figures to create result tables
  • Use create-figures to plot training curves

5. Review and Refine

  • Use review-paper to get feedback
  • Use format-document to validate formatting
  • Iterate based on feedback

6. Compile and Finalize

  • Use compile-paper to build PDF
  • Check page limits
  • Final review

Interactive Guidance

The skill provides step-by-step guidance:

  • Suggests which skills to use next
  • Helps organize your workflow
  • Tracks what’s been completed
  • Identifies missing components

Examples

# Start workflow for LaTeX paper
/code-to-paper

# Start workflow for DOCX paper
/code-to-paper --format docx

Integration with Other Skills

This skill coordinates:

  • analyze-code – Extract code details
  • research-papers – Find related work
  • manage-citations – Build bibliography
  • write-section – Write content
  • create-figures – Generate visuals
  • review-paper – Get feedback
  • format-document – Validate formatting
  • compile-paper – Build final document

Best Practices

  1. Start with code analysis: Understand what you have
  2. Build bibliography early: Add citations before writing
  3. Write methodology first: Based on code analysis
  4. Add experiments: From evaluation code and results
  5. Review iteratively: Get feedback and refine
  6. Check formatting: Ensure venue compliance

Platform Compatibility

Works on all platforms (Claude Code, Codex, OpenCode, Gemini, Cursor). Command syntax may vary by platform – see platform-specific documentation in docs/.