AgentSkillsCN

zebra-label

在实验室的 Zebra ZD411 打印机上打印标签(2 英寸 × 1 英寸标签)。适用于用户要求打印标签、试管标签、盒子标签、样本标签,或任何与 Zebra 打印机及标签相关的打印任务时使用。支持文本标签、条形码,以及原始 ZPL 格式。

SKILL.md
--- frontmatter
name: zebra-label
description: Print labels on the lab's Zebra ZD411 printer (2"x1" labels). Use when asked to print labels, tube labels, box labels, sample labels, or anything involving the Zebra/label printer. Supports text labels, barcodes, and raw ZPL.

Zebra Label Printing

Printer

  • Model: Zebra ZD411, 203 dpi
  • Labels: 2" × 1" (406 × 203 dots)
  • Connection: Raw ZPL via TCP — 10.119.232.22:9100 (p910nd)

Quick Use

bash
cd skills/zebra-label

# Simple text label
python3 scripts/print_label.py --text "Pol II" --subtext "5.2 µM  2025-01-30"

# With barcode
python3 scripts/print_label.py --text "LF-P042" --subtext "pFastBac-RPB1" --barcode "LF-P042"

# Tube label (rotated for wrapping)
python3 scripts/print_label.py --text "Pol II" --subtext "5 µM" --style tube

# Multiple copies
python3 scripts/print_label.py --text "Buffer A" --copies 5

# Raw ZPL
python3 scripts/print_label.py --zpl "^XA^FO50,50^A0N,40,40^FDHello^FS^XZ"

# From file
python3 scripts/print_label.py --file label.zpl

# Dry run (preview ZPL without printing)
python3 scripts/print_label.py --text "Test" --dry-run

Label Styles

StyleFlagUse case
standarddefaultFlat surfaces: boxes, plates, notebooks
tube--style tube1.5 mL tubes — text rotated 90°

Custom ZPL

For complex layouts, build ZPL directly. Key coordinates:

  • Print area: 406 × 203 dots (203 dpi)
  • ^FO x,y — field origin
  • ^A0N,h,w — scalable font, Normal rotation, height, width
  • ^BCN,h — Code 128 barcode
  • ^PQ n — print quantity

Always use --dry-run first when building custom ZPL to verify layout.

Common Lab Patterns

Protein aliquot: --text "Pol II" --subtext "5.2 µM 50 µL 2025-01-30" --style tube

Plasmid tube: --text "LF-P042" --subtext "pFastBac-RPB1 150 ng/µL" --barcode "LF-P042" --style tube

Storage box: --text "Histones" --subtext "Rack 3, Shelf 2 -80°C"

Buffer bottle: --text "HEPES Buffer" --subtext "25 mM HEPES pH 7.5, 150 mM NaCl" --copies 2