mainframe-rust

mainframe-rust is a skill for Claude Code, Codex from CATWILLgh/MAINFRAME. It costs 38 tokens per session (550 once invoked), scanned A, original, MIT.

Engineering guidance for Rust projects, including libraries, command-line programs, services, workers, and Cargo workspaces. Cargo is Rust's build and dependency tool, and a workspace is a group of related Rust packages managed together.

In plain words
What is it for?
Use it when developing, debugging, or reviewing Rust crates, async services, command-line tools, database migrations, or code that connects Rust to other languages.
Why use it?
It helps changes fit the project's existing Rust version, features, targets, APIs, database migration process, and asynchronous code rules. It also makes failures, background tasks, blocking work, and unsafe code easier to reason about.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when developing, debugging, or reviewing Rust crates, async services, command-line tools, database migrations, or code that connects Rust to other languages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/catwillgh/mainframe/mainframe-rust
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add CATWILLgh/MAINFRAME --skill mainframe-rust
Clone the repo
git clone --depth 1 https://github.com/CATWILLgh/MAINFRAME

Made for: Claude Code, Codex.

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 mainframe-rust

README.md
[![agentmods](https://agentmods.dev/badge/skills/catwillgh/mainframe/mainframe-rust/github.svg)](https://agentmods.dev/skills/catwillgh/mainframe/mainframe-rust)
Your own site
<a href="https://agentmods.dev/skills/catwillgh/mainframe/mainframe-rust"><img src="https://agentmods.dev/badge/skills/catwillgh/mainframe/mainframe-rust/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mainframe-rust

Your own site · 80×15
<a href="https://agentmods.dev/skills/catwillgh/mainframe/mainframe-rust"><img src="https://agentmods.dev/badge/skills/catwillgh/mainframe/mainframe-rust.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 550 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.00038 $0.00550
Opus 5.5 $0.00015 $0.00220
Sonnet 5.5 $0.00008 $0.00110
Haiku 4.5 $0.00004 $0.00055

Measured 13d ago against content hash ac714ae18f96, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mainframe-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 13d 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.

skills/mainframe-rust/SKILL.md · 51 lines

How it starts

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

Rust engineering

Identify the owning Cargo package and the actual binary, library, worker, or test target. Read the crate manifest, inherited workspace settings, rust-toolchain.toml when present, and the relevant CI command. Preserve the edition, minimum supported Rust version, feature defaults, target platforms, dependency constraints, and public API. Check which feature and target actually exercises the edited path.

For schema, migration, index, or constraint work, use the shared migration method with the crate's actual database client and migration runner.

Keep failure and ownership visible

  • Propagate fallible I/O, parsing, and configuration as Result with causal context. Use panics only for proven invariants. Treat let _ = on a Result or task handle as a decision to verify. Dropping a Tokio JoinHandle detaches the task. Give background work an owner, a shutdown path, and observable failure.
  • Keep synchronous I/O and substantial CPU work off the async executor. Bound blocking work and queues. Keep locks and transactions short and ensure a guard cannot block unrelated work across an .await.
  • For FFI or unsafe, state the caller and memory invariants beside the operation. Keep validation and ownership at the boundary and exercise the relevant target. Preserve compatibility with existing callers and data.

Verify the owning target

Use mainframe-testing for behavior changes. Start with the project's focused test and cargo check or Clippy for the owning target and features. Preserve the configured toolchain and lint flags. Use the package's existing locked dependency route where applicable. Cargo checks can compile build scripts and procedural macros. Keep broad target and feature matrices in CI. Run the actual CLI or service path when behavior depends on its wiring.

For hot paths, measure the same workload and outputs before and after. Check allocations, blocking time, and throughput where the change affects them. For async workers, verify an applicable failure or cancellation path and that owned tasks and resources are released.

Read the full file on GitHub · 51 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. 13d ago First seen · 51 lines · 38 tokens per session scan A ac714ae18f96

Subscribe to this mod's changes

mainframe-rust is a skill published in the GitHub repository CATWILLgh/MAINFRAME (2 stars, last pushed 13d ago), licensed MIT. It adds 38 tokens to every session and 550 once invoked, about $0.0002 per session on Opus 5.5. 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-11-17.

Related

mainframe-rust compared with skills from other repositories

mainframe-rust next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mainframe-rustCATWILLgh/MAINFRAMESkill213d agoMITA38Claude Code, Codex
rust-checkHmbown/CodeWhaleSkill41kyesterdayMITA15Claude Code, Codex
stack-trace-rust-probeopensquilla/opensquillaSkill7.2k4d agoApache-2.0A42Claude Code
hotpath_initpawurb/hotpath-rsSkill1.9k8d agoMITA88Claude Code
rust-tracingBerriAI/litellmSkill64ktodaynoneA28Claude Code, Codex
rust-errorBerriAI/litellmSkill64ktodaynoneA72Claude Code, Codex
clickhouse-rust-type-mismatchesdivinevideo/divine-mobileSkill263yesterdayMPL-2.0A280Claude Code, Codex