← 返回 Skills 市场
aipoch-ai

3D Molecule Ray-tracer

作者 AIpoch · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
101
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 3d-molecule-ray-tracer-1
功能描述
Generate photorealistic rendering scripts for PyMOL and UCSF ChimeraX.
使用说明 (SKILL.md)

\r

3D Molecule Ray Tracer\r

\r Advanced molecular visualization tool that generates professional-grade rendering scripts with cinematic effects for creating publication-quality and cover-worthy molecular images.\r \r

When to Use\r

\r

  • Use this skill when the task is to Generate photorealistic rendering scripts for PyMOL and UCSF ChimeraX.\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 See ## Features above for related details.\r \r

  • Scope-focused workflow aligned to: Generate photorealistic rendering scripts for PyMOL and UCSF ChimeraX.\r
  • Packaged executable path(s): scripts/main.py.\r
  • Structured execution path designed to keep outputs consistent and reviewable.\r \r

Dependencies\r

\r

Example Usage\r

\r See ## Usage above for related details.\r \r

cd "20260318/scientific-skills/Data Analytics/3d-molecule-ray-tracer"\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
- 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
```\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
## Features\r
\r
- **Multi-Software Support**: Generate scripts for PyMOL and UCSF ChimeraX\r
- **Photorealistic Rendering**: Ray-tracing, depth of field, ambient occlusion\r
- **Cinematic Lighting**: Studio, outdoor, and dramatic lighting presets\r
- **Publication Presets**: Pre-configured settings for journals, covers, and presentations\r
- **Customizable Scenes**: Fine control over camera, materials, and atmosphere\r
\r
## Usage\r
\r
### Basic Usage\r
\r
```text\r
\r
# Generate PyMOL script with default settings\r
python scripts/main.py --pdb 1mbn\r
\r
# Generate cover-quality render script\r
python scripts/main.py --pdb 1mbn --preset cover\r
\r
# Generate ChimeraX script\r
python scripts/main.py --software chimerax --pdb 1abc --preset publication\r
```\r
\r
### Parameters\r
\r
| Parameter | Type | Default | Required | Description |\r
|-----------|------|---------|----------|-------------|\r
| `--software` | str | pymol | No | Target rendering software (pymol/chimerax) |\r
| `--pdb` | str | None | Yes | PDB file path or 4-letter PDB ID |\r
| `--preset` | str | standard | No | Rendering preset (standard/cover/publication/cinematic) |\r
| `--style` | str | cartoon | No | Molecular representation style |\r
| `--resolution` | int | from preset | No | Output resolution in pixels |\r
| `--bg-color` | str | white | No | Background color |\r
| `--ao-on` | flag | False | No | Enable ambient occlusion |\r
| `--shadows` | flag | False | No | Enable shadow casting |\r
| `--fog` | float | from preset | No | Fog density (0-1) |\r
| `--dof-on` | flag | False | No | Enable depth of field |\r
| `--dof-focus` | str | center | No | DOF focus point |\r
| `--dof-aperture` | float | from preset | No | Aperture size (higher = more blur) |\r
| `--lighting` | str | from preset | No | Lighting preset |\r
| `--output` | str | auto | No | Output script filename |\r
\r
### Advanced Usage\r
\r
```text\r
\r
# Cover-quality render with depth of field\r
python scripts/main.py \\r
  --software pymol \\r
  --pdb 1mbn \\r
  --preset cover \\r
  --dof-on \\r
  --dof-focus "A:64" \\r
  --dof-aperture 2.0 \\r
  --style surface \\r
  --output cover_render.pml\r
\r
# Cinematic 4K render\r
python scripts/main.py \\r
  --software pymol \\r
  --pdb complex.pdb \\r
  --preset cinematic \\r
  --resolution 3840 \\r
  --ao-on \\r
  --shadows \\r
  --lighting cinematic\r
