Skip to content

openJiuwen-ai/sciencediscovery / skills/antibody-design

antibody-design

Unverified

Prepare, launch, monitor, and summarize the real RFdiffusion to ProteinMPNN to Protenix antibody pipeline on a local or remote ScienceDiscovery Runner with sandboxed Ascend NPUs.

scripts/protenix_py312_compat.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.

"""Run MindScience Protenix inference with Python 3.12 compatibility patches.

The deployed Protenix checkout used by this skill is an operator-managed host
asset.  Do not edit it in-place from ScienceDiscovery.  This wrapper applies the
minimal runtime compatibility shim needed by Python 3.12 before executing the
checkout's inference.py entrypoint.
"""

from __future__ import annotations

import random
import runpy
import sys
from pathlib import Path


def _coerce_index_bound(value):
    if isinstance(value, float) and value.is_integer():
        return int(value)
    return value


_ORIGINAL_RANDOM_RANDINT = random.Random.randint


def _randint_accept_integral_float(self, a, b):
    return _ORIGINAL_RANDOM_RANDINT(
        self,
        _coerce_index_bound(a),
        _coerce_index_bound(b),
    )


def main() -> int:
    if len(sys.argv) < 2:
        print("usage: protenix_py312_compat.py /path/to/protenix/inference.py [args...]", file=sys.stderr)
        return 2

    inference_script = Path(sys.argv[1]).resolve()
    if not inference_script.is_file():
        print(f"error: Protenix inference.py not found: {inference_script}", file=sys.stderr)
        return 2

    random.Random.randint = _randint_accept_integral_float
    random.randint = random._inst.randint

    sys.argv = [str(inference_script), *sys.argv[2:]]
    runpy.run_path(str(inference_script), run_name="__main__")
    return 0


if __name__ == "__main__":
    raise SystemExit(main())
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 322kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 119kUpdated Claude CodeCodexVerifiedInstall
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: 118kUpdated Claude CodeCodexVerifiedInstall