by XXiaer
避免重复造轮子,先有出处 (source-first):动手之前先找依据的 AI Agent Skill(文献检索与项目查重)
# Add to your Claude Code skills
git clone https://github.com/XXiaer/source-firstGuides for using ai agents skills like source-first.
Last scanned: 11/30/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-11-30T14:56:10.304Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}See how source-first compares with popular alternatives.
source-first is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by XXiaer. 避免重复造轮子,先有出处 (source-first):动手之前先找依据的 AI Agent Skill(文献检索与项目查重). It has 66 GitHub stars.
Yes. source-first passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/XXiaer/source-first" and add it to your Claude Code skills directory (see the Installation section above). source-first ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
source-first is primarily written in Python. It is open-source under XXiaer on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh source-first against similar tools.
No comments yet. Be the first to share your thoughts!
From $49 · 30 days · terms & refunds
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM lists this project for discovery and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
Automated security scan — not a certification.
动手之前先找依据。写内容前先看别人写过什么,写代码前先看有没有现成实现。
两条线的道理一样:先确认东西存不存在,再动手。 区别只在于找的是文献还是代码。
| 用户在做什么 | 走哪条 | 加载 |
|---|---|---|
| 写综述、整理笔记、核验参考文献、整理上传 PDF/课件、开题研究现状 | 文献线 | references/study.md |
| 课设、毕设、竞赛选题,问有没有现成项目、能不能复用、要改多少 | 项目线 | references/project.md |
复合需求处理:如果用户同一次提问既要查研究现状/文献又要查现成开源实现(如毕设开题调研),按阶段串行执行:先走文献线完成综述与引用核验,再清空上下文包袱进入项目线查重与骨架评估,各自按阶段加载对应参考文档,不要把文献规则和代码规则混在一起输出。
两条都不像,静默退出,直接按普通任务处理。
文献线命中任一条:
项目线命中任一条:
不进入:
退出话术边界:仅当本技能已被加载、随后发现用户核心诉求明确落入代写论文正文或直接代写整套毕设/课设代码时,用一句话说明不走本技能,然后按普通任务处理(只说一句,不讲道理)。日常混合对话中顺手写段代码、润色一句话或完全无关的任务,静默退回普通模式,不要生硬打断。
判断不清时进入,走最轻的那一档。查一遍的成本,远低于写出一堆假东西。
以下路径均相对于本技能目录(下称 <skill_dir>,即本 SKILL.md 所在目录;执行脚本时请务必使用 python <skill_dir>/scripts/...,不要假定当前工作目录就是技能目录):
references/study.md — 文献线:引用闸门、三档流程、文献特有的硬规则references/project.md — 项目线:排序逻辑、适配判断、创意查重、项目特有的硬规则references/sources.md — 文献接口地址、参数、实测状态、不可用源references/repos.md — 代码仓库检索方法,含 Gitee 检索策略references/citation-formats.md — GB/T 7714 与 APA 第 7 版,含接口字段映射references/output-templates.md — 两条线的输出模板和填好的例子references/setup-guide.md — 可选环境变量与 Token 配置指南scripts/lookup.py — 文献线只读并发检索脚本(支持多 --doi 批量反查、--year-from、--abstract、--format gbt7714|apa|bibtex、双索引去重)scripts/github_lookup.py — 项目线只读检索脚本(支持关键词搜索与 --repo 单仓体检、Trees API src/ 探测、--readme 摘要与许可证风险标记)scripts/check_environment.py — 只读环境与接口连通性自检脚本按阶段按需加载(减少读取轮次,降低等待时间;多轮检索时及时用简短中文状态同步当前进度):
study.md + output-templates.md 后即可直接运行 python <skill_dir>/scripts/lookup.py(已内置接口参数与 gbt7714/apa/bibtex 格式化);仅在无 Python 环境、接口异常需查备用源或需手拼专著/学位论文格式时,再按需补读 sources.md 或 citation-formats.md。project.md + output-templates.md 后即可直接运行 python <skill_dir>/scripts/github_lookup.py(已内置 capstone 适配排序与 --repo 免配额降级);仅在无 Python 环境或需查 Gitee 细节时补读 repos.md。source-first)动手之前先找依据。 写内容前查真实文献,写代码前查现成实现;每条引用都可点击核验,每个推荐都贴合你的约束,拒绝凭记忆编造。
Agent 在学术综述与课设/毕设场景下最容易犯两个错误:编造不存在的参考文献,以及只按 Star 数推荐跑不起来的工程项目。
source-first 通过两条独立工作线约束输出质量(若同一提问同时涉及综述与选题查重,则分阶段串行执行):
| 工作线 | 适用场景 | 核心机制 |
|---|---|---|
| 文献线 | 文献综述、研究现状、开题报告、课程笔记整理、上传 PDF/课件提炼、参考文献核伪 | 引用闸门:所有参考文献必须来自真实接口检索、期刊官网核实或上传材料;按 GB/T 7714-2015 / APA 第 7 版或 BibTeX 确定性生成引文;中文库不可达时给出定制知网检索式 |
| 项目线 | 课设、毕设、竞赛选题查重、评估现成开源项目能否复用 | 可运行性优先:默认按 capstone 适配评分(体量黄金区间 + 宽松协议 + 活跃度)综合排序;支持 --repo 单仓体检与限流自动降级;明确区分“能直接用 / 要改的 / 仅参考思路” |
不进入场景:纯观点文/心得体会、已有完整出处的文字润色、直接代写论文正文或整套业务代码。
source-first/
├── SKILL.md # 主技能定义与路由规则
├── README.md # 项目说明文档
├── LICENSE # MIT 开源许可证
├── skill-dependencies.json # 网络端点与可选环境依赖声明
├── evals/
│ └── evals.json # 触发正反例与纪律压力评测集
├── references/
│ ├── study.md # 文献线:引用闸门、三档流程与硬规则
│ ├── project.md # 项目线:适配排序、创意查重与硬规则
│ ├── sources.md # 文献接口地址、参数与不可用源说明
│ ├── repos.md # GitHub/Gitee/通用搜索仓库检索策略
│ ├── citation-formats.md # GB/T 7714 与 APA 第 7 版字段映射
│ ├── output-templates.md # 两条线标准输出模板与实测示例
│ └── setup-guide.md # 可选环境变量与 Token 配置指南
├── scripts/
│ ├── lookup.py # 文献线只读并发检索脚本(DOI 反查、双索引去重、BibTeX)
│ ├── github_lookup.py # 项目线只读 GitHub 检索、目录与 README 摘要脚本
│ └── check_environment.py # 只读环境与接口连通性自检脚本
└── tests/
└── test_scripts.py # 零网络依赖的单元测试(Mock)
所有脚本均为只读,不写文件、不读本地凭据文件、不起子进程,仅使用 Python 标准库。
scripts/lookup.py一次并发查询 Crossref、OpenAlex、arXiv、DBLP(有 S2_API_KEY 时自动包含 Semantic Scholar;低相关性的 DOAJ 按需通过 --sources ...,doaj 启用),支持 DOI + (标题, 年份) 双索引去重互补、--year-from 年份过滤、DOI 精准反查(HTTP 404 返回退出码 1)与 BibTeX 导出:
# 并发检索(默认 crossref,openalex,arxiv,dblp)
python scripts/lookup.py "retrieval augmented generation" --abstract --json
# 按年份筛选近几年的文献并导出 BibTeX / GB/T 7714
python scripts/lookup.py "RAG" --year-from 2023 --limit 3 --bibtex
python scripts/lookup.py "RAG" --year-from 2023 --limit 3 --format gbt7714
# 按单条或多条 DOI 批量精准反查(用于核验已有参考文献)
python scripts/lookup.py --doi "10.1145/3777378,10.9999/fake" --json
scripts/github_lookup.py按课设/毕设适配维度查询 GitHub 仓库(默认过滤 10KB 以下空壳仓与 Fork 仓),支持 Trees API 探测 src/ 与前后端子目录关键文件、--readme 提取运行指南与中间件依赖线索、--repo 单仓直查体检,并标记 NOASSERTION、archived 与 Copyleft(GPL/AGPL)许可证风险:
python scripts/github_lookup.py "图书管理 springboot" --language Java --check-files --readme
python scripts/github_lookup.py --repo https://github.com/owner/repo --json
python scripts/github_lookup.py "library management" --pushed-after 2025-01-01 --min-stars 5 --json
python scripts/github_lookup.py "图书管理" --include-forks --json
scripts/check_environment.py自动使用已配置的环境变量探活公开端点并输出 ready / degraded / needs_setup / unavailable 状态(绝不回显密钥):
python scripts/check_environment.py
可选环境变量配置细节(GITHUB_TOKEN、OPENALEX_API_KEY、CROSSREF_MAILTO、S2_API_KEY)见 references/setup-guide.md。
source-first/ 文件夹放入你的 AI Agent 技能目录:
~/.gemini/antigravity/skills/~/.workbuddy/skills/.agents/skills/