用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/InternScience/Agents-A1 --skill molclaw-extract-chains命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | molclaw-extract-chains |
| description | Extract protein sequence of each chain from the protein structure file (pdb format). |
| license | MIT license |
| metadata | {"skill-author":"PJLab"} |
Use tool extract_pdb_chains to extract protein chains from the repaired pdb file
Tool description:
Extract the amino acid sequence of each chain from the PDB file.
Args:
pdb_file_path (str): Path to input pdb file
Return:
status (str): success/error
msg (str): message
chains (List[dict]): List of dict, each containing the keys 'chain' and 'sequence'.
--chain (str): Chain ID
--sequence (str): Sequence string
Tool usage:
response = await client.session.call_tool(
"extract_pdb_chains",
arguments={
"pdb_file_path": fixed_pdb_path
}
)
result = client.parse_result(response)
protein_chains = result['chains']
After calling this tool, you MUST download all output structure files from the MCP server to the local workspace using server_file_to_base64. A tool call is NOT considered complete until its output files have been downloaded and verified locally (ls -la <file> — size must be > 0).
import base64, os
response = await client.session.call_tool(
"server_file_to_base64",
arguments={"file_path": result["output_file"]} # or relevant output field
)
dl = client.parse_result(response)
local_path = "stepNN_descriptive_name.ext"
with open(local_path, "wb") as f:
f.write(base64.b64decode(dl["base64_string"]))
assert os.path.getsize(local_path) > 0, f"Download failed: {local_path}"
Download policy: All structure output files are Category A (user-critical) — essential for user verification, downstream analysis, and reproducibility. When in doubt, download. Over-collection is always preferred over under-collection.