configuration-and-data
Create, validate, and troubleshoot AiZynthFinder configuration files, stocks, model assets, public-data setup commands, and data-tool commands.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- configuration-and-data
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Create, validate, and troubleshoot AiZynthFinder configuration files, stocks, model assets, public-data setup commands, and data-tool commands.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/cli-tools.md6.1 KB
- 参考文档references/configuration.md9.1 KB
- 参考文档references/stocks-and-assets.md5.8 KB
- 参考文档references/troubleshooting.md8.0 KB
- 脚本scripts/validate_aizynth_config.py27.3 KB
03 SKILL.md 正文
Configuration and Data
Use this sub-skill when the task is about AiZynthFinder YAML configuration, data assets, stock files, policy/filter model references, or the bundled data-preparation CLIs. Stay in this sub-skill for safe static validation and setup guidance; route out before running retrosynthesis or interpreting output.
Owns
- Creating and reviewing YAML sections:
search,post_processing,expansion,filter,stock, and optionalscorer. - Explaining env-var interpolation with
${VAR}and the failure mode for missing variables. - Choosing short-form versus full-form syntax for expansion policies, filter policies, and stocks.
- Documenting search defaults,
algorithm_config, bond controls, post-processing keys, and stock stop criteria. - Preparing asset guidance for model checkpoints, template tables, HDF5/CSV/text stocks, MongoDB stocks, and molbloom stocks.
- Giving safe recipes for
smiles2stockanddownload_public_datawithout executing downloads, Mongo writes, or bloom creation unless explicitly requested. - Running the bundled static validator script to catch schema-shape issues and missing local file references before a search run.
Routes
- Use planning-workflows to execute
aizynthcli,aizynthapp, or an actual retrosynthesis run from a config. - Use route-analysis to inspect outputs, route trees, statistics, clustering, or solved-route quality.
- Use extension-and-development to implement custom expansion strategies, stock query classes, scorers, filters, plugins, or custom search algorithms.
References
- Configuration reference covers YAML sections, defaults, env vars, policy/filter/stock syntax, and validation expectations.
- Stocks and assets covers model/template/stock file formats, optional dependencies, and service assumptions.
- CLI tools covers safe
smiles2stockanddownload_public_datarecipes and when commands mutate external state. - Troubleshooting covers common configuration, data, optional dependency, and service failures.
Safe Validation
Before running a user-provided config, run the bundled validator from any working directory:
python skills/aizynthfinder/sub-skills/configuration-and-data/scripts/validate_aizynth_config.py path/to/config.yml --json
The validator intentionally does not import AiZynthFinder and does not load models, templates, stocks, MongoDB, TensorFlow servers, molbloom filters, or run tree search. Treat errors as blockers and warnings as setup issues to review with the user.
Operating Rules
- Keep public guidance asset-agnostic: use user-provided or project-relative paths, not local checkout paths or environment prefixes.
- Do not claim MongoDB, molbloom, TensorFlow serving, public downloads, or route-distance features work until the user confirms the needed optional dependencies and services.
- Do not execute
download_public_data, Mongo writes, or molbloom creation without explicit user intent because they can use network, storage, or external services. - If a config validates statically but no expansion policy will be selected during planning, route to planning-workflows for the runtime selection step.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).