```\r
\r
## Rendering Presets\r
\r
| Preset | Resolution | Ray Trace | DOF | AO | Shadows | Use Case |\r
|--------|------------|-----------|-----|-----|---------|----------|\r
| **Standard** | 2400px | ✓ | ✗ | ✗ | ✗ | Quick high-quality |\r
| **Cover** | 3000px | ✓ | ✓ | ✓ | ✓ | Journal covers |\r
| **Publication** | 2400px | ✓ | ✗ | ✓ | ✗ | Manuscript figures |\r
| **Cinematic** | 3840px | ✓ | ✓ | ✓ | ✓ | Presentations |\r
\r
## Supported Software\r
\r
| Software | Best For | Features |\r
|----------|----------|----------|\r
| **PyMOL** | Traditional rendering, ease of use | Ray tracing, shadows, AO |\r
| **ChimeraX** | Modern effects, large structures | PBR lighting, ambient occlusion, VR |\r
\r
## Technical Difficulty: **MEDIUM**\r
\r
⚠️ **AI independent acceptance status**: manual inspection required\r
This skill requires:\r
- Python 3.8+ environment\r
- PyMOL 2.5+ or ChimeraX 1.5+ installed separately\r
- Understanding of molecular visualization concepts\r
\r
### Required Python Packages\r
\r
```text\r
pip install -r requirements.txt\r
```\r
\r
### External Software\r
\r
- **PyMOL**: https://pymol.org/\r
- **UCSF ChimeraX**: https://www.cgl.ucsf.edu/chimerax/\r
\r
## Risk Assessment\r
\r
| Risk Indicator | Assessment | Level |\r
|----------------|------------|-------|\r
| Code Execution | Python scripts executed locally | Medium |\r
| Network Access | Fetches PDB structures from RCSB (optional) | Low |\r
| File System Access | Writes rendering scripts | Low |\r
| Instruction Tampering | Standard prompt guidelines | Low |\r
| Data Exposure | No sensitive data exposure | Low |\r
\r
## Security Checklist\r
\r
- [x] No hardcoded credentials or API keys\r
- [x] No unauthorized file system access (../)\r
- [x] Output does not expose sensitive information\r
- [x] Prompt injection protections in place\r
- [x] Input file paths validated\r
- [x] Output directory restricted to workspace\r
- [x] Script execution in sandboxed environment\r
- [x] Error messages sanitized\r
- [x] Dependencies audited\r
\r
## Prerequisites\r
\r
```text\r
\r
# Python dependencies\r
pip install -r requirements.txt\r
\r
# Install PyMOL or ChimeraX separately\r
```\r
\r
## Output Example\r
\r
```\r
✓ Rendering script generated: /path/to/cover_render.pml\r
\r
Configuration:\r
  Software: pymol\r
  Preset: cover\r
  Style: cartoon\r
  Resolution: 3000px\r
  Depth of Field: ON\r
  Ambient Occlusion: ON\r
  Shadows: ON\r
  Lighting: cinematic\r
\r
To render:\r
  pymol cover_render.pml\r
  # Or within PyMOL:\r
  @ cover_render.pml\r
