π¦ ClawHub
EC Sample Tracker
by @xrayxiaoruiyang-pixel
Track and manage electrochemistry samples from synthesis to characterization with data linking, event logging, search, export, and dashboard visualization.
TERMINAL
clawhub install ec-sample-trackerπ About This Skill
ec-sample-tracker-1.0.0 β Sample Tracker for Electrochemistry Labs
Track physical samples from synthesis through every characterization result. Connect samples to their storage locations, synthesis records, and all associated data files (LSV/CV/EIS/XRD/SEM/TEM etc.).
Usage
ec-sample-tracker [options]
Commands
add β Register a new samplelist β List samples with filtersstatus β Show sample status overviewlink β Attach data files or notes to a samplesearch β Search samples by name, tag, synthesis date, or propertylog β Log an experimental event (measurement, storage move, aging)export β Export sample records as CSV/JSON/Markdownimport β Bulk import from CSVdashboard β Visual dashboard of sample inventory and statusSample Record Schema
sample_id β Auto-generated (e.g. CAT-2026-0042)
name β Sample name/label
synthesis_date β YYYY-MM-DD
synthesis_method β hydrothermal / electrodeposition / impregnation / sol-gel / thermal decomposition / commercial
precursors β Comma-separated list
substrate β GC / Ti foil / Ni foam / FTO / ITO / Carbon paper / None
catalyst_load β mg/cmΒ² (if applicable)
target_reaction β OER / HER / ORR / CO2RR / other
tags β Comma-separated tags
storage_location β fridge-4 / rack-A2 / desiccator-2 / given-out
owner β Name
notes β Free-text notes
status β active / degraded / given-out / disposed / lost
Link Types
ec β LSV/CV/EIS/CP/CA filesxrd β XRD datasem / tem β Electron microscopyraman β Raman spectraxps β XPS dataphoto β Sample photosnote β Free-text notesprotocol β Synthesis protocol PDFConfiguration (config.yaml)
lab_name: "Electrochemistry Lab"
id_prefix: "CAT"
next_id: 1
storage_locations:
- fridge-4
- rack-A2
- rack-B1
- desiccator-2
- drawer-3
- given-out
default_owner: "xray"
db_file: "samples.db"
data_root: "/home/xray/data"
Dashboard
Generates a 4-panel PNG dashboard: 1. Sample count by status (pie chart) 2. Samples by reaction type (bar chart) 3. Storage location distribution (bar chart) 4. Recent activity log (text table)
Examples
# Add a new sample
ec-sample-tracker add --name "NiFe-LDH/CF-2026-042" \
--method hydrothermal --precursors "Ni(NO3)2,Fe(NO3)3" \
--substrate "Ni foam" --load 2.1 --reaction OER \
--tags "NiFe-LDH,hydrothermal,batch-42" \
--storage fridge-4 --notes "Synthesized for OER stability test"Link characterization data
ec-sample-tracker link CAT-2026-0042 --type ec --file ~/data/oer_lsv_042.csv
ec-sample-tracker link CAT-2026-0042 --type xrd --file ~/data/xrd_042.ascSearch samples
ec-sample-tracker search --tag NiFe-LDH --reaction OER
ec-sample-tracker search --synth-date-after 2026-03-01List all active samples
ec-sample-tracker list --status activeLog an experimental event
ec-sample-tracker log CAT-2026-0042 --event "LSV cycling started" \
--note "100 cycles in 1M KOH, 10 mA/cmΒ²"Export all samples
ec-sample-tracker export --format markdown --output samples-report.mdGenerate dashboard
ec-sample-tracker dashboard --output sample-dashboard.png
Database
Uses SQLite (samples.db) with tables:
samples β Core sample recordslinks β File/note attachmentsevents β Timestamped experimental eventsmeasurements β Quantitative measurement results (overpotential, Tafel, ECSA, etc.)Output Files
samples.db β SQLite databasesamples.csv β Full exportsample-dashboard.png β Visual dashboard (300 DPI)sample-YYYY-MM-DD.md β Markdown reportUse Cases
β‘ When to Use
π‘ Examples
# Add a new sample
ec-sample-tracker add --name "NiFe-LDH/CF-2026-042" \
--method hydrothermal --precursors "Ni(NO3)2,Fe(NO3)3" \
--substrate "Ni foam" --load 2.1 --reaction OER \
--tags "NiFe-LDH,hydrothermal,batch-42" \
--storage fridge-4 --notes "Synthesized for OER stability test"Link characterization data
ec-sample-tracker link CAT-2026-0042 --type ec --file ~/data/oer_lsv_042.csv
ec-sample-tracker link CAT-2026-0042 --type xrd --file ~/data/xrd_042.ascSearch samples
ec-sample-tracker search --tag NiFe-LDH --reaction OER
ec-sample-tracker search --synth-date-after 2026-03-01List all active samples
ec-sample-tracker list --status activeLog an experimental event
ec-sample-tracker log CAT-2026-0042 --event "LSV cycling started" \
--note "100 cycles in 1M KOH, 10 mA/cmΒ²"Export all samples
ec-sample-tracker export --format markdown --output samples-report.mdGenerate dashboard
ec-sample-tracker dashboard --output sample-dashboard.png