AGENT SKILL

cli-and-automation

Run NannyML from the command line, load config files, schedule repeated runs, and persist results or fitted calculators.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
cli-and-automation
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Run NannyML from the command line, load config files, schedule repeated runs, and persist results or fitted calculators.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

CLI and Automation

Use this sub-skill when the task is about the nml CLI, config-file discovery, configuration loading, scheduled runs, output writers, or reusing fitted calculators through the filesystem store.

Route calculator-specific performance, drift, or data-quality questions to the matching monitoring sub-skill unless the main task is command construction, config wiring, or persistence.

Quick routing

  • Read references/cli-reference.md for command syntax, config-path discovery, and the config-loading behavior that affects nml run --help.
  • Read references/configuration.md for the current code-backed YAML schema: input, calculators, scheduling, ignore_errors, per-calculator params, outputs, and store.
  • Read references/io-and-store.md for FileReader, RawFilesWriter, PickleFileWriter, FilesystemStore, and optional DatabaseWriter behavior.
  • Read references/troubleshooting.md when errors mention NML_CONFIG_PATH, config discovery, malformed scheduling blocks, missing filenames, unsupported file suffixes, cloud credentials, optional database dependencies, or the CLI help/config-load sequence.
  • Read ../../references/results-and-plots.md when the question is really about result export shape rather than CLI wiring.

What this sub-skill covers

  • Using nml --help, nml -c <config> run, and nml -c <config> run --help safely.
  • Finding the active config file with -c, NML_CONFIG_PATH, /config/nannyml.yaml, /config/nann.yml, nannyml.yaml, or nann.yml.
  • Building calculator-by-calculator YAML with input, calculators, outputs, store, scheduling, and ignore_errors.
  • Writing monitoring results to local or cloud files, pickled results, or databases.
  • Persisting fitted calculators with FilesystemStore so repeated runs can reload instead of refit.
  • Choosing one-off vs scheduled execution and validating cron/interval settings.

Primary execution shapes

Task Use
Verify the CLI is installed and discover commands nml --help or nml -c <cfg> run --help
Run one or more calculators on input files nml -c <cfg> run
Load reference/analysis/target files from local or cloud storage input.reference_data, input.analysis_data, input.target_data
Persist result tables per-calculator outputs: with raw_files, pickle, or database writers
Cache fitted calculators per-calculator store: with FilesystemStore settings
Re-run on a schedule scheduling.interval or scheduling.cron

Minimum safe pattern

# The CLI ultimately loads a config and calls runner.run(config=...)
# So the best mental model is "one config file, many calculators".

For a help-only smoke check, the runtime still needs a valid config file because the CLI callback loads configuration before the run subcommand help is rendered.

Boundaries

  • This sub-skill does not explain the internals of CBPE, DLE, drift methods, or data-quality formulas.
  • If a task is really about choosing metrics, chunking, or thresholds, route to the monitoring/data-setup sub-skills and return here only to wire the calculator into a config.
  • The skill is self-contained; do not require the user to open the source checkout or copy repo-private paths into the runtime config.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351