Back to Skills

plan-spectroscopic-analysis

pjt222
Updated 2 days ago
2 views
17
2
17
View on GitHub
Testingai

About

This skill helps developers plan spectroscopic analysis campaigns by selecting appropriate techniques and sequencing them from non-destructive to destructive. It provides a structured workflow for defining analytical questions, preparing samples, and establishing cross-validation success criteria. Use it when designing comprehensive material characterization studies requiring multiple spectroscopic methods.

Quick Install

Claude Code

Recommended
Primary
npx skills add pjt222/agent-almanac -a claude-code
Plugin CommandAlternative
/plugin add https://github.com/pjt222/agent-almanac
Git CloneAlternative
git clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/plan-spectroscopic-analysis

Copy and paste this command in Claude Code to install this skill

Documentation

Plan Spectroscopic Analysis

Design spectroscopic analysis campaign. Pick right techniques, sequence them, define success criteria for answering specific analytical question about a sample.

When Use

  • Starting investigation of unknown compound — deciding which spectroscopic techniques to use
  • Optimizing analysis sequence to preserve sample for destructive methods
  • Planning sample preparation requirements before acquiring instrument time
  • Ensuring cross-validation between complementary techniques
  • Budgeting instrument time and prioritizing techniques when resources limited
  • Training new analysts in systematic analytical planning

Inputs

  • Required: Analytical question (structure ID, quantitation, purity assessment, functional group screening, reaction monitoring)
  • Required: Sample description (physical state, approximate quantity, known or suspected compound class)
  • Optional: Available instruments and capabilities
  • Optional: Budget and time constraints
  • Optional: Safety data (toxicity, reactivity, volatility, light sensitivity)
  • Optional: Prior analytical data (if any results already exist)

Steps

Step 1: Define Analytical Question

Clarify exactly what info needed before picking any technique:

  1. Classify question type:

    • Structure identification: Determine complete molecular structure of unknown compound. Needs broadest set of techniques.
    • Structure confirmation: Verify known compound matches expected structure. Fewer techniques, focused on diagnostic features.
    • Quantitative analysis: Determine concentration or amount of known analyte. Needs calibration and technique with good linearity (UV-Vis, NMR with internal standard).
    • Purity assessment: Determine if sample contains impurities and identify them. Needs high sensitivity and separation capability.
    • Functional group screening: Identify which functional groups present without full structure determination. IR often enough.
    • Reaction monitoring: Track progress of chemical reaction over time. Needs speed and compatibility with reaction conditions (in situ IR, Raman, UV-Vis).
  2. Define success criteria: State explicitly what counts as satisfactory answer. For structure ID: "single structural proposal consistent with all spectroscopic data." For quantitation: "concentration determined with < 5% relative error."

  3. Assess what already known: Compile existing info about sample (elemental analysis, reaction scheme, expected product, literature precedent). Constrains problem. Reduces number of techniques needed.

Got: Clearly stated analytical question with defined success criteria. Summary of existing knowledge about sample.

If fail: Analytical question vague ("characterize this sample")? Work with requestor to narrow it. Vague question → unfocused analysis and wasted instrument time.

Step 2: Assess Sample Characteristics

