← 返回 Skills 市场
130
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install lipinski-rule-filter
功能描述
Filter compound libraries based on Lipinski's Rule of Five for drug-likeness.
使用说明 (SKILL.md)
\r
Lipinski Rule Filter\r
\r Filter small molecule compound libraries based on Lipinski's Rule of Five to identify compounds with poor absorption.\r \r
When to Use\r
\r
- Use this skill when the task needs Filter compound libraries based on Lipinski's Rule of Five for drug-likeness.\r
- Use this skill for data analysis tasks that require explicit assumptions, bounded scope, and a reproducible output format.\r
- Use this skill when you need a documented fallback path for missing inputs, execution errors, or partial evidence.\r \r
Key Features\r
\r
- Scope-focused workflow aligned to: Filter compound libraries based on Lipinski's Rule of Five for drug-likeness.\r
- Packaged executable path(s):
scripts/main.py.\r - Reference material available in
references/for task-specific guidance.\r - Structured execution path designed to keep outputs consistent and reviewable.\r \r
Dependencies\r
\r
See ## Prerequisites above for related details.\r
\r
Python:3.10+. Repository baseline for current packaged skills.\rrdkit-pypi:unspecified. Declared inrequirements.txt.\r \r
Example Usage\r
\r
See ## Usage above for related details.\r
\r
cd "20260318/scientific-skills/Data Analytics/lipinski-rule-filter"\r
python -m py_compile scripts/main.py\r
python scripts/main.py --help\r
```\r
\r
Example run plan:\r
1. Confirm the user input, output path, and any required config values.\r
2. Edit the in-file `CONFIG` block or documented parameters if the script uses fixed settings.\r
3. Run `python scripts/main.py` with the validated inputs.\r
4. Review the generated output and return the final artifact with any assumptions called out.\r
\r
## Implementation Details\r
\r
See `## Workflow` above for related details.\r
\r
- Execution model: validate the request, choose the packaged workflow, and produce a bounded deliverable.\r
- Input controls: confirm the source files, scope limits, output format, and acceptance criteria before running any script.\r
- Primary implementation surface: `scripts/main.py`.\r
- Reference guidance: `references/` contains supporting rules, prompts, or checklists.\r
- Parameters to clarify first: input path, output path, scope filters, thresholds, and any domain-specific constraints.\r
- Output discipline: keep results reproducible, identify assumptions explicitly, and avoid undocumented side effects.\r
\r
## Quick Check\r
\r
Use this command to verify that the packaged script entry point can be parsed before deeper execution.\r
\r
```bash\r
python -m py_compile scripts/main.py\r
```\r
\r
## Audit-Ready Commands\r
\r
Use these concrete commands for validation. They are intentionally self-contained and avoid placeholder paths.\r
\r
```bash\r
python -m py_compile scripts/main.py\r
python scripts/main.py --help\r
python scripts/main.py --input "Audit validation sample with explicit symptoms, history, assessment, and next-step plan."\r
```\r
\r
## Workflow\r
\r
1. Confirm the user objective, required inputs, and non-negotiable constraints before doing detailed work.\r
2. Validate that the request matches the documented scope and stop early if the task would require unsupported assumptions.\r
3. Use the packaged script path or the documented reasoning path with only the inputs that are actually available.\r
4. Return a structured result that separates assumptions, deliverables, risks, and unresolved items.\r
5. If execution fails or inputs are incomplete, switch to the fallback path and state exactly what blocked full completion.\r
\r
## Usage\r
\r
```text\r
python scripts/main.py --input compounds.smi --output filtered.smi\r
python scripts/main.py --smiles "CC(=O)Oc1ccccc1C(=O)O" --check\r
```\r
\r
## Parameters\r
\r
| Parameter | Type | Required | Default | Description |\r
|-----------|------|----------|---------|-------------|\r
| `--input` | str | No | - | Input SMILES/SDF file path |\r
| `--smiles` | str | No | - | Single SMILES string to check |\r
| `--output` | str | No | - | Output file path for passing compounds |\r
| `--violations` | int | No | 1 | Maximum allowed Lipinski rule violations |\r
\r
## Lipinski's Rules\r
\r
- MW \x3C 500 Da\r
- LogP \x3C 5\r
- H-bond donors \x3C 5\r
- H-bond acceptors \x3C 10\r
\r
## Output\r
\r
- Filtered compound list\r
- Rule violation report\r
- Drug-likeness score\r
\r
## Risk Assessment\r
\r
| Risk Indicator | Assessment | Level |\r
|----------------|------------|-------|\r
| Code Execution | Python/R scripts executed locally | Medium |\r
| Network Access | No external API calls | Low |\r
| File System Access | Read input files, write output files | Medium |\r
| Instruction Tampering | Standard prompt guidelines | Low |\r
| Data Exposure | Output files saved to workspace | Low |\r
\r
## Security Checklist\r
\r
- [ ] No hardcoded credentials or API keys\r
- [ ] No unauthorized file system access (../)\r
- [ ] Output does not expose sensitive information\r
- [ ] Prompt injection protections in place\r
- [ ] Input file paths validated (no ../ traversal)\r
- [ ] Output directory restricted to workspace\r
- [ ] Script execution in sandboxed environment\r
- [ ] Error messages sanitized (no stack traces exposed)\r
- [ ] Dependencies audited\r
\r
## Prerequisites\r
\r
No additional Python packages required.\r
\r
## Evaluation Criteria\r
\r
### Success Metrics\r
- [ ] Successfully executes main functionality\r
- [ ] Output meets quality standards\r
- [ ] Handles edge cases gracefully\r
- [ ] Performance is acceptable\r
\r
### Test Cases\r
1. **Basic Functionality**: Standard input → Expected output\r
2. **Edge Case**: Invalid input → Graceful error handling\r
3. **Performance**: Large dataset → Acceptable processing time\r
\r
## Lifecycle Status\r
\r
- **Current Stage**: Draft\r
- **Next Review Date**: 2026-03-06\r
- **Known Issues**: None\r
- **Planned Improvements**: \r
- Performance optimization\r
- Additional feature support\r
\r
## Output Requirements\r
\r
Every final response should make these items explicit when they are relevant:\r
\r
- Objective or requested deliverable\r
- Inputs used and assumptions introduced\r
- Workflow or decision path\r
- Core result, recommendation, or artifact\r
- Constraints, risks, caveats, or validation needs\r
- Unresolved items and next-step checks\r
\r
## Error Handling\r
\r
- If required inputs are missing, state exactly which fields are missing and request only the minimum additional information.\r
- If the task goes outside the documented scope, stop instead of guessing or silently widening the assignment.\r
- If `scripts/main.py` fails, report the failure point, summarize what still can be completed safely, and provide a manual fallback.\r
- Do not fabricate files, citations, data, search results, or execution outcomes.\r
\r
## Input Validation\r
\r
This skill accepts requests that match the documented purpose of `lipinski-rule-filter` and include enough context to complete the workflow safely.\r
\r
Do not continue the workflow when the request is out of scope, missing a critical input, or would require unsupported assumptions. Instead respond:\r
\r
> `lipinski-rule-filter` only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.\r
\r
## Response Template\r
\r
Use the following fixed structure for non-trivial requests:\r
\r
1. Objective\r
2. Inputs Received\r
3. Assumptions\r
4. Workflow\r
5. Deliverable\r
6. Risks and Limits\r
7. Next Checks\r
\r
If the request is simple, you may compress the structure, but still keep assumptions and limits explicit when they affect correctness.\r
安全使用建议
This package appears coherent and implements a Lipinski Rule of Five filter. Before installing or running: (1) Install RDKit (requirements.txt lists rdkit-pypi); the script will be mostly nonfunctional without it. (2) Review input/output paths you provide — the script will read arbitrary filesystem paths the invoking user can access and will write output files in the same directory; the script does basic existence checks but does not enforce path sandboxing. (3) For large libraries, test performance on a small sample first. (4) The SKILL.md contains a small authoring inconsistency (it claims no prerequisites) — do not rely on that; assume RDKit is required. (5) Run the included audit/test commands (python -m py_compile scripts/main.py; python scripts/main.py --help) in a sandboxed environment if you have any doubt.
能力评估
Purpose & Capability
The name, description, code (scripts/main.py), and reference material all align: this is a Lipinski Rule of Five filtering tool that uses RDKit. Minor mismatch: SKILL.md's 'Prerequisites' section states 'No additional Python packages required' but requirements.txt lists rdkit-pypi and the script clearly depends on RDKit (the script warns when RDKit is missing). This is likely an authoring omission rather than malicious.
Instruction Scope
SKILL.md instructs the agent to run the packaged script and validate inputs; the script operates only on local input files and writes local outputs. The instructions and implementation stay within the described scope. Note: SKILL.md mentions editing an in-file CONFIG block and strong path validation guidance, but the packaged script does not expose a CONFIG block and performs only basic Path.exists checks (no explicit ../ sanitization), so callers should validate paths themselves.
Install Mechanism
There is no install spec (instruction-only), which minimizes install risk. The package includes requirements.txt listing rdkit-pypi, and the script requires RDKit to be useful. The skill does not attempt to download or execute remote installers; you will need to install RDKit locally (pip install rdkit-pypi or use a platform-appropriate RDKit package).
Credentials
The skill requests no environment variables, credentials, or config paths. That is proportional to its purpose. The only external dependency is RDKit (a normal cheminformatics library).
Persistence & Privilege
The skill does not request permanent/always-on presence (always: false) and does not modify other skills or global agent settings. It runs as a self-contained script that reads/writes files in the workspace when invoked.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install lipinski-rule-filter - 安装完成后,直接呼叫该 Skill 的名称或使用
/lipinski-rule-filter触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of the lipinski-rule-filter skill.
- Filters compound libraries based on Lipinski's Rule of Five to assess drug-likeness.
- Provides command-line interface for both file-based and single SMILES input processing.
- Outputs filtered compound lists, rule violation reports, and drug-likeness scores.
- Includes documented parameters, usage examples, and a security checklist.
- Emphasizes reproducible workflows, explicit assumptions, and structured error handling.
元数据
常见问题
Lipinski Rule Filter 是什么?
Filter compound libraries based on Lipinski's Rule of Five for drug-likeness. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 130 次。
如何安装 Lipinski Rule Filter?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install lipinski-rule-filter」即可一键安装,无需额外配置。
Lipinski Rule Filter 是免费的吗?
是的,Lipinski Rule Filter 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Lipinski Rule Filter 支持哪些平台?
Lipinski Rule Filter 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Lipinski Rule Filter?
由 AIpoch(@aipoch-ai)开发并维护,当前版本 v1.0.0。
推荐 Skills