execution-cli
Run, inspect, scale, and troubleshoot Snakemake workflows from the command line, including dry-runs, targets, resources, profiles, batching, grouping, DAG inspection, schedulers, reruns, locks, and smoke checks.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- execution-cli
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Run, inspect, scale, and troubleshoot Snakemake workflows from the command line, including dry-runs, targets, resources, profiles, batching, grouping, DAG inspection, schedulers, reruns, locks, and smoke checks.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/cli-reference.md12.5 KB
- 参考文档references/execution-patterns.md9.2 KB
- 参考文档references/troubleshooting.md9.5 KB
- 脚本scripts/snakemake_smoke_check.py5.1 KB
03 SKILL.md 正文
Execution CLI
Use this sub-skill when an agent needs to construct or diagnose Snakemake 9.23.1 CLI commands for an existing workflow: dry-runs, target selection, cores/jobs/local cores, resources, profiles, batches, groups, DAG/rulegraph/summary inspection, scheduler tuning, runtime profiling, reruns, locks, and safe smoke checks.
Fast Routing
- Confirm the executable and entrypoint with
snakemake --help,python -m snakemake --help, orscripts/snakemake_smoke_check.pywhen the environment is uncertain. - Build a non-mutating command first: explicit
--snakefileif needed, explicit targets if requested,--cores 1,--dry-run, and--printshellcmds. - Add scale controls only after the plan is plausible:
--cores,--jobs,--local-cores,--resources,--default-resources,--set-threads,--set-resources, and--set-resource-scopes. - Add profiles, batches, groups, rerun/force flags, scheduler flags, or lock cleanup only when the user’s execution goal needs them.
- In Snakemake 9.23.1, do not add the legacy
--reasonflag; dry-run output already includes job-selection reasons.
References
- Use references/cli-reference.md for option semantics, command templates, profile precedence, DAG/summary commands, scheduler/runtime flags, and API settings names.
- Use references/execution-patterns.md for end-to-end execution recipes: first run, target runs, profile/resource overrides, batching, grouping, reruns, locks, and smoke checks.
- Use references/troubleshooting.md for install/import mismatches, missing cores, profile merge surprises, resource-scope errors, stale locks, incomplete outputs, force/rerun misuse, scheduler/ILP issues, and the removed
--reasonflag. - Use scripts/snakemake_smoke_check.py for a safe temporary-workflow probe that does not depend on repository examples or user data.
Boundaries
- Route Snakefile syntax, rules, checkpoints, wildcards, and shell/script directive authoring to
../workflow-authoring/. - Route config files,
--config,--configfile, tabular inputs, and sample-sheet semantics to../configuration-data/. - Route conda, containers, executor plugin installation, remote storage, default storage, and deployment packaging to
../deployment-storage/. - Route linting, HTML reports, unit tests, notebook/report flags, and deep debugging reports to
../debugging-reporting/. - Route Python API equivalents, plugin development, and programmatic embedding to
../python-api-plugins/.
Safety Defaults
Prefer inspectable, reversible commands: dry-run before mutation, explicit targets before broad runs, low cores before scaling, profile overrides only after checking precedence, --unlock only after confirming no Snakemake process is active, and --forceall only when the user explicitly accepts recomputing the reachable workflow.
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).