How jmiao24/paper2agent works
Paper2Agent is a coding-agent skill system that turns research papers and associated code into delivered scientific agents, chiefly MCP servers and reusable skills. A user invokes the installed skill with paper/repository inputs and an output directory; the workflow coordinates specialist agents, prepares and implements tools, verifies them, and packages results for connection to an MCP client. The repository also contains a paper-to-skill publication path and concrete PDF/bundle utilities. Most orchestration detail is documented in skill references not excerpted here, so those workflow links are based on the README rather than inspected implementation.
Main entry points: paper2agent/SKILL.md Paper2Agent skill · paper2mcp/SKILL.md MCP server output · agents Specialist agents · paper_bundle.py Source bundling
Components 18
Agent workflow
- Paper2Agent skill
skills/paper2agent/SKILL.md - Paper and code
- Specialist agents
skills/paper2agent/paper2mcp/references/agents
MCP generation
- Tool extraction
skills/paper2agent/paper2mcp/references/tool-selection-and-wrapping.md - Tutorial workflow
skills/paper2agent/paper2mcp/references/agents/tutorial-executor.md - Language routing
skills/paper2agent/paper2mcp/references/language-routing.md - MCP server output
skills/paper2agent/paper2mcp/SKILL.md - Server verification
skills/paper2agent/paper2mcp/scripts/verify_mcp_server.py - Workflow verification
skills/paper2agent/paper2mcp/scripts/verify_workflow.py - Usage and delivery
skills/paper2agent/paper2mcp/references/output-delivery.md
Paper packaging
- PDF extraction
skills/paper2agent/paper2skill/scripts/pdf_to_skill.py - Source bundling
skills/paper2agent/paper2skill/scripts/paper_bundle.py - Reading package
skills/paper2agent/paper2skill/scripts/reading_package.py - Generated paper skill
skills/paper2agent/paper2skill/SKILL.md
Input utilities
- Notebook inspection copy
skills/paper2agent/paper2mcp/scripts/preprocess_notebook.py - Notebook image extraction
skills/paper2agent/paper2mcp/scripts/extract_notebook_images.py
Other components
- Researcher
- Coding-agent MCP client
Connections 17
- Researcher → Paper2Agent skill: invokes
README.md - Paper and code → Paper2Agent skill: supplies inputs
README.md - Paper2Agent skill → Specialist agents: coordinates
README.md - Specialist agents → Tool extraction: extracts tools
- Specialist agents → Tutorial workflow: executes tutorials
- Paper2Agent skill → Language routing: routes language
- Paper2Agent skill → MCP server output: generates MCP
README.md - MCP server output → Server verification: verified by
- Paper2Agent skill → Workflow verification: checks workflow
- MCP server output → Usage and delivery: documents delivery
README.md - Coding-agent MCP client → MCP server output: connects to
README.md - Paper and code → PDF extraction: extracts PDF
- Source bundling → PDF extraction: uses PDF tools
skills/paper2agent/paper2skill/scripts/paper_bundle.py - Source bundling → Reading package: prepares package
skills/paper2agent/paper2skill/scripts/paper_bundle.py - Reading package → Generated paper skill: publishes skill
- Paper and code → Notebook inspection copy: compacts notebook
skills/paper2agent/paper2mcp/scripts/preprocess_notebook.py - Paper and code → Notebook image extraction: extracts images
skills/paper2agent/paper2mcp/scripts/extract_notebook_images.py