정보
이 스킬은 Primer3를 사용하여 PCR 프라이머를 설계 및 검증하고, 열역학적 검증과 비표적 서열 스크리닝을 수행합니다. 신규 프라이머 설계, 기존 프라이머 확인, 특정 아이소폼 또는 변이체에 대한 어세이 생성과 같은 작업을 처리합니다. 이 도구는 로컬 인실리코 PCR 및 BLAST 검사를 포함하며, 계산적 설계와 검증된 어세이를 구분합니다.
빠른 설치
Claude Code
추천npx skills add K-Dense-AI/claude-scientific-skills -a claude-code/plugin add https://github.com/K-Dense-AI/claude-scientific-skillsgit clone https://github.com/K-Dense-AI/claude-scientific-skills.git ~/.claude/skills/primer-designClaude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요
문서
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.
Read sources.md when updating dependencies or API assumptions. The scripts record engine versions and effective settings in their JSON reports.
1. Design candidates
For an initial functional demonstration, use the bundled synthetic sequence. It is nonbiological example input, not an experimentally validated assay:
.venv-primer/bin/python "$SKILL_DIR/scripts/design_primers.py" \
--template "$SKILL_DIR/assets/demo-template.fasta" \
--preset qpcr --config "$SKILL_DIR/assets/qpcr-config.json" \
--output design.json --pairs-out pairs.tsv --expected-out expected.tsv
For actual work, substitute the reviewed target FASTA and constraints. A multi-record
FASTA requires --record with its exact ID. The pcr preset requests 100–1000 bp;
qpcr requests 70–200 bp. Override these starting ranges in the configuration.
The example overrides its range to 90–180 bp and includes a specific target interval.
Multiple SEQUENCE_TARGET intervals are alternatives: Primer3 flanks at least one.
To require coverage of every interval, supply one enclosing target and verify the
returned product; separate assays require separate design runs.
The tool:
- Passes validated
sequence_argsandglobal_argsto Primer3. Unsupported or misspelled tags fail rather than silently changing the task. - Converts ambiguous template positions to
Nand forbids ambiguous primer bases. It does not interpret lowercase sequence as a repeat mask; use explicit exclusions. - Optionally imports
--mask-bedexclusions in the supplied template's coordinates. Use BED intervals for variant/repeat masking only after validating the reference mapping; it does not infer allele frequencies or convert arbitrary VCFs. - Verifies returned forward and reverse sequences against the template and checks product lengths. Primer3's right-primer position is converted into a half-open binding interval; the reverse primer is already in ordering orientation.
- Optionally appends
--forward-tailand--reverse-tailto cores. The design score and core Tm do not include those tails; step 2 checks complete oligos.
Inspect engine_explanations when no candidates are found. Change a biologically
justified constraint and rerun; do not silently relax all constraints or return an
invented sequence. Preserve previous reports when comparing parameter choices.
expected.tsv describes intended products on the design template. If screening
another reference, map these coordinates to its exact record IDs and orientation.
A cDNA product cannot be relabeled as a genomic interval across introns.
2. Assess thermodynamics
Use the same chemistry as the design. The following explicit values match the bundled design defaults; replace them together when the actual conditions differ:
.venv-primer/bin/python "$SKILL_DIR/scripts/check_thermodynamics.py" \
--pairs pairs.tsv --mv-conc 50 --dv-conc 1.5 --dntp-conc 0.6 \
--dna-conc 50 --temp-c 37 --output thermodynamics.json
The report contains core Tm, core and full-oligo hairpins/homodimers, full-oligo
heterodimers, self 3-prime end stability, and both directional inter-oligo 3-prime
end-stability calculations. Delta-G and
delta-H are reported in kcal/mol; delta-S in cal/(mol K). --temp-c controls the
temperature for delta-G, not a recommended PCR annealing temperature.
If design used different Tm/salt models, also set --tm-method and
--salt-corrections-method to match; see the mapping in the input contract.
For a panel, add --multiplex to examine all unordered oligo combinations, including
forward/forward and reverse/reverse between different pairs. Distinguish a panel to
be combined from alternative candidates that will be tested separately.
Read thermodynamics.md before interpreting these values. Full oligos longer than 60 bases are reported as unresolved; they are never silently truncated. Modified bases and degenerate mixtures require a suitable model. Thermodynamic predictions support ranking and experimental planning, not a blanket claim of primer quality. Nonfinite Tm or a Tm at/below absolute zero is rejected as a calculation/input failure; such a result must not be ranked as an ordinary low-Tm primer.
3. Screen amplification products
Read specificity.md before making a specificity claim. Search each primer on both strands and pair inward-facing binding sites. A binding hit alone is not an amplicon; absence of a reported hit is not proof of absence.
Exhaustive bounded local search
.venv-primer/bin/python "$SKILL_DIR/scripts/screen_specificity.py" \
--pairs pairs.tsv --reference "$SKILL_DIR/assets/demo-template.fasta" \
--expected expected.tsv --engine exhaustive \
--min-product 40 --max-product 1000 --max-mismatches 2 \
--three-prime-bases 5 --max-three-prime-mismatches 0 \
--output specificity.json
This enumerates full-length, ungapped binding sites in a bounded local reference and checks F/R, R/F, F/F, and R/R products for each pair. Reference ambiguity is treated conservatively as unresolved sequence; it cannot establish a clean result. The mismatch limits are a search model, not a validated polymerase discrimination rule. Tight 3-prime thresholds can exclude amplifiable mismatched sites; broaden the search when evaluating that uncertainty.
Use --circular RECORD_ID for a circular molecule. Wrapped products use canonical
start coordinates and unwrapped ends greater than the reference length; only
products spanning at most one molecule are considered. Caps on comparisons, hits,
and products prevent unbounded work; hitting a cap makes the result incomplete.
BLAST-assisted local search
.venv-primer/bin/python "$SKILL_DIR/scripts/screen_specificity.py" \
--pairs pairs.tsv --reference "$SKILL_DIR/assets/demo-template.fasta" \
--expected expected.tsv --engine blast \
--min-product 40 --max-product 1000 --max-mismatches 2 \
--three-prime-bases 5 --max-three-prime-mismatches 0 \
--output specificity-blast.json
The script builds a temporary local BLAST database, runs short-query alignment, rechecks complete primer-length candidate sites, and records commands and versions. It checks configured hit limits and tool failures. BLAST discovery is heuristic: successful execution and unsaturated limits do not establish exhaustive coverage. The reference is loaded in memory; plan memory and search bounds for large genomes. The small example verifies execution, not human-genome sensitivity or scalability.
For broader public-reference screening, follow the official NCBI Primer-BLAST workflow in specificity.md, choosing the organism, database, intended templates, maximum product length, and mismatch policy deliberately. Submitting a sequence sends it to NCBI; keep local-only work local. Primer-BLAST is not a documented REST API implemented by these scripts.
Interpret the result
potential_off_target: inspect every unexpected product, including its orientation, length, mismatch positions, and reference identity; redesign or justify its relevance.intended_target_not_found: resolve mapping, reference, sequence, and search problems before drawing specificity conclusions.no_expected_target: results are a product inventory, without a target-specific conclusion. Supply all intended product intervals for the assay.incomplete: reference uncertainty, resource limits, or failed computation leaves the conclusion unresolved. Inspect the reported reason and repeat appropriately.no_off_target_found_within_search_scope: state the exact reference and search model. Check the report's exhaustive/heuristic flags; this is not empirical validation.
For a multiplex reaction, add --multiplex to the specificity command as well as
the thermodynamics command. The specificity tool then searches every cross-pair
oligo combination, retaining the original oligo identities and tails. It treats
cross-pair products as unintended; intentionally shared-primer designs require
explicit standalone combinations with reviewed expected products. The
--max-panel-combinations cap defaults to 10,000 and is checked before expansion.
Thermodynamic --multiplex checks structures; specificity --multiplex checks
reference products. Both are necessary for this panel assessment.
4. Validate the assay and deliver evidence
Select candidates using assay purpose, coverage, specificity evidence, and chemistry, not just the lowest Primer3 penalty. Preserve multiple candidates when uncertainty remains. Follow design-workflows.md for the relevant experimental checks: expected product identity/size, negative and no-template controls, genomic contamination controls for RT-qPCR, and efficiency/dynamic-range assessment when quantification is intended. A single melt peak alone does not prove identity.
Deliver the completed report template, pair TSV, design/thermodynamic/specificity JSON, and source manifest. Include:
- Exact ordering sequences, separated annealing cores and tails, primer lengths, intended product coordinates/size, and any relevant transcript/junction mapping.
- Chemistry and model settings; engine versions; reference accession/release, source, retrieval date, and file hashes; explicit exclusions and rationale.
- Intended and potential unintended products; uncertainty from unknown bases, incomplete references, heuristic searches, caps, and unsupported assay chemistry.
- Experimental evidence actually obtained, outstanding validation, and the reason for each recommended candidate. Label untested candidates accurately.
Validation and limits of this implementation
The repository suite at tests/primer-design/ exercises actual Primer3 calculations,
orientation and coordinate reconstruction, masking, tails, concentration handling,
off-target product geometry, mismatch/ambiguity behavior, failure states, and local
BLAST integration when its executables are installed. Synthetic fixtures establish
software behavior; they do not validate a biological assay or prove genome-wide recall.
Tools return 0 when their computation completes, 1 for a completed design with no candidates or incomplete long-oligo thermodynamics, and 2 for invalid input or tool failure. Read the JSON scientific status even after exit 0: finding an off-target is a successfully completed calculation. See the input contract for screen-specific exits.
Citing Scientific Agent Skills
If used in published work, cite the upstream methods in sources.md and Scientific Agent Skills. Report the software versions and assay-specific settings required to reproduce the actual analysis.
GitHub 저장소
자주 묻는 질문
primer-design Skill이란 무엇인가요?
primer-design은(는) K-Dense-AI이(가) 만든 Claude Skill입니다. Skill은 Claude가 필요할 때 불러오는 지침과 리소스를 묶어 추가 프롬프트 없이 primer-design 관련 작업을 수행할 수 있게 합니다.
primer-design은(는) 어떻게 설치하나요?
이 페이지의 설치 명령을 사용하세요. primer-design을(를) Claude Code 플러그인으로 추가하거나 저장소를 skills 디렉터리에 복제한 다음 Claude를 다시 시작해 Skill을 불러옵니다.
primer-design은(는) 어떤 카테고리에 속하나요?
primer-design은(는) 디자인 카테고리에 속합니다.
primer-design은(는) 무료로 사용할 수 있나요?
네. primer-design은(는) AIMCP에 등록되어 있으며 무료로 설치할 수 있습니다.
연관 스킬
executing-plans 스킬은 검토 체크포인트가 포함된 통제된 배치로 실행할 완전한 구현 계획이 있을 때 사용합니다. 이 스킬은 계획을 불러와 비판적으로 검토한 후, 소규모 배치(기본값 3개 작업)로 작업을 실행하면서 각 배치 사이에 진행 상황을 아키텍트 검토를 위해 보고합니다. 이를 통해 내재된 품질 관리 체크포인트를 갖춘 체계적인 구현이 보장됩니다.
이 스킬은 코드 변경 사항을 요구 사항에 따라 분석하기 위해 코드 리뷰어 하위 에이전트를 호출합니다. 작업 완료 후, 주요 기능 구현 후, 또는 메인 브랜치에 병합하기 전에 사용해야 합니다. 이 리뷰는 현재 구현체와 원래 계획을 비교하여 문제를 조기에 발견하는 데 도움이 됩니다.
이 스킬은 개발자들이 HTTP, stdio 또는 SSE 전송 방식을 통해 MCP 서버를 Claude Code에 연결하는 포괄적인 가이드를 제공합니다. GitHub, Notion 및 사용자 정의 API와 같은 외부 서비스를 통합하기 위한 설치, 구성, 인증 및 보안을 다룹니다. MCP 통합 설정, 외부 도구 구성 또는 Claude의 모델 컨텍스트 프로토콜 작업 시 활용하세요.
이 스킬은 작업 분석을 기반으로 개발자가 Claude Code 웹 인터페이스와 CLI 인터페이스 중 선택할 수 있도록 돕고, 두 환경 간 원활한 세션 텔레포트를 가능하게 합니다. 웹, CLI 또는 모바일 환경 전환 시 세션 상태와 컨텍스트를 관리하여 워크플로를 최적화합니다. 다양한 단계에서 서로 다른 도구가 필요한 복잡한 프로젝트에 사용하세요.
