Skip to content
Skillpedia
Analysis & spreadsheets51k · #3423

analytical-method-validation

What it does

This tool helps ensure that a testing method (like a chemical or biological test) works correctly for its intended purpose. It assists in planning, executing, and documenting these tests according to established rules.

When to use it

  • ✓When planning a test to check if a method performs well.
  • ✓When analyzing test results to see if the method is reliable.
  • ✓When transferring a testing method to another lab or instrument.

Skill link

https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/analytical-method-validation/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/analytical-method-validation/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“How can I plan the validation of a testing method to ensure it's reliable for measuring a drug's concentration, following ICH Q2(R2) guidelines?”

5 new skills a week. 1 minute to read.

analytical-method-validation: full guide

Validating an analytical method is slow because each framework asks for different things. ICH Q2(R2), ICH M10, USP and CLSI differ in which characteristics are required and whether they give numbers at all. This skill makes your agent name the governing framework first, then build a plan, a protocol and the calculations for that framework only.

It also covers the statistics that are easy to get wrong. The scripts check whether a calibration curve really holds, split precision into within-day and between-day parts, and compute detection limits by named approaches. It is written for analysts, QC chemists and method developers who must show a procedure is fit for purpose. It does not decide that a method is validated; a qualified reviewer does.

Use cases

Plan an HPLC assay validation

You must validate a new HPLC assay for a tablet. The agent picks the framework, lists the required characteristics for an assay, proposes a range from the specification, and writes a protocol with blank fields for acceptance criteria that you fill in before any data is collected.

Check a calibration curve that looks fine

Your curve has an r² of 0.98 but the low standards look off. The agent runs the response check on replicate injections and reports back-calculated error per level, a lack-of-fit test and a residual pattern test. It shows whether the line really fits.

Report precision across several days

You ran six preparations on each of three days. The agent separates repeatability from intermediate precision, so a tight within-day result does not hide large day-to-day variation. It can also test whether the confidence interval sits inside your stated limit.

