技能 packmol
📦

packmol

中風險 ⚡ 包含腳本📁 檔案系統存取⚙️ 外部命令

建置 Packmol 分子系統

當系統包含溶劑、離子、界面或幾何限制時,準備有效的 Packmol 輸入很容易出錯。此技能提供 Packmol 範本、範例、驗證輔助工具,以及模擬設置的疑難排解指引。

支援: Claude Codex Code(CC)
⚠️ 50
1

下載技能 ZIP

2

在 Claude 中上傳

前往 設定 → 功能 → 技能 → 上傳技能

3

開啟並開始使用

Agent 可讀資源

當 AI Agent、爬蟲或腳本需要乾淨脈絡、而不是讀取完整頁面時,請使用這些連結。

測試它

正在使用「packmol」。 要求建立水與乙醇混合盒。

預期結果:

一份完整的 Packmol 輸入規劃,包含分子數量、盒子尺寸、tolerance 指引、所需 PDB 檔,以及執行後的驗證檢查。

正在使用「packmol」。 要求對帶電蛋白質進行溶劑化。

預期結果:

  • 盒子大小與溶劑殼層建議。
  • 估算的水與離子數量。
  • Packmol structure-block 指引。
  • 重疊與密度的驗證步驟。

正在使用「packmol」。 Packmol 收斂失敗的報告。

預期結果:

一份疑難排解檢查清單,涵蓋衝突限制、密集填充、tolerance 值、重新啟動策略與較小的測試系統。

安全審計

中風險
v6 • 6/28/2026

The static analyzer reported many high-risk patterns, but review shows most are false positives from markdown code fences, Packmol keywords, relative documentation links, and scientific terms. The confirmed security-relevant behavior is limited to local helper scripts that write user-selected files and optionally run the local packmol binary without a shell.

22
已掃描檔案
6,746
分析行數
8
發現
6
審計總數
中風險問題 (2)
Optional Local Packmol Execution
scripts/solvate_helper.py can run the local packmol executable when the user passes the run option. The subprocess uses a fixed argv list and no shell, so command injection was not confirmed, but it still executes a local external program and should be disclosed.
User-Selected File Writes
The helper scripts write generated Packmol input content to paths supplied by the user. This is expected functionality, but it can overwrite local files if invoked with an unsafe output path.
低風險問題 (3)
Markdown Backtick Findings Are False Positives
Most external command findings point to markdown code fences and inline Packmol examples rather than Ruby or shell backtick execution. These examples document commands like installing Packmol or running Packmol input files.
Documentation Links Are Not Network Code
Hardcoded URL findings are documentation resources for Packmol guides, examples, and issue trackers. No runtime network request code was found in the reviewed scripts.
Relative Path References Are Documentation Links
Path traversal findings point to relative markdown links such as references to parent directories. They do not demonstrate file reads or writes outside an intended directory.

偵測到的模式

Subprocess Execution Without ShellLocal Output File Creation
審計單位: codex 檢視審計紀錄 →

品質評分

68
架構
100
可維護性
87
內容
71
社群
49
安全
83
規範符合度

你可以打造什麼

準備溶劑化蛋白質輸入

在進行 MD 準備前,為蛋白質搭配水、離子、盒子填充與驗證步驟產生 Packmol 輸入。

建立混合溶劑盒

使用清楚的分子數量與盒子限制,建立溶劑混合物、添加劑與純液體的初始結構。

診斷填充失敗

使用疑難排解參考資料與驗證腳本,找出語法錯誤、重疊、密度問題與收斂問題。

試試這些提示

建立簡單盒子
為 40 angstrom 的立方盒中 1000 個水分子建立 Packmol 輸入。包含必要參數並說明我需要哪些檔案。
設定蛋白質溶劑化
協助我以 15 angstrom 的水殼層溶劑化 protein.pdb,中和 +4 電荷,並加入 0.15 M 鹽。請展示 Packmol 做法與驗證步驟。
建立液體界面
為水與氯仿的界面設計 Packmol 輸入,放在矩形週期性盒中。使用平面限制並包含實用的分子數量指引。
除錯失敗的填充執行
檢視我目前的 Packmol 設置,找出收斂不佳與原子重疊的原因。請建議 tolerance、限制、分子數量與驗證流程的調整。

最佳實務

  • 先從較少的分子數量開始,驗證設置後,再擴展到目標系統大小。
  • 設定可重現的 seed,並記錄 tolerance、盒子大小、分子數量與結構檔版本。
  • 在後續模擬前,務必先用重疊、密度與原子數檢查輸出。

避免

  • 不要在沒有科學驗證與視覺檢查的情況下,就信任已產生的填充結構。
  • 不要使用過於緊密的盒子或互相衝突的限制來強迫不真實的密度。
  • 不要在尚未審查的路徑上執行輔助腳本,因為重要檔案可能會被覆寫。

常見問題

這個技能會安裝 Packmol 嗎?
不會。它會說明安裝選項,但 Packmol 必須先安裝在本地環境中才能執行。
它可以產生完整的分子動力學輸入嗎?
不會。它專注於初始座標與 Packmol 設置,而不是力場或 MD 引擎設定。
涵蓋哪些結構格式?
參考資料涵蓋了 Packmol 相關的 PDB、XYZ 與 Tinker 檔案處理。
它可以協助處理離子與鹽濃度嗎?
可以。溶劑化指引與輔助腳本會根據電荷、濃度與盒子大小估算陽離子與陰離子數量。
它會自動執行外部命令嗎?
技能文件會顯示命令。溶劑化輔助工具只有在使用者傳入 run 選項時才會執行 Packmol。
輸出可以直接用於正式模擬嗎?
不會。使用者應該驗證幾何、密度、重疊、質子化、力場相容性與平衡化設定。