paper2code
Skill36 starsChanged 3 months agoMITView on GitHub
Analyzes research papers (PDF/arXiv URL) and converts them into executable code. Automatically activated upon requests for paper replication, algorithm implementation, or research reproduction. Responds to requests like "Implement this paper", "paper2code", "Convert paper to code".
5 other projects use a version of this.
Adopted by
Most recently taken up by
- aresbit/claude-skillstheir own version, first seen Jul 12, 2026
- PrathamLearnsToCode/paper2codetheir own version, first seen Apr 3, 2026
- dldush/claude-skill-settheir own version, first seen Mar 31, 2026
- lyx2022518/sherlock-ai-pluginword for word, first seen Feb 3, 2026
- issol14/paper2code-skilltheir own version, first seen Jan 8, 2026
Other versions5 projects use a version of this.
Word for word · 1
- lyx2022518/sherlock-ai-plugin★ 3100% same
Edited · 0
None found.
Wrote their own version · 4
- PrathamLearnsToCode/paper2code★ 1.5ksame name
- issol14/paper2code-skill★ 42same name
- dldush/claude-skill-set★ 2same name
- aresbit/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- deep-researchSkill
- genimg-gemini-webSkill
- paper-analyzerSkill
- paper-comicSkill
- visual-architectSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Core Principle: Do not simply read the paper and generate code.
- Distinctive: line 55
Converted Text/Markdown: When paper content is provided as text
- Distinctive: line 168
Search for and evaluate 5 similar implementations
- Distinctive: line 221
Reproducibility: Must be able to reproduce the results of the paper
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Paper2Code: AI Agent for Converting Research Papers into Code
Overview
This Skill executes a 4+2 stage pipeline effectively systematically analyzing research papers and converting them into executable code.
Core Principle: Do not simply read the paper and generate code; generate a structured intermediate representation (YAML) first, then write the code.
⚠️ Critical Behavioral Control Rules (CRITICAL)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ MANDATORY BEHAVIORAL RULES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. Implement one file at a time
2. Proceed to the next file only after completing the current file, without asking for confirmation
3. Original paper specifications always take precedence over reference code
4. Perform a Self-Check for each Phase before completion
5. Save all intermediate results as YAML files
DO:
✓ Implementing exactly what is stated in the paper
✓ Write simple and direct code
✓ Working code first, elegant code later
✓ Test each component immediately
✓ Move to the next file immediately after implementation is complete
DON'T:
✗ Do not ask "Shall I implement the next file?" between files
✗ Extensive documentation not required for core functionality
✗ Optimization not needed for reproducibility
✗ Excessive abstraction or design patterns
✗ Providing instructions without writing actual code
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━Input Processing
Supported Formats
- arXiv URL:
https://arxiv.org/abs/xxxx.xxxxxorhttps://arxiv.org/pdf/xxxx.xxxxx.pdf - PDF File Path:
/path/to/paper.pdf - Converted Text/Markdown: When paper content is provided as text
Input Processing Method
For arXiv URL:
# Convert to PDF URL and download
curl -L "https://arxiv.org/pdf/xxxx.xxxxx.pdf" -o paper.pdf
# Convert PDF to text (using pdftotext)
pdftotext -layout paper.pdf paper.txtFor PDF File:
pdftotext -layout "/path/to/paper.pdf" paper.txtPipeline Overview
[User Input: Paper URL/File]
│
▼
┌─────────────────────────────────────────────┐
│ Step 0: Acquire Paper Text │
│ - arXiv URL → Download PDF │
│ - PDF → Convert to Text │
└─────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────┐
│ Phase 0: Search Reference Code (Optional) │
│ @[05_reference_search.md] │
│ Output: reference_search.yaml │
└─────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────┐
│ Phase 1: Algorithm Extraction │
│ @[01_algorithm_extraction.md] │
│ Output: 01_algorithm_extraction.yaml │
└─────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────┐
│ Phase 2: Concept Analysis │
│ @[02_concept_analysis.md] │
│ Output: 02_concept_analysis.yaml │
└─────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────┐
│ Phase 3: Implementation Plan │
│ @[03_code_planning.md] │
│ Output: 03_implementation_plan.yaml │
└─────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────┐
│ Phase 4: Code Implementation │
│ @[04_implementation_guide.md] │
│ Output: Complete Project Directory │
└─────────────────────────────────────────────┘Data Transfer Format Between Stages
Phase 1 → Phase 2 Transfer
phase1_to_phase2:
algorithms_found: "[Number of found algorithms]"
key_algorithms:
- name: "[Algorithm Name]"
section: "[Paper Section]"
complexity: "[Simple/Medium/Complex]"
hyperparameters_count: "[Number of collected hyperparameters]"
critical_equations: "[List of critical equation numbers]"
missing_info: "[List of missing information]"Phase 2 → Phase 3 Transfer
phase2_to_phase3:
components_count: "[Number of identified components]"
implementation_complexity: "[Low/Medium/High]"
key_dependencies:
- "[Component A] → [Component B]"
experiments_to_reproduce:
- "[Experiment Name]: [Expected Result]"
success_criteria:
- "[Specific Success Criteria]"Phase 3 → Phase 4 Transfer
phase3_to_phase4:
file_order: "[List of files in implementation order]"
current_file: "[Currently implementing file]"
completed_files: "[List of completed files]"
blocking_dependencies: "[Dependencies to resolve]"Detail of Each Phase
Phase 0: Reference Code Search (Optional)
Using the @05_reference_search.md prompt:
- Search for and evaluate 5 similar implementations
- Secure references to improve implementation quality
- Output: Reference list in YAML format
Phase 1: Algorithm Extraction
Using the @01_algorithm_extraction.md prompt:
- Extract all algorithms, equations, and pseudocode
- Collect hyperparameters and configuration values
- Organize training procedures and optimization methods
- Output: Complete algorithm specification in YAML format
Phase 2: Concept Analysis
Using the @02_concept_analysis.md prompt:
- Map paper structure and sections
- Analyze system architecture
- Identify component relationships and data flow
- Organize experiment and validation requirements
- Output: Implementation requirements specification in YAML format
Phase 3: Establish Implementation Plan
Using the @03_code_planning.md prompt:
- Integrate results from Phase 1 and 2
- Generate detailed implementation plans for 5 essential sections:
file_structure: Project file structureimplementation_components: Implementation component detailsvalidation_approach: Validation and testing methodsenvironment_setup: Environment and dependenciesimplementation_strategy: Step-by-step implementation strategy
- Output: Complete YAML implementation plan (8000-10000 characters)
Phase 4: Code Implementation
Following the guide @04_implementation_guide.md:
- Generate code file by file according to the plan
- Implement in dependency order
- Each file must be complete and executable
- Output: Executable codebase
Memory Management
Refer to the guide @06_memory_management.md:
- Context management when processing long papers
- Saving step-by-step outputs
- Recovery protocol in case of interruption
Quality Standards
Principles that Must Be Followed
- Completeness: Complete implementation without placeholders or TODOs
- Accuracy: Accurately reflect equations and parameters specified in the paper
- Executability: Code that can be executed immediately
- Reproducibility: Must be able to reproduce the results of the paper
File Implementation Order
- Configuration and environment files (config, requirements.txt initialization)
- Core utilities and base classes
- Main algorithm/model implementation
- Training and evaluation scripts
- Documentation (README.md, requirements.txt finalization)
✅ Final Completion Checklist (MANDATORY)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ BEFORE DECLARING COMPLETE - ALL MUST BE YES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
□ All algorithms in the paper implemented? → YES / NO
□ Correct versions of environment/datasets set? → YES / NO
□ All comparison methods referenced implemented? → YES / NO
□ Working integration to run paper experiments? → YES / NO
□ All metrics, figures, tables reproducible? → YES / NO
□ Basic docs explaining how to reproduce? → YES / NO
□ Code runs without errors? → YES / NO
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ If even one is NO, it is NOT complete!
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━Usage Examples
Example 1: arXiv Paper
User: Implement this paper https://arxiv.org/abs/2301.12345
Claude: I will analyze the paper and convert it to code.
[Phase 0: Reference Code Search (Optional)...]
[Phase 1: Algorithm Extraction...]
[Phase 2: Concept Analysis...]
[Phase 3: Establish Implementation Plan...]
[Phase 4: Code Generation...]Example 2: PDF File
User: Implement the algorithms from this paper /home/user/papers/attention.pdfExample 3: Specific Request
User: Implement only the algorithm in Section 3 of this paperRelated Files
- 01_algorithm_extraction.md - Phase 1: Algorithm Extraction
- 02_concept_analysis.md - Phase 2: Concept Analysis
- 03_code_planning.md - Phase 3: Implementation Plan
- 04_implementation_guide.md - Phase 4: Implementation Guide
- 05_reference_search.md - Phase 0: Reference Search (Optional)
- 06_memory_management.md - Memory Management Guide
Precautions
⚠️ REMEMBER:
1. Read the paper thoroughly: Start implementation after understanding the entire content
2. Save detailed results: Save YAML output of each Phase as a file
3. Incremental implementation: Do not generate all code at once, proceed file by file
4. Include verification: Include simple test code if possible
5. Reference is inspiration: Reference code is for understanding and application, not copyingDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

