Agent skill
toxicity-structure-alert
Identify potential toxic structural alerts in drug molecules by scanning SMILES/SMARTS structures for known toxicophores and assessing toxicity risk levels.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/toxicity-structure-alert
SKILL.md
Toxicity Structure Alert (Skill ID: 141)
Identify potential toxic structural alerts in drug molecules.
Features
- Scan molecular structures (SMILES/SMARTS)
- Identify known toxic structural alerts
- Assess potential toxicity risk levels
- Generate detailed reports
Supported Alert Structures
| Alert Structure | Toxicity Type | Risk Level |
|---|---|---|
| Aromatic Nitro | Mutagenicity | High |
| Aromatic Amine | Carcinogenicity | High |
| Epoxide | Alkylating Agent | High |
| Aldehyde | Reactive Toxicity | Medium |
| Acyl Chloride | Reactive Toxicity | Medium |
| Michael Acceptor | Electrophilic Toxicity | Medium |
| Hydrazine | Hepatotoxicity | High |
| Haloalkyl | Alkylating Agent | High |
| Quinone | Oxidative Stress | Medium |
| Thiol-Reactive Groups | Protein Binding | Low-Medium |
Dependencies
- Python 3.8+
- RDKit
Usage
python scripts/main.py --input <smiles_string> [--format json|text]
Parameters
--input, -i: Input SMILES string (required)--format, -f: Output format, optionaljsonortext(default: text)--detail, -d: Detail level, optionalbasic,standard,full(default: standard)
Examples
# Basic text output
python scripts/main.py -i "O=[N+]([O-])c1ccccc1"
# JSON format output
python scripts/main.py -i "O=C1OC1c1ccccc1" -f json
# Detailed report
python scripts/main.py -i "c1ccc2c(c1)ccc1c3ccccc3ccc21" -d full
Python API
from scripts.main import ToxicityAlertScanner
scanner = ToxicityAlertScanner()
result = scanner.scan("O=[N+]([O-])c1ccccc1")
print(result.alerts)
Output Format
JSON Output
{
"input": "O=[N+]([O-])c1ccccc1",
"mol_weight": 123.11,
"alert_count": 1,
"risk_score": 0.85,
"risk_level": "HIGH",
"alerts": [
{
"name": "Aromatic Nitro",
"type": "mutagenic",
"smarts": "[N+](=O)[O-]",
"risk_level": "HIGH",
"description": "May cause DNA damage and mutagenicity"
}
],
"recommendations": [
"Recommend Ames test validation",
"Consider structural optimization to reduce toxicity"
]
}
Risk Levels
- HIGH: Known significant toxicity, strongly recommended to avoid
- MEDIUM: Potential toxicity, further evaluation recommended
- LOW: Minor concern, can be considered based on specific circumstances
Notes
- This tool is based on known alert structures and cannot replace comprehensive toxicological assessment
- False positives and false negatives may both exist
- Recommended to use with other ADMET prediction tools
References
- Ashby J., Tennant R.W. (1988) Chemical structure, Salmonella mutagenicity...
- Kazius J., McGuire R., Bursi R. (2005) Derivation and validation of toxicophores...
- Enoch S.J., Cronin M.T.D. (2010) A review of the electrophilic reaction chemistry...
Risk Assessment
| Risk Indicator | Assessment | Level |
|---|---|---|
| Code Execution | Python/R scripts executed locally | Medium |
| Network Access | No external API calls | Low |
| File System Access | Read input files, write output files | Medium |
| Instruction Tampering | Standard prompt guidelines | Low |
| Data Exposure | Output files saved to workspace | Low |
Security Checklist
- No hardcoded credentials or API keys
- No unauthorized file system access (../)
- Output does not expose sensitive information
- Prompt injection protections in place
- Input file paths validated (no ../ traversal)
- Output directory restricted to workspace
- Script execution in sandboxed environment
- Error messages sanitized (no stack traces exposed)
- Dependencies audited
Prerequisites
# Python dependencies
pip install -r requirements.txt
Evaluation Criteria
Success Metrics
- Successfully executes main functionality
- Output meets quality standards
- Handles edge cases gracefully
- Performance is acceptable
Test Cases
- Basic Functionality: Standard input → Expected output
- Edge Case: Invalid input → Graceful error handling
- Performance: Large dataset → Acceptable processing time
Lifecycle Status
- Current Stage: Draft
- Next Review Date: 2026-03-06
- Known Issues: None
- Planned Improvements:
- Performance optimization
- Additional feature support
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?