Skip to content
Back to skills

Mainframe Rust

ASecurity

Develop, debug, or review Rust crates, libraries, CLIs, services, and workers, including Cargo workspaces, async Rust, migrations, and FFI.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 16, 2026
ai-agentsrustgotestingapidatabasedocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 16, 2026

npx -y skills add CATWILLgh/MAINFRAME --skill mainframe-rust --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mainframe Rust?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mainframe Rust
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/catwillgh-mainframe-rust/badge)](https://www.skillsdirectory.com/skills/catwillgh-mainframe-rust)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mainframe-rust
description: Develop, debug, or review Rust crates, libraries, CLIs, services, and workers, including Cargo workspaces, async Rust, migrations, and FFI.
---

# 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](../mainframe-testing/references/migrations.md) 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.

Use [The Cargo Book](https://doc.rust-lang.org/cargo/) for manifest and
feature behavior, the [Rust Reference](https://doc.rust-lang.org/reference/)
for language rules, and the [Tokio documentation](https://docs.rs/tokio/)
for runtime and task semantics.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.