add-cli-argument
Skill202 starsChanged 31 days agoApache-2.0View on GitHub
Add or change a ModelExpress client CLI argument or environment variable. Use whenever touching ClientArgs, ClientConfig::load(), the Cli struct, or envs.rs/envs.py.
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- add-grpc-serviceSkill
- bump-versionSkill
- dcoSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Do NOT use -v short flag (reserved for CLI's verbose)
- Distinctive: line 16
Add override logic in the "APPLY CLI ARGUMENT OVERRIDES" section
- Very specific: line 20
Only add CLI-specific arguments there (e.g., --format, --verbose)
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Adding CLI Arguments
Client CLI arguments are defined in a shared struct to avoid duplication:
- Add to
ClientArgsinmodelexpress_common/src/client_config.rs- Single source of truth for shared arguments
- Register the variable name in
modelexpress_common/src/envs.rsand reference the constant:#[arg(long, env = crate::envs::MODEL_EXPRESS_...)](never a bare string literal, so the CLI and theenvsgetters cannot drift). All env-var names live inmodelexpress_common/src/envs.rs(Rust) andmodelexpress/envs.py(Python). - Do NOT use
-vshort flag (reserved for CLI's verbose)
- Update
ClientConfig::load()in the same file- Add override logic in the "APPLY CLI ARGUMENT OVERRIDES" section
- Do NOT duplicate in
Cli(modelexpress_client/src/bin/modules/args.rs)CliembedsClientArgsvia#[command(flatten)]- Only add CLI-specific arguments there (e.g.,
--format,--verbose)
- Add tests in the
testsmodule ofclient_config.rs
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

