sar-series-analysis
Skill0 starsChanged 14 days agoApache-2.0View on GitHub
Decompose compounds into BRICS fragments, identify matched molecular pairs across a series, and detect property cliffs -- large property changes at a single R-group transformation. Use when performing systematic SAR analysis across a DMTA round, identifying which structural transformations correlate with property changes, decomposing a compound into its BRICS fragments, or detecting property cliffs -- large property changes at a single R-group position that warrant investigation. Do not use for single-compound profiling (use compound-property-profile), binding mode or docking (use binding-mode-analysis), or dose-response quality (use bioactivity-landscape).
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- GoogleCloudPlatform/LifeSciencesedited, first seen Oct 13, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- GoogleCloudPlatform/LifeSciences★ 5798% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository43 other files it gives its agents.
- pharmakon-discovery-engineSkill
- admet-property-predictionSkill
- artifact-conventionsSkill
- binding-mode-analysisSkill
- bioactivity-landscapeSkill
- brain-atlasSkill
- citation-resolutionSkill
- citation-verificationSkill
- competitive-differentiationSkill
- compound-identity-resolutionSkill
- compound-property-profileSkill
- debate-protocolSkill
- disease-transcriptomicsSkill
- elo-tournamentSkill
- evolution-operatorsSkill
- hypex-tool-setupSkill
- hypothesis-entrySkill
- hypothesis-run-corpusSkill
- hypothesis-schemaSkill
- in-vivo-pk-analysisSkill
- literature-searchSkill
- manufacturing-feasibilitySkill
- meta-review-protocolSkill
- model-organism-phenotypeSkill
- pharmakon-discovery-engineSkill
- pkde-dashboardSkill
- pocket-druggabilitySkill
- preclinical-safety-assessmentSkill
- program-state-managementSkill
- protein-structure-confidenceSkill
- proximity-protocolSkill
- regulatory-variant-effectSkill
- review-rubricSkill
- run-protocolSkill
- safety-screenSkill
- single-cell-expressionSkill
- site-generationSkill
- stage1-gate-evaluationSkill
- structure-screeningSkill
- structure-similarity-searchSkill
- target-genetic-evidenceSkill
- tissue-expression-profileSkill
- tournament-corpusSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 1 is distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill when you need to analyze structure-activity relationships across a compound series using matched molecular pairs.
- Very specific: line 51
Run pkde doctor before first use.
- Very specific: line 63
Run Phase 1 (fragment, pairs) before Phase 2 (analyze).
- Very specific: line 132
If a program overrides the entire cliff_absolute_delta to UNRESOLVED, the tool skips all cliff detection and emits the original advisory.
- Very specific: line 144
Check mandatory_relays in both the .mmp-analysis.json and any upstream .meta.json.
- Very specific: line 163
Properties not evaluated: when the analysis reports not_evaluated_properties, carry the advisory unchanged.
- Very specific: line 219
Treating "not evaluated" as "no cliffs.": When a property is absent from cliff_absolute_delta, the tool does not evaluate it for cliffs.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
1. When to use, and when not
Use this skill when you need to analyze structure-activity relationships across a compound series using matched molecular pairs. Entry points include:
- Systematic SAR analysis across a compound series -- identifying which R-group transformations correlate with property changes in a DMTA round.
- Identifying property cliffs -- large property changes at a single R-group position that warrant investigation.
- Decomposing a compound into BRICS fragments -- recording the full fragmentation (core scaffold and R-group positions) for downstream pairing.
- Identifying matched molecular pairs between compounds -- finding compound pairs that share the same BRICS core but differ at exactly one R-group.
- Identifying which R-group transformations correlate with ADMET endpoint changes (metabolic stability, permeability, hERG) across a series.
Do not use when:
- You need single-compound profiling (descriptors, drug-likeness,
structural alerts) ->
compound-property-profile. - You need binding affinity, docking scores, or pose interpretation
->
binding-mode-analysis. - You need dose-response quality, Z-factor, or curve fitting
->
bioactivity-landscape. - You need fold confidence or domain boundaries
->
protein-structure-confidence. - You need genetic constraint or loss-of-function intolerance
->
target-genetic-evidence.
2. Preconditions
- fragment: a single SMILES string. Unparseable SMILES exits 9 (Refusal). RDKit required.
- pairs: a JSON file matching schema
pkde.mmp-series.v1with a top-levelschemafield and acompoundsarray. Each compound record must havecompound_id,smiles, and a non-emptypropertiesdict. Maximum 10,000 compounds. RDKit required. - analyze: a
.mmp-pairs.jsonartifact produced by thepairsstep. RDKit is not required -- analyze is Phase 2 (offline, deterministic, reads from disk). - Run
pkde doctorbefore first use. Its verdict line (STOPorPROCEED) is the gate. - No authentication needed -- all operations are offline.
3. Tool invocations
| Question | Run | Writes to |
| What are this compound's BRICS fragments? | pkde mmp fragment <SMILES> | raw/compounds/<slug>.mmp-fragment.json<br>raw/compounds/<slug>.mmp-fragment.meta.json |
| Which compounds form matched molecular pairs? | pkde mmp pairs <SERIES_FILE> | raw/compounds/<name>.mmp-pairs.json<br>raw/compounds/<name>.mmp-pairs.meta.json |
| Where are the property cliffs? | pkde mmp analyze <ARTIFACT> | raw/compounds/<stem>.mmp-analysis.json |
Run Phase 1 (fragment, pairs) before Phase 2 (analyze). analyze
reads stored .mmp-pairs.json from disk and can be re-run with
different thresholds without recomputing pairs.
The <slug> is derived from canonical SMILES -- deterministic and
filesystem-safe. The <name> is derived from the input filename. The
<ARTIFACT> for analyze is the .mmp-pairs.json produced by pairs.
4. Interpretation contract
Output structure
The tool does not produce a single verdict string. analyze produces a
multi-component analysis:
- Per-transformation records:
transformationstring,n_pairs,cliffslist (each withpair,property,delta,reasons),advisories,low_pair_countflag, andnot_evaluated_properties(list of property names for which no cliff threshold is configured), with per-property advisories inadvisories. - Assessment:
cliff_results(the per-transformation records),unresolved_cliff_thresholdslist, an advisory when thresholds are unresolved, andnot_evaluated_advisorywhen any properties lacked a configured threshold. - Metrics:
n_pairs_total,n_transformations,n_cliffs,n_low_pair_count_transformations,n_properties_not_evaluated, andproperties_not_evaluated.
Interpret each component for what it measures. Do not collapse this structure into a pass/fail verdict.
What a property cliff means, and what it does not
A property cliff is a correlation in a dataset. A large property change across a single R-group transformation flags a substitution worth attention -- it does not explain why the transformation matters mechanistically. The structural change may be incidental to the true driver.
A cliff detected from one matched pair is an observation, not a validated SAR rule. The pair count for the transformation must be considered alongside the cliff itself.
Threshold structure -- cliff_absolute_delta
The mmp-cliffs@1.0 threshold set contains:
min_pair_count-- resolved. Cite by name; quote values fromthresholds_appliedin the analysis being cited.cliff_absolute_delta-- a per-property dict. Inmmp-cliffs@1.0, recognized properties (cliff_absolute_delta["pic50"]andcliff_absolute_delta["pki"]) have resolved thresholds. Cite the threshold by name fromthresholds_applied; do not embed the numeric value in prose.
Properties not present in cliff_absolute_delta are explicitly not
evaluated for cliffs. The tool emits per-transformation
not_evaluated_properties lists and advisories naming exactly which
properties were not evaluated and why. This is not a silent skip.
"Not evaluated" is not "no cliffs found." The question was not asked for those properties. Do not invent a threshold for an unconfigured property.
Property names are matched case-insensitively (e.g. pIC50 resolves against the pic50 entry).
Programs can add property thresholds via .pkde/thresholds.yaml under
mmp-cliffs.cliff_absolute_delta.
If a program overrides the entire cliff_absolute_delta to UNRESOLVED,
the tool skips all cliff detection and emits the original advisory. The
"do not invent" rule applies in full in that case -- the absence of cliff
detection is not "no cliffs exist," it means the question was not asked.
Mandatory relays
| Relay code | Kind | Fires when | Obligation |
mmp.small_pair_count | Qualifier (defect-triggered) | Any transformation group has fewer matched pairs than the min_pair_count threshold | Note the low pair count and scope any SAR conclusion from that transformation as low-confidence. Do not report a property trend from this transformation with confidence -- the number of matched pairs supporting it is below the minimum required for a reliable conclusion. Report the raw observation and the pair count, not a trend. |
mmp.cliff_not_causation | Stop (claim-triggered) | One or more property cliffs are detected | Report the cliff as a correlation, not as evidence of a causal mechanism. A large property change across a single R-group transformation flags a substitution worth attention but does not demonstrate that the R-group change caused the property change. Adding a disclaimer does not satisfy this relay -- if the question is about mechanism, the answer is that the question is untooled by MMP analysis alone. |
Check mandatory_relays in both the .mmp-analysis.json and any
upstream .meta.json. Every relay code present must be satisfied in
the finding.
Consequence rules
- Cliffs detected: state the transformation, the property, the
delta (from the analysis, not from recomputation), and the pair count.
Carry the
mmp.cliff_not_causationrelay -- the cliff is a correlation, not a mechanism. Cross-referencecompound-property-profilefor the individual compounds involved. - Low pair count: carry the
mmp.small_pair_countrelay. State the pair count and scope the observation as low-confidence. Do not extrapolate a trend from too few pairs. - No cliffs detected (with resolved threshold): state that no property changes exceeded the configured cliff threshold for any transformation. This does not mean properties are insensitive to structural changes -- it means no large change was observed in this dataset under the configured threshold.
- Properties not evaluated: when the analysis reports
not_evaluated_properties, carry the advisory unchanged. The question of whether cliffs exist for those properties is unanswered -- no threshold was configured. Do not infer absence of cliffs from absence of evaluation. - Entire cliff_absolute_delta UNRESOLVED (program override): the tool skipped all cliff detection. Carry the advisory unchanged. The question is unanswered for all properties.
Cross-disciplinary consequences
- MMPs only cover the transformations present in the series. Absence of a cliff does not mean the property is insensitive to that transformation in other scaffolds or chemical contexts.
- A property change at one R-group position may not generalize to other positions or scaffolds -- pairwise SAR is not global SAR.
- Cross-reference
compound-property-profilefor the computed properties and structural alerts of individual compounds in a cliff pair. Cross-referencebioactivity-landscapewhen the properties include measured assay readouts.
What this section produces
Following this contract produces a Layer 1 finding in findings/ that
cites the .mmp-analysis.json, satisfies every mandatory relay that
fired, names the threshold set applied, carries any not-evaluated or
UNRESOLVED-threshold advisory through unchanged, and never reads absence
of evaluation as absence of cliffs. Everything the tools emitted stays
under raw/compounds/.
5. Failure modes and anti-fabrication guard
Do not compute these values yourself. The value is whatever the tool emitted. If the tool did not run, there is no value. If a required tool is unavailable, report the task as blocked. Do not estimate, and do not proceed on an assumed result.
Named pathologies
- Treating a 2-compound cliff as a general rule. A property cliff
from one matched pair is an observation, not a validated SAR rule.
The pair count for the transformation must be considered -- the
mmp.small_pair_countrelay fires when the count is below the configured minimum. - Extrapolating beyond explored chemical space. MMPs only cover the transformations present in the series. Absence of a cliff does not mean the property is insensitive to that transformation in other scaffolds.
- Confusing pairwise SAR with global SAR. A property change at one R-group position may not generalize to other positions or scaffolds. Matched molecular pair analysis characterizes local SAR within the observed series.
- Confusing "no cliff" with insensitivity. Absence of a cliff means no large change was observed in this dataset under the configured threshold -- not that the property is insensitive to structural changes.
- Treating "not evaluated" as "no cliffs." When a property is
absent from
cliff_absolute_delta, the tool does not evaluate it for cliffs. Thenot_evaluated_propertiesfield names these explicitly. "Not evaluated" means the question was not asked -- not that the answer is "no cliffs." Do not supply a threshold the tool did not configure. - Computing MMP fragmentation yourself instead of using the tool. The tool pins the RDKit version and BRICS decomposition algorithm. A fragmentation computed outside the tool may use different bond definitions or a different RDKit version. The finding must cite the tool's output, not a recalculation.
6. Provenance
RDKit BRICS decomposition. RDKit is BSD-3-Clause licensed. The tool
records rdkit_version in every Phase 1 artifact.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

