rugged-gemini: Skill for Claude Code

.gemini/skills/project-structure-rust/SKILL.md

project-structure-rust is a skill for Claude Code, Gemini CLI from irahardianto/rugged-gemini. It costs 0 tokens per session (953 once invoked), scanned A, original, MIT.

A recommended Cargo project layout for Rust applications that organizes code into feature modules, shared infrastructure, handlers, and tests.

In plain words
What is it for?
Use it when structuring Rust servers, command-line programs, or other applications with feature-specific logic and storage implementations.
Why use it?
It keeps business rules separate from input handling and storage, so code is easier to test and evolve.

Skill for Claude CodeGemini CLI

Written for Claude Code and Gemini CLI: paths in frontmatter, but also installed under .gemini/. Also seen: mentions Gemini CLI.

This is irahardianto/rugged-gemini's own configuration. It tells Claude Code and Gemini CLI how to work on rugged-gemini itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything rugged-gemini configures →

Reuse

Borrowing it

Nothing to install: this file belongs to irahardianto/rugged-gemini. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/irahardianto/rugged-gemini/main/.gemini/skills/project-structure-rust/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/irahardianto/rugged-gemini

Made for: Claude Code, Gemini CLI.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for project-structure-rust

README.md
[![agentmods](https://agentmods.dev/badge/skills/irahardianto/rugged-gemini/project-structure-rust.svg)](https://agentmods.dev/skills/irahardianto/rugged-gemini/project-structure-rust)
Your own site
<a href="https://agentmods.dev/skills/irahardianto/rugged-gemini/project-structure-rust"><img src="https://agentmods.dev/badge/skills/irahardianto/rugged-gemini/project-structure-rust.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 953 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00953
Opus 5 $0.00000 $0.00477
Sonnet 5 $0.00000 $0.00191
Haiku 4.5 $0.00000 $0.00095

Measured 4d ago against content hash a0996c050716, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

project-structure-rust scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.gemini/skills/project-structure-rust/SKILL.md · 165 lines

How it starts

The opening of the file, as written. The whole thing — 165 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Rust/Cargo Layout

Vertical slice — features are modules, not layers.

Single Binary Crate

project-root/
  Cargo.toml
  build.rs                          # Optional (FFI, codegen)
  src/
    main.rs                        # Entry point: CLI, server, wire deps
    lib.rs                         # Public modules (enables integration testing)
    config.rs                      # Config loading
    error.rs                       # App-wide errors (thiserror)
    telemetry.rs                   # Tracing setup

    features/
      mod.rs
      task/
        mod.rs                     # Public API, re-exports
        service.rs                 # Business logic orchestration
        logic.rs                   # Pure rules (no I/O)
        models.rs                  # Domain structs
        error.rs                   # Feature errors
        repository.rs              # Storage trait
        postgres.rs                # PostgreSQL impl
        mock.rs                    # Mock impl

    handlers/
      mod.rs
      task_handler.rs              # HTTP handlers (axum/actix)
      auth_handler.rs
    router.rs                      # Routes + middleware

  tests/                           # Integration tests (separate crate, pub API only)
    common/mod.rs                  # Shared fixtures
    task_api_test.rs
  benches/
    task_benchmark.rs

Key: lib.rs + main.rs enables integration testing. mod.rs = feature boundary. error.rs per feature with thiserror + #[from]. No top-level controllers//services/.

Library Crate

project-root/
  Cargo.toml
  src/
    lib.rs                         # Public API surface
    parser.rs
    ast.rs
    error.rs
    internal/
      mod.rs
      optimizer.rs
      cache.rs
  examples/
    basic_usage.rs
  tests/
    parsing_test.rs
  benches/
    parser_benchmark.rs

Cargo Workspace (Multi-Crate)

project-root/
  Cargo.toml                        # [workspace]
  Cargo.lock                        # Committed for binaries

  crates/
    myapp/
      Cargo.toml
      src/
        main.rs
        lib.rs
        config.rs
        error.rs
        api/
          mod.rs
          routes.rs
          handlers.rs

    myapp-parser/
      Cargo.toml
      build.rs
      src/
        lib.rs
        parser.rs
        transform.rs
        cache.rs
      tests/
        parser_integration.rs

    myapp-client/
      Cargo.toml
      src/
        lib.rs
        client.rs
        lifecycle.rs
        retry.rs

    myapp-search/
      Cargo.toml
      src/
        lib.rs
        search.rs
        filter.rs
      tests/
        search_integration.rs

    myapp-common/
      Cargo.toml
      src/
        lib.rs
        types.rs
        error.rs
      tests/
        common_integration.rs

  tests/
    integration/
      full_pipeline_test.rs

  config/
    myapp.config.default.json

Read the full file on GitHub · 165 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 165 lines · 0 tokens per session scan A a0996c050716

Subscribe to this mod's changes

project-structure-rust is a skill published in the GitHub repository irahardianto/rugged-gemini (5 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 953 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

azure-eventhub-rust

Azure Event Hubs library for Rust. Send and receive events for streaming data ingestion and batch processing. Triggers: "event hubs rust", "ProducerClient rust", "ConsumerClient rust", "send event rust", "streaming rust", "eventhub rust".

microsoft/skills · 58 tokens

rust-engineer

Writes, reviews, and debugs idiomatic Rust code with memory safety and zero-cost abstractions. Implements ownership patterns, manages lifetimes, designs trait hierarchies, builds async applications with tokio, and structures error handling with Result/Option. Use when building Rust applications, solving ownership or…

Jeffallan/claude-skills · 120 tokens

azure-eventhub-rust

Client library for Azure Event Hubs — big data streaming platform and event ingestion service.

benjaminasterA/antigravity-awesome-skills · 0 tokens

cloudflare-workers-multi-lang

Multi-language Workers development with Rust, Python, and WebAssembly. Use when building Workers in languages other than JavaScript/TypeScript, or when integrating WASM modules for performance-critical code.

secondsky/claude-skills · 45 tokens

actix-web

Actix Web is a powerful, high-performance web framework for Rust. It provides async handlers, type-safe extractors, middleware, and integrates with the Rust ecosystem for building fast, reliable, and memory-safe web services.

TerminalSkills/skills · 51 tokens

axum

You are an expert in Axum, the web framework built on top of Tokio and Tower by the Tokio team. You help developers build high-performance, type-safe APIs and web services using Axum's extractor-based handler system, middleware via Tower layers, WebSocket support, and compile-time route validation — achieving C-level…

TerminalSkills/skills · 74 tokens