pymatgen-structure
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "pymatgen-structure":https://skillpi.com/zh/skills/deepskill-b5a8fcf7cb01ab65df81710f3c317eb4796dc0a3412649cdf555928878be436c。安装前核对上游来源和版本:https://github.com/jinzhezenggroup/computational-chemistry-agent-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
基于 pymatgen 的结构操作与晶体分析工作流。用于读写常见原子级文件格式(如 CIF、POSCAR、XYZ)、构建超胞、执行位点取代或掺杂、检查对称性(空间群)以及计算局部结构描述符的场景。
介绍来源: third_party · jinzhezenggroup · 0.1.0 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 输入和输出
- 翻译待完成,请参阅来源文档。
- 软件、账号及付费要求
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: pymatgen-structure
description: >
Structure manipulation and crystal analysis workflows based on pymatgen.
USE WHEN you need to read/write common atomistic formats (CIF, POSCAR, XYZ),
build supercells, perform site substitution/doping, inspect symmetry
(space group), or compute local structure descriptors for materials tasks.
compatibility: Requires Python 3.10+ and pymatgen (recommended via uv).
license: LGPL-3.0-or-later
metadata:
author: qqgu
version: 0.1.0
repository: https://github.com/materialsproject/pymatgenpymatgen Structure Operations
Use this skill to perform structure preprocessing and analysis with pymatgen.
Scope
This skill should:
- require at least one user-provided structure file
- parse and normalize common structure formats
- perform requested geometry edits (for example supercell, substitution)
- run basic crystal analysis (for example symmetry, composition)
- write explicit output files and summarize key changes
This skill should not:
- submit HPC jobs
- run expensive DFT/MD production calculations
- invent missing scientific intent (for example random doping strategy) without confirmation
If the user asks for DFT submission, hand off to a submission skill such as dpdisp-submit after preprocessing is done.
Hard requirement
The user must provide an input structure source (file path or explicit coordinates + lattice).
If structure input is missing, stop and ask for it.
Supported input/output formats
Typical input formats:
cifPOSCAR/CONTCARxyz(for non-periodic or when cell is provided separately)- other formats supported by
pymatgenIO backends
Typical output formats:
cifPOSCARxyz- optional JSON summaries
Expected workflow
- Read user-provided structure.
- Validate periodicity and cell information.
- Confirm requested operation (convert, supercell, substitution, analysis).
- Collect only missing critical parameters.
- Execute operation via
pymatgen. - Write output structure(s) and a short result summary.
- If requested, prepare handoff-ready files for downstream skills.
For concrete command patterns, see references/commands-and-workflow.md.
Operations this skill should handle
A) Format conversion
- convert between
cif/POSCAR/xyz - preserve lattice and species ordering when possible
B) Supercell construction
- apply scaling matrix, for example
[[2,0,0],[0,2,0],[0,0,1]] - report final atom count and new lattice vectors
C) Substitution / doping-like edits
- deterministic site substitution by species or by explicit site index
- report stoichiometry before/after
- ask user before applying random substitutions
D) Symmetry and composition analysis
- reduced formula
- lattice parameters
- space group symbol/number
- optional primitive/conventional standardization when explicitly requested
E) Local environment quick checks
- nearest-neighbor distances or coordination-style summaries
- report method/threshold assumptions
Parameters to collect
Must provide
- input structure path
- target operation type
- output path (or output naming rule)
Operation-specific
For format conversion:
- output format
For supercell:
- scaling matrix or
(na, nb, nc)
For substitution:
- source species/site selection
- target species
- substitution fraction or exact indices
For symmetry analysis:
- symmetry tolerance (if non-default behavior is desired)
Required behavior
- Check file existence/readability before processing.
- Detect and report missing lattice info for periodic workflows.
- Do not silently drop atoms or reorder species without notice.
- Explicitly show assumptions (for example tolerance values).
- Return exact output file paths.
Defaulting policy
Allowed only for low-risk defaults, clearly labeled.
Reasonable defaults:
- symmetry tolerance defaults from
pymatgenwhen user does not specify - output basename derived from input name + operation suffix
Do not silently invent:
- lattice for periodic systems
- substitution ratio for doping tasks
- magnetic/electronic settings (outside this skill's scope)
Expected output
Provide:
- output file path(s)
- concise summary of changes (atom count, composition, lattice deltas)
- analysis result highlights (for example space group)
- explicit assumptions and unresolved choices
- next-step suggestion when user wants downstream DFT/MD submission
Common failure points
- unreadable input file or ambiguous format
- xyz input lacking periodic cell when periodic workflow is requested
- invalid scaling matrix or impossible substitution request
- too aggressive tolerances causing unstable symmetry classification
当前收录版本
0.1.0
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供材料科学中常见原子级格式(CIF、POSCAR、XYZ)的读写与转换能力
- 支持超胞构建、位点取代/掺杂、对称性分析等核心晶体操作
- 面向明确科研需求,具有广泛实用价值
亮点
- 触发描述清晰完整,覆盖格式转换、超胞、取代、对称性等多种操作场景
- 边界定义明确,避免与其他技能重叠
待提升项
-
引用文件缺失 原报告严重程度:重大
SKILL.md 中引用了 references/commands-and-workflow.md 文件,但该文件未传入
改进建议:请补充 references/commands-and-workflow.md 文件,或移除对该文件的引用
亮点
- 文档结构清晰,包含完整的工作流步骤和操作说明
- frontmatter 信息完整,包含兼容性、许可证等关键信息
待提升项
-
引用文件缺失 原报告严重程度:重大
references/commands-and-workflow.md 文件缺失,影响工作流完整性
改进建议:请补充 references/commands-and-workflow.md 文件以确保工作流完整性
亮点
- 工具来源明确(pymatgen),参数定义清晰
- 覆盖主要异常情况,有合理的默认策略和用户确认机制
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- github.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
翻译待完成,请参阅来源文档。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。