openJiuwen-ai/sciencediscovery / skills/antibody-design
antibody-design
UnverifiedPrepare, launch, monitor, and summarize the real RFdiffusion to ProteinMPNN to Protenix antibody pipeline on a local or remote ScienceDiscovery Runner with sandboxed Ascend NPUs.
| File | Kind | Size |
|---|---|---|
| AGENT_BOOTSTRAP.md | markdown | 1.9 KB |
| SKILL.md | skill md | 11.5 KB |
| references/real_pipeline_config.example.json | config | 506 B |
| requirements.txt | manifest | 863 B |
| scripts/antibody_pipeline_manager.py | script | 47.8 KB |
| scripts/check_real_pipeline_env.sh | script | 11.3 KB |
| scripts/install_hmmer_for_protenix_msa.sh | script | 4.6 KB |
| scripts/install_pipeline_deps.sh | script | 7.7 KB |
| scripts/pdb_to_protenix_json.py | script | 4.0 KB |
| scripts/protenix_py312_compat.py | script | 2.0 KB |
| scripts/rfdiffusion_mindspore_io.patch | other | 7.4 KB |
| scripts/run_after_rfdiffusion.sh | script | 20.4 KB |
| scripts/run_full_antibody_pipeline.sh | script | 17.1 KB |
| scripts/run_sandbox_pipeline.sh | script | 2.3 KB |
| scripts/sandbox_npu_runtime.sh | script | 1.4 KB |
| scripts/screen_protenix_results.py | script | 18.3 KB |
| scripts/test_antibody_pipeline_manager.py | script | 20.3 KB |
| scripts/test_validate_managed_environment.py | script | 3.1 KB |
| scripts/validate_managed_environment.py | script | 4.2 KB |
scripts/validate_managed_environment.py
View on GitHub#!/usr/bin/env python3
# Copyright (C) 2026-2026 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Validate the selected Runner environment against this Skill's requirements."""
from __future__ import annotations
from importlib import import_module
from importlib.metadata import PackageNotFoundError, version
from pathlib import Path
import re
import sys
from typing import Callable, NamedTuple
class Requirement(NamedTuple):
distribution: str
expected_version: str | None
# Only import-name exceptions live here. The dependency set and every version
# constraint remain single-sourced in requirements.txt.
IMPORT_NAME_OVERRIDES = {
"biopython": "Bio",
"scikit-learn": "sklearn",
"pyyaml": "yaml",
"hydra-core": "hydra",
"ml-collections": "ml_collections",
"dm-tree": "tree",
"protobuf": "google.protobuf",
}
REQUIREMENT_PATTERN = re.compile(r"^([A-Za-z0-9_.-]+)(?:==([^\s]+))?$")
def read_requirements(path: Path) -> list[Requirement]:
requirements: list[Requirement] = []
for line_number, raw in enumerate(path.read_text(encoding="utf-8").splitlines(), 1):
line = raw.split("#", 1)[0].strip()
if not line:
continue
match = REQUIREMENT_PATTERN.fullmatch(line)
if not match:
raise ValueError(
f"unsupported requirement at {path}:{line_number}: {line}; "
"use an unpinned package or an exact == version"
)
requirements.append(Requirement(match.group(1), match.group(2)))
return requirements
def import_name(distribution: str) -> str:
normalized = distribution.lower().replace("_", "-")
return IMPORT_NAME_OVERRIDES.get(normalized, normalized.replace("-", "_"))
def validate_environment(
requirements: list[Requirement],
importer: Callable[[str], object] = import_module,
distribution_version: Callable[[str], str] = version,
) -> list[str]:
"""Return all missing, broken, or incompatible dependency errors."""
errors: list[str] = []
for requirement in requirements:
distribution = requirement.distribution
module = import_name(distribution)
try:
installed = distribution_version(distribution)
except PackageNotFoundError:
suffix = f"=={requirement.expected_version}" if requirement.expected_version else ""
errors.append(f"missing distribution {distribution}{suffix}")
continue
if requirement.expected_version and installed != requirement.expected_version:
errors.append(
f"{distribution}=={installed}; required {requirement.expected_version}"
)
continue
try:
importer(module)
except Exception as exc: # also report broken transitive imports
errors.append(
f"cannot import {module} (from {distribution}): "
f"{type(exc).__name__}: {exc}"
)
return errors
def main() -> int:
requirements_path = (
Path(sys.argv[1]).resolve()
if len(sys.argv) == 2
else Path(__file__).resolve().parent.parent / "requirements.txt"
)
if len(sys.argv) > 2:
print("usage: validate_managed_environment.py [requirements.txt]")
return 2
try:
requirements = read_requirements(requirements_path)
except (OSError, ValueError) as exc:
print(f"Managed environment validation failed:\n - {exc}")
return 2
errors = validate_environment(requirements)
if errors:
print("Managed environment validation failed:")
for error in errors:
print(f" - {error}")
return 2
print("MANAGED_ENV_OK")
return 0
if __name__ == "__main__":
raise SystemExit(main())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |