bagel-script-builder

bagel-script-builder is a skill for Claude Code, Codex from softnanolab/bagel. It costs 322 tokens per session (3,568 once invoked), scanned A, original, MIT.

An interactive guide that turns a plain-language protein-design goal into a runnable BAGEL script. BAGEL is a framework where designs are improved by changing selected protein residues to reduce a weighted energy score.

In plain words
What is it for?
Use it to create reviewable BAGEL scripts for protein binders, new protein structures, or sequence optimization, then explain and smoke-test the result.
Why use it?
It fills in missing design details through questions, reducing the risk of generating a script based on unclear or incorrect assumptions.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/softnanolab/bagel/bagel-script-builder
Any agent
npx skills add softnanolab/bagel --skill bagel-script-builder
Clone the repo
git clone --depth 1 https://github.com/softnanolab/bagel

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bagel-script-builder

README.md
[![agentmods](https://agentmods.dev/badge/skills/softnanolab/bagel/bagel-script-builder.svg)](https://agentmods.dev/skills/softnanolab/bagel/bagel-script-builder)
Your own site
<a href="https://agentmods.dev/skills/softnanolab/bagel/bagel-script-builder"><img src="https://agentmods.dev/badge/skills/softnanolab/bagel/bagel-script-builder.svg" alt="Measured on agentmods" height="20"></a>
Per session 322 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,568 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00322 $0.03568
Opus 5 $0.00161 $0.01784
Sonnet 5 $0.00064 $0.00714
Haiku 4.5 $0.00032 $0.00357

Measured 5d ago against content hash a4d158ad54b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

bagel-script-builder scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (assets/pbs_job.sh, assets/slurm_job.sh, assets/submit_cluster.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/bagel-script-builder/SKILL.md · 238 lines

How it starts

The opening of the file, as written. The whole thing — 238 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Building BAGEL protein-design scripts, interactively

BAGEL (pip name biobagel, imported as import bagel as bg) frames protein design as minimizing an energy landscape: you describe what a good design looks like as a sum of weighted energy terms, then a Monte-Carlo minimizer mutates the mutable residues to lower that energy. The scripts are the documentation — there is no config/YAML layer.

This skill is not a one-shot code generator. It runs an interactive workflow so the user ends up with correct, fully-specified, well-explained, reviewable scripts. Work through the phases below in order. Do not skip the interview: silently guessing the parts of a design the user left unspecified is the main failure mode this skill exists to prevent.

The workflow at a glance

  1. Understand & draft — read the natural-language goal, write a first-pass draft script.
  2. Interview to close gaps — walk the user through the draft and ask about everything the description left unclear, until every State, Chain, and EnergyTerm (and each term's inputs) is explicitly pinned down.
  3. Write the design script — verbose, heavily commented, saved to disk for review.
  4. Smoke test — generate a minimal test script; run it on Modal if credentials are available, and report exactly what worked or failed.
  5. Single run or sweep? — ask whether this is one run or a repeat over some "difference".
  6. Execution harness — if a sweep, generate the launcher (SLURM / PBS / Modal-parallel / serial-background), one output folder per run, runnable via a single command.

Always save every script to disk (never only paste into chat) so the user can review, edit, and re-run them. Default to a bagel_designs/<short-project-name>/ directory in the working directory unless the user names a location; put the design script, smoke test, and any sweep harness there together.

Every file this skill generates must begin with an agent-disclaimer comment, so it is always clear the file was written with AI assistance and should be reviewed before use. Use this block verbatim at the very top of every .py and .sh file you create (adjust the comment character for shell scripts; fill in today's date if you know it):

Read the full file on GitHub · 238 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 238 lines · 322 tokens per session scan A a4d158ad54b3

Subscribe to this mod's changes

bagel-script-builder is a skill published in the GitHub repository softnanolab/bagel (143 stars, last pushed 23d ago), licensed MIT. It adds 322 tokens to every session and 3,568 once invoked, about $0.0016 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

anthropics/knowledge-work-plugins · 123 tokens

exploratory-data-analysis

Perform bounded, local exploratory analysis of explicitly supported scientific files. Use for redacted CSV/TSV/JSON profiles; optional NumPy, HDF5, FASTA/FASTQ, and basic image metadata inspection; missingness/leakage audits; outlier and transformation sensitivity; and rigorous EDA report scaffolds. Other domain…

K-Dense-AI/scientific-agent-skills · 83 tokens

matlab

Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

K-Dense-AI/scientific-agent-skills · 42 tokens

phylogenetics

Build and analyze phylogenetic trees using MAFFT (multiple alignment), IQ-TREE 2 (maximum likelihood), and FastTree (fast NJ/ML). Visualize with ETE3 or FigTree. For evolutionary analysis, microbial genomics, viral phylodynamics, protein family analysis, and molecular clock studies.

K-Dense-AI/scientific-agent-skills · 68 tokens

research-engineer

An uncompromising Academic Research Engineer. Operates with absolute scientific rigor, objective criticism, and zero flair. Focuses on theoretical correctness, formal verification, and optimal implementation across any required technology.

davila7/claude-code-templates · 43 tokens

mapping-to-snomed

Maps clinical concept spans extracted by OpenMed to SNOMED CT concepts through a USER-SUPPLIED terminology server (the user's own Ontoserver, Snowstorm, or UMLS/UTS), never a bundled vocabulary. Use when the user wants to code findings, disorders, procedures, body structures, or substances to SNOMED CT, run an ECL…

maziyarpanahi/openmed · 205 tokens