agentleFS
ai-dynamoai-dynamo/modelexpress/.agents/skills/add-cli-argument/SKILL.md

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.

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
  1. Very specific:

    Do NOT use -v short flag (reserved for CLI's verbose)

    line 13
  2. Distinctive:

    Add override logic in the "APPLY CLI ARGUMENT OVERRIDES" section

    line 16
  3. Very specific:

    Only add CLI-specific arguments there (e.g., --format, --verbose)

    line 20

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Adding CLI Arguments

Client CLI arguments are defined in a shared struct to avoid duplication:

  1. Add to ClientArgs in modelexpress_common/src/client_config.rs
    • Single source of truth for shared arguments
    • Register the variable name in modelexpress_common/src/envs.rs and reference the constant: #[arg(long, env = crate::envs::MODEL_EXPRESS_...)] (never a bare string literal, so the CLI and the envs getters cannot drift). All env-var names live in modelexpress_common/src/envs.rs (Rust) and modelexpress/envs.py (Python).
    • Do NOT use -v short flag (reserved for CLI's verbose)
  2. Update ClientConfig::load() in the same file
    • Add override logic in the "APPLY CLI ARGUMENT OVERRIDES" section
  3. Do NOT duplicate in Cli (modelexpress_client/src/bin/modules/args.rs)
    • Cli embeds ClientArgs via #[command(flatten)]
    • Only add CLI-specific arguments there (e.g., --format, --verbose)
  4. Add tests in the tests module of client_config.rs

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.