Skip to content
Back to skills

Rust Patterns

ASecurity

Router for Rust changes under cli/src/. Use first when the task spans multiple engine layers or the owning subsystem is unclear. Do not use for config-only, shell-only, or already well-scoped domain changes.

  • 3 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added August 31, 2026
testingrustshelltesting

Works with

  • cli

Security analysis

A100/100

Scanned September 20, 2026

npx -y skills add sneivandt/dotfiles --skill rust-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rust Patterns?

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

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

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: rust-patterns
description: >
  Router for Rust changes under cli/src/. Use first when the task spans multiple
  engine layers or the owning subsystem is unclear. Do not use for config-only,
  shell-only, or already well-scoped domain changes.
---

# Rust Patterns

Use this as a routing map, not as a second source of subsystem rules.

## Find the owning code

Read the nearest implementation and tests before choosing a pattern. Domain
tasks live in `domains/<domain>/<feature>.rs`; shared `config/`, `resources/`,
and `tests/` directories have distinct roles. A feature support directory needs
its matching root entry point, not a generic `tasks/` folder.

Domains must not import the application or sibling domains. Shared adapters
belong in infrastructure; cross-domain composition belongs in the application.
Preserve the executable rules in
[`domain_boundaries`](../../../cli/tests/domain_boundaries.rs).

## Route the change

| Change | Load next |
|---|---|
| concrete `Resource`, state provider, resource task | `resource-implementation` |
| startup runtime policy, task graph, dependencies, `Operation`, `ProcessMode`, parallelism | `engine-orchestration` |
| errors, idempotency, dry-run result semantics | `error-handling-patterns` |
| console rows, details, progress, summaries | `logging-patterns` |
| TOML models/loaders | `toml-configuration` |
| semantic diagnostics or validation tasks | `config-validation` |
| packages, symlinks, profiles, overlays, APM | the corresponding domain skill |
| tests, fixtures, snapshots | `testing-patterns` |
| Windows-only code or behavior | `windows-specific-patterns` |
| local verification after Rust changes | `cross-platform-verification` |

Select the narrowest owner first; add companions only for contracts actually
changed. A shared word such as "state," "task," or "test" is not by itself a
reason to load every engine skill.

Repository-wide invariants live in
[AGENTS.md](../../../AGENTS.md), architecture in
[Architecture](../../../docs/ARCHITECTURE.md), and the change workflow in
[Contributing](../../../docs/CONTRIBUTING.md).

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.

Comments

Loading comments…

Newsletter

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