Pre-Execution Confirmation (Required)
- Before starting any step in this skill, first ask the user whether Python is installed and
MINERU_API_KEYis configured in the current environment. Explain the purpose: to runscripts/pdf_to_md.pyto convert paper PDFs into Markdown (the terminal must be able to runpythonorpython3). If Python is missing, help the user install it. IfMINERU_API_KEYis missing, guide the user to https://mineru.net/apiManage/docs to obtain an API key. - Ask the user how many entries to retrieve from each data source.
- Ask the user which parameter to use when calling the script to extract Markdown from PDF links:
introduction: only return Markdown content that strictly matches the first-level# Introductionheadingall: return the full Markdown content converted from the entire paper
- Ask the user for the output report language. Do not start this skill's core workflow until the above confirmations are complete.
Default Data Sources
- alphaxiv -
https://www.alphaxiv.org/?sort=Hot&interval=7+Dayshttps://www.alphaxiv.org/?source=GitHub&interval=7+Days&sort=Hot
- GitHub Trending -
https://github.com/trending?since=weekly
- If the user does not specify a quantity, retrieve at most
10entries from each data source by default. - Use only the default data sources listed above. Do not add new data source URLs.
Tool Usage Priority
When retrieving paper lists, project lists, paper links, and arXiv IDs from web pages, try the following in order:
- Browser tools first: For dynamic web pages, first use browser tools to open, scroll, click, and observe page content. If a page cannot be opened, it is usually due to network issues; trying two more times often works.
- Web scraping tools second: If browser tools cannot reliably retrieve the content, then try web scraping.
- Web-to-Markdown fallback: As a last fallback, use
https://r.jina.ai/example.comto read the page as Markdown. - If none of the above methods work: Skip the item and state the reason in the final report.
Overall Workflow
Phase 1: Discover Entries and Build the Task Queue
- For paper pages, prioritize extracting the
arXiv IDfrom the page content. - For GitHub projects, record the project title and repository URL. An
arXiv IDis not required. - Deduplication rules:
- Deduplicate papers primarily by
arXiv ID - Deduplicate GitHub projects primarily by repository URL
- If a unique identifier is missing, deduplicate by title
- Deduplicate papers primarily by
- Organize the entries to be analyzed into a task queue for the current run.
Phase 2: Execute Tasks One by One
- Maintain the task queue and process
pendingentries sequentially. Do not launch subagents. - Before processing each entry, execute
attempt += 1. - After processing is complete, write the result to the success or failure collection:
- Success: set
status = "done"and writecompletedAt - Failure: set
status = "failed"and writeerrorandcompletedAt
- Success: set
- Failure of a single task must not affect subsequent tasks. Continue processing the remaining entries.
Execution Rules
Directly complete content retrieval, analysis, classification, and result aggregation for each entry.
Paper Tasks
If source is arxiv:
- Prioritize using the existing
arXiv ID. - If an
arXiv IDis obtained, construct the paper PDF link:https://arxiv.org/pdf/{arxiv-id}.pdf
- Call the script to extract Markdown from the PDF link, explicitly passing the user's choice with
--range:python scripts/pdf_to_md.py https://arxiv.org/pdf/{arxiv-id}.pdf tmp_llm_research/{arxiv-id}.md --range introductionpython scripts/pdf_to_md.py https://arxiv.org/pdf/{arxiv-id}.pdf tmp_llm_research/{arxiv-id}.md --range all
--rangeparameter description:introduction: only return Markdown content that strictly matches the first-level# Introductionheadingall: return the full Markdown content converted from the entire paper
- Read
tmp_llm_research/{arxiv-id}.md. - Analyze the paper's core problem, method, contributions, applicable scenarios, and limitations based on the extracted paper Markdown.
- Classify strictly according to the top-level categories in
references/categories.md. - If the
arXiv IDcannot be obtained reliably, do not fabricate an ID and do not directly replace the Markdown with a web summary. Mark the task asfailedand state in the error: "Unable to reliably obtain arXiv ID".
GitHub Project Tasks
If source is github:
- Prioritize using browser tools to read the repository home page, README, and project description.
- If browser tools cannot retrieve enough content, then try web scraping tools.
- If the result is still unstable, use the
r.jina.aiversion of the page as a fallback. - If all of the above methods are limited, but the repository home page still shows the repository name, description, topics, or a small amount of text from the page structure, a "brief analysis" based on that visible information is allowed.
- Explain the paper/project content in simple, easy-to-understand language. When information is complete, be as detailed as possible. When information is limited, clearly state the inference boundaries.
- Classify strictly according to the top-level categories in
references/categories.md.
Analysis Result Format
Maintain success and failure result collections in memory during the current run for final aggregation. Each result should include at least the following fields:
{
"id": "{sequence number}",
"title": "{title}",
"url": "{URL}",
"source": "{arxiv|github}",
"arxivId": "{arXiv ID, or null for GitHub}",
"category": "{category name}",
"authors": "{authors or organizations; use Unknown if unknown}",
"analysis": "{explain the content in simple, easy-to-understand language; the more detailed, the better}",
"status": "{done or failed; include the reason if failed}",
"attempt": "{current attempt count}",
"completedAt": "{ISO timestamp}"
}
Final Report
After all tasks are complete, write the final Markdown report to the output folder. The file name format must be YYYYMMDDHHmm.md.
After the final report is successfully written, delete the entire tmp_llm_research folder.
The final report must include:
# Report Summary, including at least:Total,Success,Failed, andRetried Success.# Details, aggregated bycategory. Entries under each category must include at least:title,url,source,authors, andanalysis.# Trending, summarizing the common trends, hot directions, and potential changes reflected by this batch of papers and projects.
Notes
- Failure of a single task does not affect other tasks. Continue processing the remaining tasks.
- All original links must be preserved so the final report can be traced back to the sources.
- Clean up
tmp_llm_researchonly after the final Markdown report has been successfully written, to avoid affecting the final aggregation. - If environment limitations mean that only limited information can be obtained for some entries, state this honestly in the final report. Do not pretend it is a complete in-depth analysis.