```\r
\r
## Evaluation Criteria\r
\r
### Success Metrics\r
- [ ] Successfully generates valid PyMOL/ChimeraX scripts\r
- [ ] Scripts execute without errors in target software\r
- [ ] Output images meet quality standards\r
- [ ] Handles edge cases gracefully\r
\r
### Test Cases\r
1. **Basic Functionality**: Generate script for PDB ID → Valid script created\r
2. **File Input**: Generate script from PDB file → Valid script created\r
3. **Preset Override**: Custom parameters override preset → Correct settings applied\r
4. **Both Software**: Generate for PyMOL and ChimeraX → Both scripts valid\r
\r
## Lifecycle Status\r
\r
- **Current Stage**: Draft\r
- **Next Review Date**: 2026-03-15\r
- **Known Issues**: None\r
- **Planned Improvements**: \r
  - Blender integration\r
  - AI-assisted composition suggestions\r
  - Real-time preview mode\r
\r
## References\r
\r
See `references/` for:\r
- PyMOL-specific rendering techniques\r
- ChimeraX lighting documentation\r
- Colorblind-friendly palettes\r
- Journal submission guidelines\r
\r
## Limitations\r
\r
- **Static Images Only**: Generates scripts for still images, not animations\r
- **Software Dependency**: Requires separately installed PyMOL or ChimeraX\r
- **Rendering Time**: High-quality renders can take 10-30 minutes per image\r
- **Learning Curve**: Advanced effects require understanding of photography concepts\r
- **File Sizes**: High-res images can be 10-50 MB each\r
- **No Automatic Layout**: Creates single images; figure assembly requires separate tools\r
\r
---\r
\r
**💡 Tip: For creating multiple related figures, save your complete scene setup (lighting, camera, colors) as a PyMOL session file (.pse) or ChimeraX session (.cxs), then modify only the specific elements needed for each figure. This ensures consistency across figure panels.**\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 `3d-molecule-ray-tracer` 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
> `3d-molecule-ray-tracer` 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 skill appears coherent and focused on script generation. Before running anything: (1) inspect scripts/main.py (it is included) to satisfy yourself that generated scripts are safe; (2) run python -m py_compile scripts/main.py to check syntax and then python scripts/main.py --help to see available options; (3) review any generated PyMOL/ChimeraX script before executing it in your visualization software — those scripts can include 'fetch' (which will contact the PDB server) and will execute rendering commands inside PyMOL/ChimeraX; (4) run initial tests with sample or local PDB files in an isolated environment if you are cautious. No credentials or installs are required by the skill.
功能分析
Type: OpenClaw Skill Name: 3d-molecule-ray-tracer-1 Version: 1.0.0 The skill bundle is a legitimate utility designed to generate molecular visualization scripts for PyMOL and ChimeraX. The core logic in `scripts/main.py` uses standard Python libraries to construct text-based command scripts based on user-defined parameters such as PDB IDs and rendering presets. The `SKILL.md` documentation provides clear, defensive instructions for the AI agent, emphasizing input validation and structured reporting. No evidence of data exfiltration, malicious code execution, persistence mechanisms, or prompt injection was found; the tool's behavior is entirely consistent with its stated scientific purpose.
能力评估
Purpose & Capability
Name/description claim: generate rendering scripts for PyMOL and ChimeraX. Package contains an entry script (scripts/main.py) and a detailed SKILL.md that explain exactly that workflow. No unrelated env vars, binaries, or config paths are requested.
Instruction Scope
SKILL.md instructs the agent/user to run python -m py_compile and python scripts/main.py with specified parameters — all consistent with the stated purpose. Note: generated scripts may include PyMOL 'fetch' commands which, when executed in PyMOL, will access the PDB web service (network activity expected for fetching structures). Otherwise the SKILL.md does not instruct reading unrelated system files or exfiltrating data.
Install Mechanism
No install spec (instruction-only with an included script). This is the lowest-risk model; nothing is downloaded from external URLs or installed automatically.
Credentials
The skill requires no environment variables, credentials, or config paths. The code and docs do not demand secrets or unrelated service tokens.
Persistence & Privilege
always is false and the skill does not request elevated or persistent privileges. It does not modify other skills or system-wide agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install 3d-molecule-ray-tracer-1
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /3d-molecule-ray-tracer-1 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of 3d-molecule-ray-tracer skill. - Enables generation of photorealistic rendering scripts for PyMOL and UCSF ChimeraX - Supports cinematic lighting, depth of field, ambient occlusion, and publication presets - Provides customizable scene parameters including camera, materials, and atmosphere - Offers explicit input validation, reproducible outputs, and structured error handling - Includes audit-ready commands and detailed usage documentation for both tools - Requires Python 3.8+ and separate installation of PyMOL or ChimeraX
元数据
Slug 3d-molecule-ray-tracer-1
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

3D Molecule Ray-tracer 是什么?

Generate photorealistic rendering scripts for PyMOL and UCSF ChimeraX. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 101 次。

如何安装 3D Molecule Ray-tracer?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install 3d-molecule-ray-tracer-1」即可一键安装,无需额外配置。

3D Molecule Ray-tracer 是免费的吗?

是的,3D Molecule Ray-tracer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

3D Molecule Ray-tracer 支持哪些平台?

3D Molecule Ray-tracer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 3D Molecule Ray-tracer?

由 AIpoch(@aipoch-ai)开发并维护,当前版本 v1.0.0。

💬 留言讨论