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.
curl -O https://raw.githubusercontent.com/irahardianto/rugged-gemini/main/.gemini/skills/project-structure-rust/SKILL.mdgit clone --depth 1 https://github.com/irahardianto/rugged-geminiWrote 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.
[](https://agentmods.dev/skills/irahardianto/rugged-gemini/project-structure-rust)<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>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.
| Model | Per session | Once 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 |
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.
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
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.
- 4d ago First seen · 165 lines · 0 tokens per session scan A a0996c050716
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.
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".
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…
azure-eventhub-rust
Client library for Azure Event Hubs — big data streaming platform and event ingestion service.
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.
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.
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…