Skip to content
Back to skills

Cli Config

ASecurity

Routes DI-engine CLI, config, and launch-parameter workflows.

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
toolsdebugging

Works with

  • cli

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill cli-config --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cli Config?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cli Config
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-cli-config-arex-skill/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-cli-config-arex-skill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cli-config
description: "Routes DI-engine CLI, config, and launch-parameter workflows."
metadata:
  disco-role: operating
  disable-model-invocation: true
license: Apache 2.0
disable-model-invocation: true
---

# CLI and config

Use this sub-skill for the package entry points, config compilation, and the
lightweight launch wrappers that sit in front of the training/runtime code.

## Owns

- `ding` and `ditask` command-line usage
- `ding.config` helpers: `read_config`, `read_config_directly`,
  `read_config_with_system`, `save_config`, `save_config_py`, `compile_config`,
  and `compile_config_parallel`
- config file shape: `main_config`, `create_config`, and the optional
  `system_config` used by distributed launch paths
- predefined config lookup through `ding.entry.predefined_config`
- generic launch wrappers such as `ding -m serial`, `ding -m parallel`,
  `ding -m dist`, and `ding -m eval`

## Does not own

- The detailed serial/offline/eval loops themselves; those live in
  `serial-pipelines`
- Task/middleware examples and multi-process routing internals; those live in
  `framework-runtime`
- Env-wrapper behavior and environment shape debugging; those live in
  `env-integration`

## Read this first when the user asks

- how to choose a `ding` mode or `ditask` flag
- why a config file fails to load or compile
- how `create_config` and `main_config` are supposed to pair up
- how to run the repo-provided serial or parallel wrappers from a prepared
  environment
- how to query the registry or choose a predefined CartPole/Pendulum config

## Workflow

1. Decide whether the request is about the CLI surface or the config surface.
2. Use `references/cli-reference.md` for commands, flags, and launch modes.
3. Use `references/config-reference.md` for config object structure and
   compile/save behavior.
4. Use `scripts/cli_smoke.py` when you want a bundled check for CLI help output
   plus config compilation in the installed environment.
5. If the request is really about training logic or env behavior, route to the
   neighboring sub-skill instead of growing this one.

## Common decision points

- Prefer `ding -m serial` for the legacy single-process pipeline family.
- Prefer `ding -m parallel` when the workflow is using `Parallel`-based message
  routing and multiple workers on one machine.
- Prefer `ding -m dist` only when the config contains distributed system fields
  and the user explicitly wants coordinator/collector/learner launch control.
- Prefer `ditask` when the user is working with the task router or the modern
  multi-process framework entry model.

## Helpful bundle links

- `references/cli-reference.md` for CLI flags, modes, and launch semantics.
- `references/config-reference.md` for config object shape and compile rules.
- `references/troubleshooting.md` for common parse, mode, and registry errors.
- `scripts/cli_smoke.py` for a small check that the installed package still
  parses the CLI and compiles a representative config.

Files in this skill

  • SKILL.md2.9 KB
  • references/cli-reference.md2.7 KB
  • references/config-reference.md2.2 KB
  • references/troubleshooting.md1.3 KB
  • scripts/cli_smoke.py1.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.