
Paper To Code
Takes a research paper PDF or text and generates a complete, runnable code repository through a three-stage pipeline: planning (UML diagrams, dependency graphs), analysis (per-file logic mapping), and coding (dependency-ordered generation). The workflow is methodical, maybe overly so, generating everything from config.yaml to reproduce.sh scripts while strictly following the paper's methodology without inventing improvements. Useful when you need to replicate published results rather than just understand the approach. The constraint to generate code in dependency order and never fabricate hyperparameters keeps it honest, though you'll still need to debug if the paper glosses over implementation details. Best for papers with clear experimental setups rather than purely theoretical work.
- skills.sh installs
- 1.6K
- GitHub stars
- 459
- last updated
- Aug 21, 2026
Install
$ npx -y skills add lingzhi227/agent-research-skills --skill paper-to-code --agent claude-codeInstalls into .claude/skills of the current project.
Files
Paper to Code
Convert a research paper into a complete, runnable code repository.
Input
$0— Paper PDF path, paper text, or paper URL
References
- Paper2Code prompts (planning, analysis, coding stages):
~/.claude/skills/paper-to-code/references/paper-to-code-prompts.md
Workflow (from Paper2Code)
Stage 1: Planning
Four-turn conversation to create a comprehensive plan:
- Overall Plan: Extract methodology, experiments, datasets, hyperparameters, evaluation metrics
- Architecture Design: Generate file list, Mermaid classDiagram, sequenceDiagram
- Task Breakdown: Logic analysis per file, dependency-ordered task list, required packages
- Configuration: Extract training details into
config.yaml
Stage 2: Analysis
For each file in the task list (dependency order):
- Conduct detailed logic analysis
- Map paper methodology to code structure
- Reference the config.yaml for all settings
- Follow the UML class diagram interfaces strictly
Sponsors
Details
- Repository
- github.com/lingzhi227/agent-research-skills
- Categories
- DevOps & CI/CD, AI & Agent Building, Data Science & ML, Productivity & Planning, Automation & Workflows, Sales & Marketing
- First seen
- Jun 3, 2026
More from lingzhi227/agent-research-skills
All 31- Experiment Code1.6K
- Paper Assembly1.6K
- Symbolic Equation1.6K
- Excalidraw Skill1.6K
- Literature Review4.1K
- Literature Search2.7K
- Figure Generation2.3K
- Latex Formatting2.3K
- Backward Traceability2.3K
- Math Reasoning2.2K
- Citation Management2.2K
- Data Analysis2K
- Deep Research2K
- Idea Generation1.9K
- Novelty Assessment1.9K
- Paper Writing Section1.8K
- Paper Revision1.8K
- Experiment Design1.8K
- Github Research1.8K
- Research Planning1.8K
- Survey Generation1.8K
- Algorithm Design1.7K
- Rebuttal Writing1.7K
- Code Debugging1.7K