agentsclimarketplace

Rust cli application design

Skill genaptic/skillsets/dist/dev/codex/plugins/rust-cli-apps/skills/rust-cli-application-design

Design, implement, review, or refactor a portable Rust command-line application across grammar, runtime architecture, domain boundaries, paths, configuration, output, errors, completions, and tests. Use when the overall CLI contract or several cross-cutting command concerns are in scope. Do not use for adding or changing exactly one command in an established CLI or for non-CLI Rust.From its SKILL.md

Install
npx -y skills add genaptic/skillsets --skill rust-cli-application-design

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • 26 days oldThe repository was created 26 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as Apache-2.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

7.0 KB, ~1.3k tokens by cl100k_base, as published. Nobody here has run it

Outcome

Produce a repository-aligned CLI design or change whose user-visible grammar is intentional, whose runtime and domain boundaries are clear, whose filesystem and output behavior is safe for scripts and humans, and whose verification evidence matches what actually ran.

Compatibility

Portable across Claude Code, Codex, and OpenCode. Use the target repository's Rust toolchain, MSRV, edition, lockfile, feature, target, and CI policy; Edition 2024 examples require Rust 1.85 or newer. The workflow may use current primary documentation when network access is allowed, but must continue with an explicit freshness gap when it is not. Native-client compatibility remains unverified until a dated report records the client version and exact source commit.

Use this skill when

  • Designing a new Rust CLI or restructuring its parser, application runtime, command dispatch, domain boundary, configuration, or output model.
  • Reviewing or refactoring several commands for consistent grammar, errors, paths, logging, completions, automation output, or cross-platform behavior.
  • Establishing a testable CLI contract across help, exit status, stdout/stderr, filesystem effects, configuration precedence, and end-to-end behavior.

Do not use this skill when

  • The task is to add or change exactly one command in an existing CLI with an established design; use rust-cli-command-development.
  • The task is a generic Rust library, service, GUI, or build-system change without a CLI surface.
  • The user asks only for a parser syntax explanation or a narrow copyedit to help text.
  • The requested operation is publishing, packaging a release, or performing remote Git actions.

Inputs

Inspect repository instructions; all Cargo, toolchain, and configuration files; existing binary and library targets; parser and dispatch code; output and error adapters; filesystem and configuration layers; tests, fixtures, docs, and CI. Extract users, automation consumers, grammar, compatibility, side effects, destructive operations, output formats, exit semantics, and migration constraints from the request. Never assume clap, async dispatch, a crate layout, or a command vocabulary before discovering the existing architecture.

Safety

Begin read-only and preserve unrelated changes. Commands and examples must not install toolchains or dependencies, use hidden network access, expose credentials, publish, or alter remote state. Treat deletion, overwrite, migration, shell execution, config mutation, and live integration tests as explicitly authorized effects. Use exact target containment, previews, confirmations, rollback or recovery design, and adversarial tests for destructive paths. Never imply that rename alone provides cross-platform crash durability or metadata preservation.

Procedure

  1. Discover repository authority: instructions, toolchain/MSRV, manifests, existing grammar, parser, dispatch, domain ownership, output/error policy, tests, and validation commands.
  2. Define the CLI contract before code: users, verbs/nouns, inputs, defaults, precedence, stdout, stderr, exit status, filesystem/network effects, stability, and compatibility.
  3. Preview the architecture and command matrix, including parser-to-domain flow, destructive effects, migration impact, and proof for each major choice.
  4. Keep parsing separate from runtime initialization and business behavior. Extend the repository's existing parser and dispatch pattern instead of imposing a generic App or command trait.
  5. Keep domain APIs independent from parser types, terminal rendering, process exits, and global mutable state. Prefer typed requests, outputs, and library errors.
  6. Implement path, config, output, logging, and failure behavior with explicit platform and automation contracts. Return ExitCode from main; never exit inside domain or command layers.
  7. Add layered tests for parsing/help, domain behavior, command execution, streams/exit codes, filesystem effects, and portable end-to-end scenarios.
  8. Run repository-authoritative checks, inspect the final diff, and report skipped features, platforms, tools, or live services without converting absence into a pass.

Use Architecture, Grammar, Filesystem and output safety, Testing, and End-to-end example as independent, shallow references.

Verification

  • Exercise root and nested help, parse failures, success/failure exit status, stdout/stderr separation, machine output, path edge cases, configuration precedence, and authorized filesystem effects.
  • Run the narrowest repository-defined checks first, then broader package/workspace checks when safe. Discover package, feature, target, and lockfile flags rather than imposing all-target/all-feature combinations.
  • Verify destructive-path refusal against root, home, repository/worktree, ancestors, symlinks, dangling paths, and ownership mismatches when relevant.
  • Report exact commands and outcomes. Structural validation, native CLI smoke, and model-backed behavior evidence are separate claims.

Output contract

Return discovered architecture and constraints, the user-visible command/output contract, decisions and alternatives, affected layers, safety controls, implemented or proposed changes, tests and exact results, compatibility gaps, migration notes, and remaining risks.

Resources

  • Guide — ordered design and review workflow
  • Checklist — architecture, safety, UX, and verification gates
  • Sources — primary Rust, Cargo, clap, and CLI documentation
  • Architecture — parser/runtime/domain boundaries
  • Grammar — verbs, options, precedence, help, and compatibility
  • Filesystem and output safety — paths, replacement, deletion, streams, config, and recovery
  • Finite bounded number — executable non-monetary parser that rejects invalid bounds and non-finite values
  • Removal preview — executable read-only containment, ownership, protected-path, and symlink checks with no deletion API
  • Testing — layered and cross-platform test strategy
  • End-to-end example — adaptable thin CLI design

What ships with it: 11 files

48.6 KB alongside SKILL.md

agents/

Gives 0 of the 12 instructions most design frontend skills give in ~1.3k tokens

Counted across 1,169 of the 1,878 authors here whose files we hold, read 2026-08-07

  • Use CSS variables for color consistencyin 72 of 1169, across 23 files
  • Commit to one bold aesthetic direction before codingin 72 of 1169, across 27 files
  • Match implementation complexity to the aesthetic visionin 70 of 1169, across 20 files
  • Add atmospheric background effects and texturesin 57 of 1169, across 9 files
  • Use unexpected spatial compositions and layoutsin 56 of 1169, across 8 files
  • Implement real working codein 55 of 1169, across 7 files
  • Vary themes and aesthetics across different designsin 48 of 1169, across 7 files
  • Launch chromium in headless modein 47 of 1169, across 4 files
  • Close the browser when donein 47 of 1169, across 4 files
  • Run provided scripts with help flag firstin 47 of 1169, across 4 files
  • Wait for network idle statein 47 of 1169, across 4 files
  • Use descriptive selectors for elementsin 47 of 1169, across 4 files

Said here and by no other author read

  • define the CLI contract before writing code
  • separate parsing from runtime and domain behavior
  • keep domain APIs independent of parser types
  • return ExitCode from main and never exit internally
  • add layered tests for all command behaviors
  • run repository-authoritative checks and inspect the diff

Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.

Keep looking

Skills are one crate of 326,569. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.