primer-design
它能做什么
这个工具可以帮助你设计和检查分子生物学实验中使用的短 DNA 序列,这种序列被称为引物(primer)。它能确保引物只与目标位点特异性结合,并且能够顺利发挥作用。
适用场景
- ✓当你需要为 PCR 或 RT-qPCR 实验设计新引物时。
- ✓当你想检查现有引物是否工作正常、特异性是否足够时。
- ✓当你要针对特定靶标设计引物,比如外显子连接处或基因亚型时。
技能链接
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/primer-design/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我需要用于扩增人类 XYZ 基因的引物,产物大小为 150 bp。”
每周 5 个新技能,1 分钟读完。
工作原理
你需要提供关于 DNA 靶标和实验条件的信息。工具会使用名为 Primer3 的程序推荐最佳引物,并检查它们是否可能与 DNA 上的非目标位点结合。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Primer design and specificity
Produce candidate oligos in 5-prime-to-3-prime orientation, with the exact template, chemistry, intended products, and search scope behind each conclusion. Calculate sequence-dependent quantities with the supplied tools. A familiar gene name, good Primer3 penalty, or a single BLAST alignment cannot establish primer specificity.
Choose the workflow
| Request | Start here |
|---|---|
| New genomic PCR or RT-qPCR pair | Define the assay and reference; design; assess thermodynamics; screen products. |
| Check an existing pair | Prepare pair TSV; assess both full oligos and annealing cores; screen with explicit intended coordinates. |
| Exon junction, transcript isoform, allele discrimination | Read design-workflows.md; supply sequence annotation before imposing constraints. |
| Cloning/adaptor-tailed primers | Design annealing cores, append declared 5-prime tails, reassess full oligos, reconstruct the final product. |
| Multiplex panel | Enable --multiplex in both thermodynamics and specificity tools to assess oligo interactions and cross-pair products. |
| Degenerate, bisulfite, probe, or modified-base assay | Use the specialized workflow in design-workflows.md; the bundled ordinary-DNA model is insufficient. |
The local tooling supports paired primers with unambiguous ACGT cores. Advanced assay types have substantive design and validation guidance, but are not silently reduced to ordinary PCR. This skill designs assays; expression normalization, experimental diagnostic validation, and guide-RNA design are separate tasks.
Establish the assay contract
Obtain what changes the result; use explicit provisional assumptions for an exploratory design, and identify them in the report:
- Purpose and template: genomic DNA, cDNA, plasmid, or another defined substrate; target organism, accession with version, assembly/transcript release, strand, desired isoforms, and product-size range. Name wanted and unwanted templates.
- Sequence evidence: local FASTA plus source/retrieval date and its SHA-256 hash. A locus excerpt uses local coordinates; record its mapping to the full reference. Include relevant paralogs, pseudogenes, alternate contigs, transcript isoforms, vector backbone, and host sequence in the appropriate screen.
- Reaction conditions: polymerase/buffer, monovalent salt, total divalent salt, total dNTP, and oligo concentrations. Primer3 uses mM for salts/dNTP and nM for DNA. Record the initial reaction concentration separately from Primer3's effective annealing-oligo concentration parameter. Engine defaults are assumptions.
- Constraints: target interval, allowed/excluded binding regions, junctions, variant exclusions and their source, fixed primers, tails, or multiplex membership. Do not guess exon boundaries or silently substitute another assembly.
- Definition of an acceptable result: relevant off-target references, amplicon lengths, mismatch search limits, controls, and experimental validation appropriate to the assay. There is no universal thermodynamic cutoff that validates all PCRs.
Use input-contract.md for file schemas and coordinate examples. Copy assay-report-template.md into the analysis directory to collect evidence. Reference retrieval may be manual or through an established sequence API; preserve accession/version and verify the returned sequence. The supplied scripts use local files and do not submit sequences online.
Install and verify
Set SKILL_DIR to this skill's actual installed directory. Work in a separate analysis
directory so environments, reference databases, and results do not enter the skill.
uv venv --python 3.13 .venv-primer
uv pip install --python .venv-primer/bin/python -r "$SKILL_DIR/assets/requirements.txt"
.venv-primer/bin/python "$SKILL_DIR/scripts/design_primers.py" --help
Use the environment's Scripts/python.exe on Windows. The design/thermodynamic
examples target primer3-py 2.3.1, tested with Python 3.13. For the optional
BLAST engine, install NCBI BLAST+ from its official distribution and check:
blastn -version
makeblastdb -version
Local integration checks also exercise BLAST+ 2.17.0; other releases require checking their output and search behavior before claiming equivalent coverage.
…
常见问题
什么是引物?
引物是一段短的 DNA 序列,在 PCR 等实验中用来启动特定 DNA 片段的复制过程。
什么是 PCR/RT-qPCR?
这是实验室常用的技术,用于大量复制特定的 DNA 或 RNA 片段,以便对其进行研究。
为什么特异性很重要?
特异性可以确保引物只结合到你想研究的 DNA 位置,避免其他区域的序列干扰结果,防止得出错误的结论。
详情
作者的原始描述
Designs and audits PCR and RT-qPCR primers with Primer3, explicit thermodynamic conditions, reference-based off-target amplification searches, and traceable sequence coordinates. Use for designing primer pairs, checking existing primers, exon-junction or isoform-specific assays, variant masking, cloning tails, multiplex compatibility, and interpreting Primer-BLAST results. Includes bounded local i
热度
- GitHub 星标
- 51k
- 排名
- #3533
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …