Claude Skill

rust-workspace

Cargo workspace layout, crate boundaries, and dependency policy for Skill Doctor. Use when creating crates, editing Cargo.toml, adding modules, moving types, or adding a dependency.

LLM Mart · 0 points · 8 views 0 listing impressions 0 install-command copies
Virus-scanned Reviewed automatically before listing.

Full trust report

Download kalarislabs-skill-doctor-skills_rust-workspace-72aa35f.zip · 0 KB
Part of kalarislabs/skill-doctor — 15 skills

Install

skills CLI npx skills add https://github.com/KalarisLabs/Skill-Doctor/tree/main/skills/rust-workspace
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install kalarislabs-skill-doctor@llmmart
Git git clone https://github.com/KalarisLabs/Skill-Doctor.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole kalarislabs/skill-doctor collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

Rust workspace

Boundaries

  • skill-doctor: binary only. clap + report printers. No YARA, no taint, no MCP protocol.
  • skill-doctor-core: engines + scoring. No clap. No tokio.
  • skill-doctor-rules: build.rs embeds compiled YARA. Scan path never compiles rules.
  • skill-doctor-neutralize: pure functions. No filesystem, no network.
  • skill-doctor-mcp: tokio allowed. Depends on core + neutralize.
  • skill-doctor-sandbox: feature-gated. Only unsafe crate.

Dependency rules

  1. Versions live in root [workspace.dependencies]. Member crates use { workspace = true }.
  2. Adding a crate requires updating DEPENDENCIES.md in the same change.
  3. anyhow only in the binary. Libraries use thiserror.
  4. Default features of skill-doctor must not enable sandbox, tui, or network.
  5. After any Cargo.toml edit: cargo metadata --locked (or generate lockfile once) must succeed.
  6. Forbidden on the default path: Python/PyO3, Node, OpenAI/Anthropic SDKs, scan-time YARA compile.

Module layout inside core

src/l0/  intake, digest, cache
src/l1/  pattern, taint, entropy, unicode, capability
src/l4/  intel (feature)
src/l5/  merge, coverage, report types
src/taxonomy.rs   SD-01…SD-11 only unless the whitepaper adds a class

Do not collapse crates to “make it simpler.” The boundaries exist so L1 stays a library other tools can embed.

Files (skill-doctor)
  • SKILL.md 1.6 KB
    ---
    name: rust-workspace
    description: Cargo workspace layout, crate boundaries, and dependency policy for Skill Doctor. Use when creating crates, editing Cargo.toml, adding modules, moving types, or adding a dependency.
    ---
    
    # Rust workspace
    
    ## Boundaries
    
    - `skill-doctor`: binary only. clap + report printers. No YARA, no taint, no MCP protocol.
    - `skill-doctor-core`: engines + scoring. No clap. No `tokio`.
    - `skill-doctor-rules`: `build.rs` embeds compiled YARA. Scan path never compiles rules.
    - `skill-doctor-neutralize`: pure functions. No filesystem, no network.
    - `skill-doctor-mcp`: `tokio` allowed. Depends on core + neutralize.
    - `skill-doctor-sandbox`: feature-gated. Only `unsafe` crate.
    
    ## Dependency rules
    
    1. Versions live in root `[workspace.dependencies]`. Member crates use `{ workspace = true }`.
    2. Adding a crate requires updating `DEPENDENCIES.md` in the same change.
    3. `anyhow` only in the binary. Libraries use `thiserror`.
    4. Default features of `skill-doctor` must **not** enable `sandbox`, `tui`, or network.
    5. After any Cargo.toml edit: `cargo metadata --locked` (or generate lockfile once) must succeed.
    6. Forbidden on the default path: Python/PyO3, Node, OpenAI/Anthropic SDKs, scan-time YARA compile.
    
    ## Module layout inside core
    
    ```
    src/l0/  intake, digest, cache
    src/l1/  pattern, taint, entropy, unicode, capability
    src/l4/  intel (feature)
    src/l5/  merge, coverage, report types
    src/taxonomy.rs   SD-01…SD-11 only unless the whitepaper adds a class
    ```
    
    Do not collapse crates to “make it simpler.” The boundaries exist so L1 stays a library other tools can embed.
    

Comments (0)

Sign in to join the conversation.

No comments yet.

Reviews (0)

No reviews yet.

Related