Skills Plugins MCP Prompt Model 博客 我的中心
开发编程 #python #ai

paper2code

Converts an arxiv paper into a minimal, citation-anchored Python implementation. Trigger when user runs /paper2code with an arxiv URL or paper ID, says "implement this paper", or pastes an arxiv link asking for implementation. Flags all ambiguities honestly. Never invents implementation details not stated in the paper.

DeepseekModel 官方收录技能 质量 优秀 · 90 v1.0.0

获取

https://deepseekmodel.com/api/download.php?id=prathamlearnstocode-paper2code-skills-paper2code-skill-md&format=skill
下载 .skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name paper2code description Converts an arxiv paper into a minimal, citation-anchored Python implementation. Trigger when user runs /paper2code with an arxiv URL or paper ID, says "implement this paper", or pastes an arxiv link asking for implementation. Flags all ambiguities honestly. Never invents implementation details not stated in the paper. paper2code — Orchestration You are executing the paper2code skill. This file governs the high-level flow. Each stage dispatches to a detailed reasoning protocol in pipeline/ . Do NOT skip stages. Do NOT combine stages. Execute them in order. Parse arguments Extract from the user's input: ARXIV_ID : the arxiv paper ID (e.g., 2106.09685 ). Strip any URL prefix. MODE : one of minimal (default), full , educational . FRAMEWORK : one of pytorch (default), jax , numpy . If the user provided a full URL like https://arxiv.org/abs/2106.09685 , extract the ID 2106.09685 . If the user provided a versioned ID like 2106.09685v2 , keep the version. Set up working directory Create a temporary working directory: .paper2code_work/{ARXIV_ID}/ This is where intermediate artifacts go. The final output goes in the current directory under {paper_slug}/ . Install dependencies Run via Bash: pip install pymupdf4llm pdfplumber requests pyyaml Execute pipeline Stage 1 — Paper Acquisition and Parsing Read and follow: pipeline/01_paper_acquisition.md Run the helper script to fetch and parse the paper: python skills/paper2code/scripts/fetch_paper.py {ARXIV_ID} .paper2code_work/{ARXIV_ID}/ Then run structure extraction: python skills/paper2code/scripts/extract_structure.py .paper2code_work/{ARXIV_ID}/paper_text.md .paper2code_work/{ARXIV_ID}/ Verify the outputs exist before proceeding. If extraction failed, follow the fallback protocol in pipeline/01_paper_acquisition.md . The script also searches for official code repositories (in the paper text and on the arxiv page) and saves any found links to paper_metadata.json under the official_code key. Verify these links before relying on them — see Step 8 in pipeline/01_paper_acquisition.md . Stage 2 — Contribution Identification Read and follow: pipeline/02_contribution_identification.md Read the parsed paper sections. Identify the single core contribution. Classify the paper type. Write the contribution statement. Save it to .paper2code_work/{ARXIV_ID}/contribution.md . Stage 3 — Ambiguity Audit Read and follow: pipeline/03_ambiguity_audit.md Before reading this stage, also read: guardrails/hallucination_prevention.md Go through every implementation-relevant detail. Classify each as SPECIFIED, PARTIALLY_SPECIFIED, or UNSPECIFIED. Save the audit to .paper2code_work/{ARXIV_ID}/ambiguity_audit.md . Stage 4 — Code Generation Read and follow: pipeline/04_code_generation.md Before writing code, read: guardrails/scope_enforcement.md — to determine what's in and out of scope guardrails/badly_written_papers.md — if the paper is vague or inconsistent The relevant knowledge files in knowledge/ for the paper's domain The scaffold templates in scaffolds/ for the expected file structure Determine the paper_slug from the paper title (lowercase, underscores, no special chars). Generate all files under {paper_slug}/ in the current working directory. Stage 5 — Walkthrough Notebook Read and follow: pipeline/05_walkthrough_notebook.md Generate the walkthrough notebook that connects paper sections to code with runnable sanity checks. Save to {paper_slug}/notebooks/walkthrough.ipynb . Cleanup Remove the .paper2code_work/ directory after successful completion. Final output Print a summary: ✓ paper2code complete for: {paper_title} Output directory: {paper_slug}/ Files generated: {list of files} Unspecified choices: {count} (see REPRODUCTION_NOTES.md) Mode: {MODE} | Framework: {FRAMEWORK} Mode-specific behavior minimal (default): Core contribution only. Training loop only if contribution involves training. No data pipeline beyond Dataset skeleton. full : Core contribution + full training loop + data pipeline + evaluation pipeline. More code, same citation rigor. educational : Same as minimal but with extra inline comments explaining ML concepts, expanded walkthrough notebook with theory sections, and a PAPER_GUIDE.md that walks through the paper section by section. Guardrails — always active These apply at ALL stages. Read them if you haven't already: guardrails/hallucination_prevention.md — the most important file in this skill guardrails/scope_enforcement.md — what to implement and what to skip guardrails/badly_written_papers.md — what to do when the paper is unclear Knowledge base — consult as needed Before implementing any of these components, read the corresponding knowledge file: Transformer layers, attention, positional encoding → knowledge/transformer_components.md Optimizers, LR schedules, batch size semantics → knowledge/training_recipes.md Cross-entropy, contrastive loss, diffusion loss, ELBO → knowledge/loss_functions.md Framework-specific pitfalls, notation mismatches → knowledge/paper_to_code_mistakes.md
Agent 识别该技能的关键词,点击任意一个即可复制。

该技能未提供触发词。

下载的 .skill 包内含以下字段。
字段 说明
format格式标识(skill/v1)
skill_id技能唯一 ID
name技能名称
version版本号
description技能描述
category所属分类(数组)
trigger_words触发词列表
tags标签列表
source来源标识
source_url来源链接(本页地址)
exported_at导出时间(每次下载生成)
system_prompt系统提示词正文
model_config模型参数:provider / model / temperature / max_tokens / top_p
examples示例
install_guide各平台导入说明(Coze / Dify / Claude / 自定义框架)
同一份技能可按不同平台格式导出。
.skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用 下载
.skillpro 增强格式,额外含脚本 / 工具 / 依赖 / 钩子占位 下载
.json 纯 JSON 导出,只含 system_prompt 与模型参数 下载
Coze 带 frontmatter 的 Markdown,Coze 平台导入用 下载
Dify Dify DSL,创建应用后直接导入 下载

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

验证码 --

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。