catalyst: Skill for Claude Code

.claude/skills/rust-developer/SKILL.md

rust-developer is a skill for Claude Code from dwalleck/catalyst. It costs 78 tokens per session (3,413 once invoked), scanned A, original, MIT.

A set of development guidelines for Rust, a programming language focused on memory safety and performance. It covers code writing, debugging, reviews, error handling, file operations, types, performance, and common mistakes.

In plain words
What is it for?
Writing or changing Rust files, fixing compiler warnings and errors, reviewing pull requests, building command-line tools, handling files and errors, improving type safety, and optimising performance.
Why use it?
It helps developers avoid recurring Rust errors and make code easier to review and maintain. The guidance is based on lessons from code reviews and includes both quick checks and deeper explanations.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is dwalleck/catalyst's own configuration. It tells Claude Code how to work on catalyst 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 catalyst configures →

Reuse

Borrowing it

Nothing to install: this file belongs to dwalleck/catalyst. 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/dwalleck/catalyst/main/.claude/skills/rust-developer/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/dwalleck/catalyst

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/dwalleck/catalyst/rust-developer/github.svg)](https://agentmods.dev/skills/dwalleck/catalyst/rust-developer)
Your own site
<a href="https://agentmods.dev/skills/dwalleck/catalyst/rust-developer"><img src="https://agentmods.dev/badge/skills/dwalleck/catalyst/rust-developer/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 rust-developer

Your own site · 80×15
<a href="https://agentmods.dev/skills/dwalleck/catalyst/rust-developer"><img src="https://agentmods.dev/badge/skills/dwalleck/catalyst/rust-developer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,413 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.00078 $0.03413
Opus 5.5 $0.00031 $0.01365
Sonnet 5.5 $0.00016 $0.00683
Haiku 4.5 $0.00008 $0.00341

Measured 1mo ago against content hash 8a1d0bf6930f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rust-developer 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 1mo 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.

.claude/skills/rust-developer/SKILL.md · 459 lines

How it starts

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

Rust Developer Guide

Purpose

Provides comprehensive Rust development best practices learned from 6 months of code reviews across the Catalyst project. Helps avoid common mistakes, write idiomatic Rust, and build safe, performant production code.

When to Use This Skill

Automatically activates when you:

  • Write or modify Rust code (.rs files)
  • Debug Rust compiler errors or warnings
  • Review Rust pull requests
  • Ask about Rust best practices
  • Implement CLI tools or hooks
  • Work with error handling, file I/O, or type safety
  • Optimize Rust code for performance
  • Question Rust patterns or idioms

Quick Start

New to Rust or this codebase? Start with Quick Reference Checklist - Scannable checklist of all 20+ rules

Working on specific topic? Jump to the relevant resource file below

Made a specific mistake? Check Common Footguns

Writing production code? Review Error Handling Deep Dive first


Resource Files

Quick Reference (Start Here)

quick-reference.md - 400-line scannable checklist

  • All 20+ lessons in one place
  • Rule + Quick check + Example + Link to deep dive
  • Perfect for code review or quick lookup
  • Can be scanned in under 2 minutes

Additional Patterns

rust-patterns.md - ~555 lines

When to use:

  • Choosing between thiserror and anyhow
  • Input validation at boundaries
  • Concurrent database access
  • Preventing SQL injection
  • Ownership patterns (borrow vs owned)
  • Testing error paths

Topics covered:

  • thiserror vs anyhow (when to use each)
  • Input validation with validator crate
  • Arc<Mutex> for thread-safe shared state
  • Parameterized queries for SQL injection prevention
  • Ownership patterns (borrow params, return owned)
  • Testing error paths explicitly
  • Match-based error classification

Read the full file on GitHub · 459 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 459 lines · 78 tokens per session scan A 8a1d0bf6930f

Subscribe to this mod's changes

rust-developer is a skill published in the GitHub repository dwalleck/catalyst (11 stars, last pushed 11mo ago), licensed MIT. It adds 78 tokens to every session and 3,413 once invoked, about $0.0003 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-08-30.