Step by step

  1. 1Install the skill folder in ~/.claude/skills/analytical-method-validation/ (or the project's .claude/skills/). Check that Python 3.11 or newer is available; the scripts need no extra packages.
  2. 2Tell the agent the measured attribute (assay, impurity, identity), the technique, and the framework you must follow. Run plan_validation.py --list-frameworks if you are unsure which applies.
  3. 3Generate the protocol with plan_validation.py --protocol, then fill in every bracketed acceptance criterion from your specification or analytical target profile before collecting data.
  4. 4Save your results as CSV files in the formats the scripts expect (level,response for calibration; level,measured,group for accuracy and precision) and run the matching check script.
  5. 5Read the findings and exit code, then pass them to your reviewer. The scripts report numbers and findings, and the fitness-for-purpose decision stays with qualified people.

Example

What to ask

“I have calibration.csv with five levels, two injections each, for an HPLC impurity method. Check whether the response is linear across the range and flag any level with back-calculated error above 2%.”

What you get

The agent runs check_response.py with a 2% limit. It returns the slope, intercept, r², a lack-of-fit p-value and a table of back-calculated error per level. It flags levels over 2% and notes that r² alone does not show linearity.

Tips

  • ✓Write acceptance criteria before you collect data. Criteria chosen after seeing results are a common audit finding, and Q2(R2) gives almost no numeric defaults.
  • ✓Do not rely on r² as proof of linearity, and do not pool precision across concentration levels. Both hide real problems that the scripts are built to expose.
  • ✓USP, CLSI and ISO texts are paywalled. The skill gives only the designation and scope for them, so read any required number from your authorised copy.

Alternatives

  • jupyter-notebook

    Pick it if you want a step-by-step notebook of your own analysis for sharing, rather than a regulated validation plan with checks.

  • chart-visualization

    Pick it when you only need a chart image of your results, such as a calibration plot, with no statistical checks.

  • multimodal-evidence

    Pick it when your source data sits in PDFs, spreadsheets or images and you need facts extracted and checked first.

Questions and answers

Do I need to install numpy or scipy?

No. The scripts use only the Python standard library and compute statistical distributions themselves. You need Python 3.11 or newer, and no network access is required.

Can the scripts act as a pass/fail gate in a workflow?

Yes. Exit code 0 means no findings, 1 means findings were raised, and 2 means bad input. A finding is a flag for review, not a final validation decision.

Is a protocol written for ICH Q1(R1)-style Q2(R1) still acceptable?

The skill says a flat Q2(R1)-style list is out of date. Q2(R2) replaced it in November 2023, with range as the parent characteristic, accuracy and precision combined, and robustness tied to Q14.

How it works

The tool uses different sets of rules (called 'frameworks') depending on the test type and goal. It helps define which characteristics of the test need to be evaluated and how the data should be collected and analyzed.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Analytical Method Validation

When to use

Any time the question is whether an analytical procedure is fit for its intended purpose: designing a validation study, evaluating validation data, verifying a compendial procedure, transferring a procedure to another laboratory or instrument, or defending any of these in a report.

The two rules

1. Establish which framework governs before designing anything. The same assay validates differently under ICH Q2(R2), USP <1225>, ICH M10, CLSI EP, and ISO/IEC 17025. They differ in which characteristics are required, how the studies are laid out, and whether numeric acceptance criteria are supplied at all. Blending them produces a protocol that satisfies none of them.

2. State acceptance criteria before collecting data. Criteria chosen after seeing results are not acceptance criteria, and deciding them post hoc is a standing audit finding. ICH Q2(R2) deliberately supplies almost no numeric criteria — they have to come from the specification, the analytical target profile (ICH Q14 section 3), or development data. ICH M10 is the exception: it supplies explicit numbers, and they differ between chromatographic assays and ligand binding assays.

Scope

This skill plans studies, computes the statistics correctly, and structures the documentation. It does not decide that a procedure is validated, release a batch, accept or reject a run, close an investigation, or substitute for the analyst, the technical reviewer, the quality unit, or the regulator. Every script reports computations and supported findings; only the responsible reviewers can make the fitness-for-purpose decision. JSON uses null for unavailable statistics.

Copyright boundary

ICH guidelines are published openly and licensed for reuse with acknowledgement, so their requirements are encoded directly in this skill. USP general chapters, CLSI EP documents, and ISO standards are copyrighted and paywalled. For those, this skill supplies the designation, scope, and where to obtain an authorised copy — never the text, never invented thresholds. Do not ask an agent to retrieve, transcribe, or reconstruct their content. If a number matters and it lives in a paywalled document, read it from the authorised copy.

Frameworks

cd skills/analytical-method-validation/scripts
python3 plan_validation.py --list-frameworks
Key Governs Numeric criteria supplied
ich-q2r2 Release and stability testing of drug substances and products Almost none — you derive them
ich-m10 Bioanalytical concentration measurement (PK, TK, BE) Yes, and they differ by modality
usp-1220 Compendial procedure lifecycle, three stages Paywalled
usp-1225 / usp-1226 Validation / verification of compendial procedures Paywalled
clsi Clinical laboratory measurement procedures (EP series) Paywalled
iso-17025 Lab-developed and modified methods under accreditation No — "to the extent necessary"

Q2(R2) replaced Q2(R1) in November 2023 and restructured the characteristics. Range is now the parent characteristic (section 3.2), containing response (linearity) and validation of lower range limits (DL/QL). Accuracy and precision are section 3.3 and may be evaluated in combination against a single criterion. Robustness is treated as a development activity and cross-refers to ICH Q14. Multivariate procedures are addressed explicitly (2.5 and 3.2.2.3), and Annex 2 adds worked examples for techniques Q2(R1) never covered — quantitative ¹H-NMR, NIR, quantitative LC/MS, qPCR, biological assays, and particle size. A Q2(R1)-shaped protocol — a flat list of linearity, range, accuracy, precision, specificity, LOD, LOQ, robustness — is out of date. Note also the error correction dated 30 November 2023 to Table 5 and Tables 6–11.

Scripts

cd skills/analytical-method-validation/scripts
Script Question answered
plan_validation.py Which framework, which characteristics, what study layout, what protocol?
check_response.py Does the calibration model actually hold across the range?
check_accuracy_precision.py What is the recovery, and how much of the variability is between days?
check_detection_limits.py What are DL and QL by each allowed approach, and do they serve the reporting threshold?
check_bioanalytical_run.py Which supported ICH M10 numerical checks raise findings?

…

FAQ

What are 'frameworks'?

These are sets of rules and guidelines (like ICH Q2(R2), USP <1225>) that define how a testing method should be validated. Each has specific requirements.

What does it mean for a method to be 'fit for its intended purpose'?

It means the testing method is reliable and accurate enough to be used for what it was created for, such as measuring the amount of a substance or verifying its identity.

Does this tool replace a scientist or analyst?

No. It assists with planning and data analysis, but the final decision on method validation always rests with a qualified professional.

Details

Original description by the author

Plans, executes, and documents validation, verification, and transfer of analytical procedures under the governing framework - ICH Q2(R2) and Q14, USP <1220>/<1225>/<1226>, ICH M10 bioanalytical, CLSI EP, or ISO/IEC 17025. Use for HPLC, LC-MS/MS, GC, CE, ICP-MS, dissolution, qNMR, qPCR, NIR, and ligand binding or cell-based assays whenever the question is whether a procedure is fit for its intende

repo: K-Dense-AI/scientific-agent-skills

Popularity

GitHub stars
51k
Ranking position
#3423
License
MIT
Updated
10/15/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills