agentleFS
dbtlrdbtlr/skald/.claude/skills/dependencies/SKILL.md

dependencies

Skill2 starsChanged 7 months agoMITView on GitHub

Use when adding, evaluating, or updating Rust crate dependencies. Also use when considering whether to implement something yourself vs pulling in a library.

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Add a crate when:

    line 10
  2. Very specific:

    Before running cargo add, check:

    line 22
  3. Very specific:

    Use cargo update deliberately, not automatically.

    line 33
  4. Very specific:

    Run cargo audit periodically to check for known vulnerabilities.

    line 34
  5. Distinctive:

    If a new dependency adds > 10 seconds to clean build time, evaluate alternatives.

    line 58
  6. Distinctive:

    Prefer crates that offer feature flags to slim their footprint.

    line 59

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “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

Dependency Guidelines

When to Add a Dependency

Add a crate when:

  • It solves a non-trivial problem that would take > 100 lines to implement correctly (e.g., YAML parsing, terminal rendering, CLI arg parsing).
  • It's well-maintained: published within the last 6 months, has multiple maintainers or is from a trusted org.
  • It has meaningful adoption (check download counts on crates.io).

Implement it yourself when:

  • The equivalent code is < ~50 lines.
  • The crate would pull in a large dependency tree for a small feature.
  • Examples: simple config path resolution, basic string formatting, small utility functions.

Evaluation Criteria

Before running cargo add, check:

  1. Last publish date — stale crates (> 1 year) are a risk.
  2. Download count — very low downloads may indicate abandoned or untested code.
  3. Bus factor — single maintainer crates are riskier. Check if the org has multiple contributors.
  4. Dependency tree — run cargo tree -p <crate> to see what it pulls in. Avoid crates that bring in heavy transitive deps.
  5. Compile time impact — proc macros and large crates (like syn-heavy derives) add noticeable build time. Weigh the value.
  6. Feature flags — use minimal feature sets. e.g., clap with features = ["derive"] not the kitchen sink.

Pinning Strategy

  • Pin major versions in Cargo.toml (e.g., serde = "1").
  • Use cargo update deliberately, not automatically. Review changelogs.
  • Run cargo audit periodically to check for known vulnerabilities.

Key Dependencies (Established)

These are the chosen crates for skald — don't replace them without discussion:

PurposeCrateNotes
CLI frameworkclap (derive)Arg parsing, help generation
Shell completionsclap_completeGenerated from clap definitions
Interactive TUIcliclackPrompts, spinners, theming
Terminal stylingconsoleUsed by cliclack internally
Serializationserde + serde_yaml + serde_jsonConfig and output
Logging facadetracingStructured logging
Log file outputtracing-subscriber + tracing-appenderFile rotation, filtering
Error handlingthiserrorDerive macros for error types
Config dirsdirsXDG/platform-aware paths
Async runtimetokioFor future provider calls
Async traitsasync-traitProvider trait definitions

Compile Time Awareness

  • Profile build times periodically with cargo build --timings.
  • Clean builds for skald should stay under 60 seconds.
  • If a new dependency adds > 10 seconds to clean build time, evaluate alternatives.
  • Prefer crates that offer feature flags to slim their footprint.

Download now (ZIP)

  • Other versions7 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 7

    1. facebook/docusaurus★ 67ksame name
    2. orangehrm/orangehrm★ 1.1ksame name
    3. gener8v/gener8v.claude-skills★ 3same name
    4. keyreylaa/universal-agent-framework★ 1same name
    5. QinAnze/SKILLS★ 1same name
    6. syntropic137/harness-app-template★ 0same name
    7. syntropic137/software-leverage-points★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • Used alongsideProjects with it also use documentation and security.

    Other files people use alongside this one.

    Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
    • AnthropicSkill

      documentation

      Write and maintain technical documentation. Trigger with "write docs for", "document this", "create a README", "write a runbook", "onboarding guide", or when the user needs help with any form of technical writing — API docs, architecture docs, or operational runbooks.

      Also in 3 projects that use this

    • 0xSeroSkill

      security

      Also in 3 projects that use this

  • In this repository6 other files it gives its agents.

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

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.