Automates discovery of recommendation system papers on arxiv, detects source code, and generates migration tasks for NPU adaptation.
Ships in external-gitcode-ascend-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
⚠️ 注意:这是公开版本,自带环境变量配置,可自定义路径:
ARXIV_RECO_DIR: 论文存储目录(默认:./arxiv-recommendation-models)NPU_MIGRATION_SKILL_PATH: npu-model-migration skill 路径(默认:../npu-model-migration)
自动化推荐系统论文发现与任务生成。
当用户请求:
时间范围规则:
--days 7--days 30--days 3# 安装 deepxiv (论文搜索)
pip install deepxiv-sdk
# 验证 NPU 环境
python -c "import torch_npu; print('NPU OK')"
bash scripts/check_npu_env.sh
# 默认搜索最近3天的论文
python scripts/main.py
# 指定搜索时间范围
python scripts/main.py --days 7 # 最近7天
python scripts/main.py --days 30 # 最近30天
# 同时指定时间和结果数量
python scripts/main.py --days 7 --max-results 100
或使用脚本:
# 默认3天
bash scripts/run_full_pipeline.sh
# 指定7天
bash scripts/run_full_pipeline.sh 7
本 skill 只负责 发现论文 + 克隆源码,NPU 适配由 npu-model-migration skill 完成。
┌─────────────────────────────────────────────────────────┐
│ arxiv-recommendation-npu skill │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ Step 1 │→ │ Step 2 │→ │ Step 3 │ │
│ │ 抓取论文 │ │ 检测源码 │ │ 克隆源码 │ │
│ └─────────────┘ └─────────────┘ └─────────────┘ │
│ │ │ │
│ │ 生成迁移任务清单 │ │
│ │ (migration_task.json) │ │
│ └──────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────┘
↓ 交接
┌─────────────────────────────────────────────────────────┐
│ npu-model-migration skill │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ 阶段 1 │→ │ 阶段 1.5 │→ │ 阶段 4 │ │
│ │ 目标分析 │ │ 快速尝试 │ │ NPU 验证 │ │
│ └─────────────┘ └─────────────┘ └─────────────┘ │
└─────────────────────────────────────────────────────────┘
使用 deepxiv 搜索推荐系统相关论文。
时间范围:
# 默认搜索最近3天
python scripts/main.py
# 指定搜索最近7天
python scripts/main.py --days 7
# 指定搜索最近30天
python scripts/main.py --days 30
或在脚本中调用:
python -c "
import sys
sys.path.insert(0, 'scripts')
from fetcher import search_papers, save_paper_list
from config import TODAY_DIR
# 默认3天
papers = search_papers(days=3, max_results=50)
# 或指定天数
papers = search_papers(days=7, max_results=50)
save_paper_list(papers, f'{TODAY_DIR}/paper_list.md')
print(f'找到 {len(papers)} 篇论文')
"
搜索关键词:recommendation, recommender system, collaborative filtering, CTR prediction
输出:./arxiv-recommendation-models/{date}/paper_list.md
注意:paper_list.md 是中间结果记录,方便回顾查看。实际克隆使用内存中的论文数据(包含通过
enrich_papers_with_details补充的github_url字段)。
从论文中提取 GitHub 链接,验证仓库是否有可执行代码。
python -c "
import sys
sys.path.insert(0, 'scripts')
from fetcher import search_papers
from source_detector import filter_papers_with_code
papers = search_papers(days=7, max_results=50)
papers_with_code = filter_papers_with_code(papers)
print(f'其中 {len(papers_with_code)} 篇有可用源码')
"
验证规则:
github_url 字段(enrich 阶段提取)comments 和 abstract 提取 GitHub 链接对每篇有源码的论文:
migration_task.json)python -c "
import sys
sys.path.insert(0, 'scripts')
from source_detector import clone_repo
github_url = 'https://github.com/owner/repo'
model_dir = './arxiv-recommendation-models/2026-04-13/models/repo'
result = clone_repo(github_url, model_dir)
print(result)
"
迁移任务清单 (migration_task.json):自动生成在模型目录中,详细格式见 references/output-structure.md
python -c "
import sys
sys.path.insert(0, 'scripts')
from reporter import generate_daily_report
generate_daily_report(papers_with_code, results, 'daily_report.md')
"
输出:./arxiv-recommendation-models/{date}/daily_report.md
daily_report.md 会包含待迁移论文的信息和下一步操作指引,详细格式见 references/output-structure.md
transfer_to_npu)修改 scripts/config.py:
| 配置项 | 说明 | 默认值 |
|---|---|---|
BASE_DIR | 论文存储根目录 | ./arxiv-recommendation-models |
ARXIV_KEYWORDS | 搜索关键词 | 推荐系统相关 |
MIN_PY_FILES | 最少 .py 文件数 | 3 |
MAX_RETRIES | 最大重试次数 | 3 |
GITHUB_MIRROR | GitHub 镜像 | ghproxy (国内加速) |
./arxiv-recommendation-models/{YYYY-MM-DD}/
├── main.log # 运行日志
├── paper_list.md # 论文列表 (Step 1-2)
├── daily_report.md # 适配报告 (包含迁移指引)
└── models/ # 模型源码
└── {model_name}/
├── migration_task.json # 迁移任务清单
└── [原始代码...]
arxiv-recommendation-npu/
├── SKILL.md # 本文件
├── references/ # 参考文档
│ ├── paper-filtering.md # 论文筛选规则
│ ├── npu-adaptation.md # NPU 适配指南 (指向 npu-model-migration skill)
│ └── output-structure.md # 输出结构说明
└── scripts/ # 可执行脚本
├── main.py # 完整流水线入口
├── config.py # 配置文件
├── fetcher.py # 论文抓取
├── source_detector.py # 源码检测与克隆 + 创建迁移任务
├── reporter.py # 报告生成 (包含迁移指引)
├── utils/ # 工具模块
│ ├── logger.py
│ └── date_utils.py
├── run_full_pipeline.sh # 完整流水线脚本
└── check_npu_env.sh # 环境检查脚本
| Skill | 职责 | 位置 |
|---|---|---|
| arxiv-recommendation-npu | 发现论文、克隆源码、创建任务 | 本 skill |
| npu-model-migration skill | NPU 适配验证 | ../npu-model-migration/ |
衔接方式:arxiv-recommendation-npu 生成 migration_task.json,用户根据报告指引调用 npu-model-migration skill。
| 问题 | 解决方案 |
|---|---|
| 克隆失败 | 检查网络,或手动 git clone 后放入 models 目录 |
| 不会用 npu-model-migration skill | 查看 ../npu-model-migration/SKILL.md |
| 想只处理特定论文 | 修改 scripts/main.py 中 papers_with_code 列表手动指定 |
../npu-model-migration/SKILL.mdreferences/npu-adaptation.md (opens in a new tab)references/output-structure.md (opens in a new tab)references/paper-filtering.md (opens in a new tab)scripts/__init__.py (opens in a new tab)scripts/check_npu_env.sh (opens in a new tab)scripts/config.py (opens in a new tab)scripts/fetcher.py (opens in a new tab)scripts/main.py (opens in a new tab)scripts/reporter.py (opens in a new tab)scripts/run_full_pipeline.sh (opens in a new tab)scripts/source_detector.py (opens in a new tab)scripts/utils/__init__.py (opens in a new tab)scripts/utils/date_utils.py (opens in a new tab)scripts/utils/logger.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/external-gitcode-ascend-skills:external-gitcode-ascend-arxiv-recommendation-npufrom external-gitcode-ascend-skills
npx claudepluginhub ascend-ai-coding/awesome-ascend-skills --plugin external-gitcode-ascend-skills91 skills in this plugin
/external-gitcode-ascend-analyse-coverage分析测试覆盖率盲区,生成覆盖率分析报告/external-gitcode-ascend-ascendc-operator-code-gen根据设计文档生成 AscendC 算子完整代码实现并完成框架适配。TRIGGER when: 设计文档已完成,需要生成 op_host/op_kernel 代码、注册到 PyTorch 框架、编译测试。关键词:代码生成、op_host、op_kernel、tiling、kernel、框架适配、算子注册。/external-gitcode-ascend-ascendc-operator-code-reviewAscend C 代码检视技能。基于假设检验方法论对代码进行安全规范检视。调用时必须明确提供:代码片段和检视规则描述。TRIGGER when: 用户要求代码检视、代码review、询问代码安全问题、检查编码规范、或需要检查特定代码问题(如内存泄漏、整数溢出、空指针等)。关键词:Ascend C、代码检视、代码review、安全规范、内存、指针、溢出、泄漏、编码规范。Other plugins' skills for the same job