Logo Standardize Sci Images

Standardize Sci Images

Cộng đồng
zhoy0409-debug
standardize-sci-images

Chuẩn hóa ảnh khoa học cho các lô ảnh hiển vi, huỳnh quang, mô học, bệnh học và kính hiển vi điện tử. Dùng khi người dùng có ảnh raster khoa học thô hoặc đã qua xử lý cần được xử lý không phá hủy, khóa cài đặt tông màu, đồng nhất kích thước, thước tỷ lệ đã hiệu chuẩn, tệp kê khai, ảnh ghép, sàng lọc ảnh trùng lặp, 图片查重 hoặc dấu vết kiểm tra ảnh. Không dùng để tạo biểu đồ từ CSV/Excel thô hoặc tinh chỉnh bố cục SVG chỉ ở bước cuối.

Add to TypingMind

Tổng quan

Nhà phát hànhzhoy0409-debug
Kho mãpolish-sci-figures
Tên kỹ năngstandardize-sci-images
Sao
70
Bản fork
5
Tệp đi kèm
7
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 7 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được zhoy0409-debug công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Standardize Sci Images trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/zhoy0409-debug/polish-sci-figures/tree/main/skills/standardize-sci-images
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zhoy0409-debug/polish-sci-figures.git /tmp/polish-sci-figures
mkdir -p .claude/skills
cp -r /tmp/polish-sci-figures/skills/standardize-sci-images .claude/skills/standardize-sci-images
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Standardize Sci Images trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Standardize Sci Images ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Standardize Sci Images với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Standardize Scientific Images

Prepare comparable scientific images as a documented batch. Preserve raw files, apply only declared global operations, and fail when an honest scale bar or comparable display cannot be produced.

Start with the manifest

Read references/image_contract.md, then create a CSV manifest. At minimum it needs file, output_name, and um_per_pixel when a scale bar is requested. Add batch when images were acquired under different settings. The same comparison batch must share calibration and display settings.

bash
python scripts/standardize_images.py manifest.csv \
  --outdir standardized --scale-bar-um 20

The command center-crops every image to a common pixel canvas and writes three practical derivatives: an unannotated display raster, a labelled preview, and an SVG panel whose faithful raster content remains embedded while scale bars and text stay editable vector/live layers. It also builds a montage and writes CSV/JSON audits containing source hashes and every operation. It never overwrites the source.

The requested overlay font defaults to Arial and must be installed. Use --allow-font-fallback only for draft previews; the audit records requested font, actual font, font file, fallback status, and whether the output is allowed for final delivery.

By default, the SVG physical width is set to the largest size that preserves 300 dpi. Use --panel-width-mm only for a known final slot; the command refuses a width that would fall below 300 dpi instead of inventing pixels.

Scientific integrity rules

  • Treat raw acquisition files as immutable. Write derivatives to a new directory and record source SHA-256 hashes.
  • Never invent a scale bar. Require calibration from image metadata, acquisition software, or an authoritative record.
  • Do not infer calibration from another image unless the acquisition record proves they share it.
  • Apply the same crop policy, intensity window, gamma, and LUT to images in the same comparison batch. Do not tune each experimental group separately.
  • Default to no tone adjustment. If display adjustment is needed, declare fixed display_min, display_max, gamma, and lut settings in the manifest.
  • Keep higher-bit-depth single-channel data at their native depth until display mapping. Require an explicit native-unit display window; never silently cast 16-bit data to 8-bit.
  • Preserve a quantitative image/table separately. Display normalization is not a substitute for quantitative preprocessing.
  • Do not erase, clone, selectively blur, locally enhance, or move biological structures.
  • Do not resample by default. Equalize size by a common crop. If resampling is scientifically justified, perform it in a documented downstream workflow and update calibration.

Read references/integrity_and_layout.md before processing fluorescence composites, electron micrographs, unequal calibrations, or images used for quantification.

Layout rules

  • Use one target canvas per comparison set, with identical output pixel dimensions and equal gutters.
  • Use one physical SVG panel size per slot class and verify effective raster dpi at that final size.
  • Use the same scale-bar length and placement within a comparable batch when it fits the shared field of view.
  • Center the scale-bar label over the bar; do not right-align it to the bar endpoint. Keep this alignment and type size identical across the batch.
  • Keep scale bars inside a safety margin and choose black or white from the local background for contrast.
  • Do not add panel letters, serial numbers, per-image titles, or conclusions by default. Add only explicitly requested sample labels that are necessary to interpret the image.
  • Keep captions, acquisition settings, and interpretation outside the image montage.
  • Do not stretch images to make them fit. Crop consistently and record the crop box.
  • Keep scale bars and their labels editable in the SVG delivery layer. Treat the underlying scientific image as faithful raster content, not as a fully vector-editable object.
  • Judge scale-bar and sample-label size in the final panel or montage, not while zoomed into the source. Use one readable label hierarchy and baseline within each slot class.

Check the batch for reused images

When the user asks for image QA or before assembling a batch of scientific images, screen the available source images for accidental reuse using the complete suite from its root:

bash
python sci_figures.py duplicates image-a.png image-b.tif image-c.png --out image-check

Compare 2–60 raster images per batch. For a source-batch check, choose one source per acquired image instead of mixing its raw file with known display derivatives. Supply source images or individual image panels; a flattened montage remains one image and is not automatically divided into panels. SVG-embedded raster images can also be screened. Preserve raw files, calibration and processing records throughout. For larger sets, document which batches were compared; independent batches do not check pairs spanning different batches.

Review exact duplicates and suspected rotated, flipped, resized or cropped overlaps against original files and acquisition records. Related channels and deliberately reused controls can match legitimately. Retain matching evidence and the report; do not automatically delete, alter or relabel images. Report findings as candidates for review, not misconduct determinations, and do not treat no detected matches as a guarantee of uniqueness. See the image duplicate guide.

Finish with the polish skill

Use $polish-sci-figures for final multi-panel grid assembly, font selection, whitespace control, overlap checks, and placement in the manuscript or slide. A visually aligned montage does not pass if calibration, processing provenance, or comparability is unresolved.

Read references/professional_basis.md for the image-integrity, publication-layer, calibration, metadata, and reporting sources behind these safeguards. The implementation is original to this repository.

Acceptance gate

Do not deliver if any raw file was changed, calibration is absent or guessed, comparison-batch display settings differ, crops remove different scientific regions without justification, outputs differ in size, a scale bar is clipped, incorrect, or too small at final size, or unrequested labels/titles/serial numbers appear.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Standardize Sci Images làm được gì?

Chuẩn hóa ảnh khoa học cho các lô ảnh hiển vi, huỳnh quang, mô học, bệnh học và kính hiển vi điện tử. Dùng khi người dùng có ảnh raster khoa học thô hoặc đã qua xử lý cần được xử lý không phá hủy, khóa cài đặt tông màu, đồng nhất kích thước, thước tỷ lệ đã hiệu chuẩn, tệp kê khai, ảnh ghép, sàng lọc ảnh trùng lặp, 图片查重 hoặc dấu vết kiểm tra ảnh. Không dùng để tạo biểu đồ từ CSV/Excel thô hoặc tinh chỉnh bố cục SVG chỉ ở bước cuối.

Vì sao nên dùng Standardize Sci Images trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Standardize Sci Images là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Standardize Sci Images trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/zhoy0409-debug/polish-sci-figures/tree/main/skills/standardize-sci-images. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Standardize Sci Images?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Standardize Sci Images với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Standardize Sci Images với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Standardize Sci Images có miễn phí không?

Có. Kỹ năng này được zhoy0409-debug phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