agentleFS
DankosikDankosik/rust-cli-skills/skills/rust-implement/SKILL.md

rust-implement

Skill0 starsChanged 2 months agoMITView on GitHub

Use when implementing specified Rust CLI behavior within the project's existing contracts and technical choices.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Execution: When the intended behavior is clear, implement it directly.

    line 8
  2. Distinctive:

    Read the affected code and callers, then extend the existing path.

    line 10
  3. Distinctive:

    Clarity: Use intention-revealing names, cohesive responsibilities, explicit ownership, and visible effects and failure paths.

    line 14

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

Rust Implement

Execution. When the intended behavior is clear, implement it directly. Treat supplied requirements as constraints. Preserve settled technical decisions outside the explicitly requested change; do not reopen unrelated choices.

Read the affected code and callers, then extend the existing path. Preserve the project's Rust edition, minimum supported Rust version, target platforms, CLI contract, and selected dependencies.

Reuse. For a proposed helper, check relevant existing code, standard-library operations, and declared crates for matching semantics; avoid an exhaustive library survey. Use matching APIs directly. Custom mechanics need a concrete semantic or operational gap; wrappers should add domain meaning or adaptation. A parser, runtime, or utility crate should answer a current requirement.

Clarity. Use intention-revealing names, cohesive responsibilities, explicit ownership, and visible effects and failure paths. Keep changes local and idiomatic. Centralize shared knowledge while preserving distinct rules; add structure only for current requirements.

Keep data moving without unnecessary copies or whole-input materialization when input can grow; bounded data can justify simple materialization. Account for affected buffers, queues, and retained results. Preserve the existing execution model; for new work, start synchronously when sufficient. Honor an agreed concurrency or resource requirement without turning every implementation into a performance investigation.

Resolve routine details autonomously. If a concrete contradiction prevents implementation, identify it and continue independent work; ask only for information that changes the required outcome.

Work in behavior-sized changes with independent expectations. For a bug with an available reproducer, establish that it fails for the reported reason before fixing it; reuse an already observed failure. A missing tool or compilation error is not evidence that a behavioral regression test detects the bug.

Carry the change through existing formatting, compilation, and focused tests appropriate to the changed packages and targets. Preserve required project checks. Fix introduced failures within the environment's permissions, then rerun affected checks rather than stopping after the first patch. Reuse passing evidence while its inputs, configuration, and environment remain applicable. When work is delegated, one integrating owner runs shared final checks rather than every worker repeating them.

Finish when the requested outcome and required checks are satisfied, or state the concrete blocker and unavailable verification. Report the changed behavior and actual evidence, distinguishing introduced failures from unrelated baseline failures. Do not invent unrelated cleanup, profiling, platform matrices, or new test infrastructure as completion gates, or claim a process, OS, safety, or performance property from a weaker check.

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.