Evaluate sample to determine which techniques feasible:

  1. Physical state: Solid (crystalline, amorphous, powder), liquid, solution, gas, thin film, biological tissue. Each state constrains which sample preparation methods and techniques apply.
  2. Quantity available: Estimate total sample mass or volume. Some techniques need milligrams (NMR), others work with micrograms (MS) or nanograms (SERS).
  3. Solubility: Test or estimate solubility in common solvents (water, methanol, DMSO, chloroform, hexane). NMR needs deuterated solvent. UV-Vis needs transparent solvent.
  4. Stability: Assess thermal stability (for GC-MS — needs volatilization), photostability (for Raman — uses laser excitation), air/moisture sensitivity (for KBr pellet preparation), solution stability (for time-dependent measurements).
  5. Safety hazards: Note toxicity, flammability, reactivity, radioactivity. Affects handling protocols. May exclude certain techniques (e.g. volatile toxic compounds shouldn't be analyzed by open-atmosphere Raman without containment).
  6. Expected molecular weight range: Small organics (< 1000 Da) vs polymers/biomolecules (> 1000 Da) need different MS ionization methods and different NMR acquisition strategies.

Got: Sample characterization summary listing state, quantity, solubility, stability, hazards, molecular weight range.

If fail: Sample can't be characterized adequately (e.g. quantity too small to test solubility)? Adopt conservative approach: start with non-destructive, minimal-sample techniques (Raman, ATR-IR). Assess further after initial results.

Step 3: Select Techniques Using Decision Matrix

Pick most informative techniques based on analytical question and sample characteristics:

TechniqueBest ForSample NeedsDestructive?SensitivityKey Limitations
1H NMRH connectivity, integration, coupling1--10 mg in deuterated solventNomgRequires solubility, insensitive
13C NMRCarbon skeleton, functional groups10--50 mg in deuterated solventNomgVery insensitive, long acquisition
2D NMRFull connectivity, stereochemistry5--20 mg in deuterated solventNomgHours of instrument time
IR (ATR)Functional group IDAny solid/liquid, minimal prepNougWater interference, fingerprint overlap
IR (KBr)Functional group ID, transmission1--2 mg solid in KBr pelletNo*ugMoisture sensitive, sample mixed
RamanSymmetric modes, aqueous samplesAny state, no prep for solidsNoug--mgFluorescence, photodegradation
EI-MSVolatile small molecules, fragmentationug, must be volatileYes (GC-MS)ng--ugRequires volatility
ESI-MSPolar/large molecules, MW determinationSolution in volatile solventYespg--ngAdduct complexity, ion suppression
MALDI-MSPolymers, proteins, large moleculesSolid + matrixYesfmolMatrix interference below 500 Da
UV-VisChromophores, quantitationSolution, ug--mgNougLimited structural information

*IR with KBr is non-destructive to molecule but sample can't easily be recovered from pellet.

  1. Match question to technique: Structure ID usually needs NMR + MS + IR min. Functional group screening needs only IR. Quantitation works best with UV-Vis or NMR.
  2. Check feasibility: Cross-reference each candidate technique with sample characteristics from Step 2. Eliminate incompatible ones (e.g. GC-MS for non-volatile compounds, NMR for paramagnetic samples).
  3. Prioritize by information density: Rank remaining techniques by how much information they provide toward answering specific question.
  4. Consider cost and availability: Multiple techniques provide similar info? Prefer one that's faster, cheaper, more readily available.

Got: Ranked list of selected techniques with reason per choice. Notes on excluded techniques and why.

If fail: No single technique sufficient (common for structure ID)? Plan should include complementary techniques together answering question. No suitable technique available? Note limitation. Recommend alternative analytical approaches (e.g. derivatization to make sample suitable for GC-MS).

Step 4: Plan Sample Preparation per Technique

Define specific preparation requirements for each selected technique:

  1. NMR preparation: Dissolve 1--50 mg sample in 0.5--0.7 mL of deuterated solvent. Pick solvent based on solubility and spectral window:
Solvent1H ResidualUse When
CDCl37.26 ppmNon-polar to moderately polar compounds
DMSO-d62.50 ppmPolar compounds, broad solubility
D2O4.79 ppmWater-soluble compounds, peptides
CD3OD3.31 ppmPolar organic compounds
C6D67.16 ppmAromatic region overlap avoidance
  1. IR preparation: Pick method based on sample state:

    • ATR: Place solid or liquid direct on crystal. Fastest, minimal preparation.
    • KBr pellet: Grind 1--2 mg sample with 100--200 mg dry KBr. Press into transparent disk.
    • Solution cell: Dissolve in IR-transparent solvent (CCl4, CS2). Limited windows of transparency.
    • Thin film: Cast from solution onto NaCl or KBr window. Good for polymers and oils.
  2. MS preparation: Match ionization method to sample:

    • EI (GC-MS): Sample must be volatile. Dissolve in volatile solvent (dichloromethane, hexane).
    • ESI (LC-MS): Dissolve in ESI-compatible solvent (methanol/water, acetonitrile/water with 0.1% formic acid).
    • MALDI: Mix with appropriate matrix (DHB, CHCA, sinapinic acid). Dry on target plate.
  3. UV-Vis preparation: Dissolve in UV-transparent solvent. Adjust concentration so absorbance at lambda-max between 0.1 and 1.0. Use matched cuvettes for sample and reference.

  4. Raman preparation: Minimal preparation needed for most samples. Solids measured neat. Liquids in glass vials (glass has weak Raman scattering). Avoid fluorescent containers. For aqueous solutions, Raman works well — water is weak Raman scatterer.

Got: Preparation protocol per selected technique — solvent choices, quantities needed, special handling instructions.

If fail: Sample quantity insufficient for all planned techniques? Prioritize based on information hierarchy from Step 3. Sample insoluble in all suitable solvents? Consider solid-state techniques (ATR-IR, Raman, solid-state NMR, MALDI-MS).

Step 5: Determine Analysis Sequence and Cross-Validation Strategy

Order analyses to preserve sample and maximize information flow:

  1. Sequence by destructiveness: Non-destructive first, destructive last.

    • First tier (non-destructive, no preparation): Raman, ATR-IR
    • Second tier (non-destructive, requires preparation): UV-Vis, NMR (sample often recoverable by evaporating solvent)
    • Third tier (destructive or consumes sample): MS (ESI, EI/GC-MS, MALDI)
  2. Information flow: Use early results to refine later analyses:

    • IR/Raman functional group data helps choose best NMR experiments (e.g. IR shows no carbonyl → skip carbonyl-focused 13C analysis).
    • Molecular formula from MS helps interpret NMR (integration ratios, expected number of peaks).
    • NMR connectivity data helps interpret MS fragmentation.
  3. Define cross-validation points: Identify where results from different techniques should agree:

    • Molecular formula: MS (molecular ion) must match NMR (H and C count) and elemental analysis.
    • Functional groups: IR assignments must be consistent with NMR chemical shifts and MS fragmentation.
    • Degree of unsaturation: Calculated from formula (MS) must match observed rings and double bonds (NMR, UV-Vis).
  4. Plan for contingencies: Define what additional experiments to run if initial results ambiguous:

    • NMR shows unexpected complexity → run 2D experiments (COSY, HSQC, HMBC).
    • MS molecular ion ambiguous → try different ionization method or request HRMS.
    • IR dominated by one functional group → try Raman for complementary information.
  5. Document the plan: Produce written analysis plan with technique sequence, sample preparation steps, expected turnaround time, decision points for contingency experiments.

Got: Complete, ordered analysis plan with preparation protocols, cross-validation criteria, contingency provisions documented.

If fail: Plan can't be completed due to sample or instrument constraints? Document limitations explicitly. Propose best achievable subset of analyses.

Checks

  • Analytical question clearly defined with explicit success criteria
  • Sample characteristics assessed (state, quantity, solubility, stability, hazards)
  • Techniques selected using decision matrix with reasons documented
  • Infeasible techniques identified and excluded with reasons
  • Sample preparation planned per selected technique
  • Analysis sequence ordered from non-destructive to destructive
  • Cross-validation points defined between complementary techniques
  • Contingency experiments identified for ambiguous results
  • Total sample consumption estimated and verified against available quantity

Pitfalls

  • Skip planning phase: Jumping direct to nearest available instrument wastes sample and time. Even 15 min of planning saves hours of re-analysis.
  • Pick techniques by habit not need: Not every analysis needs NMR. Simple functional group confirmation may need only IR. Match technique to question.
  • Underestimate sample requirements: Running out of sample midway through analysis sequence is avoidable. Compute total sample needs upfront. Add 20% reserve.
  • Run destructive methods first: GC-MS before NMR means NMR sample must come from separate aliquot. Sequence non-destructive methods first to max information per milligram.
  • Neglect solvent compatibility: Sample dissolved in DMSO-d6 for NMR can't easily be used for GC-MS (non-volatile solvent). Plan solvent choices across all techniques.
  • No cross-validation strategy: Without defined checkpoints, contradictory results from different techniques may go unnoticed until final interpretation stage.

See Also

  • interpret-nmr-spectrum -- interpret NMR data acquired per this plan
  • interpret-ir-spectrum -- interpret IR data acquired per this plan
  • interpret-mass-spectrum -- interpret MS data acquired per this plan
  • interpret-uv-vis-spectrum -- interpret UV-Vis data acquired per this plan
  • interpret-raman-spectrum -- interpret Raman data acquired per this plan
  • validate-analytical-method -- validate quantitative methods selected in this plan

GitHub Repository

pjt222/agent-almanac
Path: i18n/caveman/skills/plan-spectroscopic-analysis
0
agentsagentskillsai-assisted-developmentclaude-codeskillsteams

Related Skills

evaluating-llms-harness

Testing

This Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.

View skill

cloudflare-cron-triggers

Testing

This skill provides comprehensive knowledge for implementing Cloudflare Cron Triggers to schedule Workers using cron expressions. It covers setting up periodic tasks, maintenance jobs, and automated workflows while handling common issues like invalid cron expressions and timezone problems. Developers can use it for configuring scheduled handlers, testing cron triggers, and integrating with Workflows and Green Compute.

View skill

webapp-testing

Testing

This Claude Skill provides a Playwright-based toolkit for testing local web applications through Python scripts. It enables frontend verification, UI debugging, screenshot capture, and log viewing while managing server lifecycles. Use it for browser automation tasks but run scripts directly rather than reading their source code to avoid context pollution.

View skill

finishing-a-development-branch

Testing

This skill helps developers complete finished work by verifying tests pass and then presenting structured integration options. It guides the workflow for merging, creating PRs, or cleaning up branches after implementation is done. Use it when your code is ready and tested to systematically finalize the development process.

View skill