crystal-design-structure-crossover-py
БесплатноЗапускает вложенные скриптыНе проверенPython-adapter (durable, single-call) version of crystal-design-structure-crossover-agent — runs the same DEMO/EGD evolutionary crystal search end-to-end in…
от pdl-openair★ 16 звёзд на GitHubОб этом скилле
crystal-design-structure-crossover-py — durable batch evolutionary crystal search
Sibling to crystal-design-structure-crossover-agent (claude_code). This version runs the full evolutionary loop in a single Python adapter call, without Claude driving each generation.
When to use which
| Aspect | This skill (-py) |
Sibling (claude_code) |
|---|---|---|
| Runtime | python_adapter (durable worker) |
claude_code (Claude Agent SDK multi-turn) |
| Mid-run steering | Optional: in-adapter LLM call between generations (enable_llm_steer=true) |
Native: Claude reads each snapshot and decides |
| Latency | One call, minutes | Many turns, similar wall-clock but more tokens |
| Best for | Workbench background tasks, batch eval, headless runs | Interactive sessions where user wants to intervene |
| Reuses | skills/materials/crystal-design-structure-crossover-agent/scripts/run.sh (same engine) |
Same engine, Claude orchestrates |
Pipeline (see adapter/structure_crossover_adapter.py)
Phase 0 LLM RunPlan (goal -> objectives, constraints, pop/gens/noise/crossover/seeds)
Skipped when task_instruction.skip_runplan_llm=true.
Phase 1 init : evolve_driver init --objectives … --constraints … --seed-cifs …
Phase 2 step x N: evolve_driver step (optionally in-adapter LLM steer between gens)
Phase 3 finalize: evolve_driver finalize --top-n … [--evaluate]
Phase 4 assemble: read leaderboard.csv + pareto/*.cif + snapshots -> output dict
Failure semantics: never raise. MCP timeouts / parse errors / LLM 5xx are captured into partial_failure. The return dict always carries state, run_dir, objectives, top_k_table, iterations, run_summary.
Inputs
goal(required): NL goal, e.g. "find stable narrow-gap layered semiconductors without Pb".candidates(required): each candidate suppliesmaterial_id,formula_pretty, and CIF content incif_text.cif_textis never a Windows or POSIX host path.task_instruction(optional dict or JSON string):skip_runplan_llm: bool— skip Phase 0, use provided configobjectives,constraints— overridespop_size(≤12 for eval),max_generations(≤5 for eval),noise_level,crossover_ratetop_n,run_evaluate: bool,generate_n: intenable_llm_steer: bool— opt in to in-adapter LLM steering (default false; conservative)run_dir: str— explicit run directory (default:skills/materials/evaluation/high_mobility/runs/<eval_id>/)eval_id: str— slug used to name the run directory
Output
See skills/registry.yaml output_schema for crystal_design_structure_crossover_py. Key fields:
state:succeeded|partial_failurerun_dir,objectives,constraintstop_k_table: CSV string fromleaderboard.csviterations: per-generation snapshot digestpareto_cif_paths[]: exported CIF paths under<run_dir>/pareto/evaluate_report_path: optional novelty/stability JSONpartial_failure[]: soft failures
Hard rules
- Never raise. Any exception inside the adapter is a bug — capture into
partial_failureand continue. - Objectives fixed at init. Mid-run
enable_llm_steermay only ban an element, tighten a constraint, or adjust a weight — same policy as the claude_code sibling'ssteersubcommand. - Reuse, don't duplicate. This adapter calls the sibling skill's
scripts/run.sh. If that script moves or breaks, this skill breaks — by design. - Eval guardrails. For benchmark runs, cap
pop_size ≤ 12andmax_generations ≤ 5to bound GPU time.
Local invocation
python skills/materials/crystal-design-structure-crossover-py/adapter/structure_crossover_adapter.py input.json
# input.json
{
"goal": "find stable narrow-gap layered semiconductors without Pb",
"candidates": [{
"material_id": "demo-si",
"formula_pretty": "Si",
"cif_text": "data_demo_si\\n_cell_length_a 5.43\\n"
}]
}
References
../crystal-design-structure-crossover-agent/SKILL.md— the agent-guided version../crystal-design-structure-crossover-agent/scripts/evolve_driver.py— the deterministic engine../crystal-design-structure-crossover-agent/references/property-keys.md— valid objective keys../crystal-design-structure-crossover-agent/references/objective-constraint-schema.md— JSON shapes
Установить crystal-design-structure-crossover-py в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл crystal-design-structure-crossover-py?
Python-adapter (durable, single-call) version of crystal-design-structure-crossover-agent — runs the same DEMO/EGD evolutionary crystal search end-to-end in one subprocess call instead of Claude steering each generation. Use when the user wants to "evolve / search / discover crystals" in batch mode (background worker, no mid-run human intervention), or when invoking through the workbench durable worker / python_adapter runtime. Accepts a natural-language goal, runs Phase 0 LLM runplan + init + step x N + finalize, returns Pareto front + leaderboard. For interactive per-generation steering, use the sibling claude_code skill crystal-design-structure-crossover-agent instead.
Как установить скилл crystal-design-structure-crossover-py?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл crystal-design-structure-crossover-py запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic